aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Homebrew/macos.rb
AgeCommit message (Collapse)Author
2013-09-01Implement fails_with for non-Apple compilersMisty De Meo
This adds support for non-Apple GCC compilers in the fails_with code. A fails_with block for a non-Apple compiler looks like: fails_with :gcc => '4.8.1' do cause 'Foo' end Non-Apple compilers don't have build numbers, so compiler failures are based on version strings instead. Internally non-Apple compilers can be distinguished because they are passed around as strings instead of symbols. In addition, this alters the priority list for compilers, with the following changes: * Apple GCC 4.2 and LLVM-GCC swap positions, with GCC now taking priority. (Maybe LLVM-GCC should just go away.) * Non-Apple GCC compilers are ranked below GCC 4.2 but above LLVM-GCC and Apple GCC 4.0.
2013-08-15Add MacOS.preferred_archMisty De Meo
Replaced the plethora of ternaries we've used all over the place to determine whether x86_64 or i386 is called for.
2013-07-26MacOS.locate: search HOMEBREW_PREFIX before xcrunMisty De Meo
Since xcrun doesn't work on CLT-only systems. Querying HOMEBREW_PREFIX first before xcrun is much faster for that case.
2013-07-21Cache pkgutil results at the sourceJack Nagel
2013-07-21Existence of directory is implied by existence of executablesJack Nagel
2013-07-21Pull another unwieldy condition into a methodJack Nagel
2013-07-21These should be integersJack Nagel
2013-07-20Remove unnecessary use of globals in compiler version methodsJack Nagel
2013-07-20Don't report llvm-gcc if it's actually clangJack Nagel
2013-06-26Detect Command Line Tools on Mavericks.David Rice
Closes Homebrew/homebrew#20774.
2013-06-15Push MacOS.cat logic down into MacOS::VersionJack Nagel
2013-06-15Avoid unnecessary float to string conversionJack Nagel
2013-06-14Move pretty_name into MacOS::VersionAdam Vandenberg
Closes Homebrew/homebrew#20507. Signed-off-by: Adam Vandenberg <flangy@gmail.com>
2013-06-14Use Hardware::CPU moduleJack Nagel
2013-06-13Xcode 4.6.3Jack Nagel
2013-06-11Recognize OS X 10.9 and Xcode 5.0Clemens Gruber
Closes Homebrew/homebrew#20410. Closes Homebrew/homebrew#20401. Signed-off-by: Jack Nagel <jacknagel@gmail.com>
2013-06-06Add MacOS.pretty_nameJack Nagel
2013-06-06Decouple bottle tags from MacOS.catJack Nagel
2013-06-06Move oldest_cpu to HardwareJack Nagel
2013-06-01Require hardware where it is neededJack Nagel
2013-05-25Remove cat_without_underscores bottle methods.Mike McQuaid
2013-05-11Fix --build-bottle CFLAGS.Mike McQuaid
The CFLAGS were previously not generic enough. References Homebrew/homebrew#18944. References Homebrew/homebrew#19179.
2013-05-08Add gcc-4.0 to fails_withMisty De Meo
2013-04-15Update for Xcode 4.6.2Ashley Towns
Closes Homebrew/homebrew#19227. Signed-off-by: Jack Nagel <jacknagel@gmail.com>
2013-04-15Don't create MacOS.version multiple timesJack Nagel
2013-04-02CompilerSelector: don't use non-existent compilersJack Nagel
2013-03-23Hardware: separate out CPU values into CPU moduleMisty De Meo
* CPU functions now exist in Hardware::CPU * Added compatibility functions in compat/hardware_compat.rb * Names are less specific to Mac hardware, e.g. CPU.family instead of Hardware.intel_family * Hardware::CPU.family works for both Intel and PowerPC * New helper methods on CPU, like .sse4? and .altivec? Signed-off-by: Misty De Meo <mistydemeo@gmail.com>
2013-03-14Xcode 4.6.1 is releasedJack Nagel
Closes Homebrew/homebrew#18481.
2013-03-11Portability fixes to run Homebrew on Linux systemsShaun Jackman
Closes Homebrew/homebrew#16344. Signed-off-by: Mike McQuaid <mike@mikemcquaid.com>
2013-03-11Don't run certain functions on non-MACOS.Mike McQuaid
2013-03-01Support 32-bit 10.6 bottles.Mike McQuaid
Closes Homebrew/homebrew#17735. Signed-off-by: Mike McQuaid <mike@mikemcquaid.com>
2013-03-01Add non-/usr/local bottles support.Mike McQuaid
Signed-off-by: Mike McQuaid <mike@mikemcquaid.com>
2013-02-28Exclude all located superenv paths.Mike McQuaid
The previous fix only looked at the current Homebrew but we should discard hits from other installations of Homebrew too.
2013-02-10Don't reinvent IndexError hereJack Nagel
2013-02-07superenv bin directory is under HOMEBREW_REPOSITORYJack Nagel
2013-02-07MacOSVersion -> MacOS::VersionJack Nagel
2013-02-06MacOS: cache calls to mdfindJack Nagel
2013-02-01Don't call methods on xcrun_path if it's nilJack Nagel
2013-01-31Don't let xcrun find superenv tools.Mike McQuaid
Causes an infinite loop when trying to find e.g. missing gcc. Closes Homebrew/homebrew#17426 References Homebrew/homebrew#17455
2013-01-29Don't use underscores in (new) bottle filenames.Mike McQuaid
Closes Homebrew/homebrew#14270
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>