From 79d1c2396af46b2902a58a0a54f9144c28fcf69e Mon Sep 17 00:00:00 2001 From: Jack Nagel Date: Thu, 1 Mar 2012 19:56:09 -0600 Subject: [PATCH] audit: check for gfotran in Formula#deps instead Signed-off-by: Jack Nagel --- Library/Homebrew/cmd/audit.rb | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/Library/Homebrew/cmd/audit.rb b/Library/Homebrew/cmd/audit.rb index d17ceb25e1..5ed4228b44 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