diff options
| author | Jack Nagel | 2013-04-06 22:11:02 -0500 |
|---|---|---|
| committer | Jack Nagel | 2013-04-06 22:11:02 -0500 |
| commit | 4a8653ba7d226080018c6f3640b4eced38a338b8 (patch) | |
| tree | d9e8340446d85f730b09294adddbc0d11b582c89 /Library | |
| parent | d6b5e4f2ed856badb572eea2bbc76d2335ec58ab (diff) | |
| download | brew-4a8653ba7d226080018c6f3640b4eced38a338b8.tar.bz2 | |
audit: check build-time deps programmatically
Diffstat (limited to 'Library')
| -rw-r--r-- | Library/Homebrew/cmd/audit.rb | 11 |
1 files changed, 5 insertions, 6 deletions
diff --git a/Library/Homebrew/cmd/audit.rb b/Library/Homebrew/cmd/audit.rb index 5506c5f66..296e79cee 100644 --- a/Library/Homebrew/cmd/audit.rb +++ b/Library/Homebrew/cmd/audit.rb @@ -141,6 +141,11 @@ class FormulaAuditor end case dep.name + when *BUILD_TIME_DEPS + # Build deps should be tagged + problem <<-EOS.undent unless dep.tags.any? || f.name =~ /automake/ && dep.name == 'autoconf' + #{dep} dependency should be "depends_on '#{dep}' => :build" + EOS when "git", "python", "ruby", "emacs", "mysql", "mercurial" problem <<-EOS.undent Don't use #{dep} as a dependency. We allow non-Homebrew @@ -315,12 +320,6 @@ class FormulaAuditor problem "Commented cmake call found" end - # build tools should be flagged properly - # but don't complain about automake; it needs autoconf at runtime - if text =~ /depends_on ['"](#{BUILD_TIME_DEPS*'|'})['"]$/ - problem "#{$1} dependency should be \"depends_on '#{$1}' => :build\"" - end unless f.name =~ /automake/ - # FileUtils is included in Formula if text =~ /FileUtils\.(\w+)/ problem "Don't need 'FileUtils.' before #{$1}." |
