aboutsummaryrefslogtreecommitdiffstats
path: root/Library
diff options
context:
space:
mode:
Diffstat (limited to 'Library')
-rw-r--r--Library/Formula/pgtap.rb10
1 files changed, 5 insertions, 5 deletions
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