aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Homebrew/extend
AgeCommit message (Collapse)Author
2013-12-06Help autoconf find m4 on Xcode-only systemsJack Nagel
Closes Homebrew/homebrew#24904.
2013-12-03Make CompilerSelectionError an InstallationErrorJack Nagel
Fixes Homebrew/homebrew#19962.
2013-12-02Fix typoJack Nagel
2013-12-02Yielded value is not usedJack Nagel
2013-11-29support .lz archivesAdam Vandenberg
Closes Homebrew/homebrew#24775.
2013-11-27Require Formula before using itJack Nagel
2013-11-27Adjust optimization flags if the CPU does not support SSE4Jack Nagel
Tentatively fixes Homebrew/homebrew#21778, Homebrew/homebrew#24363.
2013-11-21Remove commentJack Nagel
2013-11-20Simplify passing archflags to cc wrapperJack Nagel
2013-11-20Move optimization flag selection out of cc wrapperJack Nagel
The mapping of architectures to optimization flags is now retrieved from Hardware::CPU and the selected flags are passed as an environmen variable, rather than duplicated in the cc wrapper and re-calculated on every invocation of the compiler. Closes Homebrew/homebrew#24540.
2013-11-17Export HOMEBREW_PREFIX to build environmentJack Nagel
Constructing the path relative to a file in the repository is incorrect on some supported configurations (i.e., the repository is located in a different place than the prefix). Closes Homebrew/homebrew#24418.
2013-11-15Combine X11 path conditionalsJack Nagel
2013-11-15Improve heuristic for detecting configureJack Nagel
2013-11-14Recognized .pax.gz extensionJack Nagel
2013-11-12Better documentation for no-op superenv methodsJack Nagel
2013-11-12Allow changing the optimization level under superenvJack Nagel
2013-11-12Simplify ENV.0x methods in stdenvJack Nagel
2013-11-12Add ENV.O0 to stdenvJack Nagel
2013-11-11Group public ENV methods togetherJack Nagel
2013-11-11Remove outdated commentJack Nagel
2013-11-08superenv: fix type errorJack Nagel
This is a string since it is used to match string keys in a hash.
2013-11-07superenv: set cc/cxx based on actual compiler.Mike McQuaid
Closes Homebrew/homebrew#23449.
2013-11-04Disable make_fuss when running configure invoked by makeJack Nagel
The cc wrapper's make_fuss is only enabled when HOMEBREW_CCCFG contains 'O', which is set by the make wrapper. This means it is disable when running configure scripts. However, this does not include configure scripts invoked by make, which inherit the value of HOMEBREW_CCCFG from the make process. make_fuss will be enabled for these scripts, cause breakage. Configure scripts generated by autoconf 2.56 (November 2002) or later export DUALCASE into the environment of subprocesses. This variable is only used by the MKS shell, so we can use it as a heuristic to determine if we are running as a subprocess of a configure script.
2013-11-02stdenv: drop space between "-isystem" and path.Xiyue Deng
* This is consistent with superenv.
2013-10-30Cleanup use of some global constants.Mike McQuaid
2013-10-27Make stdenv handling less intrusive.Xiyue Deng
* Don't encode "-Qunused-arguments", as this is only supported in Clang and will break building when C/C++ compiler is switched during the process, e.g. building gcc. The warning is harmless without "-Werror".
2013-10-26Clang standard library selection.Xiyue Deng
* Add new ENV function for selecting stdlib for Clang. - The selection is no-op for non-system-clang compilers. - Both superenv and stdenv are handled. * Add new HOMEBREW_CCCFG flag and ccwrapper handling.
2013-10-26C++11 support.Xiyue Deng
* Add options and ENV method to specify building in C++11 mode. - Set C++ compiler flags to enable C++11 mode. - To add options to support C++11 mode, a formula can now use option :cxx11 to provide "--c++11" option, and detect and enable C++11 support in install method using ENV.cxx11 if build.cxx11? Closes Homebrew/homebrew#22453.
2013-10-19Move verbose ENV setup out of brew.rbJack Nagel
2013-10-18Rename MacOS to OS::MacJack Nagel
2013-10-18Add OS.mac? and OS.linux?Jack Nagel
2013-10-16Allow older non-Apple GCCs to build thingsMisty De Meo
2013-10-14Pathname: removed unused method aliasJack Nagel
2013-10-13superenv: add gcc-4.0 to superenvMisty De Meo
2013-10-10Pathname: add cp_path_sub method.Mike McQuaid
This method allows copying a file to a new location by performing a substitution on the pathname.
2013-10-10InstallRenamed: don't overwrite etc files; rename.Mike McQuaid
If an etc file exists on installation instead of overwriting it (or requiring all the manual checks in formula) simply copy it with the extension `.default` appended.
2013-10-07Use MacOS.locate to find otoolJack Nagel
Fixes Homebrew/homebrew#23111.
2013-10-06Only track C++ stdlibs for C++ codeMisty De Meo
After a formula is built, scan all mach-o files for dynamic links to see if any of them point to a C++ stdlib (libc++ or libstdc++). If one of them is linked, record that information in the formula's tab. This replaces the old behaviour where all files were assumed to be C++ code, and stdlibs were always tracked regardless of whether they were actually linked against. This also modifies the way that tabs are written - now tabs are written with the stdlib field null, and values are only written if an stdlib is detected.
2013-10-06FileUtils#copy_metadata: update comment, versionMisty De Meo
2013-10-04superenv: fix hardcoded X11 aclocal pathJack Nagel
2013-10-04ENV.x11: only use SDK when CLT is missing and X11 is from AppleJack Nagel
2013-10-04ENV.x11: always add include/freetype2 to CPPFLAGSJack Nagel
2013-10-02Pass the mktemp prefix as an argumentJack Nagel
2013-10-02Fix mktemp directory namingJack Nagel
2013-09-28Move ld64 into SharedEnvExtensionMisty De Meo
Superenv is being tested on Xcode 3.1.4, so this needs to be supported in both ENVs, not just stdenv.
2013-09-19ENV: Ensure @compiler is setMisty De Meo
If @compiler isn't set/checked by ENV.compiler and the ENV.clang/etc. methods, ENV.compiler may return unexpected results after fails_with picks a fallback compiler. See Homebrew/homebrew#22674.
2013-09-17Allow partial installation of resourcesJack Nagel
2013-09-17superenv: don't set CC in ENV.clang/etc.Misty De Meo
These methods were overriding CC and causing superenv to potentially skip the compiler wrapper - especially if no wrapper existed for the compiler being used, e.g. GNU GCCs. Closes Homebrew/homebrew#22443. Fixes Homebrew/homebrew#22249. Fixes Homebrew/homebrew#22424. Fixes Homebrew/homebrew#22506. Fixes Homebrew/homebrew#22521. Fixes Homebrew/versions#207.
2013-09-17Move CompilerSelector logic into build env setupMisty De Meo
This moves the CompilerSelector fails_with logic into the build environment setup, making the compiler selection available before performing actions that depends on knowing what the compiler is, e.g. setting up PATH. ENV.setup_build_environment now optionally takes a Formula argument to provide the information necessary to do the fails_with, and the new ENV.validate_cc! extracts the fails_with logic from Build.install.
2013-09-16Open files in binary mode where appropriateJack Nagel