2014-10-01 07:21:16 +00:00
|
|
|
class Cproto < Formula
|
2015-05-19 00:00:59 +00:00
|
|
|
desc "Generate function prototypes for functions in input files"
|
2014-10-01 07:21:16 +00:00
|
|
|
homepage "http://invisible-island.net/cproto"
|
2015-08-13 05:08:40 +00:00
|
|
|
url "ftp://invisible-island.net/cproto/cproto-4.7m.tgz"
|
|
|
|
mirror "https://mirrors.kernel.org/debian/pool/main/c/cproto/cproto_4.7m.orig.tar.gz"
|
|
|
|
sha256 "4b482e80f1b492e94f8dcda74d25a7bd0381c870eb500c18e7970ceacdc07c89"
|
2014-10-01 07:21:16 +00:00
|
|
|
|
2014-10-01 21:57:48 +00:00
|
|
|
bottle do
|
|
|
|
cellar :any
|
2015-08-13 06:17:46 +00:00
|
|
|
sha256 "4bd2276c002322ce4d28030d60c0858e1efd4311e0f9de5460917cc5b70bc362" => :yosemite
|
|
|
|
sha256 "a73eaa28daa6281fc987fb22b2bb50bd9962f4a4d4857e7371b8edf605822ca7" => :mavericks
|
|
|
|
sha256 "8eedeacb18a2f3316171a4646f2a7cd2ec993005fd3a930072fbbc9fbd76c598" => :mountain_lion
|
2014-10-01 21:57:48 +00:00
|
|
|
end
|
|
|
|
|
2014-10-01 07:21:16 +00:00
|
|
|
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}")
|
2015-08-13 05:08:40 +00:00
|
|
|
assert_match(/int woot.void.;/, shell_output("#{bin}/cproto woot.c"))
|
2014-10-01 07:21:16 +00:00
|
|
|
end
|
|
|
|
end
|