24630 Commits

Author SHA1 Message Date
Adam Vandenberg
8443c9be7d Some small style reformats 2009-12-12 16:24:15 +00:00
Adam Vandenberg
b3c1e0aba2 Mercurial - recognize Google Code repos and support revisions. 2009-12-12 16:24:14 +00:00
Adam Vandenberg
4731add213 Fix selflink script. 2009-12-12 16:24:14 +00:00
Max Howell
4ce19ae2d7 Better error message if exec fails 2009-12-12 16:23:04 +00:00
Max Howell
a9895432ce Use our Bazaar formula for now
Bzr on PyPi is problematic for now.
2009-12-12 16:23:03 +00:00
Max Howell
476c299685 Ever more README tweaks 2009-12-12 16:23:03 +00:00
Max Howell
635cb27d13 Unlink before uninstalling
Nice bug there where we never removed any symlinks, because the unlink step requires the keg to be full of files to determine what symlinks to remove.
2009-12-12 16:23:03 +00:00
Max Howell
4254661c66 Brew update will git init if required
This is necessary for those who installed Homebrew using the suggested tarball method.

Too late for them though.
2009-12-07 18:20:04 +00:00
Max Howell
19039471c0 Ignore ^C when cleaning up at exit 2009-12-07 17:56:47 +00:00
Ben Olive
5131475ae1 Comments reflect actual patch level of 1.
Updated comments to match new default patch level from revision 4fe374d
2009-12-05 18:05:20 +00:00
Max Howell
c4c2a30b36 Apparently this reads better 2009-12-05 17:58:21 +00:00
Max Howell
54aff61ef6 Prompt user to use pip for Hg and Bzr 2009-12-05 17:29:49 +00:00
Max Howell
a1583d1d3c The README is too long 2009-12-05 13:53:17 +00:00
Max Howell
ba1c0af94c Apparently the map didn't work on Leopard 2009-12-04 18:16:32 +00:00
Max Howell
6c123b176d Fixes broken SubversionDownloadStrategy
Being able to commit parts of diffs can bite you if you aren't careful.
2009-12-04 18:16:32 +00:00
Max Howell
3eac79f905 Export the revision, checkout HEAD 2009-12-04 14:19:41 +00:00
Manfred Stienstra
5ff55b1739 Cast all arguments for Kernel#exec to string.
In the FFMPEG formula the revision number is represented as an integer,
this ends up as an argument to Kernel#exec and it doesn't really like
that. The fix is to cast all arguments to a string.

Fixes Homebrew/homebrew#171.
2009-12-04 14:16:45 +00:00
Max Howell
965b0c8da7 At some point the fact we don't support PPC was glossed over 2009-12-04 14:16:45 +00:00
Max Howell
0cb915e34e Allow formula to skip docs removal 2009-12-04 14:16:45 +00:00
Max Howell
bf07b9662a Puts URL for failed build line 2009-12-04 10:36:25 +00:00
Max Howell
fef2879048 Document mailing list 2009-12-03 17:56:25 +00:00
Max Howell
90b3642952 A less sexist tone 2009-12-03 17:56:25 +00:00
Max Howell
277239a4dd List the options that the user has for installing Mercurial
Fixes Homebrew/homebrew#136
2009-12-02 13:21:34 +00:00
Max Howell
b70367fa96 cd HOMEBREW_REPOSITORY before trying to git info it 2009-12-02 13:07:20 +00:00
Max Howell
dd0df9bd37 Show exit status properly
Turns out $?.to_i is a 16bit int with some bit flags in the first byte.
2009-12-02 13:07:03 +00:00
Max Howell
c76e0156d7 We don't need the whole backtrace for BuildErrors 2009-12-02 12:31:44 +00:00
Max Howell
95eb1b4a5d Remove redundant cflags
-fomit-frame-pointer is included for any optimisation level above O2 (including Os)

