aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Homebrew/macos.rb
AgeCommit message (Collapse)Author
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>
2012-06-27Extract MacOS module to separate fileAdam Vandenberg