blob: c94faf36ccea8eac150d20c2e8f64402d92791e9 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
|
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
class PgpoolIi < Formula
homepage 'http://www.pgpool.net/mediawiki/index.php/Main_Page'
url 'http://www.pgpool.net/download.php?f=pgpool-II-3.1.5.tar.gz'
sha1 '43b84f9adbae0b4bca3284bd8ce95da441c71018'
depends_on PostgresqlInstalled.new
def install
system "./configure", "--prefix=#{prefix}", "--mandir=#{man}"
system "make install"
end
end
|