diff options
| -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 |
