diff options
| author | Adam Vandenberg | 2013-06-23 20:40:00 -0700 | 
|---|---|---|
| committer | Adam Vandenberg | 2013-06-24 07:38:25 -0700 | 
| commit | 09e477d1f008d478a25bd3c1625e92678c170e78 (patch) | |
| tree | aa478b4e1031bc3c687e113a53131af0786e76f2 | |
| parent | 3813c7ca60cba0d44d3830cdd9b1d31e552e9d5c (diff) | |
| download | homebrew-09e477d1f008d478a25bd3c1625e92678c170e78.tar.bz2 | |
Update audit for Fortran dependency
| -rw-r--r-- | Library/Homebrew/cmd/audit.rb | 6 | 
1 files changed, 5 insertions, 1 deletions
diff --git a/Library/Homebrew/cmd/audit.rb b/Library/Homebrew/cmd/audit.rb index 5bb9c2df0..c1caa2a3d 100644 --- a/Library/Homebrew/cmd/audit.rb +++ b/Library/Homebrew/cmd/audit.rb @@ -161,7 +161,7 @@ class FormulaAuditor               bindings for 2.x and 3.x in parallel and much more.            EOS        when 'gfortran' -        problem "Use ENV.fortran during install instead of depends_on 'gfortran'" +        problem "Use `depends_on :fortran` instead of `depends_on 'gfortran'`"        when 'open-mpi', 'mpich2'          problem <<-EOS.undent            There are multiple conflicting ways to install MPI. Use an MPIDependency: @@ -462,6 +462,10 @@ class FormulaAuditor      if text =~ /^def (\w+).*$/        problem "Define method #{$1.inspect} in the class body, not at the top-level"      end + +    if text =~ /ENV.fortran/ +      problem "Use `depends_on :fortran` instead of `ENV.fortran`" +    end    end    def audit_python  | 
