11155 Commits

Author SHA1 Message Date
Adam Vandenberg
2a5f757816 Use + instead of /. 2011-03-12 11:55:07 -08:00
Max Howell
761cbd3dab Add comment and use constants 2011-03-12 11:55:07 -08:00
Adam Vandenberg
4812dd1b89 audit - check formula permissions 2011-03-12 11:55:07 -08:00
Adam Vandenberg
9ede899d5d Add expat.framework check to doctor 2011-03-12 11:55:07 -08:00
Stephen Allred
618617da73 Added --use-gcc flag.
This allows you to use llvm as your default compiler and keep the cc symlink
pointed at llvm, while allowing you to build forumla that requires the gcc.

Signed-off-by: Adam Vandenberg <flangy@gmail.com>
2011-03-12 11:55:06 -08:00
Camillo Lugaresi
f4ffb754c3 ensure brewed bins are in path before installing
This makes sure that formulas find the correct pkg-config.

Signed-off-by: Adam Vandenberg <flangy@gmail.com>
2011-03-12 11:55:06 -08:00
Max Howell
f43be169fe Stop recommending our pip
Seeing as the pip formula doesn't recommend pip anymore, we should stop telling people to use it :P
2011-03-12 11:55:06 -08:00
Max Howell
a8d185efa0 Fix brew log foo 2011-03-12 11:55:06 -08:00
Max Howell
712dcff45f Revised bug report text 2011-03-12 11:55:06 -08:00
Max Howell
e9aa22be8f Don't throw if no gcc 4.0 installed 2011-03-12 11:55:05 -08:00
Max Howell
d78b89dd2e MacOS.xcode_prefix
More robust code than before, and replaces all usage of `xcode-select -print-path`.
2011-03-12 11:55:04 -08:00
Max Howell
48fe922456 Don't open editor if no args passed 2011-03-12 11:55:04 -08:00
Max Howell
e96744eb6f brew deps foo bar now gives the dependency intersection
Rationale: this is more useful than the union, and you can still easily get the union by running the command twice and concatenating the result.
2011-03-12 11:55:04 -08:00
Max Howell
521f1ec959 A install name fix step during install
We currently only fix relative paths, but we should expand this more.
2011-03-12 11:55:04 -08:00
Max Howell
123f7cd00e Pathname.ensure_writable
Yields after chmoding (if necessary), once block is complete restores permissions.
2011-03-12 11:55:04 -08:00
Max Howell
55bd25ff4c Formula.resolve_alias to compatability.rb 2011-03-12 11:55:03 -08:00
Max Howell
c1a3b724fd Some Cleanup 2011-03-12 11:55:03 -08:00
Adam Vandenberg
b13baedfd8 Move string extensions 2011-03-12 11:55:03 -08:00
Adam Vandenberg
c5c1f40d0a Move brew-audit to cmds 2011-03-12 11:55:03 -08:00
Adam Vandenberg
0225f07eba Move some exceptions 2011-03-12 11:55:03 -08:00
Max Howell
719e6c8999 Refactor the blacklists
Also don't abort searches if the query matches a blacklist. Eg.
`brew search vim` should return macvim and the information that vim itself is
not packaged.
2011-03-12 11:55:02 -08:00
Max Howell
cf29569099 More modular cmd/install and FormulaInstaller 2011-03-12 11:55:02 -08:00
Max Howell
768910283a Refactor the brew command into one file per command
The code was sucking. To the extent that maintenance was hard. It's a lot
easier to work with code that is sensibly split at sensible boundaries. So
now it is more like that.

But the refactor is minimal. Because we don't want you to have more merge
hell than absolutely necessary.

If you merge you will need to pay attention to brew.h.rb (as it is deleted)
and bin/brew (as command logic is gone). It will be painful, but you will just
have to help git out by moving any changes around manually.

