aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Homebrew
diff options
context:
space:
mode:
authorTim D. Smith2015-04-07 16:37:22 -0700
committerTim D. Smith2015-04-08 09:01:23 -0700
commit3d44bdad91b52fcb6b28ff1cb36bbaf33fc44deb (patch)
tree26851658eb4a409c1e1f9418335f64198bb81584 /Library/Homebrew
parent5d179bdf624ecc56c7c1fd3b3d061866a2afb087 (diff)
downloadhomebrew-3d44bdad91b52fcb6b28ff1cb36bbaf33fc44deb.tar.bz2
FortranDependency: make sure gfortran ends up in PATH
Per requirements.rb: > XXX If the satisfy block returns a Pathname, then make sure that it > remains available on the PATH. This makes requirements like > satisfy { which("executable") } > work, even under superenv where "executable" wouldn't normally be on the > PATH. > This is undocumented magic and it should be removed, but we need to add > a way to declare path-based requirements that work with superenv first. Fixes homebrew/homebrew-python#170. Closes #38448.
Diffstat (limited to 'Library/Homebrew')
-rw-r--r--Library/Homebrew/requirements/fortran_dependency.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/Library/Homebrew/requirements/fortran_dependency.rb b/Library/Homebrew/requirements/fortran_dependency.rb
index f68256527..8ab4a8dce 100644
--- a/Library/Homebrew/requirements/fortran_dependency.rb
+++ b/Library/Homebrew/requirements/fortran_dependency.rb
@@ -8,6 +8,6 @@ class FortranDependency < Requirement
env { ENV.fortran }
satisfy :build_env => false do
- (ENV['FC'] || which('gfortran')) ? true : false
+ which(ENV["FC"] || "gfortran")
end
end