diff options
| -rw-r--r-- | Library/Formula/cproto.rb | 23 |
1 files changed, 23 insertions, 0 deletions
diff --git a/Library/Formula/cproto.rb b/Library/Formula/cproto.rb new file mode 100644 index 000000000..f07c1f71f --- /dev/null +++ b/Library/Formula/cproto.rb @@ -0,0 +1,23 @@ +require "formula" + +class Cproto < Formula + homepage "http://invisible-island.net/cproto" + url "ftp://invisible-island.net/cproto/cproto-4.7l.tgz" + sha1 "528d7b172cf206ad5b399e9c48d66eaa5029db86" + + 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 |
