homebrew-core/Formula/snzip.rb
Brett Koonce 7b14f503e8 snzip 1.0.1
[jn: fix test]

Closes Homebrew/homebrew#25368.

Signed-off-by: Jack Nagel <jacknagel@gmail.com>
2013-12-21 17:46:04 -06:00

23 lines
552 B
Ruby

require 'formula'
class Snzip < Formula
homepage 'https://github.com/kubo/snzip'
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 "#{bin}/snzip", "test.out"
system "#{bin}/snzip", "-d", "test.out.sz"
end
end