598 Commits

Author SHA1 Message Date
Jack Nagel
2d8a3ac35a Use popen wrapper
Closes Homebrew/homebrew#30678.
2014-07-05 15:41:22 -05:00
Misty De Meo
07660bb7b6 Hardware: add new .features method
This returns a list of symbols with the various CPU features supported
by the active hardware.
2014-06-21 21:59:51 -07:00
Mike McQuaid
2f8adead9f xcode: add new package ID for Mavericks (again).
Closes Homebrew/homebrew#30296.
2014-06-20 12:59:11 +01:00
Mike McQuaid
e83b6a6b45 Revert "xcode: add new package ID for Mavericks."
This reverts commit b0caede328b5181106451025df74a456276b76cf.

Fixes Homebrew/homebrew#30299.
2014-06-20 12:18:28 +01:00
Mike McQuaid
072261a954 xcode: add new package ID for Mavericks.
Closes Homebrew/homebrew#30296.
2014-06-20 11:27:21 +01:00
Shaun Jackman
94a0b26fec Linuxbrew: Read CPU flags from /proc/cpuinfo
Closes Homebrew/homebrew#29895.

Signed-off-by: Mike McQuaid <mike@mikemcquaid.com>
2014-06-06 19:47:16 +01:00
Shaun Jackman
12b5de391e hardware: Add Intel CPUs to OPTIMIZATION_FLAGS
Closes Homebrew/homebrew#29866.

Signed-off-by: Adam Vandenberg <flangy@gmail.com>
2014-06-04 07:26:18 -07:00
Trent Ogren
790657f61f Update latest XQuartz version
See https://xquartz.macosforge.org/landing/

Closes Homebrew/homebrew#29826.

Signed-off-by: Mike McQuaid <mike@mikemcquaid.com>
2014-06-04 10:01:04 +01:00
Andy Blyler
6bbe82062e Add yosemite to mac versions
Closes Homebrew/homebrew#29823.

Signed-off-by: Jack Nagel <jacknagel@gmail.com>
2014-06-03 15:06:46 -05:00
Jack Nagel
d3e19b1504 Simplify MacOS.version.to_sym 2014-06-03 11:32:26 -05:00
Jack Nagel
f1808cd66d Don't coerce value to string unnecessarily 2014-06-03 11:32:26 -05:00
Jack Nagel
6c3c5b0a84 Loosen GCC version regexp to allow for custom version strings 2014-05-28 22:46:05 -05:00
Jack Nagel
be6029c634 Fix CLT outdated check on 10.9
Fixes Homebrew/homebrew#27420.
2014-05-12 14:34:23 -05:00
Jack Nagel
8a5dda3413 Latest Xcode is 5.1.1 2014-05-12 14:32:36 -05:00
Mike McQuaid
5955f2a395 os/mac: don't use Formula.factory unnecessarily.
Instead check if the path exists by using opt.
2014-05-06 16:45:50 +01:00
Jack Nagel
f6d5d812dc Simpler Xcode prefix detection code 2014-05-02 16:48:59 -05:00
Jack Nagel
2c6d4973b9 Remove obsolete fallback for broken Xcode 4.3+
After recent cleanups the code in this branch should be unreachable, so
there is little point in keeping it around.
2014-05-02 16:48:59 -05:00
Jack Nagel
a8f0872cc0 Remove MacOS.dev_tools_path and MacOS.dev_tools_prefix
These methods are no longer required.
2014-05-01 18:36:46 -05:00
Jack Nagel
aa5a5a526f Rename Xcode.folder to MacOS.active_developer_dir
This reflects what Apple calls it in more recent versions of Xcode/OS X.
2014-05-01 18:36:46 -05:00
Jack Nagel
71055aa073 Move xctoolchain_path to Xcode module, where it belongs 2014-05-01 18:36:46 -05:00
Jack Nagel
564b5df261 Trust xcrun now that we error out early for bad xcode-select paths
Since ae177adb2bd55ee5ad6367e7639c4cf0c774b63a, we can safely assume
that xcrun works, and a functioning xcrun will search dev_tools_path and
xctoolchain_path, so we can stop doing extra work here.

