diff options
| author | nibbles 2bits | 2012-10-15 11:53:34 -0700 |
|---|---|---|
| committer | Adam Vandenberg | 2012-10-23 20:33:25 -0700 |
| commit | db2c4e60fa09d0ee8e4da3b37b58cd2296a423ef (patch) | |
| tree | 24066794afab4fa0efc1f04cef13c4ca21456aa3 /Library/Formula/pgtap.rb | |
| parent | 83aa63c65cd48aa0dc74487b47a7c379f991dbe5 (diff) | |
| download | homebrew-db2c4e60fa09d0ee8e4da3b37b58cd2296a423ef.tar.bz2 | |
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>
Diffstat (limited to 'Library/Formula/pgtap.rb')
| -rw-r--r-- | Library/Formula/pgtap.rb | 10 |
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 |
