diff options
| author | Adam Vandenberg | 2012-02-26 07:58:10 -0800 |
|---|---|---|
| committer | Adam Vandenberg | 2012-02-26 07:58:10 -0800 |
| commit | 0eedb4cb35b553c10f47f9a0606f25d3b7ba5e1d (patch) | |
| tree | 26cff7efd8bbf4e88ba4ab1b8010a6e407fab788 /Library/Formula/pgtap.rb | |
| parent | 557a9dcdc2c010d0c052bd7997d56346bd182b11 (diff) | |
| download | homebrew-0eedb4cb35b553c10f47f9a0606f25d3b7ba5e1d.tar.bz2 | |
pgtap: fix audit warning
Diffstat (limited to 'Library/Formula/pgtap.rb')
| -rw-r--r-- | Library/Formula/pgtap.rb | 14 |
1 files changed, 12 insertions, 2 deletions
diff --git a/Library/Formula/pgtap.rb b/Library/Formula/pgtap.rb index 0e003baa2..42b13253c 100644 --- a/Library/Formula/pgtap.rb +++ b/Library/Formula/pgtap.rb @@ -5,11 +5,21 @@ class Pgtap < Formula homepage 'http://pgtap.org' md5 '9d0360c87fca0ddf3ca9da49b9b71947' - depends_on 'postgresql' - skip_clean :all def install + unless `/usr/bin/which pg_config`.size > 0 + opoo "No pg_config was detected." + puts <<-EOS.undent + pg_top requires postgresql in order to compile, but pg_config was not + found. This install will likely fail. + + You can install this with: + brew install postgresql + or by using a package installer from the PostgreSQL project itself. + EOS + end + system "make install" bin.install %w(bbin/pg_prove bbin/pg_tapgen) end |
