snzip 1.0.1

[jn: fix test]

Closes Homebrew/homebrew#25368.

Signed-off-by: Jack Nagel <jacknagel@gmail.com>
This commit is contained in:
Brett Koonce 2013-12-20 18:56:35 -06:00 committed by Jack Nagel
parent 91760c3fd1
commit 7b14f503e8

View file

@ -2,19 +2,22 @@ require 'formula'
class Snzip < Formula
homepage 'https://github.com/kubo/snzip'
url 'https://github.com/downloads/kubo/snzip/snzip-0.9.0.tar.gz'
sha1 '04c02df2cfe80dbe7222dfd6b3e0b0747fdbc024'
url 'https://github.com/kubo/snzip/archive/1.0.1.tar.gz'
sha1 '3aac364c0a508cdb06d771cede6c5758aeb89666'
depends_on 'automake' => :build
depends_on 'autoconf' => :build
depends_on 'snappy'
def install
system "./autogen.sh"
system "./configure", "--prefix=#{prefix}"
system "make", "install"
end
test do
(testpath/'test.out').write "test"
system "snzip", "test.out"
system "snzip", "-d", "test.out.snz"
system "#{bin}/snzip", "test.out"
system "#{bin}/snzip", "-d", "test.out.sz"
end
end