aboutsummaryrefslogtreecommitdiffstats
path: root/Library
diff options
context:
space:
mode:
authorJack Nagel2013-07-16 15:49:11 -0500
committerJack Nagel2013-07-16 15:49:11 -0500
commit51023ef15b7cafa3a367ef6505fbfc7b0cefdc65 (patch)
treee077283a5f677c5f6d6c0aeae0606f96679a3190 /Library
parent36051b6a71e60007e5200fc5e8b3b83eebade8f7 (diff)
downloadbrew-51023ef15b7cafa3a367ef6505fbfc7b0cefdc65.tar.bz2
Fix some false-positive build-time dep audits
Diffstat (limited to 'Library')
-rw-r--r--Library/Homebrew/cmd/audit.rb12
1 files changed, 5 insertions, 7 deletions
diff --git a/Library/Homebrew/cmd/audit.rb b/Library/Homebrew/cmd/audit.rb
index 8988d25cc..ae5b2410a 100644
--- a/Library/Homebrew/cmd/audit.rb
+++ b/Library/Homebrew/cmd/audit.rb
@@ -148,13 +148,11 @@ class FormulaAuditor
case dep.name
when *BUILD_TIME_DEPS
- # TODO: this should really be only dep.build? but maybe some formula
- # depends on the current behavior to be audit-clean?
- next if dep.tags.any?
- next if f.name =~ /automake/ && dep.name == 'autoconf'
- # This is actually a libltdl dep that gets converted to a non-build time
- # libtool dep, but I don't of a good way to encode this in the dep object
- next if f.name == 'imagemagick' && dep.name == 'libtool'
+ next if dep.build?
+ next if dep.name == 'autoconf' && f.name =~ /automake/
+ next if dep.name == 'libtool' && %w{imagemagick libgphoto2 libp11}.any? { |n| f.name == n }
+ next if dep.name =~ /autoconf|pkg-config/ && f.name == 'ruby-build'
+
problem %{#{dep} dependency should be "depends_on '#{dep}' => :build"}
when "git", "ruby", "emacs", "mercurial"
problem <<-EOS.undent