aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Homebrew/extend
AgeCommit message (Collapse)Author
2012-02-17This should be a regexAdam Vandenberg
2012-02-18OTT handling for various Xcode-4.3/CLI-Tools edge casesMax Howell
Also xcrun can only exist at /usr/bin/xcrun. Most of these edges are non-buildable environments, but I didn't know that when writing it, so it may as well stay, since it still does make brew --env more correct.
2012-02-17Find xcrun if user doesn't ever install Xcode 4.3 helper toolsMax Howell
2012-02-17Work with Xcode 4.3 if user didn't install helper toolsMax Howell
We ask Spotlight to find Xcode and use that path, neat right?
2012-02-16Use xcrun; Ensure clang is the default compiler with Xcode 4.3Max Howell
Using xcrun as a proxy to execute the compiler tools is per its design. This means you can't treat ENV['CC'] as a path anymore, but I think I found the cases this was being expected and corrected them. It was not proper anyway to assume the variable was a path, it can be anything. Like a proxy. Like xcrun. Also more thoroughly clear ENV.
2012-02-16Unset CLICOLOR_FORCE in the build environmentJack Nagel
If we're going to unset GREP_OPTIONS we may as well unset this one too, as it causes similar issues. Recent autoconf unset both of these. Fixes Homebrew/homebrew#8165. Signed-off-by: Jack Nagel <jacknagel@gmail.com>
2012-02-16Find the dev tools, even with Xcode 4.3Max Howell
Fixes Homebrew/homebrew#9179.
2012-02-16Pre-refactor TidyMax Howell
2012-02-16Use -Os rather than -O3Max Howell
This was probably a stupid decision in the first place. Who wants lengthy compile times for debatable gain? Apple use Os in all Xcode projects, so I'm guessing its the best choice. Also I have long suspected the Image Magick performance issues Homebrew is supposedly susceptible to were because of O3.
2012-02-16Delete ENV[GREP_OPTIONS] and the related doctor checkMax Howell
Can break CMAKE builds.
2012-02-12ENV: fix typoJack Nagel
2012-02-12Pathname.install_symlinkAdam Vandenberg
2012-02-12Add ENV.cxxflagsJack Nagel
Useful when CXXFLAGS has diverged fom CFLAGS, e.g. via ENV.append, and also it is nice for CXX to have symmetry with CC. Signed-off-by: Jack Nagel <jacknagel@gmail.com>
2012-02-11Recognize dist suffixAdam Vandenberg
2012-02-10Pathname: silence install-info outputJack Nagel
Signed-off-by: Jack Nagel <jacknagel@gmail.com>
2012-02-09Allow multiple arguments to installAdam Vandenberg
2012-02-08this was out of balanceAdam Vandenberg
2012-02-08Pathname: support .tar.Z extensionAdam Vandenberg
2012-02-03don't complain if args are emptyAdam Vandenberg
2012-02-03Move old ENV.use_foo? compiler methods to compatJack Nagel
Signed-off-by: Jack Nagel <jacknagel@gmail.com>
2012-02-01keg: handle the info directory file properlyNicolas Despres
If HOMEBREW_KEEP_INFO environment variable is set: - Do not symlink the info directory file (aka 'share/info/dir') otherwise it gets overwritten by next installed brew. - Install an entry in the directory for each linked info file when the brew is linked. - Uninstall the entry when the brew is unlinked. Closes Homebrew/homebrew#9700. Signed-off-by: Jack Nagel <jacknagel@gmail.com>
2012-02-01Pathname: remove trailing spacesNicolas Despres
Signed-off-by: Jack Nagel <jacknagel@gmail.com>
2012-01-19Don't append an empty value to CFLAGSJack Nagel
Appending an empty string results in an extraneous space character. Signed-off-by: Jack Nagel <jacknagel@gmail.com>
2012-01-16Use more generic cflags when building bottles.Mike McQuaid
Signed-off-by: Mike McQuaid <mike@mikemcquaid.com>
2012-01-16Add option for building bottles.Mike McQuaid
Signed-off-by: Mike McQuaid <mike@mikemcquaid.com>
2012-01-16Don't try and use GCC on Xcode 4.2: it's gone Jim.Mike McQuaid
Closes Homebrew/homebrew#9622. Signed-off-by: Mike McQuaid <mike@mikemcquaid.com>
2012-01-14Fix libinet version detectionMax Howell
2012-01-12pathname: recognize ".cpio.*" double extensionsJack Nagel
Just a cosmetic nicety. Signed-off-by: Jack Nagel <jacknagel@gmail.com>
2012-01-11ENV.gcc: search HOMEBREW_PREFIX/bin for gcc-4.2Misty De Meo
Allow the use of a Homebrewed gcc-4.2 in order to support homebrew-alt's apple-gcc42 formula. This also removes the :force filtering for the gcc-4.2 check error. Closes Homebrew/homebrew#9384. Signed-off-by: Misty De Meo <mistydemeo@gmail.com>
2012-01-02Standardize 32 bit build switchAdam Vandenberg
2011-12-26Resolve multi-level gcc symlinksJack Nagel
In later XCodes, gcc is a symlink to gcc-4.2 which is itself a symlink to llvm-gcc, so it is necessary to resolve multiple symlinks. Signed-off-by: Jack Nagel <jacknagel@gmail.com>
2011-12-14Remove Clang-specific cflags when switching compilersOleg Oshmyan
Signed-off-by: Adam Vandenberg <flangy@gmail.com>
2011-12-13ENV: update and clean up optimization flagsOleg Oshmyan
- Fix ENV.libxml2 to update CPPFLAGS rather than CFLAGS - Methods ENV.{gcc*,llvm,clang} now reset CPU-specific optimization flags on every call. Closes Homebrew/homebrew#8105. Signed-off-by: Jack Nagel <jacknagel@gmail.com>
2011-12-09Add support for xz-compressed tarballsJack Nagel
Rationale: some software (e.g. GNU Coreutils, GnuTLS 3.x), have started distributing _only_ xz-compressed tarballs. There is no system XZ utility provided by OS X, but it is necessary so that we can continue to provide formulae for this software. If XZUtils isn't installed, we abort and prompt the user to `brew install xz`. The `xz` command itself doesn't do any untarring, so we write the decompressed archive to stdout and pipe it to tar.
2011-12-01ENV: fix llvm-gcc regexpMisty De Meo
Fixes: Homebrew/homebrew#8890. Closes Homebrew/homebrew#8893. Signed-off-by: Charlie Sharpsteen <source@sharpsteen.net>
2011-11-27Fix array concatenation in ARGV.filter_for_dependenciesCharlie Sharpsteen
Gah. This was supposed to be in the last commit, but I forgot to `--amend` it.
2011-11-27Don't suppress `--verbose` while installing depsCharlie Sharpsteen
Unless the `--quieter` flag is passed. Closes Homebrew/homebrew#8723.
2011-11-27Suppress `--devel` while installing dependenciesCharlie Sharpsteen
Unless the dependency is explicitly passed to `brew install --devel`.
2011-11-27Re-work ARGV filtering to properly handle --HEADCharlie Sharpsteen
Previously, stripping arguments like `--HEAD` for dependencies failed because that flag affects the installation prefix encoded into formula objects. The previous implementation of `ARGV` filtering tried to contain all changes to a single method call before the `FormulaInstaller` forks. This update spreads things out a bit: - The Homebrew `ARGV` extension adds a new method, `filter_for_dependencies` which strips flags like `--HEAD`, yields to a block, then restores the original contents of ARGV. - The `explicitly_requested?` test, which returns true or false depending on if a formula object is a member of `ARGV.formulae`, is now a method of `Formula` objects. - `FormulaInstaller` objects now execute the installation of dependencies inside an `ARGV.filter_for_dependencies` block if the dependency was `explicitly_requested?`. Fixes Homebrew/homebrew#8668. Closes Homebrew/homebrew#7724.
2011-11-23ENV.rb: Fix typo in Fortran environment variablesCharlie Sharpsteen
`FFFLAGS` should be `FFLAGS`.
2011-11-21Define and use ARGV.build_devel?Jack Nagel
Often it is useful to provide a development build in addition to the stable release or HEAD download. Signed-off-by: Jack Nagel <jacknagel@gmail.com> Signed-off-by: Adam Vandenberg <flangy@gmail.com>
2011-10-04pathname.rb: Fix spelling for permssionsDustin Koupal
Closes Homebrew/homebrew#7970. Signed-off-by: Charlie Sharpsteen <source@sharpsteen.net>
2011-09-21Correctly parse ImageMagick bottle versionJack Nagel
Commit 2695821e98 ("Only use the bottle if its version is up-to-date") essentially broke the ImageMagick bottle, because the version parsing logic returns "1" as the bottle version. Fixing this requires only a slight modification to the bottle URL regex; includes a test. Signed-off-by: Jack Nagel <jacknagel@gmail.com>
2011-09-10With xcodebuild don't set CC, CXX, etc.Max Howell
The compiler setting in the xcodeproj is overridden by the CC setting in the environment. This is a bit insane IMO since the xcodeproj itself has detailed decisions about what tools to use. Fixes Homebrew/homebrew#6406.
2011-09-09Tune optimisations for sandybridgeMax Howell
2011-09-06Allow :force for ENV.gccMax Howell
This is used with fails_with_llvm so that if GCC cannot be found (and we suspect this is the case with Xcode 4.2) the build will fail. Quite possibly it should be the default.
2011-09-06Remember compiler setting when it is changed via eg. ENV.gccMax Howell
Thus it will be correct after the setting is changed.
2011-09-02Allow 'brew link' to work with URL-based formulaeJustin Hileman
Closes Homebrew/homebrew#7373. Signed-off-by: Max Howell <max@methylblue.com> I added some comments.
2011-09-02Remove Xcode dependence from ENV.rbMax Howell
Fixes Homebrew/homebrew#7329. Fixes Homebrew/homebrew#7269. Fixes Homebrew/homebrew#7236. Also quite a lot of tidy. This should all work fine. I think we only started referring into xcode_prefix because LLVM used to not be linked into /usr/bin. But for sure this is no longer true. If someone out there doesn't link cc etc. into /usr/bin then I guess we can revise this patch but it's not something we officially supported before, it was just an accident. I added a test step in the init code so that a working compiler will always be selected. This is mainly a fallback for old Xcodes. Though a comment in another area of the code suggested Xcode 3 on 10.5 doesn't have LLVM so…
2011-09-01Actually obey --use-gcc flagMax Howell
Schoolboy error.