pgtap 0.91.0

- Upgrade to 0.91.0
- Change the skip clean to 'share' to stop a warning.
- The `skip_clean` is needed. It installs nothing to its prefix.
- Change the `satisfied?` PGS test to whether HB PGS is installed.
- Prepend HB PSG bin to PATH so it finds the right pg-config

Closes #15474.

Signed-off-by: Adam Vandenberg <flangy@gmail.com>
This commit is contained in:
nibbles 2bits authored and Adam Vandenberg committed 2012-10-23 20:33:25 -07:00
1 parent 83aa63c65c
commit db2c4e60fa
1 file changed
+5 -5
+5 -5
View File
@@ -12,7 +12,7 @@ class PostgresqlInstalled < Requirement
EOS
end
def satisfied?
which 'pg_config'
Formula.factory('postgresql').installed?
end
def fatal?
true
@@ -20,16 +20,16 @@ class PostgresqlInstalled < Requirement
end
class Pgtap < Formula
url 'http://pgfoundry.org/frs/download.php/2701/pgtap-0.24.tar.bz2'
homepage 'http://pgtap.org'
sha1 '8a23fe62e1e476731076a588cb628fe9f1a028b1'
url 'http://api.pgxn.org/dist/pgtap/0.91.0/pgtap-0.91.0.zip'
sha1 '1f10b78eb42361659603228c754a55755fcff4fa'
depends_on PostgresqlInstalled.new
skip_clean :all
skip_clean 'share'
def install
ENV.prepend 'PATH', Formula.factory('postgresql').bin, ':'
system "make install"
bin.install %w(bbin/pg_prove bbin/pg_tapgen)
end
end