aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Formula/slony.rb
blob: bbec7e378d70817e313d5f1e9c278425749e4ed2 (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.factory('postgresql')
    system "./configure", "--disable-debug",
                          "--with-pgconfigdir=#{postgres.opt_prefix}/bin",
                          "--prefix=#{prefix}"
    system "make install"
  end

  def test
    system "slon", "-v"
  end
end