
Dependency is another similar, related class and it's super confusing to have some Requirements that are named *Dependency. Closes Homebrew/homebrew#38891. Signed-off-by: Mike McQuaid <mike@mikemcquaid.com>
14 lines
202 B
Ruby
14 lines
202 B
Ruby
require 'requirement'
|
|
|
|
class FortranRequirement < Requirement
|
|
fatal true
|
|
|
|
default_formula 'gcc'
|
|
|
|
env { ENV.fortran }
|
|
|
|
satisfy :build_env => false do
|
|
which(ENV["FC"] || "gfortran")
|
|
end
|
|
end
|