5541 Commits

Author SHA1 Message Date
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
Jack Nagel
722a5af4eb Simplify conditions for superenv activation
`MacOS::Xcode.without_clt? && MacOS.sdk_path.nil?` should never be true.

In its earliest form, this would raise a bare RuntimeError in an effort
to have the bug reported. Later, it was changed to silently disable
superenv. But we don't want to do that. If there's a bug, or the user's
system is misconfigured, we want to know, so that we can fix the bug, or
the user can fix their system. So let's remove the condition.
2014-04-22 15:37:34 -05:00
Mike McQuaid
ebd77ae8c4 README: use the word "maintainers". 2014-04-22 15:55:55 +01:00
Jack Nagel
dbb527f352 The argument to MacOS.locate is always a string 2014-04-21 22:47:15 -05:00
Mario Mueller
be66d746ad rewrite TeX requirement message
Closes Homebrew/homebrew#28588.

Signed-off-by: Adam Vandenberg <flangy@gmail.com>
2014-04-21 19:39:37 -07:00
Jack Nagel
7573855756 Only check Xcode prefix when non-nil 2014-04-21 18:52:12 -05:00
Jack Nagel
24e27465e0 Remove comments that no longer reflect any adjacent code 2014-04-21 18:51:43 -05:00
Jack Nagel
c208afe226 Don't test jruby deps since it makes the tests slow 2014-04-21 12:48:15 -05:00
Jack Nagel
4b4fc003df Adjust installer for updated link error handling 2014-04-21 12:43:06 -05:00