mirror of
https://github.com/mistydemeo/tigerbrew.git
synced 2026-12-01 21:19:58 -05:00
brew-audit: add check for git and fix warnings
This commit is contained in:
1 parent
ad09e7fefb
commit
8fcc3fcf4a
2 files changed
+9
-2
No files matched your search
@@ -112,6 +112,15 @@ def audit_formula_instance f
|
||||
problems << " * Dep #{d} is an alias; switch to the real name."
|
||||
end
|
||||
|
||||
# Check for things we don't like to depend on.
|
||||
# We allow non-Homebrew installs whenenever possible.
|
||||
f.deps.each do |d|
|
||||
case d
|
||||
when "git"
|
||||
problems << " * Don't use Git as a dependency; we allow non-Homebrew git installs."
|
||||
end
|
||||
end
|
||||
|
||||
# Google Code homepages should end in a slash
|
||||
if f.homepage =~ %r[^https?://code\.google\.com/p/[^/]+[^/]$]
|
||||
problems << " * Google Code homepage should end with a slash."
|
||||
|
||||
@@ -5,8 +5,6 @@ class Guilt <Formula
|
||||
url 'http://www.kernel.org/pub/linux/kernel/people/jsipek/guilt/guilt-0.33.tar.bz2'
|
||||
md5 'de2d3b82d3e08c8c6a940bd31f47d758'
|
||||
|
||||
depends_on 'git'
|
||||
|
||||
def install
|
||||
# Skip the documentation, it depends on xmlto.
|
||||
system "make", "PREFIX=#{prefix}", "install"
|
||||
|
||||
Reference in new issue
Block a user