1486 Commits

Author SHA1 Message Date
Max Howell
abc8c2f9d7 Restore previous fails_with_llvm? behaviour
I've not been very careful lately, I apologise.

Fixes Homebrew/homebrew#7338.
2011-09-01 09:39:54 +01:00
Rory O'Connell
9520b6cc3c Fix type checking in fails_with_llvm
Signed-off-by: Adam Vandenberg <flangy@gmail.com>
2011-08-31 14:46:44 -07:00
Max Howell
3b689db6d3 Missing end. Doing too many things at once. Sorry. 2011-08-31 17:37:38 +01:00
Max Howell
b309396b02 cp over CMakeLists.txt if cmake builds fail
The self help text does not mention the log, but we can add this later, and for now at least the file is salvaged.

Closes Homebrew/homebrew#5940.
2011-08-31 17:36:41 +01:00
Max Howell
cf1a6e185c Don't fail to build with llvm if llvm build is newer 2011-08-31 17:36:41 +01:00
Max Howell
b5c709e2ed Save config.log to ~/Library/Logs/Homebrew
Also tidied error output. Still could be tidied quite a lot but I am still considering how best to go about it.
2011-08-31 15:35:59 +01:00
Charlie Sharpsteen
2e0a2cb175 formula.rb: Don't curl when DATA is the only patch
Executing `curl(*patches)` was failing on Leopard when `patches` was an empty
list. `git-bisect` identified 48552bb42a69ece4eb2a6d9acf81a0b47adb19c9 as the
commit that caused this bug to surface by adding `--insecure` to the arg list
on Leopard. This is odd because the following both exit with status 2:

    curl
    curl --insecure

The only apparent difference is that `curl --insecure` prints "no URL
specified!" to stderr along with the usage message.

Also renamed `patches` to `external_patches` as it is more descriptive.
2011-08-29 15:01:38 -07:00
Max Howell
f52955ec98 Correct typo 2011-08-26 16:55:12 +01:00
Max Howell
fd96bb6e3a Apologies, forgot to amend the commit 2011-08-26 14:48:47 +01:00
Max Howell
0822907d6d Some more sanity with ENV.compiler
Deprecated use_clang? etc. since the logic was such that multiple states could be set, when in reality only one compiler can be set.

Changed fails_with_llvm handling so if HOMEBREW_USE_LLVM is set then it tries to build even if the formula has fails_with_llvm set. Rationale: mostly they will no longer fail and we need to catch these cases.
2011-08-26 14:21:37 +01:00
Charlie Sharpsteen
f7bd98875b Leopard: Fix undefined method count for Array
Leopard runs Ruby 1.8.6 while Snow Leopard runs 1.8.7 and `Array.count` was not
introduced until 1.8.7.

Using `Array.length` instead.
2011-08-24 17:45:19 -07:00
Max Howell
6ac0a28523 Implement bottles again
Bottles now pour purely, without doing all the other unnecessary stuff that happened before the `brew upgrade` code shuffle.

Formula.pourable? removed since it was install-specific metadata and not related to the formula itself. Now all such logic is in the FormulaInstaller which is much cleaner.

I also changed the bottle cache location to the normal directory and added a .bottle pre-extension. Thus you can see everything in one directory without messing about.
2011-08-24 22:30:43 +01:00
Max Howell
4dc8318dc3 Observe all applicable options in handle_llvm_failure 2011-08-24 22:30:43 +01:00
Max Howell
39453f5a9d Auto-substitute certain variables in DATA patches
HOMEBREW_PREFIX for example.
2011-08-24 22:30:43 +01:00
Adam Vandenberg
0818189b5d Fix stripping of keg-only reasons 2011-07-30 10:11:35 -07:00
Max Howell
7e2411eb4d Remove "boring" args from the pretty_args only
Dumb mistake. Sorry.

