aboutsummaryrefslogtreecommitdiffstats
path: root/Library
AgeCommit message (Collapse)Author
2013-08-30Simplify handling custom FCFLAGSJack Nagel
2013-08-30Remove PATH hack from ENV.fortranJack Nagel
2013-08-30Show list of dependencies prior to installing themkaizoku
Closes Homebrew/homebrew#22205. Signed-off-by: Adam Vandenberg <flangy@gmail.com>
2013-08-30Use system path for more tools, for Linux compat.Dan Hughes
Closes Homebrew/homebrew#22196. Signed-off-by: Adam Vandenberg <flangy@gmail.com>
2013-08-30Fix wrong assumption in MacOS::Xcode.without_clt?Jack Nagel
Fixes Homebrew/homebrew#22221.
2013-08-30Document --cc= in the manpageMisty De Meo
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-29universal_archs returns ArchitectureListExtensionShaun Jackman
Closes Homebrew/homebrew#22210. Signed-off-by: Misty De Meo <mistydemeo@gmail.com>
2013-08-29Remove default values from ENV.{cc,cxx}Jack Nagel
Closes Homebrew/homebrew#22138.
2013-08-29superenv: fix no-op system path filteringJack Nagel
2013-08-29Allow conflicts_with to accept multiple formula namesJack Nagel
Closes Homebrew/homebrew#22202.
2013-08-28Check for valid --bottle-arch= when buildingMisty De Meo
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-28superenv: also filter out -mcpu=Misty De Meo
On PPC, -mcpu is the preferred equivalent to -march.
2013-08-28cleaner: don't change permissions on paths marked skip_cleanJack Nagel
2013-08-28Don't consider files in the Cellar as RacksSamuel John
Otherwiese a `Cellar/.DS_Store` may lead to an error about `.ds_store.rb` not found during `brew upgrade`.
2013-08-27Revert "superenv: fix cpp shim"Misty De Meo
This reverts commit dca89db55189a34f1c02d3f12a84eda8d81fd6d1.
2013-08-27superenv: fix cpp shimMisty De Meo
This sets cpp to use the compiler as cpp, and works with scripts which pass values to cpp on stdin as well as with file arguments. Closes Homebrew/homebrew#22155.
2013-08-27PythonInstalled: set PYTHONPATH, not prependSamuel John
An issue could arise when brewing a formula that has Python 2.x and 3.x support and 2.x is the system Python but 3.x is a brewed one. The idea about prepending was that user configured PYTHONPATH could be used in formulae. Now, instead and if needed, inside the `python do` block one can still append to PYTHONPATH.
2013-08-27PythonInstalled, name includes modulesSamuel John
If `depends_on :python => ['modulename', :optional]` then the generated option is now `--with-python-modulename`, so that it is possible to actually make depending on python modules optional. Further, `brew options` becomes more meaningful.
2013-08-26Simplify conditionJack Nagel
2013-08-26Prefer interpolation to concatenationJack Nagel
2013-08-26Only perform coercion to string once in ENV.{append,prepend}Jack Nagel
2013-08-26Add some tests for ENV.{append,prepend} behaviorJack 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-24Fix const reference in machAdam Vandenberg
Fixes Homebrew/homebrew#22090.
2013-08-23PythonInstalled: Unset PYTHONPATH for `satisfied?`Samuel John
When a formula `depends_on :python` *and* `depends_on :python3` the `modify_build_environment` method sets the PYTHONPATH and the Python 3.x requirement then fails because it finds the sitecustomize.py from Python 2.x in the PYTHONPATH.
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 Homebrew/homebrew#20233. Fixes Homebrew/homebrew#17984. Fixes Homebrew/homebrew#22078.
2013-08-23zsh completion for brew reinstallGreg Sieranski
Closes Homebrew/homebrew#22061. Signed-off-by: Samuel John <github@SamuelJohn.de>
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-22Add an accessor to make the intent more clear hereJack Nagel
2013-08-22Options: ensure copies do not share the underlying collectionJack Nagel
2013-08-22Demonstrate the Set-like nature of Options collectionsJack Nagel
Options collections are backed by Sets, and thus trying to push a new option with a name that duplicates an existing option cannot succeed. Later, we can exploit this behavior and remove some conditionals.
2013-08-21adding reinstall to bash completionGreg Sieranski
Closes Homebrew/homebrew#22051. Signed-off-by: Samuel John <github@SamuelJohn.de>
2013-08-21brew reinstall: Is able to work for all formulaeSamuel John
... and not just installed ones. Of course, strictly speaking, reinstalling not-yet-installed formulae makes semantically little sense, but the big win is that we can tell people (after we have resolved an issue) to `brew reinstall <formula>` and even if a user has removed that formula in the meantime, reinstall will do the right thing. Basically adding --force to uninstall. I think this makes reinstall more robust.
2013-08-21Revert "brew reinstall: Is able to work for all formulae"Samuel John
This reverts commit 865f763ae59fdf32f496ca416fd98117f3370f86.
2013-08-21brew reinstall: Is able to work for all formulaeSamuel John
... and not just installed ones. Of course, strictly speaking, reinstalling not-yet-installed formulae makes semantically little sense, but the big win is that we can tell people (after we have resolved an issue) to `brew reinstall <formula>` and even if a user has removed that formula in the meantime, reinstall will do the right thing. Basically adding --force to uninstall. I think this makes reinstall more robust.
2013-08-20Use ENV.update to restore removed variablesJack Nagel
2013-08-20Avoid the need to compact the expanded deps arrayJack Nagel
2013-08-20brew create: Mention the example-formulaSamuel John
2013-08-20man brew: Mention the example-formula.rbSamuel John
2013-08-20Adding an example-formula.rb to show all featuresSamuel John
A huge cheat sheet. Kind of.
2013-08-19Add tests for ENV.{append,prepend}_pathJack Nagel
2013-08-19Use ENV.prepend_pathJack Nagel
2013-08-19Use ENV.append_pathJack Nagel
2013-08-19Add ENV.append_pathJack Nagel
2013-08-19Fix typoJack Nagel
2013-08-19which in requirements always uses ORIGINAL_PATHS nowJack Nagel
Fixes Homebrew/homebrew#22002.
2013-08-19Use File::PATH_SEPARATOR globally instead of ':'Amos Wenger
On Unix, the path separator is ':', whereas on Windows, it is ';'. This is the first of a series of patch to bring macbrew's and winbrew's codebases closer together. The main places the magic constant ':' was being used were: - the $PATH environment variable - CMAKE-related environment variables - pkg-config related environment variables Closes Homebrew/homebrew#21921. Signed-off-by: Jack Nagel <jacknagel@gmail.com>