homebrew-core/Formula/slony.rb

22 lines
510 B
Ruby
Raw Normal View History

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