homebrew-core/Formula/pgpool-ii.rb

34 lines
735 B
Ruby
Raw Normal View History

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?
which 'pg_config'
end
def fatal?
true
end
end
2011-03-10 05:11:03 +00:00
class PgpoolIi < Formula
2012-06-10 21:31:21 +00:00
homepage 'http://www.pgpool.net/mediawiki/index.php/Main_Page'
url 'http://www.pgpool.net/mediawiki/download.php?f=pgpool-II-3.1.3.tar.gz'
sha1 '99e45bd218ab780e982116860fee11a605bd834f'
depends_on PostgresqlInstalled.new
def install
system "./configure", "--prefix=#{prefix}", "--mandir=#{man}"
system "make install"
end
end