aboutsummaryrefslogtreecommitdiffstats
path: root/bin
AgeCommit message (Collapse)Author
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 Homebrew/homebrew#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 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-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 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-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
2009-08-10Ensure ENV is pristine for each installationMax Howell
Because we modified the ENV global each install this propagated to consecutive formulae. So exec a new brew process each install. This is the safest way although Ruby exceptions don't propagate to the parent process so I worry about it somewhat.
2009-08-10ohai takes multiple parametersMax Howell
Will not show any of the block if the 1st additional parameter is nil
2009-08-10Refactor0.4Max Howell
Large refactor to Formula, mostly improving reliability and error handling but also layout and readability. General improvements so testing can be more complete. Patches are automatically downloaded and applied for Formula that return a list of urls from Formula::patches. Split out the brew command logic to facilitate testing. Facility from Adam Vandenberg to allow selective cleaning of files, added because Python doesn't work when stripped.
2009-08-10Pull USERAGENT used by curl into constantAdam Vandenberg
2009-08-04Fix brew --cacheAdam Vandenberg
Signed-off-by: Max Howell <max@methylblue.com>
2009-08-03FIX brew homeMax Howell
Somehow I didn't test before the commit, dumbo.
2009-08-02FIX brew info when keg installedMax Howell
I keep breaking this stuff, need more tests, and well I think it's due to developing on multiple machines and having different states of checkouts. So apologies, I'll FIX myself too :)
2009-08-02Add Contributions to brew edit listingMax Howell
2009-08-02brew home foo open's foo's homepage in default web-browserAdam Vandenberg
2009-08-02Raise if extract_named_args finds no named argsMax Howell
This errors out correctly for all existing and future usage.
2009-08-02FIX missing keg argument error message. Closes Homebrew/homebrew#6Max Howell
2009-08-01FIX brew infoMax Howell
2009-07-31Refactor $foo into HOMEBREW_FOOMax Howell
CONSTANTS are the far saner choice for these important parameters. Split env up so I can redefine the CONSTANTS in unittest.rb.
2009-07-31FIX brew edit fooMax Howell
2009-07-31FIX don't rmtree an already installed packageMax Howell
That's stupid. Also don't fail to rmtree because nothing was installed.
2009-07-31Copy LICENSE file if it exists alsoMax Howell
2009-07-29Fix brew info fooMax Howell
2009-07-28Add --cmake option to brew mk to generate a CMAKE skeleton.Adam Vandenberg
Signed-off-by: Max Howell <max@methylblue.com>
2009-07-28brew info lists number of kegsMax Howell
2009-07-24Refactor--object orientate where sensible0.3Max Howell
2009-07-22Fix typosMax Howell
2009-07-10Work even if the working directory doesn't existMax Howell
2009-06-26Leave permissions of installed files in sensible stateMax Howell
No write permission for files, executable when required etc.