1115 Commits

Author SHA1 Message Date
Mike McQuaid
b7dd6f1f7e Remove redeclared method. 2011-06-21 19:25:39 +01:00
Mike McQuaid
b549ca837f Fix bad pathname indentation. 2011-06-21 19:24:45 +01:00
Mike McQuaid
23769d62ad Fix brew bottle versioning. 2011-06-21 19:04:17 +01:00
Adam Vandenberg
f409e4f22f Pathname: remove unused method starts_with? 2011-06-19 21:34:59 -07:00
Adam Vandenberg
e6bac8a8ea back-port start_with? from 1.8.7
This allows its use in Leopard, which has Ruby 1.8.6.
2011-06-19 21:32:37 -07:00
Max Howell
d661b2be4f Actually reset the permissions 2011-06-17 09:30:25 +01:00
Max Howell
527c841f1c Fix make_relative_symlink when names differ
Before we would always make the symlink itself have a basename the same as what it pointed to.

I don’t think this breaks any of the other usages as they were working by coincidence.
2011-06-17 09:30:25 +01:00
Adam Vandenberg
3977beb8ed Make these methods on ENV. 2011-06-16 20:58:05 -07:00
Adam Vandenberg
7a9c72cf62 Allow HOMEBREW_USE_CLANG env var 2011-06-16 20:58:05 -07:00
José Martínez
2763fc6f5a Add clang compiler option
Signed-off-by: Adam Vandenberg <flangy@gmail.com>
2011-06-16 20:45:52 -07:00
Adam Vandenberg
b643d105eb Allow underscore with these suffixes for version detection 2011-06-16 06:47:13 -07:00
Mike McQuaid
31dea3b800 Add changes to Homebrew internals for bottling. 2011-06-08 22:19:10 +01:00
Adam Vandenberg
1a5cf082d7 Edit universal_binary comment 2011-06-05 08:07:17 -07:00
Adam Vandenberg
f7c7fae0ed Also find versions in zipballs 2011-06-04 17:29:21 -07:00
Charlie Sharpsteen
85d7d4e16c Add method to ENV for setting up a debug build
`ENV.Og` clears all optimization flags and adds `-g -O0`.

Signed-off-by: Adam Vandenberg <flangy@gmail.com>
2011-05-26 07:53:06 -07:00
Jack Nagel
4e65175564 Fix misspelled method name: Formula.canonical_name
Signed-off-by: Adam Vandenberg <flangy@gmail.com>
2011-05-07 21:50:37 -07:00
Adam Vandenberg
4dbb08a6d8 Add ARGV.build_universal? 2011-04-23 08:36:38 -07:00
Adam Vandenberg
90bacc913f ENV: Use /usr/X11 instead of symlink 2011-04-18 10:25:51 -07:00
Adam Vandenberg
89720e1d20 Use MacOS.xcode_prefix 2011-03-28 11:14:32 -07:00
Austin Ziegler
007b9e72d5 Adding version detection to sf.net /download urls
SourceForge links can end with /download which appears to be part of
what is used to drive mirror selection. Modifying the version detection
extension of pathname.rb to detect this case for both sourceforge.net
and sf.net download selections.

This is sufficient for version detection but may not be sufficient for
other uses of /download links. I have not found any problems with links
that use /download, though.

Signed-off-by: Adam Vandenberg <flangy@gmail.com>
2011-03-25 22:30:10 -07:00
Mike McQuaid
ec0ae5ee99 Use xcode_path for GCC as well as LLVM. 2011-03-17 17:21:42 +00:00
Adam Vandenberg
522ed0050f Add comment to ENV.libxml2 2011-03-14 13:58:30 -07:00
Max Howell
ec9cbc6466 Optimise/simplify brew help
Be more useful by being more concise. I referenced dozens of other mature commands’ usage to figure out what to do here.

Also separated out the help into its own command for consistency.
2011-03-13 12:54:30 +00:00
Charlie Sharpsteen
8991d9bf15 Add Fortran configuration to ENV.rb
This provides a uniform way for formulae to indicate a Fortran compiler
is required.

Signed-off-by: Adam Vandenberg <flangy@gmail.com>
2011-03-12 13:29:58 -08:00
Adam Vandenberg
2a5f757816 Use + instead of /. 2011-03-12 11:55:07 -08:00
Stephen Allred
618617da73 Added --use-gcc flag.
This allows you to use llvm as your default compiler and keep the cc symlink
pointed at llvm, while allowing you to build forumla that requires the gcc.

Signed-off-by: Adam Vandenberg <flangy@gmail.com>
2011-03-12 11:55:06 -08:00
Max Howell
d78b89dd2e MacOS.xcode_prefix
More robust code than before, and replaces all usage of `xcode-select -print-path`.
2011-03-12 11:55:04 -08:00
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