aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Formula
diff options
context:
space:
mode:
Diffstat (limited to 'Library/Formula')
-rw-r--r--Library/Formula/snzip.rb11
1 files changed, 7 insertions, 4 deletions
diff --git a/Library/Formula/snzip.rb b/Library/Formula/snzip.rb
index 992b68cbd..d1496dbc3 100644
--- a/Library/Formula/snzip.rb
+++ b/Library/Formula/snzip.rb
@@ -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