audit: more information on build deps audit

Closes Homebrew/homebrew#36892.

Signed-off-by: Mike McQuaid <mike@mikemcquaid.com>
This commit is contained in:
Xu Cheng 2015-02-17 17:56:44 +08:00 committed by Mike McQuaid
parent a4f675a0fb
commit f204e2e608

View File

@ -168,7 +168,12 @@ class FormulaAuditor
case dep.name
when *BUILD_TIME_DEPS
next if dep.build? or dep.run?
problem %{#{dep} dependency should be "depends_on '#{dep}' => :build"}
problem <<-EOS.undent
#{dep} dependency should be
depends_on "#{dep}" => :build
Or if it is indeed a runtime denpendency
depends_on "#{dep}" => :run
EOS
when "git", "ruby", "mercurial"
problem "Don't use #{dep} as a dependency. We allow non-Homebrew #{dep} installations."
when 'gfortran'