Logo
Explore Help
Sign In
admin/brew
1
0
Fork 0
You've already forked brew
Code Issues Packages Projects Releases 6 Wiki Activity
brew/Library/Homebrew/requirements/fortran_dependency.rb

14 lines
201 B
Ruby
Raw Normal View History

Add :fortran requirement
2013-06-23 18:35:20 -07:00
require 'requirement'
Rename Fortran requirement to fix option generation So, `depends_on :fortran => :optional` will generate "--with-fortran" rather than "--with-fortranRequired".
2013-06-25 21:08:59 -05:00
class FortranDependency < Requirement
Add :fortran requirement
2013-06-23 18:35:20 -07:00
fatal true
fortran_dependency: use gcc instead of gfortran.
2014-05-15 21:03:12 +01:00
default_formula 'gcc'
Add :fortran requirement
2013-06-23 18:35:20 -07:00
env { ENV.fortran }
satisfy :build_env => false do
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 Homebrew/homebrew#38448.
2015-04-07 16:37:22 -07:00
which(ENV["FC"] || "gfortran")
Add :fortran requirement
2013-06-23 18:35:20 -07:00
end
end
Reference in New Issue Copy Permalink
Powered by Gitea Version: 1.23.8 Page: 156ms Template: 3ms
English
Bahasa Indonesia Deutsch English Español Français Gaeilge Italiano Latviešu Magyar nyelv Nederlands Polski Português de Portugal Português do Brasil Suomi Svenska Türkçe Čeština Ελληνικά Български Русский Українська فارسی മലയാളം 日本語 简体中文 繁體中文(台灣) 繁體中文(香港) 한국어
Licenses API