2009-10-15 08:07:12 +00:00
|
|
|
require 'formula'
|
2009-09-21 16:17:56 +00:00
|
|
|
|
2011-03-10 05:11:03 +00:00
|
|
|
class Cksfv < Formula
|
2010-04-07 05:58:35 +00:00
|
|
|
homepage 'http://zakalwe.fi/~shd/foss/cksfv/'
|
2013-01-27 02:15:59 +00:00
|
|
|
url 'http://zakalwe.fi/~shd/foss/cksfv/files/cksfv-1.3.14.tar.bz2'
|
2012-09-03 18:33:56 +00:00
|
|
|
sha1 'f6da3a559b2862691a2be6d2be0aac66cd624885'
|
2009-09-21 16:17:56 +00:00
|
|
|
|
|
|
|
def install
|
|
|
|
system "./configure", "--prefix=#{prefix}"
|
|
|
|
system "make install"
|
|
|
|
end
|
2014-02-11 18:17:11 +00:00
|
|
|
|
|
|
|
test do
|
|
|
|
path = testpath/"foo"
|
|
|
|
path.write "abcd"
|
|
|
|
|
|
|
|
lines = `#{bin}/cksfv #{path}`.split("\n")
|
|
|
|
assert lines.include?("#{path} ED82CD11")
|
|
|
|
assert_equal 0, $?.exitstatus
|
|
|
|
end
|
2009-09-21 16:17:56 +00:00
|
|
|
end
|