06e62adca8
- 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>
35 lines
724 B
Ruby
35 lines
724 B
Ruby
require 'formula'
|
|
|
|
class PostgresqlInstalled < Requirement
|
|
def message; <<-EOS.undent
|
|
PostgreSQL is required to install.
|
|
|
|
You can install this with:
|
|
brew install postgresql
|
|
|
|
Or you can use an official installer from:
|
|
http://www.postgresql.org/
|
|
EOS
|
|
end
|
|
def satisfied?
|
|
Formula.factory('postgresql').installed?
|
|
end
|
|
def fatal?
|
|
true
|
|
end
|
|
end
|
|
|
|
class Pgtap < Formula
|
|
homepage 'http://pgtap.org'
|
|
url 'http://api.pgxn.org/dist/pgtap/0.91.0/pgtap-0.91.0.zip'
|
|
sha1 '1f10b78eb42361659603228c754a55755fcff4fa'
|
|
|
|
depends_on PostgresqlInstalled.new
|
|
|
|
skip_clean 'share'
|
|
|
|
def install
|
|
ENV.prepend 'PATH', Formula.factory('postgresql').bin, ':'
|
|
system "make install"
|
|
end
|
|
end
|