2010-05-14 16:53:48 +00:00
|
|
|
require 'formula'
|
|
|
|
|
2011-03-10 05:11:03 +00:00
|
|
|
class Foremost < Formula
|
2010-05-14 16:53:48 +00:00
|
|
|
url 'http://foremost.sourceforge.net/pkg/foremost-1.5.7.tar.gz'
|
|
|
|
homepage 'http://foremost.sourceforge.net/'
|
2012-09-03 18:33:56 +00:00
|
|
|
sha1 'c26d68990d7bd5245d5f7dc83c9217642a7a2056'
|
2010-05-14 16:53:48 +00:00
|
|
|
|
|
|
|
def install
|
|
|
|
inreplace "Makefile" do |s|
|
|
|
|
s.gsub! "/usr/", "#{prefix}/"
|
|
|
|
s.change_make_var! "RAW_CC", ENV.cc
|
2010-08-10 15:05:31 +00:00
|
|
|
s.change_make_var! "RAW_FLAGS", ENV.cflags
|
2010-05-14 16:53:48 +00:00
|
|
|
end
|
|
|
|
|
|
|
|
system "make mac"
|
|
|
|
|
|
|
|
bin.install "foremost"
|
2010-04-07 05:58:35 +00:00
|
|
|
man8.install "foremost.8.gz"
|
2010-05-14 16:53:48 +00:00
|
|
|
etc.install "foremost.conf" => "foremost.conf.sample"
|
|
|
|
end
|
|
|
|
end
|