Jack Nagel
cc111906cc
Push MacOS.cat logic down into MacOS::Version
2013-06-15 19:40:42 -05:00
Jack Nagel
faa35b4fcd
Avoid unnecessary float to string conversion
2013-06-15 10:13:20 -05:00
Adam Vandenberg
fd3c09705b
Move pretty_name into MacOS::Version
...
Closes #20507 .
Signed-off-by: Adam Vandenberg <flangy@gmail.com >
2013-06-14 13:36:20 -07:00
Jack Nagel
e17d2a24fc
Use Hardware::CPU module
2013-06-14 10:34:17 -05:00
Jack Nagel
bab2ac4d10
Xcode 4.6.3
2013-06-13 18:22:28 -05:00
Clemens Gruber
d5ca203097
Recognize OS X 10.9 and Xcode 5.0
...
Closes #20410 .
Closes #20401 .
Signed-off-by: Jack Nagel <jacknagel@gmail.com >
2013-06-11 10:20:23 -05:00
Jack Nagel
db3892bf8e
Add MacOS.pretty_name
2013-06-06 16:02:27 -05:00
Jack Nagel
f155d31943
Decouple bottle tags from MacOS.cat
2013-06-06 16:02:27 -05:00
Jack Nagel
1f19374e37
Move oldest_cpu to Hardware
2013-06-06 16:02:27 -05:00
Jack Nagel
b433d51586
Require hardware where it is needed
2013-06-01 19:38:48 -05:00
Mike McQuaid
d6dae4544f
Remove cat_without_underscores bottle methods.
2013-05-25 16:02:18 +01:00
Mike McQuaid
646150ade9
Fix --build-bottle CFLAGS.
...
The CFLAGS were previously not generic enough.
References #18944 .
References #19179 .
2013-05-11 12:18:25 +01:00
Misty De Meo
733058f24f
Add gcc-4.0 to fails_with
2013-05-08 09:38:15 -05:00
Ashley Towns
5b9c712534
Update for Xcode 4.6.2
...
Closes #19227 .
Signed-off-by: Jack Nagel <jacknagel@gmail.com >
2013-04-15 21:44:12 -05:00
Jack Nagel
ee5e60edf2
Don't create MacOS.version multiple times
2013-04-15 16:04:35 -05:00
Jack Nagel
e4cbfe11ec
CompilerSelector: don't use non-existent compilers
2013-04-02 13:19:04 -05:00
Misty De Meo
e7f66519dc
Hardware: separate out CPU values into CPU module
...
* CPU functions now exist in Hardware::CPU
* Added compatibility functions in compat/hardware_compat.rb
* Names are less specific to Mac hardware, e.g. CPU.family instead of
Hardware.intel_family
* Hardware::CPU.family works for both Intel and PowerPC
* New helper methods on CPU, like .sse4? and .altivec?
Signed-off-by: Misty De Meo <mistydemeo@gmail.com >
2013-03-23 13:40:18 -05:00
Jack Nagel
37324e4fb4
Xcode 4.6.1 is released
...
Closes #18481 .
2013-03-14 22:58:55 -05:00
Shaun Jackman
076fcd11b0
Portability fixes to run Homebrew on Linux systems
...
Closes #16344 .
Signed-off-by: Mike McQuaid <mike@mikemcquaid.com >
2013-03-11 18:26:25 +00:00
Mike McQuaid
22322867a1
Don't run certain functions on non-MACOS.
2013-03-11 18:26:25 +00:00
Mike McQuaid
041060e28f
Support 32-bit 10.6 bottles.
...
Closes #17735 .
Signed-off-by: Mike McQuaid <mike@mikemcquaid.com >
2013-03-01 17:49:09 +00:00
Mike McQuaid
82ecb69a53
Add non-/usr/local bottles support.
...
Signed-off-by: Mike McQuaid <mike@mikemcquaid.com >
2013-03-01 17:49:09 +00:00
Mike McQuaid
e26b70b6f2
Exclude all located superenv paths.
...
The previous fix only looked at the current Homebrew but we should
discard hits from other installations of Homebrew too.
2013-02-28 20:53:38 +00:00
Jack Nagel
1c5bf16bb1
Don't reinvent IndexError here
2013-02-10 21:02:27 -06:00
Jack Nagel
9382757e83
superenv bin directory is under HOMEBREW_REPOSITORY
2013-02-07 13:33:04 -06:00
Jack Nagel
b34f7727bd
MacOSVersion -> MacOS::Version
2013-02-07 12:39:54 -06:00
Jack Nagel
4e7cc28430
MacOS: cache calls to mdfind
2013-02-06 22:24:24 -06:00
Jack Nagel
773812e86c
Don't call methods on xcrun_path if it's nil
2013-02-01 13:36:53 -06:00
Mike McQuaid
ddf4d1f603
Don't let xcrun find superenv tools.
...
Causes an infinite loop when trying to find e.g. missing gcc.
Closes #17426
References #17455
2013-01-31 21:48:28 -08:00
Mike McQuaid
3318b08a2e
Don't use underscores in (new) bottle filenames.
...
Closes #14270
2013-01-29 17:14:09 -08:00
Jack Nagel
7486ff25e0
Fix clang version detection on Xcode 4.6+
2013-01-28 14:40:58 -06:00
Jack Nagel
3a28868792
Fix compiler map key
2013-01-28 14:33:52 -06:00
Mike McQuaid
1969ebb5cd
Xcode 4.6 released.
...
Closes #17383 . Closes #17384 .
2013-01-28 12:13:08 -08:00
Jack Nagel
3a8e95c526
Prevent repeated lookups of nil-valued keys
2013-01-08 10:21:28 -06:00
Jack Nagel
ac86882a1e
Better reporting for MacPorts/Fink installations
...
closes #15853 .
2012-12-17 17:18:22 -06:00
Mike McQuaid
fe80973e59
Fix stupid typo in bottle fix.
2012-12-12 00:47:02 +00:00
Mike McQuaid
93467cfee5
Disable bottle installation correctly on 10.6.
2012-12-11 23:39:43 +00:00
Jack Nagel
0a868aba74
Don't print error message when dev_tools_path fails to find tools
...
This message is either (a) never printed because the tools are
installed, or (b) printed every time this method is called.
See #16119 .
This code shouldn't be responsible for UX anyway, so just remove it and
let other parts of Homebrew be responsible for failing or declaring that
they need the developer tools.
2012-12-08 16:51:29 -06:00
Mike McQuaid
b30390f1e4
Improve bottle error messages.
...
On installation or creation of a bottle error out of the current
machine does not support bottles.
References #16291 .
2012-12-04 12:06:02 +00:00
Jack Nagel
1ca93beebb
Add Xcode 4.5.2 to standard compilers map
...
Signed-off-by: Jack Nagel <jacknagel@gmail.com >
2012-11-01 14:13:26 -05:00
Jack Nagel
9ca734097e
Reduce code footprint of standard compilers map
...
Signed-off-by: Jack Nagel <jacknagel@gmail.com >
2012-10-15 18:17:22 -05:00
Jack Nagel
60b8a5792b
Advise brew update before filing issues about compiler versions
2012-10-06 13:20:19 -05:00
Jack Nagel
119f8fac51
Add Xcode 4.5.1 to compiler map
...
Closes #15282 .
Signed-off-by: Jack Nagel <jacknagel@gmail.com >
2012-10-03 22:14:03 -05:00
Misty De Meo
f8b351bfd0
Skip standard compilers check for unknown Xcode
...
Rescuing false on the StandardCompilers map meant that the doctor
check assumed that the compilers were incorrect, not merely
unknown.
Instead, skip the check and return nil for unknown Xcode; nil
should be interpreted as "dunno", instead of "true" or "false",
and the doctor check no longer prints on nil.
2012-09-14 17:11:51 -05:00
Misty De Meo
ebca0d9b9a
Add Xcode 4.5 to StandardCompilers map
...
We now have several reports of compiler versions for the GM,
e.g. #14944 .
2012-09-14 17:03:35 -05:00
Jack Nagel
6b8d25f2d2
Clean up MacOS version method usage
...
The MacOS.version? family of methods (other than "leopard?") are poorly
defined and lead to confusing code. Replace them in formulae with more
explicit comparisons.
"MacOS.version" is a special version object that can be compared to
numerics, symbols, and strings using the standard Ruby comparison
methods.
The old methods were moved to compat when the version comparison code
was merged, and they must remain there "forever", but they should not be
used in new code.
Signed-off-by: Jack Nagel <jacknagel@gmail.com >
2012-09-10 16:16:54 -05:00
Jack Nagel
e8b62ad56f
Fix typo in MacOS.sdk_path
...
/cc @adamv
Signed-off-by: Jack Nagel <jacknagel@gmail.com >
2012-09-03 18:14:30 -05:00
Jack Nagel
cb1fea6ddd
Don't error out with Xcode 4.5
...
c.f. #14603 .
Signed-off-by: Jack Nagel <jacknagel@gmail.com >
2012-09-03 15:15:39 -05:00
Stephan Zeissler
173fe393a0
Change sdk detection to same syntax used elsewhere.
...
This wasn't working for me on leopard with ruby 1.9.2.
Closes #14636 .
Signed-off-by: Adam Vandenberg <flangy@gmail.com >
2012-09-02 11:05:03 -07:00
Max Howell
bbe75d3efb
MacOS.sdk_path is unlicensed Xcode aware
...
Now we should get an sdk_path, but tools like xcodebuild, xcode-select and xcrun will still error out. But at least more of Homebrew will work.
Also putting the Xcode 3 path finder last. We get bug reports because newer Xcodes are installed in parallel to older Xcodes. We want to find and use the newer Xcode's first. Xcode.prefix is pretty smart about that.
Refs #14558 .
2012-08-31 10:22:11 -04:00