aboutsummaryrefslogtreecommitdiffstats
path: root/Library
diff options
context:
space:
mode:
Diffstat (limited to 'Library')
-rwxr-xr-xLibrary/Homebrew/cmd/audit.rb7
1 files changed, 2 insertions, 5 deletions
diff --git a/Library/Homebrew/cmd/audit.rb b/Library/Homebrew/cmd/audit.rb
index d17ceb25e..5ed4228b4 100755
--- a/Library/Homebrew/cmd/audit.rb
+++ b/Library/Homebrew/cmd/audit.rb
@@ -98,11 +98,6 @@ def audit_formula_text name, text
problems << " * Use spaces instead of tabs for indentation"
end
- # Formula depends_on gfortran
- if text =~ /^\s*depends_on\s*(\'|\")gfortran(\'|\").*/
- problems << " * Use ENV.fortran during install instead of depends_on 'gfortran'"
- end unless name == "gfortran" # Gfortran itself has this text in the caveats
-
# xcodebuild should specify SYMROOT
if text =~ /system\s+['"]xcodebuild/ and not text =~ /SYMROOT=/
problems << " * xcodebuild should be passed an explicit \"SYMROOT\""
@@ -287,6 +282,8 @@ def audit_formula_instance f
* Don't use #{d} as a dependency. We allow non-Homebrew
#{d} installations.
EOS
+ when 'gfortran'
+ problems << " * Use ENV.fortran during install instead of depends_on 'gfortran'"
end
end