On CLT-only 10.7 and 10.8, xcrun will not work, but all the tools will
be in /usr/bin, which we check before invoking xcrun. Further, in this
case, dev_tools_path will be /usr/bin, and xctoolchain_path will not
exist, so the fallbacks here are unnecessary.
2014-05-01 18:36:46 -05:00
Jack Nagel
89ed0c544b Remove unnecessary nil check 2014-05-01 18:22:39 -05:00
Jack Nagel
7052fe89b1 Fix caching of gcc_42_build_version 2014-05-01 16:57:14 -05:00
Jack Nagel
3040bd3aae Remove outdated comment 2014-05-01 16:47:28 -05:00
Adam Vandenberg
d4b0599a86 --config -> config 2014-04-30 19:09:29 -07: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
Jack Nagel
dbb527f352 The argument to MacOS.locate is always a string 2014-04-21 22:47:15 -05: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
749c877f03 Add another comment 2014-04-19 21:47:42 -05:00
Jack Nagel
bac25a77bf Elaborate on why we should remove this code 2014-04-19 21:40:44 -05:00
Jack Nagel
8d6c1358a2 Update comment 2014-04-15 14:26:12 -05:00
Jack Nagel
538dea98ad Start cleaning up Xcode.version 2014-04-15 14:20:18 -05:00
Jack Nagel
20c150fb8c Xcode.bad_xcode_select_path? is used only once, so inline it 2014-04-15 11:28:52 -05:00
Jack Nagel
b78a4b7372 Don't call xcrun twice 2014-04-15 11:26:04 -05:00
Jack Nagel
2f052a2f65 Remove another unnecessary check 2014-04-15 11:26:03 -05:00
Jack Nagel
490cb34885 Remove unnecessary xcode-select check
This is handled here:
67fbb313da/Library/brew.rb (L34-46)
2014-04-15 11:21:27 -05:00
Jack Nagel
fcda7a1086 Document some unanswered questions in the Xcode module 2014-04-15 10:08:59 -05:00
Jack Nagel
2d8d7184f6 Remove dead constant 2014-04-15 09:49:01 -05:00
Clemens Gruber
dbe06bbbfc Add Xcode 5.1.1 (=Golden master build) clang version
Closes Homebrew/homebrew#28173.

Signed-off-by: Jack Nagel <jacknagel@gmail.com>
2014-04-05 09:41:30 -05:00
Misty De Meo
89692b34a8 Xcode.prefix: remove osx-gcc-installer hack
This hack is starting to outlive its usefulness, and produces false
positives.

Fixes Homebrew/homebrew#28147.
2014-04-04 15:26:41 -07:00
Jack Nagel
c13311ca09 Cache MacOS.version comparison results
MacOS.version#<=> is called many, many times during formula loading with
the same half dozen or so arguments. A typical call to this method
involves:

 * a hash lookup to convert a symbol argument to a string
 * creation of a throw-away Version object wrapping the argument
 * the actual version comparison, which is not cheap

This makes it a prime candidate to be memoized.
2014-04-02 20:29:20 -05:00
Jack Nagel
55b0ee787a Remove dead code 2014-04-01 22:54:15 -05:00
Jack Nagel
4830bdb5b7 The argument to pkgutil_info is always a string 2014-04-01 20:49:11 -05:00
Jack Nagel
0d3121f781 Batch up mdfind calls when possible 2014-04-01 20:47:26 -05:00
Jack Nagel
97ca3baedc Avoid calling xcodebuild twice 2014-04-01 18:51:34 -05:00
Misty De Meo
3943a77832 CLT.installed?: base result on version detection
CLT.installed? previously returned false if the user had outdated dev
tools installed after a 10.9 upgrade, which was confusing to users.
2014-03-26 10:35:30 -07:00
Mike McQuaid
3b0eef09e9 Remove unnecessary swearing. 2014-03-22 10:14:20 +00:00
Jack Nagel
cca7d1a96f Update latest CLT version check 2014-03-10 15:39:16 -05:00
Jack Nagel
5bd5e05541 Recognize Xcode 5.1 and CLT 5.1
Closes Homebrew/homebrew#27389.
Fixes Homebrew/homebrew#27390.
2014-03-10 15:26:36 -05:00