homebrew-core/Formula/pgpool-ii.rb
Adam Vandenberg 7bd947eb0b Update formulae for version 0.7
* Use new "url" features
* Use keg_only DSL
* Use "skip_clean :all" DSL
* Whitespace and style cleanups
* Make bash invocations less silly
* Use new man2-man8 helpers
* Remove "FileUtils." since it is included in Formula
* Use real names for deps instead of aliases
* ENV.x11 now updates path, so remove that from individual brews
2010-08-07 18:08:53 -07:00

22 lines
727 B
Ruby

require 'formula'
class PgpoolIi <Formula
url 'http://pgfoundry.org/frs/download.php/2664/pgpool-II-2.3.3.tar.gz'
homepage 'http://pgpool.projects.postgresql.org/'
md5 'fae5a3b50eab995d15a18f80fee2e92b'
def install
if `/usr/bin/which pg_config`.chomp.empty?
opoo "No PostgreSQL was detected."
puts <<-EOS.undent
This formula uses `pg_config` to detect an installed PostgreSQL instead
of "depends_on 'postgresql'" so you can use a non-Homebrew version.
You may want to `brew install postgresql` if you don't have another
version already installed.
EOS
end
system "./configure", "--prefix=#{prefix}", "--mandir=#{man}"
system "make install"
end
end