diff options
| author | Jack Nagel | 2013-04-01 12:05:57 -0500 |
|---|---|---|
| committer | Jack Nagel | 2013-04-01 16:17:35 -0500 |
| commit | d839567f1fd3c45b9e709a937c0924ac24b89a71 (patch) | |
| tree | 763fbc5ff5bc0fb5eb32aaeac072c510293d6d8a /Library/Homebrew/requirements.rb | |
| parent | 734f082db9da334eb66f9122e916161db9e69618 (diff) | |
| download | homebrew-d839567f1fd3c45b9e709a937c0924ac24b89a71.tar.bz2 | |
Requirement: env DSL is evaluated in context of self, not ENV
This was meant to support:
env do |req|
append_path 'PATH', req.some_method
...
end
i.e., the block was evaluated in the context of ENV. But it turned out
to be not so useful after all, so I'm ripping it out before something
actually depends on it.
Diffstat (limited to 'Library/Homebrew/requirements.rb')
| -rw-r--r-- | Library/Homebrew/requirements.rb | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Library/Homebrew/requirements.rb b/Library/Homebrew/requirements.rb index 34273a0f3..881ac4ad1 100644 --- a/Library/Homebrew/requirements.rb +++ b/Library/Homebrew/requirements.rb @@ -179,11 +179,11 @@ class MPIDependency < Requirement @unknown_langs.empty? and @non_functional.empty? end - env do |req| + env do # Set environment variables to help configure scripts find MPI compilers. # Variable names taken from: # http://www.gnu.org/software/autoconf-archive/ax_mpi.html - req.lang_list.each do |lang| + @lang_list.each do |lang| compiler = 'mpi' + lang.to_s mpi_path = which compiler |
