2011-03-10 05:11:03 +00:00
|
|
|
class Cksfv < Formula
|
2015-05-19 00:00:59 +00:00
|
|
|
desc "File verification utility"
|
2015-08-03 12:55:31 +00:00
|
|
|
homepage "http://zakalwe.fi/~shd/foss/cksfv/"
|
|
|
|
url "http://zakalwe.fi/~shd/foss/cksfv/files/cksfv-1.3.14.tar.bz2"
|
|
|
|
sha256 "8f3c246f3a4a1f0136842a2108568297e66e92f5996e0945d186c27bca07df52"
|
2009-09-21 16:17:56 +00:00
|
|
|
|
2015-10-09 04:34:31 +00:00
|
|
|
bottle do
|
|
|
|
cellar :any_skip_relocation
|
2016-09-26 04:00:28 +00:00
|
|
|
sha256 "4414da8e35f9d69a0e04e4a1942745f98b5234891a04935627248e2e6954e17d" => :sierra
|
2015-10-09 04:34:31 +00:00
|
|
|
sha256 "41d81d535cfa41b4eb03709e646b0bdc36a78f99c8e15746b7eb289a98afbb97" => :el_capitan
|
|
|
|
sha256 "9885cadccdeec56d0f665bad80655cfba3397c3ff2958c7a44af514a69bc8114" => :yosemite
|
|
|
|
sha256 "3838548d5febbed5d9db37e8634397a589bcec766ee5ec84949a17dae9b34cdd" => :mavericks
|
|
|
|
end
|
|
|
|
|
2009-09-21 16:17:56 +00:00
|
|
|
def install
|
|
|
|
system "./configure", "--prefix=#{prefix}"
|
2015-08-03 12:55:31 +00:00
|
|
|
system "make", "install"
|
2009-09-21 16:17:56 +00:00
|
|
|
end
|
2014-02-11 18:17:11 +00:00
|
|
|
|
|
|
|
test do
|
|
|
|
path = testpath/"foo"
|
|
|
|
path.write "abcd"
|
|
|
|
|
2015-10-05 12:42:14 +00:00
|
|
|
assert_match "#{path} ED82CD11", shell_output("#{bin}/cksfv #{path}")
|
2014-02-11 18:17:11 +00:00
|
|
|
end
|
2009-09-21 16:17:56 +00:00
|
|
|
end
|