Jack Nagel
9733e244f9
Move MacOS.xcode43_without_clt? into Xcode module
2013-08-09 20:47:28 -05:00
Jack Nagel
ec222810c3
Map pkginfo versions to actual XQuartz versions
2013-07-22 11:25:12 -05:00
Jack Nagel
e33fcb52e0
Fall back on pkgutil when mdls cannot determine XQuartz version
2013-07-22 11:25:11 -05:00
Jack Nagel
50c59320a5
Separate version detection from accessor
2013-07-22 11:25:11 -05:00
Jack Nagel
fc0f4ff771
Extract version_from_pkgutil
2013-07-22 11:25:11 -05:00
Jack Nagel
178fa2b6f1
Extract version_from_mdls
2013-07-22 11:25:11 -05:00
Jack Nagel
3159f9b399
Extract guess_system_version
2013-07-22 11:25:10 -05:00
Jack Nagel
c4e6794fad
Extract bundle_path from XQuartz.version
2013-07-22 11:25:10 -05:00
Jack Nagel
7d16d8c7d6
Cache pkgutil results at the source
2013-07-21 20:09:55 -05:00
Jack Nagel
0902d31417
Eliminate nested conditional
2013-07-21 16:41:51 -05:00
Jack Nagel
3dfb326421
Extract bundle_path method from Xcode#prefix
2013-07-21 16:41:51 -05:00
Jack Nagel
4d5a011bcf
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
42df11d962
Split up unreadable conditional
2013-07-21 16:41:50 -05:00
Misty De Meo
2570e4bcf9
Hardware: Query sysctl for instructon sets
...
This may be more accurate than guessing.
2013-07-02 16:08:20 -05:00
Mike McQuaid
31bf918ecb
CLT is just CLT now; not "for Xcode".
...
References #17383 .
2013-07-01 19:02:32 +01:00
Misty De Meo
bd0a4757c4
Hardware::CPU (Mac): add Haswell
...
See #20935 .
2013-07-01 00:44:54 -05:00
Shaun Jackman
561567ade0
os/linux/hardware: uname -m may be /i[3-6]86/
...
Closes homebrew/linuxbrew#16
Closes #20903 .
Signed-off-by: Jack Nagel <jacknagel@gmail.com >
2013-06-29 13:15:59 -05:00
David Rice
0367072c98
Detect Command Line Tools on Mavericks.
...
Closes #20774 .
2013-06-26 19:09:06 +01:00
Clemens Gruber
07b7810a04
Fix Xcode builds on 10.9.
...
CLT-only builds are still broken and need to be fixed at some point.
Closes #20524 .
Signed-off-by: Mike McQuaid <mike@mikemcquaid.com >
2013-06-17 09:14:17 +01:00
Jack Nagel
d9247b373e
Simplify regexp match
2013-06-15 19:51:49 -05:00
Jack Nagel
aa64a3aae5
These also get coerced to strings
2013-06-15 19:51:35 -05:00
Jack Nagel
cc111906cc
Push MacOS.cat logic down into MacOS::Version
2013-06-15 19:40:42 -05:00
Jack Nagel
1d29326558
Add MacOS::Version.from_symbol
2013-06-15 19:39:27 -05:00
Jack Nagel
faa35b4fcd
Avoid unnecessary float to string conversion
2013-06-15 10:13:20 -05:00
Jack Nagel
2b61e51dd8
Pass these as strings, they get converted anyway
2013-06-14 19:10:14 -05:00
Adam Vandenberg
cadbcf33e3
Fix pretty names
2013-06-14 14:47:16 -07: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
dd774b604f
Freeze optimization flags hash rather than duping it
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
Mike McQuaid
c1ac064a41
Don't error out on unreleased OSX versions.
...
References #20142 .
2013-06-04 13:58:08 +01:00
Misty De Meo
8c199e87aa
MacOS::Xcode.latest_version: add Tiger
2013-05-23 18:44:50 -05:00
Jack Nagel
924351345b
MacOS.version in case statement doesn't work with ranges
2013-05-22 22:59:38 -05:00
Jack Nagel
950c9b0bee
Refactor Xcode/CLT version checks
2013-05-22 22:30:38 -05:00
Misty De Meo
6ec154ce0a
MacOS::Version: add :tiger
2013-05-20 18:41:49 -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
f4ab1431dc
Avoid expensive Pathname concatenation
2013-04-15 15:00:57 -05:00
Misty De Meo
0501ecc413
MacCPUs: add .avx? helper
2013-04-07 12:47:56 -05:00
Sebastian Staudt
34357dac52
LinuxCPUs: Fix method alias
...
Closes #18683 .
Signed-off-by: Misty De Meo <mistydemeo@gmail.com >
2013-03-23 14:23:03 -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
Samuel John
06935cd77d
Better superenv support for Xcode elsewhere
...
- The Library/ENV/4.3/xcrun shim now respects
ENV['DEVELOPER_DIR'] instead assuming the location
of /Applications/Xcode.app/Contents/Developer.
- The env var DEVELOPER_DIR is set if it is not
already. So, during superenv this var is always set
and we no longer have to care about people with unset
or wrongly set xcode-select stuff. This has been
a major PITA in the past.
- determine_developer_dir (which is used to set
the DEVELOPER_DIR var) now uses MacOS::Xcode.prefix
which is proven and very capable and uses splotlight
correctly.
- Replace (and remove) MacSystem.xcode43_developer_dir
with Xcode.prefix
Closes #18618
2013-03-21 17:10:32 +01: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