blob: 827325d27bef7afc7904a70940ee18eea96bdd68 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
|
require 'formula'
class Slony < Formula
homepage 'http://slony.info/'
url 'http://slony.info/downloads/2.1/source/slony1-2.1.2.tar.bz2'
sha1 '47449fbc742a25eefdab088ab650973416bccb53'
depends_on :postgresql
def install
postgres = Formula['postgresql']
system "./configure", "--disable-debug",
"--with-pgconfigdir=#{postgres.opt_bin}",
"--prefix=#{prefix}"
system "make install"
end
test do
system bin/"slon", "-v"
end
end
|