diff options
| author | Jack Nagel | 2014-05-26 21:21:01 -0500 |
|---|---|---|
| committer | Jack Nagel | 2014-05-26 21:31:59 -0500 |
| commit | 7135fcf93e77a15e3d4b9cd214f8abc001af18a9 (patch) | |
| tree | a00b38b739d6206811101cebe76d890166448eb0 /Library/Formula/erlang.rb | |
| parent | 677b6a1f04ba87cf616b36a357b45482d9c80673 (diff) | |
| download | homebrew-7135fcf93e77a15e3d4b9cd214f8abc001af18a9.tar.bz2 | |
erlang: clean up ENV usage
Diffstat (limited to 'Library/Formula/erlang.rb')
| -rw-r--r-- | Library/Formula/erlang.rb | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/Library/Formula/erlang.rb b/Library/Formula/erlang.rb index 69e3478b6..012478905 100644 --- a/Library/Formula/erlang.rb +++ b/Library/Formula/erlang.rb @@ -70,12 +70,9 @@ class Erlang < Formula # Unset these so that building wx, kernel, compiler and # other modules doesn't fail with an unintelligable error. - ENV['ERL_LIBS'] = nil - ENV['ERL_FLAGS'] = nil - ENV['ERL_AFLAGS'] = nil - ENV['ERL_ZFLAGS'] = nil + %w[LIBS FLAGS AFLAGS ZFLAGS].each { |k| ENV.delete("ERL_#{k}") } - ENV.append "FOP", "#{HOMEBREW_PREFIX}/bin/fop" if build.with? 'fop' + ENV["FOP"] = "#{HOMEBREW_PREFIX}/bin/fop" if build.with? 'fop' # Do this if building from a checkout to generate configure system "./otp_build autoconf" if File.exist? "otp_build" |
