| Age | Commit message (Collapse) | Author |
|
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.
|
|
So when people do what it says and list the info we know in advance their OS
version.
|
|
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.
|
|
Seems to be an issue with Ruby system() call doing a double fork.
|
|
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.
|
|
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.
|
|
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.
|
|
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.
|
|
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.
|
|
|
|
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.
|
|
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.
|
|
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.
|
|
|
|
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
|
|
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.
|
|
|
|
Fixes Homebrew/homebrew#21
|
|
Closes Homebrew/homebrew#8
|
|
brew install without additional arguments that is.
|
|
|
|
|
|
|
|
Automagically determines prefix to install to for DIY installations.
README amended.
|
|
|
|
I agree with Adam, this makes sense.
|
|
|
|
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.
|
|
Will not show any of the block if the 1st additional parameter is nil
|
|
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.
|
|
|
|
Signed-off-by: Max Howell <max@methylblue.com>
|
|
Somehow I didn't test before the commit, dumbo.
|
|
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 :)
|
|
|
|
|
|
This errors out correctly for all existing and future usage.
|
|
|
|
|
|
CONSTANTS are the far saner choice for these important parameters.
Split env up so I can redefine the CONSTANTS in unittest.rb.
|
|
|
|
That's stupid.
Also don't fail to rmtree because nothing was installed.
|
|
|
|
|
|
Signed-off-by: Max Howell <max@methylblue.com>
|
|
|
|
|
|
|
|
|
|
No write permission for files, executable when required etc.
|