117 Commits

Author SHA1 Message Date
Adam Vandenberg
76dcc1929b refactor compiler messages 2010-09-29 21:52:55 -07:00
Adam Vandenberg
e757d7c956 add libpcap to list 2010-09-27 18:36:14 -07:00
Adam Vandenberg
82fe02170a fix typo 2010-09-26 18:06:43 -07:00
Max Howell
2f438179a7 Don't descend keg-root symlinks, just show where they point 2010-09-12 22:10:28 +01:00
Adam Vandenberg
2bb9fa1b22 Bump Xcode recommendation to 3.2.3 2010-09-07 13:23:43 -07:00
David Höppner
bbad458c9b Blacklist vim, screen and libarchive 2010-08-29 19:06:49 +02:00
Adam Vandenberg
8ff8b84235 Move cleaner to separate file 2010-08-21 11:06:02 -07:00
Adam Vandenberg
5ff48066f1 'brew cleanup' no longer complains about single versions
Previously "brew cleanup" would complain if the most recent
version of a brew wasn't installed.

We now suppress this message if only one (outdated) formula is
present.
2010-08-20 08:57:22 -07:00
Adam Vandenberg
7d7b5cfab0 Tweak default template 2010-08-11 14:22:44 -07:00
Adam Vandenberg
6c23f9b324 brew doctor - X11 check
Tweak wording in X11 check and use the same X11 detection function
as ENV.x11; also move that function into utils.
2010-08-09 19:13:07 -07:00
lukas
fd39ff2da6 change behaviour of github_info to fallback sooner to mxcl/master
Fixes Homebrew/homebrew#1980

Signed-off-by: Adam Vandenberg <flangy@gmail.com>
2010-08-07 22:22:15 -07:00
Alexander Kahn
a56466a4d3 Use ERB to generate formula template. 2010-08-07 18:08:51 -07:00
Max Howell
dad4bbb9e3 Use new alias system with brew search
Also don't show any aliases if you just type `brew search` as there is so
little context, it just looks messy.
2010-08-07 18:08:49 -07:00
Max Howell
0fcb584862 brew create uses new Aliasing system 2010-08-07 18:08:49 -07:00
Adam Vandenberg
fa4671f59f Fix brew info --github 2010-07-27 06:37:49 -07:00
Adam Vandenberg
b355d6af25 Bump Xcode recommendation to 3.2.2 2010-07-21 09:45:31 -07:00
Max Howell
bc5ee7c482 brew.h info takes a formula parameter rather than a string
* Preference is for commands to take instantiated formulae as parameters
  rather than formula names, so alias resolution can be centralized.
