homebrew-core/Formula/cproto.rb
BrewTestBot 95884bae22 Formula files style updates.
Closes Homebrew/homebrew#42407.

Signed-off-by: Mike McQuaid <mike@mikemcquaid.com>
2015-08-03 14:21:42 +01:00

29 lines
920 B
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.7l.tgz"
sha256 "823a1e0480bbb39958c6c322c665932dd74286a8eb6dfe652528b6b8c3d873a5"
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