Adam Vandenberg
df1e55a62b
Remove spaces around make-style variables.
...
Removing the spaces around equals for make-style variables makes
the change_make_var! method compatible with shell scripts as well
as makefiles.
2010-01-30 22:48:44 -08:00
Adam Vandenberg
ef69db2e3d
Add gzip utility function.
2010-01-30 10:39:56 -08:00
Ben Bleything
5fd7b662ae
remove the nonexistant list --brewed flag from the help output.
...
Resolves mxcl/homebrew#158 .
Signed-off-by: Adam Vandenberg <flangy@gmail.com >
2010-01-29 23:48:46 -08:00
Max Howell
c315e8fc79
If keg only don't warn about s?bin not being in PATH
...
Fixes #488 .
2010-01-18 09:12:48 +00:00
Max Howell
f30d1d7e4d
Document brew cleanup
2010-01-18 08:36:10 +00:00
Max Howell
855074839d
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
5816173b10
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
8585a7598e
Unit test for brew cleanup
2010-01-18 08:27:55 +00:00
Joshua Peek
ffd39835ec
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
daf2239060
Don't require beer_events
...
RubyCocoa is a large dependency, and any large system can cause unexpected errors. In this case the user's system was badly setup and RubyCocoa caused a dynamic loader issue.
We don't use beer_events currently due to other bugs that occurred sporadically with its use. So requiring it is unnecessary. So lets save ourselves trouble.
Fixes #487
2010-01-17 20:56:24 +00:00
Max Howell
f2dcec1f70
Stop raising during the raise ctor
2010-01-16 20:25:50 +00:00
Max Howell
2387c7e236
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
d1c3800be4
Blacklist wxwidgets for creation
2010-01-16 15:40:14 +00:00
Max Howell
c2879d1081
Check for bad values of console_width
...
Fixes #453 .
2010-01-16 13:12:38 +00:00
Florian Sowade
a4ba5b6bf6
Added CMAKE_PREFIX_PATH to environment valriables
...
CMake ignores the CPPFLAGS and LDFLAGS environment variables. This makes sure CMake finds libraries when homebrew is not installed at /usr/local.
Signed-off-by: Max Howell <max@methylblue.com >
Fixes #242
2010-01-14 09:41:06 +00:00
Florian Sowade
1d45abdaff
Added CMake parameter to suppress warnings
...
The -Wno-dev CMake parameter suppresses warnings
meant for the developer, not the user.
2010-01-14 09:40:20 +00:00
Ash Berlin
d59e8f6658
Improve error when no url given
2010-01-13 13:33:43 +00:00
Max Howell
1958bd9df6
Support Perl/CPAN external dependencies
...
WhoHas requires LWP::UserAgent.
2010-01-13 11:56:23 +00:00
Max Howell
bbddc7dd9f
Adds: depends_on 'simplejson' => :python
...
So far we only added python, but we can add more.
Fixes #401
2010-01-13 11:23:15 +00:00
Max Howell
338b4f44ee
Add quiet_system
...
Same as Kernel.system, but prints no output.
2010-01-13 11:23:15 +00:00
Max Howell
4f111dfd9a
Print quotes around executed arguments with spaces
...
Eg: ['foo', 'bar la'] -> "foo 'bar la'"
2010-01-13 11:23:15 +00:00
Max Howell
68074dc535
Use less lengthy path to llvm binaries
2010-01-13 11:23:15 +00:00
Max Howell
35fa08110b
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
158598f049
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
9f1fdecae7
Use full paths to strip, mktemp, cat and ls
2010-01-13 11:23:15 +00:00
Adam Vandenberg
ad2c375ca1
Fixes #433
2010-01-13 11:23:14 +00:00
Max Howell
ec1b2fda92
Formulary comments
2010-01-13 11:23:14 +00:00
Max Howell
9b9639182d
LICENCE is a common spelling too
2010-01-13 11:23:14 +00:00
Adam Vandenberg
3422582da6
Add Makefile var and multi-replace support inreplace.
2010-01-13 11:23:07 +00:00
Max Howell
672b675c66
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
79766ede79
Detect X11 when ENV.x11 is requested; dump in --config.
2010-01-11 11:36:35 -08:00
Max Howell
d9dc06a0a7
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
fc3915c4c9
Use full path to du
...
Fixes #354
2010-01-06 21:02:36 +00:00
Alexis Hildebrandt
17d0f59526
Add support for compress compressed tarballs (.tar.Z)
...
Fixes #295
2009-12-31 01:55:10 +00:00
Max Howell
23e2029932
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
270a1bcd9b
Pathname.md5 method
2009-12-30 20:49:16 +00:00
Max Howell
96a710cf07
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
07cd2877b2
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
6060088521
Add unittest for issue #127
2009-12-20 12:56:49 +00:00
Adam Vandenberg
4545d55004
If there is no output, don't find longest length.
2009-12-20 12:56:47 +00:00
Adam Vandenberg
75c43a29e8
Remove unused method expand_deps.
2009-12-19 20:35:44 +00:00
Adam Vandenberg
5a8944584e
Just try requiring, instead of looking for the name first.
2009-12-19 20:33:41 +00:00
Adam Vandenberg
70040165fd
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
9bb3c13117
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
ec6f290cc0
Revert "Mercurial - use post-fix if"
...
This reverts commit 6a8b3cc71f .
This was a bad merge on my part.
Fixes #221 . Fixes #220 .
2009-12-19 15:04:15 +00:00
Kieran Pilkington
7a880ce379
Making column amount and width dynamic, adjusting to console size.
2009-12-17 19:19:33 +00:00
Adam Vandenberg
0e8fdaac01
Allow https on more download strategies.
2009-12-17 19:19:33 +00:00
Adam Vandenberg
4dcd83e6fe
Also match -source tarballs.
2009-12-17 19:19:33 +00:00
Max Howell
d24d4fd449
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
6a8b3cc71f
Mercurial - use post-fix if
2009-12-17 16:27:10 +00:00