homebrew-core/Formula/cksfv.rb

22 lines
499 B
Ruby
Raw Normal View History

require 'formula'
2009-09-21 16:17:56 +00:00
2011-03-10 05:11:03 +00:00
class Cksfv < Formula
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'
sha1 'f6da3a559b2862691a2be6d2be0aac66cd624885'
2009-09-21 16:17:56 +00:00
def install
system "./configure", "--prefix=#{prefix}"
system "make install"
end
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