aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Homebrew/macos.rb
AgeCommit message (Collapse)Author
2013-01-28Fix clang version detection on Xcode 4.6+Jack Nagel
2013-01-28Fix compiler map keyJack Nagel
2013-01-28Xcode 4.6 released.Mike McQuaid
Closes Homebrew/homebrew#17383. Closes Homebrew/homebrew#17384.
2013-01-08Prevent repeated lookups of nil-valued keysJack Nagel
2012-12-17Better reporting for MacPorts/Fink installationsJack Nagel
closes Homebrew/homebrew#15853.
2012-12-12Fix stupid typo in bottle fix.Mike McQuaid
2012-12-11Disable bottle installation correctly on 10.6.Mike McQuaid
2012-12-08Don't print error message when dev_tools_path fails to find toolsJack Nagel
This message is either (a) never printed because the tools are installed, or (b) printed every time this method is called. See Homebrew/homebrew#16119. This code shouldn't be responsible for UX anyway, so just remove it and let other parts of Homebrew be responsible for failing or declaring that they need the developer tools.
2012-12-04Improve bottle error messages.Mike McQuaid
On installation or creation of a bottle error out of the current machine does not support bottles. References Homebrew/homebrew#16291.
2012-11-01Add Xcode 4.5.2 to standard compilers mapJack Nagel
Signed-off-by: Jack Nagel <jacknagel@gmail.com>
2012-10-15Reduce code footprint of standard compilers mapJack Nagel
Signed-off-by: Jack Nagel <jacknagel@gmail.com>
2012-10-06Advise `brew update` before filing issues about compiler versionsJack Nagel
2012-10-03Add Xcode 4.5.1 to compiler mapJack Nagel
Closes Homebrew/homebrew#15282. Signed-off-by: Jack Nagel <jacknagel@gmail.com>
2012-09-14Skip standard compilers check for unknown XcodeMisty De Meo
Rescuing false on the StandardCompilers map meant that the doctor check assumed that the compilers were incorrect, not merely unknown. Instead, skip the check and return nil for unknown Xcode; nil should be interpreted as "dunno", instead of "true" or "false", and the doctor check no longer prints on nil.
2012-09-14Add Xcode 4.5 to StandardCompilers mapMisty De Meo
We now have several reports of compiler versions for the GM, e.g. Homebrew/homebrew#14944.
2012-09-10Clean up MacOS version method usageJack Nagel
The MacOS.version? family of methods (other than "leopard?") are poorly defined and lead to confusing code. Replace them in formulae with more explicit comparisons. "MacOS.version" is a special version object that can be compared to numerics, symbols, and strings using the standard Ruby comparison methods. The old methods were moved to compat when the version comparison code was merged, and they must remain there "forever", but they should not be used in new code. Signed-off-by: Jack Nagel <jacknagel@gmail.com>
2012-09-03Fix typo in MacOS.sdk_pathJack Nagel
/cc @adamv Signed-off-by: Jack Nagel <jacknagel@gmail.com>
2012-09-03Don't error out with Xcode 4.5Jack Nagel
c.f. Homebrew/homebrew#14603. Signed-off-by: Jack Nagel <jacknagel@gmail.com>
2012-09-02Change sdk detection to same syntax used elsewhere.Stephan Zeissler
This wasn't working for me on leopard with ruby 1.9.2. Closes Homebrew/homebrew#14636. Signed-off-by: Adam Vandenberg <flangy@gmail.com>
2012-08-31MacOS.sdk_path is unlicensed Xcode awareMax Howell
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 Homebrew/homebrew#14558.
2012-08-29superenv: build-environments that just workMax Howell
1. A minimal build environment, we don't set CFLAGS, CPPFLAGS, LDFLAGS, etc. the rationale being, the less that is set, the less variables we are introducing that can break builds. 2. A set of scripts that replace cc, ld, etc. and inject the -I, -L, etc. flags we need into the args passed to the build-tools. Because we now have complete control over compiler instantiations we do a variety of clean-up tasks, like removing bad flags, enforcing universal builds and ensuring makefiles don't try to change the order of library and include paths from ones that work to ones that don't. The previous ENV-system is still available when --env=std is specified. superenv applies to Xcode >= 4.3 only currently.
2012-08-27Use full paths to mdfind and pkgutilMax Howell
2012-08-26Ask the user for help if MacOS.compilers_standard? failsJack Nagel
Signed-off-by: Jack Nagel <jacknagel@gmail.com>
2012-08-25Miscellaneous bottle code cleanup.Mike McQuaid
2012-08-20Simplify MacOS.locateJack Nagel
Signed-off-by: Jack Nagel <jacknagel@gmail.com>
2012-08-20MacOS.dev_tools_path: return nil if not foundJack Nagel
This matches the semantics of other path methods, such as Xcode.prefix. Signed-off-by: Jack Nagel <jacknagel@gmail.com>
2012-08-18Deprecate MacOS.version? style methodsJack Nagel
Signed-off-by: Jack Nagel <jacknagel@gmail.com>
2012-08-18Add custom comparator for MacOS.versionJack Nagel
This will allow us to do comparisons like if MacOS.version >= :lion and hopefully deprecate the MacOS.<name>? family of methods, which are counterinitutive.
2012-08-17Add Xcode 4.4.1 to standard compilers mapJack Nagel
Signed-off-by: Jack Nagel <jacknagel@gmail.com>
2012-08-09dev_tools_path: Don't trust exit status of xcrunMisty De Meo
A user on IRC was getting strange results from MacOS.dev_tools_path. It turns out that xcrun's exit status is not always reliable - if xcrun is a shim and not able to locate the real xcrun, it will exit 0 despite not actually doing what it was asked. Instead check to see if the stout is empty.
2012-08-04Add better named aliases for macos_version_or_newer?Mike McQuaid
2012-08-01Move X11 machinery into MacOS::XQuartz namespaceJack Nagel
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-07-31xquartz_version: escape spaces for mdlsMisty De Meo
2012-07-31mdfind: Check if path is nil as well as emptyMisty De Meo
2012-07-30mdfind: don't stripMisty De Meo
Since we're splitting on newlines, stripping shouldn't be necessary.
2012-07-30mdfind: Handle multiple resultsMisty De Meo
Turns out mdfind can return multiple results on the commandline, if more than one app bundle matches. Fixes Homebrew/homebrew#13789.
2012-07-27Un-break MacOS.sdk_pathJack Nagel
MacOS.sdk_path is meant to return the SDK path that matches the version argument, so store the result in a hash. Fixes Homebrew/homebrew#13623. Signed-off-by: Jack Nagel <jacknagel@gmail.com>
2012-07-25Rename xctools_fucked?Jack Nagel
Signed-off-by: Jack Nagel <jacknagel@gmail.com>
2012-07-25Move Xcode and CLT modules to a new fileJack Nagel
Signed-off-by: Jack Nagel <jacknagel@gmail.com>
2012-07-25Split Xcode and CLT methods into separate modulesJack Nagel
Signed-off-by: Jack Nagel <jacknagel@gmail.com>
2012-07-25MacOS: avoid checking clt_version in clt_installed?Jack Nagel
Checking "not clt_version.empty?" is unnecessary if we are also checking that dev_tools_path is /usr/bin. Signed-off-by: Jack Nagel <jacknagel@gmail.com>
2012-07-25MacOS module cleanupsJack Nagel
Signed-off-by: Jack Nagel <jacknagel@gmail.com>
2012-07-12Update Xcode checks for 10.8Misty De Meo
2012-07-05Fix 'or' precedence errorsJack Nagel
Signed-off-by: Jack Nagel <jacknagel@gmail.com>
2012-07-01add method to find XQuartz versionCamillo Lugaresi
2012-07-01use XQuartz when presentCamillo Lugaresi
2012-06-30Clarify commentJack Nagel
Signed-off-by: Jack Nagel <jacknagel@gmail.com>
2012-06-30Address some style issues in MacOS moduleJack Nagel
Signed-off-by: Jack Nagel <jacknagel@gmail.com>
2012-06-29Add mdfind method to MacOS moduleJack Nagel
Signed-off-by: Jack Nagel <jacknagel@gmail.com>
2012-06-28Organize compiler methodsJack Nagel
Signed-off-by: Jack Nagel <jacknagel@gmail.com>