homebrew-core/Formula/bsdsfv.rb
Simon Lundström 316b758944 Adding bsdsfv, a BSD licensed sfv checker.
Signed-off-by: Mike McQuaid <mike@mikemcquaid.com>
2011-02-02 22:29:41 +00:00

20 lines
546 B
Ruby

require 'formula'
class Bsdsfv <Formula
url 'http://sourceforge.net/projects/bsdsfv/files/bsdsfv/1.18/bsdsfv-1.18.tar.gz'
homepage 'http://bsdsfv.sourceforge.net/'
sha1 '5e72c5e12bce2d5f77469d8f2425064a0ea6fc1e'
def install
bin.mkpath
inreplace 'Makefile' do |s|
s.change_make_var! "INSTALL_PREFIX", prefix
s.change_make_var! "INDENT", "indent"
s.gsub! ' ${INSTALL_PROGRAM} bsdsfv ${INSTALL_PREFIX}/bin', " ${INSTALL_PROGRAM} bsdsfv #{bin}/"
end
system "make all"
system "make install"
end
end