2013-12-10 12:52:16 +00:00
|
|
|
class Cfv < Formula
|
2015-05-19 00:00:59 +00:00
|
|
|
desc "Test and create various files (e.g., .sfv, .csv, .crc., .torrent)"
|
2015-03-10 14:11:12 +00:00
|
|
|
homepage "http://cfv.sourceforge.net/"
|
|
|
|
url "https://downloads.sourceforge.net/project/cfv/cfv/1.18.3/cfv-1.18.3.tar.gz"
|
|
|
|
sha256 "ff28a8aa679932b83eb3b248ed2557c6da5860d5f8456ffe24686253a354cff6"
|
2013-12-10 12:52:16 +00:00
|
|
|
|
2015-03-10 23:26:05 +00:00
|
|
|
bottle do
|
2016-02-23 17:00:29 +00:00
|
|
|
cellar :any_skip_relocation
|
2016-09-25 04:24:13 +00:00
|
|
|
rebuild 1
|
|
|
|
sha256 "449f4b10a0371005f04bffa6271364824a83fbb68cb15208168c19457b987b6e" => :sierra
|
2016-02-23 17:00:29 +00:00
|
|
|
sha256 "49b83783b5737a364504fdd9fd09672134e0103c7bb8152741d67fca455fde04" => :el_capitan
|
2015-03-12 09:22:03 +00:00
|
|
|
sha256 "df85f8ee2901bb0b3033a3158d04848bb2fbc455f8af12d7d6eb6869c1471ed9" => :yosemite
|
|
|
|
sha256 "f251efc545293925f29093f8574495ebbbfe1cbad2a285a7a531e357310e3d1f" => :mavericks
|
|
|
|
sha256 "7d34208fb03b4f45e61bac26348e928b6cceb3aee1bf113a4d285e0935641520" => :mountain_lion
|
2015-03-10 23:26:05 +00:00
|
|
|
end
|
|
|
|
|
2013-12-10 12:52:16 +00:00
|
|
|
def install
|
2015-03-10 14:11:12 +00:00
|
|
|
system "make", "prefix=#{prefix}", "mandir=#{man}", "install"
|
|
|
|
end
|
|
|
|
|
|
|
|
test do
|
|
|
|
(testpath/"test/test.txt").write "Homebrew!"
|
|
|
|
cd "test" do
|
|
|
|
system bin/"cfv", "-t", "sha1", "-C", "test.txt"
|
|
|
|
assert File.exist?("test.sha1")
|
|
|
|
assert_match /9afe8b4d99fb2dd5f6b7b3e548b43a038dc3dc38/, File.read("test.sha1")
|
|
|
|
end
|
2013-12-10 12:52:16 +00:00
|
|
|
end
|
|
|
|
end
|