aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Formula/slony.rb
blob: 79f492f3753e1aa64cf93655872ffe8f9be896ac (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

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