snzip 1.0.1
[jn: fix test] Closes Homebrew/homebrew#25368. Signed-off-by: Jack Nagel <jacknagel@gmail.com>
This commit is contained in:
parent
91760c3fd1
commit
7b14f503e8
1 changed files with 7 additions and 4 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue