Commit Graph
19 Commits
Author SHA1 Message Date
Jack Nagel 0dd05533d8 Xcode.version: return dunno as a string and not a symbol 2013-02-04 14:42:39 -06:00
Jack Nagel 19d5fc8a5e Update Xcode.version for 4.6 2013-01-29 09:52:02 -06:00
Jack Nagel 3dc5b69081 Update clang version regexp in CLT check 2013-01-29 07:44:19 -06:00
Jack Nagel 70a9715209 Update latest CLT version 2013-01-28 23:02:37 -06:00
Mike McQuaid 1969ebb5cd Xcode 4.6 released.
Closes #17383. Closes #17384.
2013-01-28 12:13:08 -08:00
Jack Nagel 8fcee6e15f Fix some doublethink in the Xcode module
Xcode.prefix and Xcode.installed? use slightly different heuristics to
find Xcode. In fact, .installed? basically duplicates a portion of the
.prefix logic. In practice, the methods results are usually consistent,
but .installed? does not handle non-standard prefixes if mdfind cannot
locate Xcode (for example, if the user has disabled Spotlight indexing).

Since .installed? is essentially a subset of the .prefix logic, we can
rely on the result from .prefix instead.

Fixes #16790.
2012-12-30 19:23:53 -06:00
Jack Nagel 2c1ad3ce38 Improve Xcode and CLT config reporting
We support three configurations: Xcode-only, CLT-only, and Xcode with
CLT. Our configuration output should correctly reflect this.

While MacOS::Xcode.version has to continue to return a guess if Xcode is
not installed in order to maintain backwards compatibility, this is an
implementation detail that we don't need to expose to the user. And it
makes `brew --config` output confusing.

So let's only print the "Xcode" line when an actual Xcode installation
is present. This makes it easy to quickly figure out which of the three
possible configurations the user is running.

Addresses #14941, more or less.
2012-12-12 23:33:29 -06:00
Adam Vandenberg 6d86b008de Xcode 4.5.2 is latest 2012-11-12 11:16:47 -08:00
Adam Vandenberg 489672ac06 Latest Xcode is 4.5.1 2012-10-22 10:01:24 -07:00
Jack Nagel 4d75918d8a Update Xcode.latest_version for 4.5
Signed-off-by: Jack Nagel <jacknagel@gmail.com>
2012-09-19 21:27:59 -05:00
Jack Nagel 2b12dfd26b Update Xcode guess for 4.5
Signed-off-by: Jack Nagel <jacknagel@gmail.com>
2012-09-19 15:51:21 -05:00
Max Howell 699e5eca39 Actually cache Xcode.version if nil 2012-09-03 16:35:16 -04: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
Max Howell 5f05387487 Prevent CLT.version being ""
Also cache the response if N/A as it is slow to keep repeating that. And only do one pkgutil call if possible.
2012-08-27 12:57:56 -04:00
Max Howell b681f1f8ed Fix syntax error, sorry about that.
Didn't test properly, it was a side-fix. Bad mxcl.
2012-08-17 18:00:33 -04:00
Max Howell 547ca0a8d1 Stop warning about CLT w/o Xcode
Also made the latest_versions checks smarter. Hopefully correct too.
2012-08-17 17:18:17 -04:00
Max Howell d184e3e340 Fix Xcode.version
I managed to remove a return while fixing this yesterday. The whitespace changes made the diff unreadable so I missed this regression.

Why does this sort of thing still happen?
2012-08-07 14:34:27 -04:00
Max Howell f3293224f3 Actually cache Xcode.version
The short-circuit returns would cause the caching ||= syntax to be skipped. For me on my CLT-less install, this was noticeably slowing down brew for some operations due to the frequent calls to xcodebuild.
2012-08-06 13:46:47 -04:00
Jack Nagel 68b5fe1ca5 Move X11 machinery into MacOS::XQuartz namespace
In order to better support Xcode-only systems, where X11 libs and
executables live under /usr/X11 but headers live in the SDK, move the
x11_* helper methods into a new module.

This allows us to keep some of the CLT/Xcode-only and Apple X11/XQuartz
logic hidden from outside code, like ENV.x11.

Since Apple's X11 is actually XQuartz, name the module "MacOS::XQuartz".
2012-08-01 00:31:38 -05:00