Setting MACOS_DEPLOYMENT_TARGET is unecessary if you are just setting it the same as the OS X you are running.
2009-12-02 12:17:14 +00:00
Max Howell
d3a52adce3 Nice the install process
Makes a big difference on OS X, you can still use the GUI and that.
2009-12-02 10:39:26 +00:00
Max Howell
a687871ae1 Alias gcc_4_0_1 to gcc_4_0
This is what we did for gcc_4_2 after all.
2009-12-02 10:39:06 +00:00
Max Howell
e1690dd4aa When not installed to /usr/local use -isystem
This means our include directory is prioritised above all -I but after all other system directories. This is how it should be.

Also helps fix Homebrew/homebrew#113.
2009-12-01 12:07:34 +00:00
Max Howell
4cea6157a1 include FileUtils into Formula
Thus mv, rm etc, functions are almost as handy as pure shell scripting, without issues related to spaces in filenames.
2009-12-01 12:07:34 +00:00
Max Howell
1dc9df13fb We can't rely on the $: order
Some gems and libraries seem to change the order.
2009-12-01 12:07:34 +00:00
Max Howell
9294e19859 brew --config output improved if no GCC 2009-12-01 12:07:34 +00:00
Max Howell
a011dd6762 Direct bug reports to the issues URL 2009-12-01 12:07:33 +00:00
Adam Vandenberg
224beabdd5 Refactor formula_test. 2009-11-19 14:13:31 -08:00
Adam Vandenberg
411874e0b6 Add command 'brew info --all'. 2009-11-19 14:03:08 -08:00
Adam Vandenberg
7366a41268 New command 'brew deps [formula]'
Where brew info will show the next-level-down dependencies, brew deps
will show all of the formulae that a given formula depends on.
2009-11-19 14:03:07 -08:00
Adam Vandenberg
56f82a33b1 Update bash and zsh for 'uses'. 2009-11-19 14:03:07 -08:00
Adam Vandenberg
95e398ab13 Add alias support to formulae
* brew install will find an aliased formula
* aliases are searched against
* warn when creating a new formula that has an existing alias.

If Subversion has an alias "svn", then warn when the user tries to
create a new formula "svn". The formula can still be created, though
the user should make sure it's not a duplicate of the existing
aliased one.

Subversion and Objective-Caml formulas get some alises here, so we have
something to test against.
2009-11-19 14:03:07 -08:00
Adam Vandenberg
af29299f37 Add brew command 'uses'
'uses' shows the formulas that depend on a formula given on the
command-line.
2009-11-19 14:03:07 -08:00
Adam Vandenberg
ed4992f467 Add a Formulary class for managing the Formulae
These methods could be static on Formula, but splitting them out makes
it clear to formular authors that these functions don't have anything
to do with writing new formulas.
2009-11-19 14:03:07 -08:00
Adam Vandenberg
59a686e3c2 Add extra message for unknown commands that are git commands. 2009-11-19 14:03:07 -08:00
Adam Vandenberg
be412369ae Also allow 'brew help'. 2009-11-19 14:03:07 -08:00
Adam Vandenberg
34c213097e Fix when 'edit' if/else indentation 2009-11-19 14:03:06 -08:00
Adam Vandenberg
4fbcf13e65 Move some helper functions into Hardware 2009-11-19 14:03:06 -08:00
Adam Vandenberg
83fc432eab Refactor formula_test. 2009-11-18 15:50:01 -08:00
Adam Vandenberg
6e7731aeff Add test for legacy prefix quoting. 2009-11-18 15:43:00 -08:00
Adam Vandenberg
47a38f49f1 Fix HOMEBREW_BREW_FILE for unit tests. 2009-11-18 15:39:51 -08:00
Adam Vandenberg
bc378d091b Compare against HOMEBREW_CELLAR using real paths.
The code in Keg.self.for path uses "path = path.parent.realpath" to walk
up subfolders looking for a Keg.

Because 'realpath' is in there, and the path is checked against
HOMEBREW_CELLAR, which  may be a symlink, we need to do realpath-to-realpath
comparisons in Keg. Otherwise, we will hit equivalent but symlinked folders,
not see that they are the same, and walk all the way up to / and then
error out.
2009-11-12 12:47:17 -08:00
Max Howell
55f7b826d9 Check for $! before installing
If an exception is thrown while parsing the formula file before the install.rb at_exit then it will be in $!. Marshal it back to the parent brew process.
2009-11-12 01:37:02 +00:00