From db2c4e60fa09d0ee8e4da3b37b58cd2296a423ef Mon Sep 17 00:00:00 2001 From: nibbles 2bits Date: Mon, 15 Oct 2012 11:53:34 -0700 Subject: 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 --- Library/Formula/pgtap.rb | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'Library/Formula') diff --git a/Library/Formula/pgtap.rb b/Library/Formula/pgtap.rb index 853d336a1..488d72de5 100644 --- a/Library/Formula/pgtap.rb +++ b/Library/Formula/pgtap.rb @@ -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 -- cgit v1.2.3