Note compatibility.rb. It ensures that any function renames or removals don't
break anything. We're pretty serious about backwards compatibility. And that's
because we encourage you to hack around with the innards. And we couldn't do
that if we would then just make stuff disappear behind your back.
2011-03-12 11:55:02 -08:00
Arthur Kalmenson
97f654701d Use http://npmjs.org/ installation instructions. Fixes 4569.
Signed-off-by: Adam Vandenberg <flangy@gmail.com>
2011-03-06 20:33:26 -08:00
isaacs
2b88c24ead remove npm, add warning about it.
Signed-off-by: Max Howell <max@methylblue.com>
2011-02-13 10:11:57 +00:00
Adam Vandenberg
9752fc93fd Add ENV.cppflags shortcut 2011-01-22 10:07:08 -08:00
Mike McQuaid
8934fdbe82 Add newline to new issue reporting instructions. 2011-01-08 20:21:30 +00:00
Adam Vandenberg
24e10826f4 Fix GithubGistFormula. 2010-12-22 17:08:53 -08:00
Mike McQuaid
1e71489d51 Send people to new issue wiki page.
Signed-off-by: Mike McQuaid <mike@mikemcquaid.com>
2010-12-22 21:32:06 +00:00
Adam Vandenberg
5e724cbf15 Use full path to curl in utils.rb 2010-11-26 09:43:07 -08:00
Lee Packham
883fd9ef89 Correct the principle usage of principal principles ;)
Signed-off-by: Mike McQuaid <mike@mikemcquaid.com>
2010-11-21 13:20:12 +00:00
Adam Vandenberg
f0b6870de7 Allow underscore in github version numbers. 2010-11-07 11:25:20 -08:00
Michael Dippery
e0c23d670d More .DS_Store ignoring
* Don't link .DS_Store files
* Don't list .DS_Store files in `brew info`

Signed-off-by: Adam Vandenberg <flangy@gmail.com>
2010-11-05 19:44:56 -07:00
Adam Vandenberg
2712dd6bcc brew-doctor - check for another stray ENV var
Having $MACOSX_DEPLOYMENT_TARGET (for Fink) to something other than
the current system SDK will cause Git to fail to compile (when building
the Python bindings).
2010-11-05 07:01:00 -07:00
Adam Vandenberg
202663eb0c Fix installing from local abs. paths. 2010-11-04 13:53:03 -07:00
Adam Vandenberg
d02941e1da Quash warning.
Fixes Homebrew/homebrew#3056
2010-11-03 07:03:50 -07:00
Adam Vandenberg
b6332de28d Bump Homebrew to 0.7.1
The Homebrew version number is mainly useful for bug reports. Since it is
included in "brew --config" output, it is an easy way to see roughly how
new the a user's version of Homebrew is.

Bumping the micro version now, in anticipation of some more version-changing
events in the near future.
2010-10-31 17:23:20 -07:00
Adam Vandenberg
c8781e720f Reformat keg-only message 2010-10-30 21:50:33 -07:00
Jamie Macey
b7fa82b28d fix warnings: ambiguous splat
Signed-off-by: Adam Vandenberg <flangy@gmail.com>
2010-10-30 14:50:54 -07:00
Jamie Macey
6ff5e194c7 fix warnings: splat is redundant for puts
Signed-off-by: Adam Vandenberg <flangy@gmail.com>
2010-10-30 14:50:18 -07:00
Jamie Macey
1e41264f42 fix warnings: ambiguous first arg
Signed-off-by: Adam Vandenberg <flangy@gmail.com>
2010-10-30 14:47:44 -07:00
Adam Vandenberg
ea03121688 Allow installation from URLs
This allows installation like:
    brew install http://example.com/something.rb

Based on an original patch by [dwalters].

Fixes Homebrew/homebrew#160
2010-10-30 14:23:01 -07:00
Michael Dippery
8e8875f8f4 Ignore .DS_Store files when listing keg contents
Signed-off-by: Adam Vandenberg <flangy@gmail.com>
2010-10-28 21:42:48 -07:00
arlolra
14ebf705ae Handle dashed tags at github.
Signed-off-by: Adam Vandenberg <flangy@gmail.com>
2010-10-28 21:19:42 -07:00
Joshua Peek
a305360099 Prefer HEAD version if its installed
Signed-off-by: Adam Vandenberg <flangy@gmail.com>
2010-10-26 09:39:17 -07:00
Adam Vandenberg
f4ce357d44 brew-doctor - alt. autoconf path 2010-10-26 09:19:07 -07:00
Adam Vandenberg
06c7f4a29d fix jruby external deps 2010-10-21 21:58:18 -07:00
Adam Vandenberg
b82be5c8b0 brew-doctor - fix keg-only check 2010-10-20 20:05:44 -07:00
Adam Vandenberg
b6bd22bfc9 brew-doctor - tweak git message 2010-10-20 19:29:02 -07:00
Adam Vandenberg
93a0d56386 brew-doctor - also check /usr/local/etc 2010-10-20 19:28:46 -07:00