aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Homebrew/extend
AgeCommit message (Collapse)Author
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 #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 #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 #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 #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 #22443. Fixes #22249. Fixes #22424. Fixes #22506. Fixes #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
2013-09-11Implement ResourcesAdam Vandenberg
Closes #20212.
2013-09-06ENV: remove trailing slash from OpenGL header pathJack Nagel
2013-09-03ENV: convert values to strings in cc settersJack Nagel
2013-09-03ENV: use cc accessorJack Nagel
2013-09-01Remove HOMEBREW_CC warning from ENV.compilerMisty De Meo
ENV.compiler is called outside setting up the build environment, where values unsupported for user input might have been specified - for example, GNU GCC executables.
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-09-01Provide reusable GNU GCC constants in ENVMisty De Meo
2013-09-01Experimental support for non-Apple GCCsMisty De Meo
2013-09-01Allow forcing bottle installation.Mike McQuaid
2013-08-31Workaround for debrewAdam Vandenberg
See #21720.
2013-08-30ENV: only set fortran flags in one placeJack Nagel