aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Homebrew/requirements/fortran_dependency.rb
blob: f68256527ec392be24ea5238728ab0e4bd429da2 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
require 'requirement'

class FortranDependency < Requirement
  fatal true

  default_formula 'gcc'

  env { ENV.fortran }

  satisfy :build_env => false do
    (ENV['FC'] || which('gfortran')) ? true : false
  end
end