Jack Nagel
762b8d1f16
Restore bash completion for --config
2014-05-01 16:40:55 -05:00
Xu Cheng
2c9868ddd2
zsh_completion: fix brew config.
...
Signed-off-by: Xu Cheng <xucheng@me.com>
Closes Homebrew/homebrew#28878 .
Signed-off-by: Mike McQuaid <mike@mikemcquaid.com>
2014-05-01 09:43:55 +01:00
Adam Vandenberg
579c0e898f
outdated: allow forcing verbose output
...
Closes Homebrew/homebrew#27813 .
2014-04-30 21:10:47 -07:00
Adam Vandenberg
d4b0599a86
--config -> config
2014-04-30 19:09:29 -07:00
Misty De Meo
48cd833a15
Superenv: determine_optflags should return a string
...
This is saved in HOMEBREW_OPTFLAGS and later mutated by
ENV.universal_binary, so if this returns nil the sub will fail.
2014-04-30 08:21:54 -07:00
Mike McQuaid
ec852045b1
brew-test-bot: handle failing devel requirements.
2014-04-30 13:07:06 +01:00
Mike McQuaid
116c2b06a8
ENV/shared: handle untapped e.g. gcc48 formula.
...
In this case we need to handle the throwing on an exception when
attempting to initialize the gcc48 Formula object.
This initialization should be unnecessary if the core GCC is already
installed and rescued if not.
2014-04-30 12:38:22 +01:00
Jack Nagel
cf23fd2e14
xcrun wrapper: rephrase comments
2014-04-29 21:51:18 -05:00
Jack Nagel
4cff03b730
xcrun wrapper: reorganize so we only access ARGV once
2014-04-29 21:51:17 -05:00
Jack Nagel
2a81f8c305
xcrun wrapper: inline try method
2014-04-29 21:51:17 -05:00
Jack Nagel
c6c9aa546f
xcrun wrapper: skip superenv bin when walking PATH
2014-04-29 21:51:17 -05:00
Jack Nagel
259bbdf76c
Drop obsolete compiler fallback in stdenv
...
This code originated in a slightly different form in 8e88b22fd1ec65a344ce6e4facd6dad4b415b2ad:
8e88b22fd1/Library/Homebrew/extend/ENV.rb (L30-L32)
Back then, MacOS.default_compiler could return nil, which meant
ENV.compiler could do the same. This code was carried forward as the
surrounding code changed. At this point it should be unreachable.
2014-04-29 21:11:03 -05:00
Jack Nagel
32b7c9ff15
unpack: use correct constant scope for DATA
...
Formula::DATA only worked by accident of implementation; DATA during the
build is actually Object::DATA, so we should mirror that here.
This reverts commit b12444ba6e1ac1d596a70ff4c777d9386d0791ac.
2014-04-29 15:41:23 -05:00
Charlie Sharpsteen
69573ba7a2
brew-unpack: Handle new style :DATA patches
...
Instances of `IOPatch` created by `patch :DATA` are not affected by re-setting
the `DATA` constant of the `Formula` instance. For these patches, we iterate
through the `patchlist` and use `instance_variable_set` to attach data.
A bit hacky, but `patchlist` has no write accessors so there isn't a clean way
to modify patch contents.
2014-04-29 10:46:02 -07:00
Jack Nagel
953f6c1ead
Remove test that doesn't add value
2014-04-29 09:22:17 -05:00
Mike McQuaid
2c3b04fb26
ENV/shared: use homebrew/versions GCC if installed
...
Closes Homebrew/homebrew#28820 .
2014-04-29 08:51:56 +01:00
Jack Nagel
b6a0b95380
Use MacOS.locate and delete wrong comment
2014-04-29 01:31:22 -05:00
Jack Nagel
0de7f98b58
Remove comment that no longer reflects adjacent code
2014-04-29 01:31:22 -05:00
Jack Nagel
bfde04ee17
We don't use -Qunused-arguments anymore
2014-04-29 00:11:54 -05:00
Jack Nagel
90c03ffc17
ENV.{cc,cxx} setters already set OBJC and OBJCXX
2014-04-29 00:09:07 -05:00
Jack Nagel
6a2fa253cd
Make ENV.O4 a no-op
...
On older Apple compilers "-O4" is known to cause build errors. On recent
clang, it's the same as "-O3" and you have to pass "-O3 -flto" to get
the old behavior.
2014-04-29 00:09:07 -05:00
Jack Nagel
a31393f2cd
Fix brew-readall for updated tap structure
2014-04-27 19:45:36 -05:00
Adam Vandenberg
5012a45cf3
brew list --versions --multiple
...
With --multiple, only list formulae with multiple versions installed.
2014-04-27 17:05:24 -07: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
0291a579fb
Respect tap directory layout when searching
...
This matches the logic in find_formula.
2014-04-27 17:28:19 -05:00
Jack Nagel
ccc62a0cad
Use canonical_name to canonicalize aliases
2014-04-27 16:03:32 -05:00
Jack Nagel
82047ed901
Search results should always be sorted
2014-04-27 16:03:08 -05:00
Jack Nagel
3b15b58d00
Use Formulary.factory to find formula in taps
2014-04-27 15:32:28 -05:00
Jack Nagel
070bdc59b9
Explicitly pass key-value options to the build process
...
Fixes Homebrew/homebrew#28695 .
2014-04-26 19:10:21 -05:00
Jack Nagel
bdee729a41
Yield absolute paths from find_formula
2014-04-25 18:58:16 -05:00
Jack Nagel
b40a3413e3
Pass around only absolute paths when dealing with taps
2014-04-25 18:36:31 -05:00
Jack Nagel
a0494441d3
Build relative paths using resolved_path and relative_path_from
2014-04-25 12:34:37 -05:00
Jack Nagel
9b60c1470a
Less code in begin clause
2014-04-25 12:34:28 -05:00
Jack Nagel
b0cd6b0376
Extract some boilerplate into an each_tap method
2014-04-25 11:25:38 -05:00
Jack Nagel
99c275d03b
Remove slow tab completion for brew tap
...
This requires hitting the network, which makes the first invocation
slow. The results are inaccurate as it only pulls down the first page of
results. It is also prone to false-positives.
A better implementation is welcome, but in the years since I wrote this
code I can't think of a single time where I found it useful.
2014-04-24 21:42:15 -05:00
Jack Nagel
c466b20591
Fix tap completion when there aren't any taps
2014-04-24 21:36:59 -05:00
Jack Nagel
a699eeb468
Don't use a regexp to match paths, just compare them for equality
2014-04-24 20:45:36 -05:00
Jack Nagel
ccd31a2dd2
Pass arguments instead of reopening Pathname
2014-04-24 18:26:05 -05:00
Jack Nagel
dcb9ae1bcc
Using existing method to make tap symlinks
2014-04-24 18:06:11 -05:00
Jack Nagel
3f10327c0e
Update bash completion for new tap format
2014-04-24 17:24:27 -05:00
Tsukasa OMOTO
54004a4759
Make the on-disk representation of taps unambiguous
...
This commit supports "-" and "_" in names of user and repository.
Closes Homebrew/homebrew#28203 .
Signed-off-by: Jack Nagel <jacknagel@gmail.com>
2014-04-24 17:10:41 -05:00
Jack Nagel
fb27cbe6a7
Blacklist more flags that clang does not support
...
Fixes Homebrew/homebrew#28680 .
2014-04-24 13:20:24 -05:00
Dan Martinez
4303817ec7
separate the brew info for multiple formulae
...
Closes Homebrew/homebrew#27311 .
Signed-off-by: Adam Vandenberg <flangy@gmail.com>
2014-04-23 20:41:24 -07:00
Mike McQuaid
d30b118631
Migrate apple-gcc42 back to homebrew/versions.
...
Closes Homebrew/homebrew#28418 .
2014-04-23 12:27:24 +01:00
Mike McQuaid
165fdf4617
Use gcc instead of apple-gcc42 when needed.
2014-04-23 08:15:30 +01:00
Mike McQuaid
317a91bc1c
LICENSE: move to root folder.
...
This is where people expect to find it so let's make it easier.
Closes Homebrew/homebrew#28418 .
2014-04-23 08:11:02 +01:00
Mike McQuaid
55d277c335
Support core GCC formula as a GCC compiler.
...
It is activated by the same mechanism as the Homebrew/versions compilers
which now check if the GCC formula uses the same, correct version.
References Homebrew/homebrew#28418 .
2014-04-23 08:10:48 +01:00
Mike McQuaid
593702c70b
shared: don't warn about non-Apple compilers now.
2014-04-23 08:10:48 +01:00
Mike McQuaid
249aae177f
formula: move cxxstdlib methods to the class.
...
This allows disabling this checks when e.g. pouring bottles.
2014-04-23 08:10:48 +01:00
Jack Nagel
6cdc76452b
Only directories are candidates for superenv bin
2014-04-22 15:39:59 -05:00