This rewrite attempts to sort out where the Prefix, Cellar, and
Repository are relative to the real and symlinked 'brew' command.
Also included is a --config option which dumps all of these variables.
Any top-level script must define a "BREW_FILE" that gives the path
to brew as it exists in the path. 'brew' itself just uses __FILE__ and
install.rb does a `which brew` (there may be a better way?)
The Prefix is always relative to the location of brew as it exists in
the path. Thus, whether or not /usr/local/bin/brew is a symlink or real
file, the Prefix is always /usr/local. If you have brew in some other
prefix, such as /nonstandard/bin/brew, then '/nonstandard/ will be
managed by brew instead.
The Repository, Cellar, and "Library/Homebrew" required code is always
found relative to the "real" path or brew. If brew is a real file in
/usr/local/bin/brew, then everything else will be found in /usr/local
and we'll expect a /usr/local/.git
Otherwise, we dereference brew's symlink and look for everything else
relative to that path instead.
The "fixes" to this formula for 10.6 completely broke it on 10.5.
The formula now has separate setup / deps handling for 10.5 and
10.6, which should work until Subversion 1.7 comes out some day
and the Snow Leopard system deps break again.
Using an error pipe.
The use of ENV[HOMEBREW_ERROR_PIPE] feels wrong, but I wasn't sure how else to
proxy the file descriptor to the child process since the fork immediately
calls exec.
So many tools expect all SDL modules to be installed in the same place. So we have to change the prefix path to HOMEBREW_PREFIX. This is probably the correct thing to do in general in fact.
I found yet another instance where the escaping wasn't perfect, so got fed up and just did it in Ruby. I hope this works for all existing usage. It should.
The bonus here is that you can use RegExps now.
pdflib-lite is required to enable Gnuplot's PDF terminal.
While not free (as in speach) software, pdflib-lite is available for
non-commercial (i.e., academic and personal) use free of charge. A license
reminder is printed at the end of the build.
pdflib is also provided by MacPorts; a workaround from their portfile was
adapted to this formula to get the build to go through.
During the link step, if the destination symlink already exists, unlink it, and create a directory instead, then relink the original contents. Then continue linking the formula in question.
Fixes#62
shell-fm is a lightweight, console-based player for last.fm radio streams.
Signed-off-by: Max Howell <max@methylblue.com>
The h1 on the page is Shell.fm, everywhere else he calls it shell-fm. Thanks developer-guy. I switched the formula to .fm as that is more consitent with how you would write it if you heard it mentioned in a podcast etc.