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
|
2014-02-25 06:49:53 +00:00
|
|
|
postgres = Formula['postgresql']
|
2012-09-28 10:17:46 +00:00
|
|
|
system "./configure", "--disable-debug",
|
2014-03-06 05:28:31 +00:00
|
|
|
"--with-pgconfigdir=#{postgres.opt_bin}",
|
2012-09-28 10:17:46 +00:00
|
|
|
"--prefix=#{prefix}"
|
|
|
|
system "make install"
|
|
|
|
end
|
|
|
|
|
2014-02-23 21:31:41 +00:00
|
|
|
test do
|
2014-02-25 06:49:53 +00:00
|
|
|
system bin/"slon", "-v"
|
2012-09-28 10:17:46 +00:00
|
|
|
end
|
|
|
|
end
|