William Woodruff
85187bf6d3
MacOS: update locate_cctool
...
This becomes MacOS.{install_name_tool,otool}, only do check_xcode if
xcode is installed, otherwise emit a warning
2015-08-21 10:58:13 -07:00
William Woodruff
b46d5de492
Requirements: add CctoolsRequirement
...
Install it as a dependency unless already satisfied by Xcode.
require cctools_requirement
cctools_requirement should be satisfied by cctools present in opt
add build_env => false to the satify block options in CctoolsRequirement
2015-08-21 10:57:20 -07:00
William Woodruff
4d65b817ec
Install: remove check_for_bad_install_name_tool
...
Until it can be adapted to not call otool on systems w/o XCode/CLT
2015-08-21 10:56:46 -07:00
BrewTestBot
13d544e11e
Core files style updates.
...
Closes Homebrew/homebrew#42354 .
Signed-off-by: Mike McQuaid <mike@mikemcquaid.com>
2015-08-03 13:22:35 +01:00
Alex Dunn
c7e986d65e
use ohai headers at the top of search results
...
Closes Homebrew/homebrew#41832 .
2015-07-17 18:33:34 -07:00
Mike McQuaid
7d0d232fb6
cmd/install: fix install warning timeout.
2015-07-11 21:16:00 +01:00
Mike McQuaid
83ab5f90bf
install: cleanup outdated repository warning.
2015-07-11 14:36:06 +01:00
Alex Dunn
ac6ee12994
cmd/install: check time of last update if FormulaUnavailableError
...
Closes Homebrew/homebrew#40035 .
Signed-off-by: Mike McQuaid <mike@mikemcquaid.com>
2015-07-11 14:36:05 +01:00
Jack Nagel
72cb403a56
Move 10.11 warning to doctor, pre-install, and post-failure
...
Fixes Homebrew/homebrew#40778 .
2015-06-16 20:02:10 -04:00
Xu Cheng
e8f888a23e
install: use Formula#full_name
2015-05-29 17:02:22 +08:00
Xu Cheng
b136a0acdf
install: refactoring blacklist check
...
Closes Homebrew/homebrew#37590 .
Signed-off-by: Xu Cheng <xucheng@me.com>
2015-03-11 17:27:49 +08:00
Mike McQuaid
03d3f9d292
cmd/install: add force/debug/verbose to cask.
...
Closes Homebrew/homebrew#37217 .
2015-03-05 15:36:40 +00:00
Jack Nagel
c6dee041eb
install: fix --HEAD for formulae with head and devel but no stable
2015-01-16 00:00:21 -05:00
Dominyk Tiller
3f318b8ed4
install: handle devel-only correctly
...
See the discussion in
https://github.com/Homebrew/homebrew-devel-only/pull/6
Closes Homebrew/homebrew#35793 .
Signed-off-by: Jack Nagel <jacknagel@gmail.com>
2015-01-15 23:50:45 -05:00
Dominyk Tiller
e871a91958
install: fail on devel where devel doesn't exist
...
Just equalises a little how we treat HEAD and devel. The former already
fails if there isn’t a head defined, It seemed logical that devel
should fail in the same way.
Closes Homebrew/homebrew#35554 .
Signed-off-by: Jack Nagel <jacknagel@gmail.com>
2015-01-05 00:04:23 -05:00
Jack Nagel
dbfbe76ac1
Fix warning
2014-12-26 15:39:34 -05:00
Mike McQuaid
52cda8fd80
Allow searching/installing Homebrew Casks.
...
People want to install things like GIMP using Homebrew so let's make it
easier for them to find a decent installation method.
Closes Homebrew/homebrew#34496 .
Signed-off-by: Mike McQuaid <mike@mikemcquaid.com>
2014-11-30 17:59:02 +00:00
Jack Nagel
e1bfbad810
Make quieter an installer mode
2014-11-03 21:43:11 -06:00
Jack Nagel
3421308bd4
Make git an installer mode
2014-11-03 21:39:11 -06:00
Jack Nagel
3c9cc18c17
Add ARGV.git?
2014-11-03 21:39:11 -06:00
Jack Nagel
a01a3bd594
Check for MacPorts/Fink installation only after build failures
2014-10-31 20:54:09 -05:00
Jack Nagel
d8abdfa56d
Revert "run macports check after failed build instead of before every build"
...
CannotInstallFormulaError is only raised when another version of the
formula is linked or any of its dependencies are unlinked, in which case
this warning is totally irrelevant. It should be checked after build
errors instead.
This reverts commit 466d0f718bc2241e830393b384294c21194995e0.
2014-10-31 20:54:09 -05:00
Jack Nagel
9a356fc609
Remove FormulaAlreadyInstalledError
...
install is the only command that can trigger this warning, so it should
be handled before instantiating the installer.
2014-10-31 18:33:39 -05:00
Jim Witschey
a56ddb9eda
cmd/install: fallback to searching formula names.
...
Closes Homebrew/homebrew#33648 .
Signed-off-by: Mike McQuaid <mike@mikemcquaid.com>
2014-10-28 11:16:24 +00:00
Mike McQuaid
356e75487e
Point to a tap when installing or fetching.
...
When installing or fetching and stuff goes wrong we can't always catch
the error and redirect to the tap. Instead, point to the tap before we
do anything failure-prone and hopefully that'll encourage people to
file issues in the right place. If not we can say that explicitly.
Closes Homebrew/homebrew#33220 .
2014-10-21 23:04:55 +01:00
Jack Nagel
8c6efd8993
Drop pointless use of CannotInstallFormulaError
...
These are not caught anywhere, just raise the string. Missed in
1b3b61ff08a4ee5979838f7dbc171e9b38e83f7c.
2014-10-20 03:15:12 -05:00
Jack Nagel
f3b7c3236b
Consistently call name on formula instead of relying on to_s
2014-09-14 11:19:30 -05:00
Jack Nagel
7bfb12aa45
Install dependencies before an interactive install
...
Closes Homebrew/homebrew#29121 .
2014-08-30 15:02:47 -05:00
Mike McQuaid
4db0aa19c1
install: search when formula isn't found.
...
If you do `brew install blah` it currently doesn't search for it. This
seems to be unintentional looking at this code as the exception thrown
by ARGV.formulae.each is not caught and handled. Instead, let's handle
this case and provide a little more usability around our taps.
Closes Homebrew/homebrew#31761 .
Signed-off-by: Mike McQuaid <mike@mikemcquaid.com>
2014-08-25 09:24:30 +01:00
Jack Nagel
10a1952d2c
Only "extend self" once on the Homebrew module
2014-06-19 13:10:36 -05:00
Jack Nagel
c6d75bfcec
Move head-only checks to cmd/install
...
Fixes Homebrew/homebrew#30084 .
Closes Homebrew/homebrew#30203 .
2014-06-16 18:39:59 -05:00
Jack Nagel
f3817b58ee
install: move requires to top of file
2014-06-16 13:36:17 -05:00
Misty De Meo
8cb980f7be
doctor: Add check for install_name_tool
...
Closes Homebrew/homebrew#29593 .
2014-06-03 22:50:37 -07:00
Jack Nagel
f6fda5651b
Remove deprecated --use-{gcc,llvm,clang}
...
Closes Homebrew/homebrew#29380 .
2014-05-19 10:37:45 -05:00
Jack Nagel
1845b39d41
Separate Xcode and CLT doctor checks by OS X version
...
Closes Homebrew/homebrew#29206 .
2014-05-12 18:59:52 -05:00
Andrew Potter
45922f1903
run macports check after failed build instead of before every build
...
Closes Homebrew/homebrew#28717 .
Signed-off-by: Adam Vandenberg <flangy@gmail.com>
2014-04-27 16:10:28 -07:00
Jack Nagel
eab90dcb56
Rewrite brew reinstall
...
Fixes Homebrew/homebrew#23928 .
2014-03-15 10:53:03 -05:00
Jack Nagel
3b68723fa8
Make FormulaInstaller setup more readable
2014-03-13 15:59:54 -05:00
Jack Nagel
ce5e2aa65c
Make debug an installer mode
2014-03-13 15:59:54 -05:00
Jack Nagel
4d02849d43
Make verbose an installer mode
2014-03-13 15:59:54 -05:00
Jack Nagel
908d2ba792
Make interactive an installer mode
2014-03-13 15:59:53 -05:00
Jack Nagel
a96c1a2afc
Make force_bottle an explicit installer mode
2014-03-10 14:56:02 -05:00
Jack Nagel
97dd5f61c4
install: explicitly pass used options to the installer
2014-03-10 14:56:02 -05:00
Jack Nagel
a911dd5066
Make build_from_source an explicit installer mode
2014-03-10 14:56:02 -05:00
Jack Nagel
42e60f7c59
Make build_bottle an explicit installer mode
2014-03-10 14:56:01 -05:00
Jack Nagel
1ab5943fb2
Let commands decide what mode the installer should use
2014-03-04 14:06:25 -06:00
Jack Nagel
4c0db19538
Extract installer setup to prelude method
2014-03-04 14:06:25 -06:00
Jack Nagel
c534b1907d
Revert "Let commands decide what mode the installer should use"
...
I'd still like to make this change, but at least for now the initializer
requires ignore_deps to be set correctly.
This reverts commit 881a8855b944fa9bd7dfd598bb9197f79f7a13f0.
2014-03-02 09:01:50 -06:00
Jack Nagel
ffbe5bf22c
Let commands decide what mode the installer should use
2014-03-02 00:21:13 -06:00
Jack Nagel
26785dbe5d
Use Formula.path
2014-02-28 16:51:15 -06:00