2012-09-28 10:17:46 +00:00
|
|
|
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'
|
|
|
|
|
2012-11-06 02:03:26 +00:00
|
|
|
depends_on :postgresql
|
2012-09-28 10:17:46 +00:00
|
|
|
|
|
|
|
def install
|
2013-12-07 04:41:14 +00:00
|
|
|
postgres = Formula.factory('postgresql')
|
2012-09-28 10:17:46 +00:00
|
|
|
system "./configure", "--disable-debug",
|
2013-12-07 04:41:14 +00:00
|
|
|
"--with-pgconfigdir=#{postgres.opt_prefix}/bin",
|
2012-09-28 10:17:46 +00:00
|
|
|
"--prefix=#{prefix}"
|
|
|
|
system "make install"
|
|
|
|
end
|
|
|
|
|
|
|
|
def test
|
|
|
|
system "slon", "-v"
|
|
|
|
end
|
|
|
|
end
|