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_requirement.rb

14 lines
202 B
Ruby
Raw Normal View History

Add :fortran requirement
2013-06-23 18:35:20 -07:00
require 'requirement'
Rename requirements named *Dependency. 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>
2015-06-15 09:56:04 +01:00
class FortranRequirement < 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: 706ms Template: 15ms
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