diff options
| author | Ryan Davis | 2014-10-01 00:21:16 -0700 |
|---|---|---|
| committer | Tim D. Smith | 2014-10-01 16:39:00 -0700 |
| commit | 875a5fb51c0df1cca9b87c6f9b8be8c5e1a70dae (patch) | |
| tree | 06ea19df5ee244e66f18a1ac312ce235424096e7 | |
| parent | 21cf41bf9b65880156533e2367efeb825107f23c (diff) | |
| download | homebrew-875a5fb51c0df1cca9b87c6f9b8be8c5e1a70dae.tar.bz2 | |
cproto 4.7l (new formula)
| -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 |
