blob: 853d336a1faf4230b7d90bc8ebab0951c9b609b1 (
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 Pgtap < Formula
url 'http://pgfoundry.org/frs/download.php/2701/pgtap-0.24.tar.bz2'
homepage 'http://pgtap.org'
sha1 '8a23fe62e1e476731076a588cb628fe9f1a028b1'
depends_on PostgresqlInstalled.new
skip_clean :all
def install
system "make install"
bin.install %w(bbin/pg_prove bbin/pg_tapgen)
end
end
|