2013-04-27 20:30:44 +00:00
|
|
|
require 'formula'
|
|
|
|
|
|
|
|
class Snzip < Formula
|
|
|
|
homepage 'https://github.com/kubo/snzip'
|
2013-12-21 00:56:35 +00:00
|
|
|
url 'https://github.com/kubo/snzip/archive/1.0.1.tar.gz'
|
|
|
|
sha1 '3aac364c0a508cdb06d771cede6c5758aeb89666'
|
2013-04-27 20:30:44 +00:00
|
|
|
|
2013-12-21 00:56:35 +00:00
|
|
|
depends_on 'automake' => :build
|
|
|
|
depends_on 'autoconf' => :build
|
2013-04-27 20:30:44 +00:00
|
|
|
depends_on 'snappy'
|
|
|
|
|
|
|
|
def install
|
2013-12-21 00:56:35 +00:00
|
|
|
system "./autogen.sh"
|
2013-04-27 20:30:44 +00:00
|
|
|
system "./configure", "--prefix=#{prefix}"
|
|
|
|
system "make", "install"
|
|
|
|
end
|
|
|
|
|
|
|
|
test do
|
2013-08-18 21:20:11 +00:00
|
|
|
(testpath/'test.out').write "test"
|
2013-12-21 00:56:35 +00:00
|
|
|
system "#{bin}/snzip", "test.out"
|
|
|
|
system "#{bin}/snzip", "-d", "test.out.sz"
|
2013-04-27 20:30:44 +00:00
|
|
|
end
|
|
|
|
end
|