aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Homebrew
AgeCommit message (Collapse)Author
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 #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 #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-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-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-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 #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 #21921. Signed-off-by: Jack Nagel <jacknagel@gmail.com>
2013-08-19audit: activate ENV extensionsJack Nagel
2013-08-19Remove ENV.expand_xcrunJack Nagel
This method is currently unused and after inspecting the git history, it appears it may never have been used at all.
2013-08-19Initial tests for superenv sanityJack Nagel
2013-08-19No longer call ENV.userpaths! in requirementsJack Nagel
Instead we use which with a custom PATH.
2013-08-19More robust implementation of ENV.with_build_environmentJack Nagel
2013-08-19Rename HomebrewEnvExtension to StdenvJack Nagel
2013-08-19Move common ENV methods to a shared moduleJack Nagel
2013-08-19Move superenv.rb to extend/ENV/super.rbJack Nagel
2013-08-19Fix superenv ENV[] hackJack Nagel
We override ENV[] to always return strings under superenv, because legacy formulae assume that CFLAGS, etc. are non-nil. However, the current implementation has a bug. If I simply concatenate ENV['CFLAGS'] with another string, it mutates ENV['CFLAGS']: irb> ENV['CFLAGS'] => "" irb> ENV['CFLAGS'] + 'a' => "a" irb> ENV['CFLAGS'] => "a" Instead, let's simply return an empty string if the key doesn't exist. This is sufficient because the following are equivalent: 1. ENV['CFLAGS'] += "string" 2. ENV['CFLAGS'] = ENV['CFLAGS'] + "string"
2013-08-19Re-enable superenv ENV[] hackJack Nagel
2013-08-19Reference self, not ENV, in ENV.fortranJack Nagel
2013-08-19Reference self rather than ENV in Superenv moduleJack Nagel
We want to be able to extend this module onto an arbitrary hash and use it without mutating ENV, for testing purposes.
2013-08-19Move extra stdenv setup to extended callbackJack Nagel
2013-08-19Move common stuff to extend/ENV.rbJack Nagel
2013-08-19Make Superenv activation explicitJack Nagel
2013-08-19Move superbin into Superenv moduleJack Nagel
2013-08-19Move setup into an extended callbackJack Nagel
2013-08-19Extend Superenv onto ENV instead of defining it on the singleton classJack Nagel
2013-08-17let inreplace take a symbolJason Whittle
As discussed in https://github.com/mxcl/homebrew/pull/21936 Closes #21942. Signed-off-by: Adam Vandenberg <flangy@gmail.com>
2013-08-17clojure: remove, blacklist in favour of leiningen.Chris Allen
Closes #21733. Closes #21782. Signed-off-by: Mike McQuaid <mike@mikemcquaid.com>
2013-08-16This is a backreference, not an embedded NULJack Nagel
2013-08-15ENV.universal_binary: use as_arch_flagsMisty De Meo
2013-08-15LinuxCPUs: provide stub methodsMisty De Meo
2013-08-15superenv: use Hardware::CPU.universal_archsMisty De Meo
This defines the new HOMEBREW_ARCHS environment variable, which is currently only set during universal builds, so that the tool wrappers no longer need to hardcode i386/x86_64.
2013-08-15Add Hardware::CPU.universal_archsMisty De Meo
2013-08-15Mach: improve testsMisty De Meo
2013-08-15Mach: add as_cmake_arch_flags helperMisty De Meo
2013-08-15Mach: improve PPC arch detectionMisty De Meo
Also adds some reusable constants into the global Hardware::CPU namespace, available on both OS X and Linux.
2013-08-15Add MacOS.preferred_archMisty De Meo
Replaced the plethora of ternaries we've used all over the place to determine whether x86_64 or i386 is called for.