6 Commits

Author SHA1 Message Date
Max Howell
dc68752d3d 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
ad02ea74da 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
6ffe27fa98 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
c84035a287 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
97acbe8f66 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
148617bc11 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