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 Homebrew/homebrew#15474. Signed-off-by: Adam Vandenberg <flangy@gmail.com>master
parent
0aa50cbad8
commit
06e62adca8
|
@ -12,7 +12,7 @@ class PostgresqlInstalled < Requirement
|
||||||
EOS
|
EOS
|
||||||
end
|
end
|
||||||
def satisfied?
|
def satisfied?
|
||||||
which 'pg_config'
|
Formula.factory('postgresql').installed?
|
||||||
end
|
end
|
||||||
def fatal?
|
def fatal?
|
||||||
true
|
true
|
||||||
|
@ -20,16 +20,16 @@ class PostgresqlInstalled < Requirement
|
||||||
end
|
end
|
||||||
|
|
||||||
class Pgtap < Formula
|
class Pgtap < Formula
|
||||||
url 'http://pgfoundry.org/frs/download.php/2701/pgtap-0.24.tar.bz2'
|
|
||||||
homepage 'http://pgtap.org'
|
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
|
depends_on PostgresqlInstalled.new
|
||||||
|
|
||||||
skip_clean :all
|
skip_clean 'share'
|
||||||
|
|
||||||
def install
|
def install
|
||||||
|
ENV.prepend 'PATH', Formula.factory('postgresql').bin, ':'
|
||||||
system "make install"
|
system "make install"
|
||||||
bin.install %w(bbin/pg_prove bbin/pg_tapgen)
|
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
Loading…
Reference in New Issue