aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Homebrew/build.rb
diff options
context:
space:
mode:
authorJack Nagel2013-08-19 12:32:56 -0500
committerJack Nagel2013-08-19 12:32:56 -0500
commit84a00aa7972cbccd0722ee686a97e3d55fad5fd6 (patch)
tree6dc35114694cbde18bb20448c0ec0816aaf36d10 /Library/Homebrew/build.rb
parentb4a5fb4d3ad01d3570ad1bc575f4bc347c4e71a3 (diff)
downloadhomebrew-84a00aa7972cbccd0722ee686a97e3d55fad5fd6.tar.bz2
Make Superenv activation explicit
Diffstat (limited to 'Library/Homebrew/build.rb')
-rwxr-xr-xLibrary/Homebrew/build.rb4
1 files changed, 3 insertions, 1 deletions
diff --git a/Library/Homebrew/build.rb b/Library/Homebrew/build.rb
index 7d88a74cf..bb4325e5b 100755
--- a/Library/Homebrew/build.rb
+++ b/Library/Homebrew/build.rb
@@ -34,6 +34,7 @@ def main
require 'hardware'
require 'keg'
+ require 'superenv'
# Force any future invocations of sudo to require the user's password to be
# re-entered. This is in-case any build script call sudo. Certainly this is
@@ -106,7 +107,8 @@ class Build
keg_only_deps = deps.map(&:to_formula).select(&:keg_only?)
pre_superenv_hacks
- require 'superenv'
+
+ ENV.activate_extensions!
deps.map(&:to_formula).each do |dep|
opt = HOMEBREW_PREFIX/:opt/dep