blob: 8a4a135130b6752785ec2d3aee138517f0631001 (
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
|
require "formula"
class Cproto < Formula
homepage "http://invisible-island.net/cproto"
url "ftp://invisible-island.net/cproto/cproto-4.7l.tgz"
sha1 "528d7b172cf206ad5b399e9c48d66eaa5029db86"
bottle do
cellar :any
sha1 "0b0d9f789a5645ffea965f62251c9565f41fd2d9" => :mavericks
sha1 "2b3b8f908e4db3575492588cc1aac60200ccafaa" => :mountain_lion
sha1 "787dd0093d888d058dd291c3a4b60272180cc2d3" => :lion
end
def install
system "./configure", "--disable-debug",
"--disable-dependency-tracking",
"--disable-silent-rules",
"--prefix=#{prefix}"
system "make", "install"
end
test do
(testpath/"woot.c").write("int woot() {\n}")
assert_match(/int woot.void.;/,
shell_output("#{bin}/cproto woot.c"))
end
end
|