From dd112ef57957fc1a0bd56064c511581b5b670ecd Mon Sep 17 00:00:00 2001 From: Adam Vandenberg Date: Thu, 28 Mar 2013 13:10:11 -0700 Subject: [PATCH] audit: don't complain about postgis using postgresql --- Library/Homebrew/cmd/audit.rb | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/Library/Homebrew/cmd/audit.rb b/Library/Homebrew/cmd/audit.rb index 31dac72916..b9c47eba01 100644 --- a/Library/Homebrew/cmd/audit.rb +++ b/Library/Homebrew/cmd/audit.rb @@ -140,11 +140,19 @@ class FormulaAuditor end case dep.name - when "git", "python", "ruby", "emacs", "mysql", "postgresql", "mercurial" + when "git", "python", "ruby", "emacs", "mysql", "mercurial" problem <<-EOS.undent Don't use #{dep} as a dependency. We allow non-Homebrew #{dep} installations. EOS + when "postgresql" + # Postgis specifically requires a Homebrewed postgresql + unless f.name == "postgis" + problem <<-EOS.undent + Don't use #{dep} as a dependency. We allow non-Homebrew + #{dep} installations. + EOS + end when 'gfortran' problem "Use ENV.fortran during install instead of depends_on 'gfortran'" when 'open-mpi', 'mpich2'