Max Howell
95fc24ecd1
Only try to cleanup directories
2010-01-18 08:36:29 +00:00
Max Howell
3bf6c5f9c9
Document brew cleanup
2010-01-18 08:36:10 +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
Max Howell
16132cab6b
Use Ruby rather than external commands
...
`ls` could go wrong more than Pathname.children
2010-01-18 08:34:07 +00:00
Joshua Peek
248bc890f8
Unit test for brew cleanup
2010-01-18 08:27:55 +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
4bfb7cf24d
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 Homebrew/homebrew#487
2010-01-17 20:56:24 +00:00
Max Howell
8a1b17e04b
Stop raising during the raise ctor
2010-01-16 20:25: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
Adam Vandenberg
9dc39c391a
Some bulletproofing for bash completion script.
...
Since Homebrew's Library doesn't have to be linked under prefix,
we need to do some extra work in the bash completion script to
support this configuration.
Added a "--repository" option to brew, and updated the completion
script to use paths relative to this location.
2010-01-16 15:33:32 +00:00
Adam Vandenberg
be842ee554
Fixes Homebrew/homebrew#168 - don't show multiple copies of the same dep.
2010-01-16 15:33:31 +00:00
Adam Vandenberg
0bc1127f54
Add recommended GCC & LLVM versions to --config.
2010-01-16 15:26:54 +00:00
Max Howell
d1355af66e
Check for bad values of console_width
...
Fixes Homebrew/homebrew#453 .
2010-01-16 13:12:38 +00:00
Florian Sowade
056851463e
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 Homebrew/homebrew#242
2010-01-14 09:41:06 +00:00
Florian Sowade
fa2162ef62
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
5193d835a4
Improve error when no url given
2010-01-13 13:33:43 +00:00
Max Howell
df3cca94e1
Support Perl/CPAN external dependencies
...
WhoHas requires LWP::UserAgent.
2010-01-13 11:56:23 +00:00
Max Howell
9f871c9955
Adds: depends_on 'simplejson' => :python
...
So far we only added python, but we can add more.
Fixes Homebrew/homebrew#401
2010-01-13 11:23:15 +00:00
Max Howell
df79d74e13
Add quiet_system
...
Same as Kernel.system, but prints no output.
2010-01-13 11:23:15 +00:00
Max Howell
0a27f041d0
Print quotes around executed arguments with spaces
...
Eg: ['foo', 'bar la'] -> "foo 'bar la'"
2010-01-13 11:23:15 +00:00
Max Howell
2037b2373a
Use less lengthy path to llvm binaries
2010-01-13 11:23:15 +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
Adam Vandenberg
e97c16f498
Fixes Homebrew/homebrew#433
2010-01-13 11:23:14 +00:00
Max Howell
d62fc63568
Formulary comments
2010-01-13 11:23:14 +00:00
Max Howell
5e20a29587
LICENCE is a common spelling too
2010-01-13 11:23:14 +00:00
Adam Vandenberg
446be8cdd7
Add Makefile var and multi-replace support inreplace.
2010-01-13 11:23:07 +00:00
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