aboutsummaryrefslogtreecommitdiffstats
path: root/Library
diff options
context:
space:
mode:
authorJack Nagel2012-03-01 19:56:09 -0600
committerJack Nagel2012-03-01 19:56:09 -0600
commitcc26342f78f7d8b84ed03fcd163fde68f1d9d6cb (patch)
treefa412bc360c840b03fd5f1cd693ffb63eca42bf4 /Library
parent1a15ed0c79594eec6c212c773a6b2525fa5728e7 (diff)
downloadhomebrew-cc26342f78f7d8b84ed03fcd163fde68f1d9d6cb.tar.bz2
audit: check for gfotran in Formula#deps instead
Signed-off-by: Jack Nagel <jacknagel@gmail.com>
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