2010-07-18 13:52:01 -07:00
Adam Vandenberg
f666addeac Remove dupliate 'wxwidgets' entry from blacklist. 2010-07-04 10:46:16 -07:00
Adam Vandenberg
63f6cb03df Blacklist setuptools in favor of distribute. 2010-07-03 21:55:34 -07:00
Luke Gallagher
551e4efbd6 Fix typo in github_info
Signed-off-by: Adam Vandenberg <flangy@gmail.com>
2010-06-29 07:02:35 -07:00
Adam Vandenberg
cdb5b2e0d5 Extract "brew_install".
This was supposed to go in with the "brew-upgrade" external command,
but must have been lost in the merge.
2010-06-23 12:59:02 -07:00
SHIBATA Hiroshi
8fb8c330a6 Exclude "HEAD" formula from outdated list. 2010-06-22 16:19:08 -07:00
Paul O'Neil
40b1ba1c29 cleans only existing directories
The previous code works fine on ruby 1.8.x, but under 1.9 trying
find on a non-existent folder gives:
  ==> No such file or directory
  /usr/local/Cellar/ruby/1.9.1-p378/lib/ruby/1.9.1/find.rb:38:in `block in find'

Fixes Homebrew/homebrew#1633
2010-06-18 21:11:43 -07:00
Adam Vandenberg
7850789457 Remove buggy, unsupported TeX-live brew, and suggest MacTex.
The TeX-live 2008 formula was out of date (there's a 2009), buggy,
and doesn't build 64-bit.

The MacTeX package works and is supported, with a 2010 version in the works.
Let's recommend that instead.

Fixes Homebrew/homebrew#1087
2010-06-17 21:33:14 -07:00
Adam Vandenberg
b2ae884e27 Remove unused global define 2010-06-17 16:53:17 -07:00
Adam Vandenberg
60872bf0c5 Tweak "clean".
The code to try to move man into share didn't seem to be working, since
the code that warns if a top-level man was found was firing off.

Removing this apparently dead code.
2010-06-17 12:40:58 -07:00
Adam Vandenberg
410f633310 filter out aliases when real name was found 2010-06-17 11:42:24 -07:00
Adam Vandenberg
d84b8cf288 Extract search_brews method 2010-06-17 11:42:24 -07:00
Adam Vandenberg
2dbc6b977f Use same LLVM binary to check build # as we do to build with.
Different llvm binaries were used to check build numbers and to compile with.
Normalize this, and normalize the variable name used to hold the xcode location.
(Calling it "prefix" is confusing, since there are already concepts in Homebrew
called "prefx".)
2010-06-16 13:32:09 -07:00
Adam Vandenberg
69b9901131 Move code to find outdated brew list 2010-06-16 09:52:20 -07:00
Adam Vandenberg
9295f9c022 Do not assume /Developer when checking LLVM. Fixes Homebrew/homebrew#1160. 2010-04-15 13:07:59 -07:00
Adam Vandenberg
21aaf5d9ea Move brew doctor to its own source file; will get bigger. 2010-04-06 08:22:27 -07:00
Max Howell
dc30e941e7 brew doctor 2010-04-06 08:22:27 -07:00
Jake Good
9fbc26a39f More effective use of incremental MD5 to eliminate loading entire tarball into memory
Signed-off-by: Adam Vandenberg <flangy@gmail.com>
2010-03-23 21:23:25 -07:00
Adam Vandenberg
6586f89a29 Add md5 on 'brew create' if we can figure it out. 2010-03-22 21:19:20 -07:00
Adam Vandenberg
ff03763931 brew create - warn if version cannot be determined from URL. 2010-03-22 14:10:31 -07:00
Robert Shaw
ca313defe4 Add GCC 4.0 info to --config output.
* Adds GCC 4.0 version info to --config output.
* Splits gcc_build into gcc_40_build and gcc_42_build.
* Adds alias gcc_build to gcc_42_build for compatibility.
* Updates Xcode checking to also check GCC 4.0 version.

These changes are a combination of work by AdamV and my work
on my Tiger branch. This information would be useful for all
installs since some formulae compile with GCC 4.0.

Signed-off-by: Adam Vandenberg <flangy@gmail.com>
2010-03-16 20:46:10 -07:00
Max Howell
c29219e27c Actually remove info pages in skip step
Lets stop removing docs and doc (though moving share/docs to share/doc would make sense) as I was being lame when I decided nobody ever needs local documentation.

I still wouldn't use it (the INTRAWEBS is pretty good nowadays), but I admit, for some people, it's essential.
2010-03-10 12:20:21 +00:00
Max Howell
58b19ed495 Error out if brew diy doesn't know the build system 2010-03-08 00:34:23 +00:00
Adam Vandenberg
a9b19f0255 Move license block to separate LICENSE file. 2010-03-01 11:41:24 -08:00
Martin Kuehl
37189cbe34 Fix brew cleanup: don't bail out early
Running `brew cleanup` (with no arguments or multiple arguments) raises
an error and stops as soon as it finds any formula whose most recent
version is not installed.

With this change it will instead print a warning, then continue with the
next formula.

Signed-off-by: Adam Vandenberg <flangy@gmail.com>
2010-02-20 22:59:24 -08:00
Martin Kuehl
e3a9e961bf Fix brew cleanup: less pruning
Running `brew cleanup` (with no arguments or multiple arguments) will
run `brew prune` after _every_ cleaned formula, i.e. possibly after
every installed formula.

With this change it will instead only run `prune` after all formulae are
cleaned, and only when no arguments were given to `cleanup`.

Signed-off-by: Max Howell <max@methylblue.com>

Closes Homebrew/homebrew#743
2010-02-16 22:52:18 +00:00
Max Howell
7762b23c53 prune after brew cleanup
Stale symlinks may exist, so we may as well fix them up at this juncture.
2010-01-18 08:34:11 +00:00
Max Howell
f88fbf1882 Don't cleanup if we can't tell which formula is for keeps
If the formula was updated and not yet installed, then cleanup would delete all kegs. Which is most likely not what the user wanted.

Ideally we'd do a version check to figure out which keg is newest. But we don't yet have a function that can determine with accuracy version order.
2010-01-18 08:34:11 +00:00
Joshua Peek
0d84f3ee17 Add cleanup command
* `brew cleanup foo` removes any unlinked foo kegs
* `brew cleanup` removes all unlinked kegs
2010-01-18 08:27:50 +00:00
Max Howell
614d243269 There's not enough payback for stripping libraries
It causes lots of bugs, for the sake of what is often just a few kilobytes.
2010-01-16 19:06:26 +00:00
Max Howell
b994905f18 Blacklist wxwidgets for creation 2010-01-16 15:40:14 +00:00
Max Howell
700b20d665 Ensure we delete temp files
It's easy to code complete with Ruby, so lets. I love Ruby.
2010-01-13 11:23:15 +00:00
Max Howell
1ead7d380a Escape any spaces in path during strip step
Not using path.basename for mktemp due to risk of bugs due to incorrect escaping. But mainly, mktemp gives a unique name and this operation is procedural.
2010-01-13 11:23:15 +00:00
Max Howell
d8c3b3a80a Use full paths to strip, mktemp, cat and ls 2010-01-13 11:23:15 +00:00