homebrew-core/Formula/zzuf.rb
Baptiste Fontaine 9195632478 zzuf: modernize + test added
Closes Homebrew/homebrew#35401.

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

24 lines
827 B
Ruby

class Zzuf < Formula
homepage "http://caca.zoy.org/wiki/zzuf"
url "http://caca.zoy.org/files/zzuf/zzuf-0.13.tar.gz"
sha1 "19f904d63d045194885639c381a607ca86a319b5"
conflicts_with "libzzip", :because => "both install `zzcat` binaries"
# Fix OS X-specific bug in zzuf 0.13; see https://trac.macports.org/ticket/29157
# This has been fixed upstream and should be included in the next release.
patch :p3 do
url "https://trac.macports.org/export/78051/trunk/dports/security/zzuf/files/patch-src-libzzuf-lib--mem.c.diff"
sha1 "bc40649d8bdd589ef3876796d4791f28220d964a"
end
def install
system "./configure", "--disable-dependency-tracking",
"--prefix=#{prefix}"
system "make", "install"
end
test do
system "#{bin}/zzuf", "hd", "-vn", "32", "/dev/zero"
end
end