Max Howell
e96744eb6f
brew deps foo bar
now gives the dependency intersection
...
Rationale: this is more useful than the union, and you can still easily get the union by running the command twice and concatenating the result.
2011-03-12 11:55:04 -08:00
Max Howell
123f7cd00e
Pathname.ensure_writable
...
Yields after chmoding (if necessary), once block is complete restores permissions.
2011-03-12 11:55:04 -08:00
Max Howell
55bd25ff4c
Formula.resolve_alias to compatability.rb
2011-03-12 11:55:03 -08:00
Max Howell
c1a3b724fd
Some Cleanup
2011-03-12 11:55:03 -08:00
Adam Vandenberg
b13baedfd8
Move string extensions
2011-03-12 11:55:03 -08:00
Adam Vandenberg
0225f07eba
Move some exceptions
2011-03-12 11:55:03 -08:00
Max Howell
768910283a
Refactor the brew command into one file per command
...
The code was sucking. To the extent that maintenance was hard. It's a lot
easier to work with code that is sensibly split at sensible boundaries. So
now it is more like that.
But the refactor is minimal. Because we don't want you to have more merge
hell than absolutely necessary.
If you merge you will need to pay attention to brew.h.rb (as it is deleted)
and bin/brew (as command logic is gone). It will be painful, but you will just
have to help git out by moving any changes around manually.
Note compatibility.rb. It ensures that any function renames or removals don't
break anything. We're pretty serious about backwards compatibility. And that's
because we encourage you to hack around with the innards. And we couldn't do
that if we would then just make stuff disappear behind your back.
2011-03-12 11:55:02 -08:00
Adam Vandenberg
9752fc93fd
Add ENV.cppflags shortcut
2011-01-22 10:07:08 -08:00
Lee Packham
883fd9ef89
Correct the principle usage of principal principles ;)
...
Signed-off-by: Mike McQuaid <mike@mikemcquaid.com>
2010-11-21 13:20:12 +00:00
Adam Vandenberg
f0b6870de7
Allow underscore in github version numbers.
2010-11-07 11:25:20 -08:00
Michael Dippery
e0c23d670d
More .DS_Store ignoring
...
* Don't link .DS_Store files
* Don't list .DS_Store files in `brew info`
Signed-off-by: Adam Vandenberg <flangy@gmail.com>
2010-11-05 19:44:56 -07:00
Jamie Macey
1e41264f42
fix warnings: ambiguous first arg
...
Signed-off-by: Adam Vandenberg <flangy@gmail.com>
2010-10-30 14:47:44 -07:00
Adam Vandenberg
ea03121688
Allow installation from URLs
...
This allows installation like:
brew install http://example.com/something.rb
Based on an original patch by [dwalters].
Fixes Homebrew/homebrew#160
2010-10-30 14:23:01 -07:00
arlolra
14ebf705ae
Handle dashed tags at github.
...
Signed-off-by: Adam Vandenberg <flangy@gmail.com>
2010-10-28 21:19:42 -07:00
Michael Morgan
3ea550100f
extract undent test to test case
...
Signed-off-by: Adam Vandenberg <flangy@gmail.com>
2010-10-17 21:13:16 -07:00
Adam Vandenberg
560408d01b
Use classes instead of strings for exceptions
2010-10-17 17:21:21 -07:00
Adam Vandenberg
9e1470684f
Coerce ENV.append/prepend values to strings.
...
Signed-off-by: Adam Vandenberg <flangy@gmail.com>
2010-10-05 13:41:38 -07:00
Adam Vandenberg
bb01afce4c
Move resolve_alias from ARGV to Formula
...
Also, call this function from a few places where the code was duplicated.
2010-09-29 21:55:44 -07:00
Max Howell
400507b18a
Pathname./ because it looks a lot better than +
2010-09-12 21:57:17 +01:00
Adam Vandenberg
ef1f45fbc3
Document brew options
2010-09-08 05:27:09 -07:00
Adam Vandenberg
e1af735d77
ENV.rb - style tweak
2010-09-07 10:09:22 -07:00
Adam Vandenberg
53cf7e843b
Add ENV.ldflags and use.
2010-09-06 11:48:21 -07:00
David Höppner
6907bdae01
Update help options
2010-09-04 12:48:37 +02:00
lukas
bd6fb10361
Fixed recognition of versions like 'foobar-4.50-beta' in Pathname#version
...
Sphinx currently has a download name 'http://sphinxsearch.com/downloads/sphinx-1.10-beta.tar.gz ', which homebrew currently can't correctly identify - with a small change to the regex for 'foobar-4.5.0-beta1' (make that trailing number optional) - it works like a charm.
Signed-off-by: David Höppner <0xffea@gmail.com>
2010-08-27 17:53:06 +02:00
Adam Vandenberg
157425cc10
Move method back to Pathname.
2010-08-15 17:17:26 -07:00
Adam Vandenberg
7c2841543d
Tweak ARGV.usage
2010-08-11 21:15:59 -07:00
Adam Vandenberg
c5a9520310
ENV.rb - add ENV.cflags
2010-08-10 08:30:11 -07:00
Adam Vandenberg
5d58d99d10
ENV.rb - style cleanups
2010-08-10 07:58:08 -07:00
Adam Vandenberg
80c090aaae
Remove redundent line and reword comments slightly.
2010-08-09 21:03:29 -07:00
Brent Fitzgerald
d85ff377f3
Changing the magic &:downcase back to regular block.
...
Fixes Homebrew/homebrew#2089
Signed-off-by: Adam Vandenberg <flangy@gmail.com>
(This is needed for 10.5 support.)
2010-08-08 18:26:13 -07:00
Adam Vandenberg
013fe4bf38
Move Pathname.starts_with? into Pathname
2010-08-08 09:13:27 -07:00
Adam Vandenberg
e2f0e1a26f
Resolve aliases in 'brew edit'.
2010-08-07 22:15:29 -07:00
Adam Vandenberg
57bbeb3bd7
Put /usr/X11/bin in PATH when requesting X11.
2010-08-07 18:08:52 -07:00
Adam Vandenberg
f990f083e8
ARGV - rename method that conflicts with optparse
...
optparse adds an "options" method to ARGV, and so does Homebrew.
Rename this method (and remove optparse blocking script) so that
Homebrew plays nicer with external Ruby software.
This fixes the issue where "gem install thin" would break
"brew server", for instance.
2010-08-07 18:08:51 -07:00
Max Howell
28504229aa
Resolve aliases in ARGV extension.
...
* This allows most brew commands to automatically accept aliases.
2010-08-07 18:08:49 -07:00
Adam Vandenberg
5f5f820d12
Add Pathname.resolved_path
2010-07-25 12:07:35 -07:00
Adam Vandenberg
21c37fbac6
Add ARGV.build_head? and use it.
...
This allows both "--HEAD" and "-H" to be used consistently, which was the
intention in the first place.
2010-07-16 09:09:39 -07:00
Adam Vandenberg
b5ba49b90e
Usage should mention manpage.
2010-07-09 12:16:06 -07:00
Adam Vandenberg
a6b6de63a9
Move method from ObserverPathnameExtension to extend/Pathname
...
* This method is generally useful, even without the Observer extensions.
2010-07-08 22:41:50 -07:00
Adam Vandenberg
375f8094d3
Add debian style names to version checker.
2010-07-06 13:17:50 -07:00
Adam Vandenberg
350aea60dc
Pathname - fix RC version detection.
2010-07-04 14:10:04 -07:00
Adam Vandenberg
7d852f10a7
Update Pathname version checks.
...
* allow capital 'RC'
* allow 'stable' suffix
2010-07-04 11:02:54 -07:00
Brett Cannon
3a97b2cf67
Fix LLVM compilation under OS X 10.6 where cflags was not being defined.
...
Signed-off-by: Adam Vandenberg <flangy@gmail.com>
* Unshare code between ENV.llvm and ENV.setup_build_environment
2010-06-18 16:32:19 -07:00
Chris Hoffman
6aeb848bd8
Refactor llvm compiler selection so formula can use it
...
Signed-off-by: Adam Vandenberg <flangy@gmail.com>
2010-06-17 09:39:55 -07:00
Chris Hoffman
154d0fa92d
Fix exception when installing with --use-llvm
...
Signed-off-by: Adam Vandenberg <flangy@gmail.com>
2010-06-17 09:39:41 -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
7c158e2350
Fix universal builds on 32-bit CPUs.
2010-04-22 17:23:59 -07:00
Jake Good
8ce7abce73
More hashing refactoring to work with byte chunks
...
Signed-off-by: Adam Vandenberg <flangy@gmail.com>
2010-03-30 09:24:12 -07:00
Joshua Peek
04855ddd48
fix github version parser with multidigit number
...
Signed-off-by: Adam Vandenberg <flangy@gmail.com>
2010-03-27 14:01:19 -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