aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJack Nagel2012-03-01 19:56:09 -0600
committerJack Nagel2012-03-01 19:56:09 -0600
commit79d1c2396af46b2902a58a0a54f9144c28fcf69e (patch)
tree64b2a3869c4268162f28203d162d1e83d513383b
parent7f39c999a6c4c0023cd3f0c5378fa3063ed4e588 (diff)
downloadbrew-79d1c2396af46b2902a58a0a54f9144c28fcf69e.tar.bz2
audit: check for gfotran in Formula#deps instead
Signed-off-by: Jack Nagel <jacknagel@gmail.com>
-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