aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Homebrew/extend
AgeCommit message (Collapse)Author
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
2013-08-30ENV: use fc accessorJack Nagel
2013-08-30Fix conditional in ENV.fortranJack Nagel
2013-08-30ENV: use cflags setterJack Nagel
2013-08-30ENV: use cc accessorJack Nagel
2013-08-30ENV: add cc and cxx settersJack Nagel
2013-08-30Simplify handling custom FCFLAGSJack Nagel
2013-08-30Remove PATH hack from ENV.fortranJack Nagel
2013-08-30Unify compiler selection logicMisty De Meo
This unifies the logic for selecting a compiler between superenv and stdenv. A variation of superenv's `determine_cc`, which now returns a symbol, has been moved into the shared ENV extension. Stdenv uses the result of this directly (as it's always used symbols), while superenv translates that back into a compiler string. This also has the effect of disabling HOMEBREW_USE_(gcc|llvm|clang) in stdenv, which have already been marked as deprecated for some time, and enables the HOMEBREW_CC= environment variable syntax from superenv in stdenv.
2013-08-30Add --cc= syntax for selecting compilersMisty De Meo
2013-08-29Remove default values from ENV.{cc,cxx}Jack Nagel
Closes #22138.
2013-08-28Allow building bottles with custom architecturesMisty De Meo
This allows overriding the "oldest CPU" behaviour - for instance, to build Intel bottles for a newer CPU than Core 2, to build a PPC bottle with or without Altivec on the same computer, etc.
2013-08-26Simplify conditionJack Nagel
2013-08-26Only perform coercion to string once in ENV.{append,prepend}Jack Nagel
2013-08-25superenv: support PPC bottlesMisty De Meo
Allows for building bottles on PPC both with and without Altivec. This is currently not active but will be enabled once superenv is stable on Leopard.
2013-08-23Always pass -headerpad_max_install_names to the linkerJack Nagel
We use install_name_tool pretty liberally, so we need to take steps to ensure libraries and executables are always linked with this flag. Closes #20233. Fixes #17984. Fixes #22078.
2013-08-22superenv: fix CC value for ENV.gccMisty De Meo
'gcc' could refer to anything of llvm-gcc, clang, or gcc-4.0 on various Xcode versions.
2013-08-19Use ENV.prepend_pathJack Nagel