Jack Nagel
c511d7d2f4
Add OS.mac? and OS.linux?
2013-10-18 12:56:51 -05:00
Misty De Meo
8427e71368
Track the OS's default C++ stdlib
2013-10-06 19:26:06 -07:00
Jack Nagel
7bb90c992a
Fetch yields the key, use it
2013-10-04 12:44:05 -05:00
Jack Nagel
e887232b7e
MacOS: remove unnecessary begin block
2013-10-04 12:42:31 -05:00
Mike McQuaid
535c02674c
Add Xcode 5.0.1.
...
Closes Homebrew/homebrew#23040 .
2013-10-04 09:56:02 +01:00
Mike McQuaid
929a9f8b4c
macos: cleanup whitespace.
2013-10-04 09:53:59 +01:00
Misty De Meo
ef1d9c0cd0
Implement fails_with for non-Apple compilers
...
This adds support for non-Apple GCC compilers in the fails_with code.
A fails_with block for a non-Apple compiler looks like:
fails_with :gcc => '4.8.1' do
cause 'Foo'
end
Non-Apple compilers don't have build numbers, so compiler failures are
based on version strings instead.
Internally non-Apple compilers can be distinguished because they are
passed around as strings instead of symbols.
In addition, this alters the priority list for compilers, with the
following changes:
* Apple GCC 4.2 and LLVM-GCC swap positions, with GCC now taking
priority. (Maybe LLVM-GCC should just go away.)
* Non-Apple GCC compilers are ranked below GCC 4.2 but above LLVM-GCC
and Apple GCC 4.0.
2013-09-01 13:19:13 -07:00
Misty De Meo
fa03fd91b4
Add MacOS.preferred_arch
...
Replaced the plethora of ternaries we've used all over the place to
determine whether x86_64 or i386 is called for.
2013-08-15 22:46:56 -07:00
Misty De Meo
6242a6d7fa
MacOS.locate: search HOMEBREW_PREFIX before xcrun
...
Since xcrun doesn't work on CLT-only systems. Querying HOMEBREW_PREFIX
first before xcrun is much faster for that case.
2013-07-26 23:22:22 -07:00
Jack Nagel
d6ed7fea4a
Cache pkgutil results at the source
2013-07-21 20:09:55 -05:00
Jack Nagel
3807bd220a
Existence of directory is implied by existence of executables
2013-07-21 16:41:51 -05:00
Jack Nagel
4adf8f047a
Pull another unwieldy condition into a method
2013-07-21 16:41:50 -05:00
Jack Nagel
13df53166a
These should be integers
2013-07-21 07:56:30 -05:00
Jack Nagel
5acaa3374b
Remove unnecessary use of globals in compiler version methods
2013-07-20 22:40:23 -05:00
Jack Nagel
e23a3492f4
Don't report llvm-gcc if it's actually clang
2013-07-20 22:40:22 -05:00
David Rice
59f3d0d6f6
Detect Command Line Tools on Mavericks.
...
Closes Homebrew/homebrew#20774 .
2013-06-26 19:09:06 +01:00
Jack Nagel
49c9097b07
Push MacOS.cat logic down into MacOS::Version
2013-06-15 19:40:42 -05:00
Jack Nagel
e9d245cf3a
Avoid unnecessary float to string conversion
2013-06-15 10:13:20 -05:00
Adam Vandenberg
8739eeab7d
Move pretty_name into MacOS::Version
...
Closes Homebrew/homebrew#20507 .
Signed-off-by: Adam Vandenberg <flangy@gmail.com>
2013-06-14 13:36:20 -07:00
Jack Nagel
50db35e5d3
Use Hardware::CPU module
2013-06-14 10:34:17 -05:00
Jack Nagel
4498db7887
Xcode 4.6.3
2013-06-13 18:22:28 -05:00
Clemens Gruber
15626b38ca
Recognize OS X 10.9 and Xcode 5.0
...
Closes Homebrew/homebrew#20410 .
Closes Homebrew/homebrew#20401 .
Signed-off-by: Jack Nagel <jacknagel@gmail.com>
2013-06-11 10:20:23 -05:00
Jack Nagel
2e5d050931
Add MacOS.pretty_name
2013-06-06 16:02:27 -05:00
Jack Nagel
79a769215f
Decouple bottle tags from MacOS.cat
2013-06-06 16:02:27 -05:00
Jack Nagel
159b9d8e2d
Move oldest_cpu to Hardware
2013-06-06 16:02:27 -05:00
Jack Nagel
41af459205
Require hardware where it is needed
2013-06-01 19:38:48 -05:00
Mike McQuaid
a75aff246e
Remove cat_without_underscores bottle methods.
2013-05-25 16:02:18 +01:00
Mike McQuaid
ad5c1b81cd
Fix --build-bottle CFLAGS.
...
The CFLAGS were previously not generic enough.
References Homebrew/homebrew#18944 .
References Homebrew/homebrew#19179 .
2013-05-11 12:18:25 +01:00
Misty De Meo
4312f94013
Add gcc-4.0 to fails_with
2013-05-08 09:38:15 -05:00
Ashley Towns
d600d6c0be
Update for Xcode 4.6.2
...
Closes Homebrew/homebrew#19227 .
Signed-off-by: Jack Nagel <jacknagel@gmail.com>
2013-04-15 21:44:12 -05:00
Jack Nagel
d504d50dcb
Don't create MacOS.version multiple times
2013-04-15 16:04:35 -05:00
Jack Nagel
c679e557ba
CompilerSelector: don't use non-existent compilers
2013-04-02 13:19:04 -05:00
Misty De Meo
2476801613
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
8039d46e09
Xcode 4.6.1 is released
...
Closes Homebrew/homebrew#18481 .
2013-03-14 22:58:55 -05:00
Shaun Jackman
258d70028f
Portability fixes to run Homebrew on Linux systems
...
Closes Homebrew/homebrew#16344 .
Signed-off-by: Mike McQuaid <mike@mikemcquaid.com>
2013-03-11 18:26:25 +00:00
Mike McQuaid
98352b3b41
Don't run certain functions on non-MACOS.
2013-03-11 18:26:25 +00:00
Mike McQuaid
8f35793020
Support 32-bit 10.6 bottles.
...
Closes Homebrew/homebrew#17735 .
Signed-off-by: Mike McQuaid <mike@mikemcquaid.com>
2013-03-01 17:49:09 +00:00
Mike McQuaid
20c0ddc401
Add non-/usr/local bottles support.
...
Signed-off-by: Mike McQuaid <mike@mikemcquaid.com>
2013-03-01 17:49:09 +00:00
Mike McQuaid
161104cae7
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
c16ee6f300
Don't reinvent IndexError here
2013-02-10 21:02:27 -06:00
Jack Nagel
f227695465
superenv bin directory is under HOMEBREW_REPOSITORY
2013-02-07 13:33:04 -06:00
Jack Nagel
7fbeb0df3d
MacOSVersion -> MacOS::Version
2013-02-07 12:39:54 -06:00
Jack Nagel
7178210a71
MacOS: cache calls to mdfind
2013-02-06 22:24:24 -06:00
Jack Nagel
7b93130a39
Don't call methods on xcrun_path if it's nil
2013-02-01 13:36:53 -06:00
Mike McQuaid
b1bc9ec809
Don't let xcrun find superenv tools.
...
Causes an infinite loop when trying to find e.g. missing gcc.
Closes Homebrew/homebrew#17426
References Homebrew/homebrew#17455
2013-01-31 21:48:28 -08:00
Mike McQuaid
b58077b3e8
Don't use underscores in (new) bottle filenames.
...
Closes Homebrew/homebrew#14270
2013-01-29 17:14:09 -08:00
Jack Nagel
35394ad584
Fix clang version detection on Xcode 4.6+
2013-01-28 14:40:58 -06:00
Jack Nagel
246b60573f
Fix compiler map key
2013-01-28 14:33:52 -06:00
Mike McQuaid
5b281ded58
Xcode 4.6 released.
...
Closes Homebrew/homebrew#17383 . Closes Homebrew/homebrew#17384 .
2013-01-28 12:13:08 -08:00
Jack Nagel
c2fd7856d2
Prevent repeated lookups of nil-valued keys
2013-01-08 10:21:28 -06:00