blob: e8ab6f41f11d244847c663741b2bb61f2d133c45 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
|
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 Skytools < Formula
homepage 'http://pgfoundry.org/projects/skytools/'
url 'http://pgfoundry.org/frs/download.php/2872/skytools-2.1.12.tar.gz'
md5 '94f3391d5b3c3ac6c2edcbfbda705573'
depends_on PostgresqlInstalled.new
def install
system "./configure", "--prefix=#{prefix}"
system "make"
system "make install"
end
end
|