aboutsummaryrefslogtreecommitdiffstats
AgeCommit message (Collapse)Author
2009-09-03Fix some "GCC cannot create executables"Max Howell
This regards Issue Homebrew/homebrew#30. Turns out -march=native isn't supported by Apple's GCC, but while investigating it I found they'd back ported the -march=core2 option, so we win anyway. Logic reverted to how it was yesterday. I moved the gcc options stuff back to brewkit.rb as we manipulate the cflags more later and it seemed bad form to split the logic for this area over two files. Additionally the brew command exits immediately on powerpc now. Brewkit doesn't throw as theoretically it is a useful library file for other projects.
2009-09-03Closes Homebrew/homebrew#27 (permissions to strict)Max Howell
I went with 0555 as the permissions changing only occurs to bin, sbin and lib, so there shouldn't be any files in there for editing in general anyway. Formulae can specify not to "clean" any particular file by reimplementing the skip_clean? function, in case some config file or what not ends up in there. Also committing cosmetic fix to pretty_duration function.
2009-09-03Thrift formulaAsk Solem
Thrift is a software framework for scalable cross-language services development. It combines a powerful software stack with a code generation engine to build services that work efficiently and seamlessly between C++, Java, Python, PHP, and Ruby. Thrift was developed at Facebook and released as open source.
2009-09-03Improvements to build environment determinationspicyj
Simplified hardware model testing. Even smarter compiler option generation using sysctl and new GCC 4.2 features. Get processor count from sysctl and thus remove our dependency on RubyCocoa.
2009-09-03Fixes HOMEBREW_PRFIX when brew is outside $PATHnmeans
If brew is called with an explicit path, eg. './bin/brew', HOMEBREW_PREFIX is set to an empty string resulting in failure of all brew commands using HOMEBREW_PREFIX. This commit forces Pathname to compile an absolute path, setting HOMEBREW_PREFIX correctly.
2009-09-02If the download fails, delete the half-fileMax Howell
Otherwise next time it will assume the half-file is the whole file and fail the md5 check.
2009-09-02Fix apr formula by aliasing deparallelize to j1Max Howell
2009-09-02brew info FIX if git isn't installedMax Howell
2009-09-02Only time the build, not the download tooMax Howell
2009-09-02Smoothing out the READMEMax Howell
We are more Markdown compliant, but it's still too verbose IMO.
2009-09-02Tests for Pathname+YeastMax Howell
I removed the rename and mv functions as when I wrote the tests I realised the function implied the pathname object would be updated to reflect the moved or renamed file. However that cannot be done. Also frankly I think writing it out in full makes clearer code.
2009-09-02Build optimisations for 64 bit Snow LeopardMax Howell
Specifying -v/--verbose shows the build environment before the build MACOS_VERSION contains the floating point value of the OS X version A test for some floating point assumptions I make
2009-09-01Tests for hw.model and brew.h.rbMax Howell
2009-09-01Obtain hw.model from the sysctl toolEloy Duran
Saves building our own tool to do the same job!
2009-09-01Dict.org client formulaBen Alpert
Added Formula::etc() Added Pathname::write() convenience function which can write a string out to the file it points too, raising if it would have to overwrite.
2009-09-01Fix brew when using sudoBen Alpert
The PWD environment variable is apparently not set for root. Signed Off By: Max Howell <max@methylblue.com> I removed the Dir.chdir line altogether as it was a hacky solution to an issue in Ruby that I encountered a lot during early development, ie. I'd brew rm while working directory was set to that keg.
2009-08-31Foolish lack of backslash causes brew mk b0rkageMax Howell
2009-08-31Use github.user for github history linkMax Howell
Discussion: d60fc4ba86d45255b0093303c45f6b1c2196fda2
2009-08-31Use newer configure syntax as make templateMax Howell
2009-08-31docs is an alias for doc sometimes apparentlyMax Howell
We don't install documentation to save space. It seems pointless in this modern age where the online docs are probably more up to date. However I do believe this should be an option, defaulting to "don't install".
2009-08-31If forked, open Github history of forked repositoryChristian Mayer
2009-09-01ignore sbinBrett Porter
Signed-off-by: Max Howell <max@methylblue.com>
2009-08-31Change license to BSDMax Howell
I confirmed this change with all relevant contributors first.
2009-08-31Reference the full path to the `brew' bin.Eloy Duran
2009-08-30Full ImageMagick installMax Howell
I used the imagemagick-installer script that made the rounds on Twitter lately as a basis. But a number of improvements, eg. lets not mess around with the OS X installation of cups.
2009-08-30Better cache names for accessory-formulaMax Howell
Because formula don't get named unless the brew kit instantiates them accessory formula were getting named "__UNKNOWN__". Which sucks. This isn't ideal for me as I made the naming use @name and @version to ensure unique naming. Now it is possible to have name clashes in the cache. So I need to solve it better at some point.
2009-08-30Ruby 1.9 version styleMax Howell
2009-08-30FIX GithubGistFormula (fixes Homebrew/homebrew#20)Max Howell
2009-08-30Don't lower case arguments to brew makeMax Howell
Fixes Homebrew/homebrew#21
2009-08-29brew unlink commandMax Howell
Closes Homebrew/homebrew#8
2009-08-29brew install lists available install optionsMax Howell
brew install without additional arguments that is.
2009-08-29Clarify --debug behavior.Adam Vandenberg
Add a note that 'exit 1' will abort the installation in --debug mode. Signed Off By: Max Howell <max@methylblue.com> I ammended the text slightly and made the lines all 78 chars wide maximum.
2009-08-29Use alternate Cache for root user.Adam Vandenberg
2009-08-24Don't symlink directories into binMax Howell
2009-08-24Playdar formulaMax Howell
Fix git download strategy
2009-08-24reinreplace uses safe_systemMax Howell
2009-08-24Raise a SystemExit exception to prevent backtraceMax Howell
2009-08-24Support optional HEAD builds for any formulaMax Howell
A formula can have just a @head url or the user can specify to install HEAD with --head. We support subversion and git checkouts. The version is set to HEAD for head builds. Next step is making brew update handle these installs correctly.
2009-08-24Add path for 'libexec'.Adam Vandenberg
2009-08-24Suggest homepage in usageMax Howell
2009-08-24brew ls with no further ARGV lists all installed kegsMax Howell
2009-08-24Proper validation of Formula.name and versionMax Howell
2009-08-24FIX brew diy --set-version --set-nameMax Howell
2009-08-24Move download strategies into their own fileMax Howell
2009-08-24Allow configure alias for diyMax Howell
2009-08-24Don't return a version that equals the basenameMax Howell
Return nil instead
2009-08-24Refactor away AbstractFormulaMax Howell
We'd gotten to the stage where Formula was so lean, it was pointless to separate it.
2009-08-24GitDownloadStrategyMax Howell
Untested
2009-08-24Support building from Subversion repositoriesAdam Vandenberg
Adds a new DownloadStrategy that checks files out from Subversion to the cache, then exports over to the temp folder for the build. To use checkout with the svn:// protocol or reimplement download_strategy and return SubversionDownloadStrategy.
2009-08-24Factor out downloading from FormulaAdam Vandenberg
This patch adds a ArchiveDownloadStrategy that handles downloading tarbarlls and decompressing them into the staging area ready for brewing. Refactored safe_system and curl into utils.rb Signed-off-by: Max Howell <max@methylblue.com> Modifications to Adam's original patch: I reverted objectification of checksum verification because I couldn't think of any other download validation methods that might be useful to us in the future, so allowing such flexibility had no advantages. If we ever need this to be OO we can add it. But for now less complexity is preferable. I removed the @svnurl class member. Instead download_strategy is autodetected by examining the url. The user can override the download_strategy in case this fails. Thus we already can easily add support for clones of git repositories.