diff options
| author | Jan Stępień | 2014-02-11 17:31:52 +0100 |
|---|---|---|
| committer | Adam Vandenberg | 2014-02-16 17:13:49 -0800 |
| commit | d80b54855a490b05cce98c321a274db799df74fd (patch) | |
| tree | 3e543cee37055018554f91dd9e4ca1bc7f18480e /Library/Formula | |
| parent | cbb4b0cb99f97cd39a675bc0182659daf74ee2e8 (diff) | |
| download | homebrew-d80b54855a490b05cce98c321a274db799df74fd.tar.bz2 | |
zpaq 6.49
Closes #26625.
Signed-off-by: Adam Vandenberg <flangy@gmail.com>
Diffstat (limited to 'Library/Formula')
| -rw-r--r-- | Library/Formula/zpaq.rb | 26 |
1 files changed, 26 insertions, 0 deletions
diff --git a/Library/Formula/zpaq.rb b/Library/Formula/zpaq.rb new file mode 100644 index 000000000..96eddc6c5 --- /dev/null +++ b/Library/Formula/zpaq.rb @@ -0,0 +1,26 @@ +require "formula" + +class Zpaq < Formula + homepage "http://mattmahoney.net/dc/zpaq.html" + url "http://mattmahoney.net/dc/zpaq649.zip" + sha1 "aa0d8241679f314d0be8a43e7a87e5b4d4529017" + version "6.49" + + def install + ENV.append_to_cflags "-Dunix -O3" + system "make", "libzpaq.o", "divsufsort.o", "zpaq.o" + system "ar", "-r", "libzpaq.a", "libzpaq.o", "divsufsort.o" + system ENV.cxx, "-o", "zpaq", "libzpaq.a", "zpaq.o" + lib.install "libzpaq.a" + include.install "libzpaq.h" + bin.install "zpaq" + end + + test do + archive = testpath/'test.zpaq' + zpaq = bin/"zpaq" + system zpaq, "a", archive, "#{include}/libzpaq.h" + system zpaq, "t", archive + archive.read(4) == "7kSt" + end +end |
