38364 Commits

Author SHA1 Message Date
Max Howell
5bcffbb5e3 Escape spaces for archs_for_command
Use inject for concision.

Rename to archs from arch as it returns an array.
2010-01-13 11:16:24 +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
89479912ec Use full path to du
Fixes Homebrew/homebrew#354
2010-01-06 21:02:36 +00:00
Alexis Hildebrandt
8b7b132620 Add support for compress compressed tarballs (.tar.Z)
Fixes Homebrew/homebrew#295
2009-12-31 01:55:10 +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
62ef92b837 If Xcode isn't installed, raise
We were raising but in a completely misleading and unintended fashion.
2009-12-30 20:52:06 +00:00
Max Howell
6bd1741d7d Pathname.md5 method 2009-12-30 20:49:16 +00:00
Alexander Solovyov
650d1cb165 brew: add 'cat' command 2009-12-22 05:49:31 +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
Max Howell
6e485cc9b1 If the download is a .jar, don't unzip it
Also remove special casing for two existing jar formula.
2009-12-21 18:39:01 +00:00
Adam Vandenberg
d3fe4a8acc Add unittest for issue Homebrew/homebrew#127 2009-12-20 12:56:49 +00:00
Adam Vandenberg
f533224427 If there is no output, don't find longest length. 2009-12-20 12:56:47 +00:00
Adam Vandenberg
596d26f8b4 Remove unused method expand_deps. 2009-12-19 20:35:44 +00:00
Adam Vandenberg
7bd938206e Just try requiring, instead of looking for the name first. 2009-12-19 20:33:41 +00:00
Adam Vandenberg
db559a97dc Fix Formula path.
Linking "Library" under prefix is optional, but Library will always
exist relative to the REPOSITORY folder, so use that instead of prefix
for formula paths.
2009-12-19 20:07:47 +00:00
Max Howell
4b2e24ffcc Be verbose with git clones
It has useful progress information and is about 5 lines of text.
2009-12-19 16:22:21 +00:00
Max Howell
3930361bb2 Revert "Mercurial - use post-fix if"
This reverts commit 6a8b3cc71feccbf73225bc7dc8c5e6972de9953d.

This was a bad merge on my part.

Fixes Homebrew/homebrew#221. Fixes Homebrew/homebrew#220.
2009-12-19 15:04:15 +00:00
Theo
ac1d366fab Ignore .DS_Store, everywhere 2009-12-18 21:06:47 +01:00
Kieran Pilkington
85ffad8117 Making column amount and width dynamic, adjusting to console size. 2009-12-17 19:19:33 +00:00
Adam Vandenberg
1a52c7f864 Allow https on more download strategies. 2009-12-17 19:19:33 +00:00
Adam Vandenberg
a3f448a3e2 Also match -source tarballs. 2009-12-17 19:19:33 +00:00
Max Howell
1deb3a1fea Don't resolve conflcts for pre-existing symlinks in HOMEBREW_PREFIX
Eg /usr/local/lib/juice/foo points somewhere else where the user has modules that he wants juice to use.

Basically don't error out for stuff that isn't ours.
2009-12-17 19:17:50 +00:00
Adam Vandenberg
6435413656 Mercurial - use post-fix if 2009-12-17 16:27:10 +00:00
Max Howell
a4ed7ff619 Update VCS caches when installing
I held off on this as I wasn't sure it made sense. Eg. if you install you'd expect it to install the same version as before? But with HEAD formula you always want the newest, that's the point. Otherwise it should be tagged/revisioned.
2009-12-17 16:12:32 +00:00
Ben Cochran
edb046bea8 Removed cloning a specific revision from the mercurial download strategy.
When cloning a mercurial repository from a tagged revision, that tag definition
isn't actually included. This causes `hg archive -r tag_name` to fail.

Instead, just clone the repository's head and the `hg archive -r revision` will
handle getting the correct revision to for the build
2009-12-17 15:03:02 +00:00
Max Howell
64cdda87e0 Be more quiet about checkouts unless ARGV.verbose?
Fixes Homebrew/homebrew#204
2009-12-17 13:45:08 +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
02208387c2 Update comment (and spacing) in download_strategy. 2009-12-12 16:24:15 +00:00
Adam Vandenberg
d0d0ca0572 Removing deprecated class slated for removal in 0.5 2009-12-12 16:24:15 +00:00
Adam Vandenberg
c3623e1bd1 Add no-unzip download strategy; extracted from Jython/sbt. 2009-12-12 16:24:15 +00:00
Adam Vandenberg
70176cb0ec Another git command. 2009-12-12 16:24:15 +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
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