Jack Nagel
f2738dbe96
Extract repeated conditional to a method
2013-10-18 13:38:19 -05:00
Jack Nagel
943978a955
Make condition clearer using names
2013-10-18 13:38:18 -05:00
Jack Nagel
273f5b2ddd
Merge XQuartz and X11 modules
2013-10-18 13:38:18 -05:00
Jack Nagel
8887fe7606
Move MacOS modules under OS::Mac namespace
...
Closes Homebrew/homebrew#23138 .
2013-10-18 13:38:07 -05:00
Jack Nagel
c511d7d2f4
Add OS.mac? and OS.linux?
2013-10-18 12:56:51 -05:00
Jack Nagel
9c53a1b8b7
Recommend Xcode 5.0.1 GM on 10.9
2013-10-06 17:24:22 -05:00
Mike McQuaid
535c02674c
Add Xcode 5.0.1.
...
Closes Homebrew/homebrew#23040 .
2013-10-04 09:56:02 +01:00
Mike McQuaid
ee79f31516
xcode: Xcode 5.0 is the latest on 10.8.
2013-10-04 09:55:26 +01:00
Misty De Meo
b4f5be46d2
MacCPUs: distinguish between G5 32-bit and 64-bit
2013-10-03 20:05:32 -07:00
Jack Nagel
6e4ad9eb22
Fix wrong assumption in MacOS::Xcode.without_clt?
...
Fixes Homebrew/homebrew#22221 .
2013-08-30 14:49:10 -05:00
Misty De Meo
a892e52bfc
Add Hardware::CPU.universal_archs
2013-08-15 22:46:56 -07:00
Misty De Meo
ef1f2b4a79
Add Hardware::CPU.arch_(32|64)_bit
...
This replaces hardcoding of i386/x86_64 all over the code.
2013-08-15 22:46:55 -07:00
Jack Nagel
755c786040
Move MacOS.xcode43_without_clt? into Xcode module
2013-08-09 20:47:28 -05:00
Jack Nagel
9b30fc4afa
Map pkginfo versions to actual XQuartz versions
2013-07-22 11:25:12 -05:00
Jack Nagel
34623b4ef1
Fall back on pkgutil when mdls cannot determine XQuartz version
2013-07-22 11:25:11 -05:00
Jack Nagel
d355227036
Separate version detection from accessor
2013-07-22 11:25:11 -05:00
Jack Nagel
1a54e6a449
Extract version_from_pkgutil
2013-07-22 11:25:11 -05:00
Jack Nagel
c325520316
Extract version_from_mdls
2013-07-22 11:25:11 -05:00
Jack Nagel
0b5551ee5b
Extract guess_system_version
2013-07-22 11:25:10 -05:00
Jack Nagel
df0d4aa853
Extract bundle_path from XQuartz.version
2013-07-22 11:25:10 -05:00
Jack Nagel
d6ed7fea4a
Cache pkgutil results at the source
2013-07-21 20:09:55 -05:00
Jack Nagel
a1e7d7177f
Eliminate nested conditional
2013-07-21 16:41:51 -05:00
Jack Nagel
9f2f5c81e9
Extract bundle_path method from Xcode#prefix
2013-07-21 16:41:51 -05:00
Jack Nagel
d9b9b77fa6
Update comment about CLT
...
This was worded in a confusing way, and made an assumption about future
OS X versions that we don't know to be true.
Also, it's probably wrong to state that the CLT location is dependent on
the OS X version; surely there will be a newer CLT for 10.8 that gets
installed in the same location as on 10.9. But we don't know any better
yet.
2013-07-21 16:41:50 -05:00
Jack Nagel
aa2554640d
Split up unreadable conditional
2013-07-21 16:41:50 -05:00
Misty De Meo
22576e87a0
Hardware: Query sysctl for instructon sets
...
This may be more accurate than guessing.
2013-07-02 16:08:20 -05:00
Mike McQuaid
621c44dbd2
CLT is just CLT now; not "for Xcode".
...
References Homebrew/homebrew#17383 .
2013-07-01 19:02:32 +01:00
Misty De Meo
5eeb0e79a3
Hardware::CPU (Mac): add Haswell
...
See Homebrew/homebrew#20935 .
2013-07-01 00:44:54 -05:00
David Rice
59f3d0d6f6
Detect Command Line Tools on Mavericks.
...
Closes Homebrew/homebrew#20774 .
2013-06-26 19:09:06 +01:00
Clemens Gruber
c5f9f42e51
Fix Xcode builds on 10.9.
...
CLT-only builds are still broken and need to be fixed at some point.
Closes Homebrew/homebrew#20524 .
Signed-off-by: Mike McQuaid <mike@mikemcquaid.com>
2013-06-17 09:14:17 +01:00
Jack Nagel
45d3e436ee
Simplify regexp match
2013-06-15 19:51:49 -05:00
Jack Nagel
d98ff95b3e
These also get coerced to strings
2013-06-15 19:51:35 -05:00
Jack Nagel
49c9097b07
Push MacOS.cat logic down into MacOS::Version
2013-06-15 19:40:42 -05:00
Jack Nagel
3cd1a0e696
Add MacOS::Version.from_symbol
2013-06-15 19:39:27 -05:00
Jack Nagel
e9d245cf3a
Avoid unnecessary float to string conversion
2013-06-15 10:13:20 -05:00
Jack Nagel
e59456515d
Pass these as strings, they get converted anyway
2013-06-14 19:10:14 -05:00
Adam Vandenberg
ca10e5005a
Fix pretty names
2013-06-14 14:47:16 -07: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
dc454aad92
Freeze optimization flags hash rather than duping it
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
Mike McQuaid
bca356dd70
Don't error out on unreleased OSX versions.
...
References Homebrew/homebrew#20142 .
2013-06-04 13:58:08 +01:00
Misty De Meo
8559725645
MacOS::Xcode.latest_version: add Tiger
2013-05-23 18:44:50 -05:00
Jack Nagel
dd280cc0b1
MacOS.version in case statement doesn't work with ranges
2013-05-22 22:59:38 -05:00
Jack Nagel
3755b33a97
Refactor Xcode/CLT version checks
2013-05-22 22:30:38 -05:00
Misty De Meo
5d48f46178
MacOS::Version: add :tiger
2013-05-20 18:41:49 -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
49682e854d
Avoid expensive Pathname concatenation
2013-04-15 15:00:57 -05:00
Misty De Meo
3882603ba8
MacCPUs: add .avx? helper
2013-04-07 12:47:56 -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