blob: f5cdbd5aab1d7f9370c65bff6cdee4bf014e494e (
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
35
|
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 PgTop < Formula
homepage 'http://ptop.projects.postgresql.org/'
url 'http://pgfoundry.org/frs/download.php/1781/pg_top-3.6.2.tar.gz'
md5 '12ddb50cf83e3027d182a1381d388f1d'
depends_on PostgresqlInstalled.new
def install
system "./configure", "--disable-debug", "--disable-dependency-tracking",
"--prefix=#{prefix}"
system "make install"
end
end
|