diff options
| author | Max Howell | 2012-08-28 13:46:29 -0400 |
|---|---|---|
| committer | Max Howell | 2012-08-29 12:41:34 -0400 |
| commit | 36de29f65eb6a5fa6a42fb8b5e71f123c515243d (patch) | |
| tree | ca5eaeb96bb721a524aa7d4d6e975a0c71c150d0 /Library/Homebrew | |
| parent | 65d195dcaaa4304e127e0a264cf97ad7b6a7fd83 (diff) | |
| download | brew-36de29f65eb6a5fa6a42fb8b5e71f123c515243d.tar.bz2 | |
Force --env=std for stuff using scons, etc.
Python et al, require stdenv because otherwise pip, gem, etc. don't work. Can be fixed, just I'm not doing it now.
We want a DSL to do this but I couldn't be bothered to make that work etc. I want to commit. Apologies.
Diffstat (limited to 'Library/Homebrew')
| -rwxr-xr-x | Library/Homebrew/build.rb | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/Library/Homebrew/build.rb b/Library/Homebrew/build.rb index 6742f4203..fa55480bb 100755 --- a/Library/Homebrew/build.rb +++ b/Library/Homebrew/build.rb @@ -50,6 +50,12 @@ at_exit do end def install f + # TODO replace with Formula DSL + # Python etc. build but then pip can't build stuff. + # Scons resets ENV and then can't find superenv's build-tools. + stdenvs = %w{fontforge python python3 ruby ruby-enterprise-edition jruby} + ARGV.unshift '--env=std' if stdenvs.include?(f.name) or f.recursive_deps.detect{|d| d.name == 'scons' } + keg_only_deps = f.recursive_deps.uniq.select{|dep| dep.keg_only? } require 'superenv' |
