aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJack Nagel2013-06-25 21:08:59 -0500
committerJack Nagel2013-06-25 21:12:15 -0500
commit3abd9455a3c4613421ed1e9237484ec95990f7dd (patch)
tree9ea867e854afb1731fbddaa8348badd5a81c7625
parentfaaac9482efdc35268382b65dcea41a274ea4846 (diff)
downloadbrew-3abd9455a3c4613421ed1e9237484ec95990f7dd.tar.bz2
Rename Fortran requirement to fix option generation
So, `depends_on :fortran => :optional` will generate "--with-fortran" rather than "--with-fortranRequired".
-rw-r--r--Library/Homebrew/dependency_collector.rb2
-rw-r--r--Library/Homebrew/requirements/fortran_dependency.rb2
2 files changed, 2 insertions, 2 deletions
diff --git a/Library/Homebrew/dependency_collector.rb b/Library/Homebrew/dependency_collector.rb
index 7eb05172a..1d0174a2e 100644
--- a/Library/Homebrew/dependency_collector.rb
+++ b/Library/Homebrew/dependency_collector.rb
@@ -93,7 +93,7 @@ class DependencyCollector
when :macos then MinimumMacOSRequirement.new(tags)
when :mysql then MysqlDependency.new(tags)
when :postgresql then PostgresqlDependency.new(tags)
- when :fortran then FortranRequired.new(tags)
+ when :fortran then FortranDependency.new(tags)
when :tex then TeXDependency.new(tags)
when :clt then CLTDependency.new(tags)
when :arch then ArchRequirement.new(tags)
diff --git a/Library/Homebrew/requirements/fortran_dependency.rb b/Library/Homebrew/requirements/fortran_dependency.rb
index 0de239e4e..c65fba160 100644
--- a/Library/Homebrew/requirements/fortran_dependency.rb
+++ b/Library/Homebrew/requirements/fortran_dependency.rb
@@ -1,6 +1,6 @@
require 'requirement'
-class FortranRequired < Requirement
+class FortranDependency < Requirement
fatal true
default_formula 'gfortran'