28 lines
769 B
Ruby
28 lines
769 B
Ruby
require 'formula'
|
|
|
|
class Snzip < Formula
|
|
desc "Compression/decompression tool based on snappy"
|
|
homepage 'https://github.com/kubo/snzip'
|
|
url 'https://bintray.com/artifact/download/kubo/generic/snzip-1.0.2.tar.gz'
|
|
sha1 '6efa5f6e097a9bed10b526cfbf4062e2f547be56'
|
|
|
|
bottle do
|
|
cellar :any
|
|
sha1 "6863e5d8a045551cc2b9aa2e66926a594a1cd2d6" => :yosemite
|
|
sha1 "66d09b8b0fbbf772a61abfa64ab9e2e304a52532" => :mavericks
|
|
sha1 "a5718543e78e7654a3ad8273c2af94b8c8a4855d" => :mountain_lion
|
|
end
|
|
|
|
depends_on 'snappy'
|
|
|
|
def install
|
|
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
|