aboutsummaryrefslogtreecommitdiffstats
path: root/bin
AgeCommit message (Collapse)Author
2009-09-25Don't summarize brew list if piped to another commandMax Howell
2009-09-25Axel formulaChristian Mayer
Axel tries to accelerate downloads by using multiple connections (possibly to multiple servers) for one download. Because of its size, it might be very useful on bootdisks or other small systems as a wget replacement.
2009-09-25Add full version and build numbers to user agentPiotr Usewicz
Signed-off-by: Max Howell <max@methylblue.com> I adapted it slightly based on the user agent that Safari gives.
2009-09-24Summarised listings with brew listMax Howell
I'm trying to only show the interesting stuff. You can see a full listing with brew -v list, or by piping to other commands. Tell me if you hate it or love it.
2009-09-24brew log commandMax Howell
Shows the git-log for that formula.
2009-09-24Use full paths to all system utilitiesMax Howell
Otherwise you run the risk of not running the exact version / make of the utility you planned. Fixes #48 Really we need to do this formula too, so I guess a make and cmake function are on the way…
2009-09-24Remove Fink and Macports from the PATH earlierMax Howell
References issue #48
2009-09-24Return non-zero error code on errorsMax Howell
Stupidly I figured Ruby did this for us, but why would it?
2009-09-22brew install --ignore-dependenciesMax Howell
I used the same option flag as ruby gems does.
2009-09-21length, not count. Fixes issue 55.Adam Vandenberg
2009-09-21Remove some ohai() useMax Howell
Ohai is for titles, to separate sections of output so it is more readable, it truncates long lines for this purpose. So don't use it if the line you are outputting is likely to be long and important. Instead prefix that line with a summary header.
2009-09-21Merge branch 'deps'Max Howell
Conflicts: Library/Formula/imagemagick.rb Library/Formula/taglib.rb Library/Homebrew/brew.h.rb Library/Homebrew/formula.rb bin/brew
2009-09-21Dependency resolution with fancy syntaxMax Howell
Is it a DSL? No. But people call it that apparently. To add a dependency: class Doe <Formula depends_on 'ray' depends_on 'mee' => :optional depends_on 'far' => :recommended depends_on Sew.new end Sew would be a formula you have defined in this Formula file. This is useful, eg. see Python's formula. Formula specified in this fashion cannot be linked into the HOMEBREW_PREFIX, they are considered private libraries. This allows you to create custom installations that are very specific to your formula. More features to come, like specifying versions
2009-09-18Update references to masterbrewMax Howell
I left update_from_masterbrew! as a historical reference.
2009-09-17Error out if HOMEBREW_PREFIX isn't writableMax Howell
2009-09-17Rename refresh_brew.rb to update.rbMax Howell
I didn't change the class name, it's clear from the context where it is used what it does. However when just looking at files to figure out the nature of Homebrew I believe in clear naming. Otherwise funny names earn you points.
2009-09-17Made the output of updating a bit nicer and log more if --verbose.Eloy Duran
2009-09-17Don't print that there are _and_ aren't formulae updates.Eloy Duran
2009-09-17Removed the old 'update' when clause and fixed a small spelling error.Eloy Duran
2009-09-17Update Homebrew and list the updated formulae.Eloy Duran
2009-09-16Allow formulae to use __END__Max Howell
For this to work the "running script" must be the formulae file. Making this so wasn't so hard, there is now an install.rb script which is included with the -r flag to the ruby executable. An at_exit handler calls the install function. Having the install logic in its own file made it feel like there was so much space that I added extra error handling. So there is something to be said for separating functionality out into its own files. Still the error handling sucks, we'll need to marshall the exception back to the bin/brew command. Which is another PITA. Still overall I think this will prove worthwhile. But if it doesn't we'll revert. As a first usage, you can put a diff after __END__ and return DATA from Formula::patches to make Homebrew aware of it.
2009-09-10Only allow --interactive with one formula argumentMax Howell
See comments in commit for details.
2009-09-10Don't install dependencies that are already installedMax Howell
2009-09-10Dependency resolutionMax Howell
Specify dependencies in your formula's deps function. You can return an Array, String or Hash, eg: def deps { :optional => 'libogg', :required => %w[flac sdl], :recommended => 'cmake' } end Note currently the Hash is flattened and qualifications are ignored. If you only return an Array or String, the qualification is assumed to be :required. Other packaging systems have problems when it comes to packages requiring a specific version of a package, or some patches that may not work well with other software. With Homebrew we have some options: 1. If the formula is vanilla but an older version we can cherry-pick the old version and install it in the Cellar in parallel, but just not symlink it into /usr/local while forcing the formula that depends on it to link to that one and not any other versions of it. 2. If the dependency requires patches then we shouldn't install this for use by any other tools, (I guess this needs to be decided on a per-situation basis). It can be installed into the parent formula's prefix, and not symlinked into /usr/local. In this case the dependency's Formula derivation should be saved in the parent formula's file (check git or flac for an example of this). Both the above can be done currently with hacks, so I'll flesh out a proper way sometime this week.
2009-09-10Include OS X version with fatal error detailsMax Howell
So when people do what it says and list the info we know in advance their OS version.
2009-09-07`brew make' becomes `brew create'Max Howell
This is because I have observed two people confuse make with the "make" tool and thus assume `brew make' is `brew install'. `brew make' will be deprecated at 0.7, until then it shows a warning.
2009-09-05Fix double newline after InterruptMax Howell
Seems to be an issue with Ruby system() call doing a double fork.
2009-09-05FIX installed but not installed state.Max Howell
Pressing CTRL-C during installs would remove the prefix but not the keg directory. brew list would then report this keg as installed, even though it was empty.
2009-09-05Use ENV[EDITOR] if possiblescoates
Defaulting to EDITOR, then checking for the mate command, and then using vim as a last resort. Signed Off By: Max Howell <max@methylblue.com> Plain brew edit still uses Textmate though because a client that supported a project concept is required for that particular feature. Patches for that welcome.
2009-09-05`brew search' commandAndre Arko
Example usage: brew search w # formulae containing w brew search ^w # formulae starting with w No parameters lists all packages. Also adds puts_columns to util, and uses it for output. Signed Off By: Max Howell <max@methylblue.com> I changed the command from 'available' to search because this is more similar to how other tools call this function. The short form is -S, which is the "pacman" tool equivalent.
2009-09-05watch_out_for_spillEloy Duran
New method which uses RubyCocoa with the FSEvents API from Rucola to watch if files aren't installed outside the Homebrew prefix. Right now the paths being watched are: /System, /usr, /etc, /sbin, /bin, and /Applications.
2009-09-04Nehalem supports SSE4.2Adam Vandenberg
Signed Off By: Max Howell <max@methylblue.com> I realised that -msse4.1 and -msse4.2 aren't supported by GCC 4.0, so I made the brash decision that we require GCC 4.2. It comes with Xcode 3.1 so people can upgrade if they have to. Requiring a single compiler is better for us anyway -- less possible errors and failures. Formulae can still request gcc-4.0.1, but at least then those formulae still only use a single compiler and not possibly two.
2009-09-04Sort the output from `brew install`Bjørn Arild Mæland
2009-09-04Fixes #30 -- GCC can't create executablesMax Howell
The fix is to error out if GCC isn't installed, and to ensure we aren't setting CC and CXX to something that doesn't exist.
2009-09-03Fix some "GCC cannot create executables"Max Howell
This regards Issue #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-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-02Only time the build, not the download tooMax Howell
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-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-31Reference the full path to the `brew' bin.Eloy Duran
2009-08-30Don't lower case arguments to brew makeMax Howell
Fixes #21
2009-08-29brew unlink commandMax Howell
Closes #8
2009-08-29brew install lists available install optionsMax Howell
brew install without additional arguments that is.
2009-08-29Use alternate Cache for root user.Adam Vandenberg
2009-08-24brew ls with no further ARGV lists all installed kegsMax Howell
2009-08-24Allow configure alias for diyMax Howell
2009-08-12brew diy commandMax Howell
Automagically determines prefix to install to for DIY installations. README amended.
2009-08-12Error out if the host OS X is too oldMax Howell
2009-08-11Only show full exception bt for --debug or -dMax Howell
I agree with Adam, this makes sense.
2009-08-11Raise if ARGV.named and no named argumentsMax Howell