84 Commits

Author SHA1 Message Date
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
Max Howell
5e20a29587 LICENCE is a common spelling too 2010-01-13 11:23:14 +00:00
Adam Vandenberg
24b6e9c721 Detect X11 when ENV.x11 is requested; dump in --config. 2010-01-11 11:36:35 -08:00
Max Howell
56351558b8 Check GitHub for issues relating to build failures
Uses the GitHub issue search API, so it's very neat and concise. However you can get false positives, so it's not 100% useful. Still I think it is more useful than before, which was, nothing.

A further issue is it depends on the ticket at GitHub using the formula's proper name. So we should ensure this as we can.

Finally, it does add a possibly large delay to clean exit after a build error. We may want to fiddle with timeouts if it becomes troublesome.
2010-01-06 23:38:07 +00:00
Max Howell
3ce7637c14 Xcode is still installed, even if it's as old as 3.0
Instead tell them to upgrade.

Problem was Xcode 3.0 didn't come with GCC 4.2.
2009-12-30 20:52:09 +00:00
Max Howell
74d9d462d6 Install README.md too if found
There's a whole bunch of other versions of README and that, and we did need to handle them. Just not today.
2009-12-22 04:43:00 +00:00
Adam Vandenberg
596d26f8b4 Remove unused method expand_deps. 2009-12-19 20:35:44 +00:00
Pierre Riteau
e50d68ec8d Fix brew info: wrong number of arguments when calling github_info
Fixes Homebrew/homebrew#200. Fixes Homebrew/homebrew#202. Fixes Homebrew/homebrew#203.
2009-12-17 13:44:39 +00:00
Max Howell
3762bbf56a Fix brew info
Removed DEFAULT_USER, etc. constants, as code is clearer with actual values IMO, in this case.
2009-12-12 16:24:19 +00:00
Adam Vandenberg
d391f7c70e --github improvements
* Only invoke git if --github was passed; speeds up brew info --all
* Use current branch for --github instead of master.
2009-12-12 16:24:15 +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
54aff61ef6 Prompt user to use pip for Hg and Bzr 2009-12-05 17:29:49 +00:00
Max Howell
0cb915e34e Allow formula to skip docs removal 2009-12-04 14:16:45 +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
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
Max Howell
00e227ac46 More tweaking of main exception handler output 2009-11-12 01:37:02 +00:00
Max Howell
b99324fbeb DRY gcc_build and llvm_build 2009-11-09 18:47:26 +00:00
Max Howell
455271ed12 Blacklist RubyGems creation 2009-11-07 18:22:36 +00:00
Max Howell
e046e1e640 More useful Macports/Fink detection function 2009-11-04 16:27:37 +00:00
Max Howell
79530df421 Remove mercurial and scons from the create blacklist
Blacklist wxwidgets, it's in /usr/X11/lib.
2009-10-23 19:20:16 +01:00
Michael Stephens
9d290b4502 Add dependencies to 'brew info' output 2009-10-19 04:02:49 +01:00
Max Howell
6c2555b476 Allow --force for blacklisted formula names 2009-10-15 16:51:59 +01:00
Max Howell
1ead455b83 Blacklist brew create scons 2009-10-15 16:51:58 +01:00
Max Howell
ca1a6492bc s/require 'brewkit'/require 'formula'/g
brewkit.rb changes ENV destructively, so lets not do that everytime a formula
is required. Now it's possible for other tools to require a formula
description without worrying about side-effects.
2009-10-15 16:48:03 +01:00
Max Howell
e2bed20d21 Revert "Set homepage in created scripts to frontmost Safari URL"
This reverts commit a1ed2cb19706e317d34f1a9f2efe8a2d2388afae.

The is running part of the Applescript didn't seem to prevent Safari getting
loaded when it wasn't running when used via osascript. It worked in
ScriptEditor! Honest!

Also we decided that it probably wouldn't work often enough anyway.

Discussion: a1ed2cb197
2009-10-09 00:09:05 +01:00
Max Howell
346e42d4b9 Set homepage in created scripts to frontmost Safari URL
A bit of fun with Applescript, for those of us who use Safari.
2009-10-04 20:15:33 +01:00
Max Howell
64899bbbff Blacklist creation for some formula
We don't duplicate, so libxml and that are already provided by OS X. Mercurial is provided by easy_install.

I'm adding this to save people contributing stuff that we won;t accept. I hate disappointing people :(
2009-10-01 15:48:54 +01:00
Max Howell
c61d96529c brew list --unbrewed fix
Determine all directories that aren't Homebrew ones.

Exec find.

I prefer to keep short stuff in bin/brew so people reading the code have a better idea of what happens, and what sort of functions are useful for the sorts of things we do with Homebrew.
2009-09-30 18:11:49 +01:00
Max Howell
512a3da886 brew list lists root keg files if not README, etc. 2009-09-30 17:45:38 +01:00
Max Howell
396ec2efae Show trailing / for dirs with brew list 2009-09-30 01:24:31 +01:00
Kieran Pilkington
0e9edbb285 An additional reference for warn_about_macports_or_fink 2009-09-29 16:26:38 +01:00
Kieran Pilkington
aedaaf79bf brew list --unbrewed
Very quick way to find files not installed by homebrew.

Taken from a command by mxcl on the homebrew wiki.

.DS_Store files and bin/brew are ignored.
2009-09-29 16:26:37 +01:00
Max Howell
14818039ae If brew create can't figure out the name, prompt for it
This was adapted from adamv@d5e78ee26535dec4b11c33d14832a9ee945a29fd

I decided prompting would was the most usable solution here, as the stem is
unlikely to be useful so the user would have to rename the file and change
the class name as well as type the command once and then again with --force.

Dissent welcome.

Fixes Homebrew/homebrew#15
2009-09-29 15:46:34 +01:00