homebrew-core/Formula/zsync.rb
Baptiste Fontaine 6590fb9279 zsync: modernize + test added
Closes Homebrew/homebrew#35403.

Signed-off-by: Mike McQuaid <mike@mikemcquaid.com>
2014-12-31 19:41:49 +00:00

18 lines
532 B
Ruby

class Zsync < Formula
homepage "http://zsync.moria.org.uk/"
url "http://zsync.moria.org.uk/download/zsync-0.6.2.tar.bz2"
sha1 "5e69f084c8adaad6a677b68f7388ae0f9507617a"
def install
system "./configure", "--disable-dependency-tracking",
"--prefix=#{prefix}"
system "make", "install"
end
test do
touch "#{testpath}/foo"
system "#{bin}/zsyncmake", "foo"
sha1 = "da39a3ee5e6b4b0d3255bfef95601890afd80709"
File.read("#{testpath}/foo.zsync") =~ /^SHA-1: #{sha1}$/
end
end