diff options
| author | Allen Huang | 2012-09-28 18:17:46 +0800 |
|---|---|---|
| committer | Adam Vandenberg | 2012-10-03 18:45:58 -0700 |
| commit | 2f4799696cbc543af8ad493cc136cb4a1ce4848e (patch) | |
| tree | 43d864e4ffce96c7bfb267d5d2955c17c7f9510c /Library/Formula | |
| parent | a2ea7da6031bb60a8ab5d95b79d57ecec50ca2fc (diff) | |
| download | homebrew-2f4799696cbc543af8ad493cc136cb4a1ce4848e.tar.bz2 | |
slony 2.1.2
Closes #15285.
Closes #15201.
Signed-off-by: Adam Vandenberg <flangy@gmail.com>
Diffstat (limited to 'Library/Formula')
| -rw-r--r-- | Library/Formula/slony.rb | 38 |
1 files changed, 38 insertions, 0 deletions
diff --git a/Library/Formula/slony.rb b/Library/Formula/slony.rb new file mode 100644 index 000000000..f4d076be1 --- /dev/null +++ b/Library/Formula/slony.rb @@ -0,0 +1,38 @@ +require 'formula' + +class PostgresqlInstalled < Requirement + def message; <<-EOS.undent + PostgresQL is required to install. + + You can install this with: + brew install postgresql + + Or you can use an official installer from: + http://www.postgresql.org/ + EOS + end + def satisfied? + which 'pg_config' + end + def fatal? + true + end +end + +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 PostgresqlInstalled.new + + def install + system "./configure", "--disable-debug", + "--prefix=#{prefix}" + system "make install" + end + + def test + system "slon", "-v" + end +end |
