homebrew-core/Formula/cproto.rb
2015-08-13 09:49:37 -07:00

28 lines
1 KiB
Ruby

class Cproto < Formula
desc "Generate function prototypes for functions in input files"
homepage "http://invisible-island.net/cproto"
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"
bottle do
cellar :any
sha256 "4bd2276c002322ce4d28030d60c0858e1efd4311e0f9de5460917cc5b70bc362" => :yosemite
sha256 "a73eaa28daa6281fc987fb22b2bb50bd9962f4a4d4857e7371b8edf605822ca7" => :mavericks
sha256 "8eedeacb18a2f3316171a4646f2a7cd2ec993005fd3a930072fbbc9fbd76c598" => :mountain_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