Closes Homebrew/homebrew#6722
2011-07-30 11:20:23 +01:00
Max Howell
3cda43a681 Don’t display boring configure arguments 2011-07-29 11:58:41 +01:00
Adam Vandenberg
02b09e311f formula.rb: put bottle attrs on separate line
This line is getting long, and having these on a separate line
will help with some rebasing in some work-in-progress branches.
2011-06-22 14:13:44 -07:00
Mike McQuaid
f2e018d747 Return an array from options. 2011-06-22 17:48:20 +01:00
Mike McQuaid
6d3c488d4a Renaming pouring method to pourable?. 2011-06-22 17:48:20 +01:00
Mike McQuaid
bd2fa562c3 Add stub options method. 2011-06-21 22:28:54 +01:00
Mike McQuaid
5d7e796617 Only pour bottles when not building from source. 2011-06-21 19:25:39 +01:00
José Martínez
d1aac6bc03 Allow --use-clang to override fails_with_llvm
Signed-off-by: Adam Vandenberg <flangy@gmail.com>
2011-06-16 20:45:56 -07:00
Adam Vandenberg
8f896f9d2c Style changes related to bottling. 2011-06-16 08:41:16 -07:00
Mike McQuaid
31dea3b800 Add changes to Homebrew internals for bottling. 2011-06-08 22:19:10 +01:00
Adam Vandenberg
760bbb4e36 Remove debugging puts 2011-06-08 11:34:01 -07:00
Adam Vandenberg
5d5a8ed32f Better support for brew install <url>
Brews installed via URL are now checked from the cache when
other commands are run. This allows for instance:

    brew install <vim-url>
    brew info vim
2011-06-08 11:13:50 -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
145bafbc4e Move 'fails_with_llvm' into formula DSL.
Existing method moved to compatibility layer.
2011-03-25 23:31:28 -07:00
eregon
b6506fb4ea use Module#const_get instead of eval
* may be a problem if the constant is scoped (like A::B), but this is not the case
  (const.split('::').inject(Object) { |c, part| c.const_get part } would solve that)
* this was noticed in a comment of 9afc85ad but it has disappeared

Signed-off-by: Adam Vandenberg <flangy@gmail.com>
2011-03-20 19:12:29 -07:00
Yasuharu NAKANO
aefb144048 Fix for installing from_url
Signed-off-by: Adam Vandenberg <flangy@gmail.com>
2011-03-20 09:06:51 -07:00
Camillo Lugaresi
22afb1cc43 make fails_with_llvm work when cc is llvm-gcc
Closes Homebrew/homebrew#4693.

Signed-off-by: Mike McQuaid <mike@mikemcquaid.com>
2011-03-17 17:49:14 +00:00
Adam Vandenberg
de5ac72534 Fix keg-only, non-system dupes 2011-03-15 22:46:20 -07:00
Adam Vandenberg
63846c7a92 keg-only: provide more info about system dupes
System duplicates can now provide more information about why
they are included in Homebrew.
2011-03-15 22:03:23 -07:00
Adam Vandenberg
498ef3372c Fix inheritance in formula.rb 2011-03-12 17:48:48 -08:00
Adam Vandenberg
2e340625f8 Allow 'brew install' on relative paths 2011-03-12 16:37:56 -08:00
Adam Vandenberg
4f22b70b47 Complain if a formula in core won't import. 2011-03-12 11:55:11 -08:00
Adam Vandenberg
2a5f757816 Use + instead of /. 2011-03-12 11:55:07 -08:00
Max Howell
55bd25ff4c Formula.resolve_alias to compatability.rb 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
24e10826f4 Fix GithubGistFormula. 2010-12-22 17:08:53 -08:00
Adam Vandenberg
202663eb0c Fix installing from local abs. paths. 2010-11-04 13:53:03 -07:00
Adam Vandenberg
d02941e1da Quash warning.
Fixes Homebrew/homebrew#3056
2010-11-03 07:03:50 -07:00
Jamie Macey
b7fa82b28d fix warnings: ambiguous splat
Signed-off-by: Adam Vandenberg <flangy@gmail.com>
2010-10-30 14:50:54 -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
Joshua Peek
a305360099 Prefer HEAD version if its installed
Signed-off-by: Adam Vandenberg <flangy@gmail.com>
2010-10-26 09:39:17 -07:00
Adam Vandenberg
9108e3956c Allow :build dependencies. 2010-10-12 07:13:27 -07:00
Adam Vandenberg
8eaa812711 improve std_cmake_parameters comments 2010-09-29 22:00:24 -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
Adam Vandenberg
18f9969b65 Add formula name to LLVM warning 2010-09-29 21:53:05 -07:00