1841 Commits

Author SHA1 Message Date
Adam Vandenberg
3c3d8661dc Remove ENV dump from top of verbose install.
If an install fails, the ENV dump at the end of the output is more
useful, as it reflects any ENV changes done in def install.
2011-03-21 10:23:18 -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
Adam Vandenberg
ebb6a98d67 Use --depth 1 more conservatively 2011-03-19 14:30:35 -07:00
Adam Vandenberg
b5c0f9ea03 Fix brew --cellar foo 2011-03-19 11:06:51 -07:00
Adam Vandenberg
6fda61cde4 brew options: allow --all 2011-03-19 09:58:42 -07:00
Adam Vandenberg
43f77f6ad0 Add methods to ArchitectureListExtension 2011-03-19 09:49:17 -07:00
Adam Vandenberg
8b4645d895 Use backticks instead of popen
Using popen here breaks brew install -v due to the way
the error pipe is passed around during install.
2011-03-19 09:14:59 -07:00
Adam Vandenberg
d8c2642b6d Add MacOS.prefer_64_bit?
Moved snow_leopard_64? to compatibility and replaced it with
a function MacOS.prefer_64_bit?. This method is in a better
place and has a better name once Lion comes out.

Fixes Homebrew/homebrew#4710
2011-03-18 10:30:26 -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
Mike McQuaid
ec0ae5ee99 Use xcode_path for GCC as well as LLVM. 2011-03-17 17:21:42 +00:00
Adam Vandenberg
e68a4d3e37 Add --use-gcc to bash completion 2011-03-16 16:31:39 -07:00
Adam Vandenberg
de5ac72534 Fix keg-only, non-system dupes 2011-03-15 22:46:20 -07:00
Adam Vandenberg
30fdd7a49b install - change keg-only warning 2011-03-15 22:04:13 -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
9995f9a651 keg - use proper inheritance style 2011-03-15 21:48:24 -07:00
Adam Vandenberg
2eb0065ced brew audit: check that homepage includes the protocol 2011-03-15 21:40:09 -07:00
Adam Vandenberg
5f5fdb3284 Fix regex for svn+http
Fixes Homebrew/homebrew#4683
2011-03-15 09:41:23 -07:00
Adam Vandenberg
9104fdba8c Fix reporting of build errors. 2011-03-14 15:48:35 -07:00
Mike McQuaid
80f98a1a19 Don't make brew doctor complain about Xcode 4. 2011-03-14 21:00:51 +00:00
Mike McQuaid
87529a8cdd X11 is part of OSX, not Xcode. 2011-03-14 21:00:51 +00:00
Adam Vandenberg
522ed0050f Add comment to ENV.libxml2 2011-03-14 13:58:30 -07:00
Adam Vandenberg
c6e069bfe5 Fix bug in reporting curl errors 2011-03-14 13:30:46 -07:00
Joshua Peek
80886ff34a brew info should fetch remote formula info
Signed-off-by: Adam Vandenberg <flangy@gmail.com>
2011-03-14 10:18:39 -07:00
Adam Vandenberg
b02d25bccd Add ruby lib to folders handled specially by keg.link 2011-03-13 12:19:27 -07:00
Max Howell
4abf493670 Remove unused exception; Closes Homebrew/homebrew#4652
If version cannot be determined, then instruct the user to add one.
2011-03-13 16:16:17 +00:00
Max Howell
6d628d7a74 brew by itself prints help but exits with non-zero 2011-03-13 13:42:48 +00:00
Max Howell
69361de450 Move the Dir.getwd after help
Because we should always be able to help. And I've checked, it works fine.
2011-03-13 13:42:32 +00: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
Max Howell
0d92987935 brew environment alias to --env; like gem 2011-03-13 12:53:07 +00:00
Max Howell
e0639f1588 Replace create --cache with create --no-fetch
Because since 0.8 we do the opposite, ie. download by default.
2011-03-13 12:52:41 +00:00
Adam Vandenberg
b7f093925e Fix inheritance in exceptions 2011-03-12 23:06:45 -08:00
Adam Vandenberg
aff5ea54b8 Fix 'brew log -p foo'. 2011-03-12 19:36:37 -08:00
Adam Vandenberg
498ef3372c Fix inheritance in formula.rb 2011-03-12 17:48:48 -08:00
Adam Vandenberg
749b91c6ba brew audit: check for missing deps 2011-03-12 17:40:40 -08:00
Adam Vandenberg
2e340625f8 Allow 'brew install' on relative paths 2011-03-12 16:37:56 -08:00
Adam Vandenberg
6fecafb0aa Fix 'brew rm -f' 2011-03-12 16:28:15 -08:00
Charlie Sharpsteen
0e5436d4ab brew audit - check for depends_on 'gfortran'
Signed-off-by: Adam Vandenberg <flangy@gmail.com>
2011-03-12 13:30:12 -08: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
ddb8d1cd95 Add 'brew grep' external command. 2011-03-12 13:26:45 -08:00
Armando Di Cianno
79d8d16184 use "git clone --depth 1"
Prefer a shallow clone for builds from git repos, as we don't need all
the historical stuff.

Signed-off-by: Adam Vandenberg <flangy@gmail.com>
2011-03-12 11:55:12 -08:00
Adam Vandenberg
9baece866b Homebrew 0.8 0.8 2011-03-12 11:55:12 -08:00
Adam Vandenberg
b7e068b740 'brew fetch' now an official command 2011-03-12 11:55:11 -08:00
Adam Vandenberg
4f22b70b47 Complain if a formula in core won't import. 2011-03-12 11:55:11 -08:00
Adam Vandenberg
0e0d72e49f brew cleanup - do not clean up keg-only brews for now 2011-03-12 11:55:11 -08:00
Adam Vandenberg
bcf8bb5a7f brew cleanup - fix formula name in warning 2011-03-12 11:55:11 -08:00
Adam Vandenberg
87398e7436 'brew options' now an official command 2011-03-12 11:55:10 -08:00
Adam Vandenberg
bda9ffa5d7 'brew test' now an official command 2011-03-12 11:55:10 -08:00
Adam Vandenberg
f0b6f6853a Silence cleanup warning
When a cellar exists for an unknown formula, no longer print a warning.
External tools using Brew to manage diy-installs will create a large
number of non-formula cellars.
2011-03-12 11:55:10 -08:00
George Kulakowski
14d14fa69a Fix UnsatisfiedExternalDependencyError
The refactor branch doesn't catch the UEDE and print the error message
containing information about which dependency and how to install
it. This adds back that logic.

Signed-off-by: Adam Vandenberg <flangy@gmail.com>
2011-03-12 11:55:10 -08:00