homebrew-core/Formula/torrentcheck.rb
Ted Pennings 4cd0935be7 Convert all 'def test' formulae to 'test do'
Closes Homebrew/homebrew#26942.
Closes Homebrew/homebrew#26946.

Signed-off-by: Adam Vandenberg <flangy@gmail.com>
2014-02-24 19:54:02 -08:00

17 lines
502 B
Ruby

require 'formula'
class Torrentcheck < Formula
homepage 'http://torrentcheck.sourceforge.net/'
url 'http://downloads.sourceforge.net/project/torrentcheck/torrentcheck-1.00.zip'
sha256 'a839f9ac9669d942f83af33db96ce9902d84f85592c99b568ef0f5232ff318c5'
def install
inreplace "torrentcheck.c", "#include <malloc.h>", ""
system ENV.cc, ENV.cflags, "torrentcheck.c", "sha1.c", "-o", "torrentcheck"
bin.install 'torrentcheck'
end
test do
system "#{bin}/torrentcheck"
end
end