diff options
| author | Adam Vandenberg | 2010-05-14 09:53:48 -0700 |
|---|---|---|
| committer | Adam Vandenberg | 2010-05-14 09:53:48 -0700 |
| commit | 0612e0cd0814ff3a5d43664b668374948e824d9c (patch) | |
| tree | ac4daf924cf82282324a84a50f2500331f8cf4ad /Library/Formula/foremost.rb | |
| parent | 9845e9487ca9688fcee17c5c34339ce8589874c6 (diff) | |
| download | homebrew-0612e0cd0814ff3a5d43664b668374948e824d9c.tar.bz2 | |
Added foremost
Diffstat (limited to 'Library/Formula/foremost.rb')
| -rw-r--r-- | Library/Formula/foremost.rb | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/Library/Formula/foremost.rb b/Library/Formula/foremost.rb new file mode 100644 index 000000000..d20426ceb --- /dev/null +++ b/Library/Formula/foremost.rb @@ -0,0 +1,21 @@ +require 'formula' + +class Foremost <Formula + url 'http://foremost.sourceforge.net/pkg/foremost-1.5.7.tar.gz' + homepage 'http://foremost.sourceforge.net/' + md5 '860119c49665c2a3fb2b0b1d3dbad02a' + + def install + inreplace "Makefile" do |s| + s.gsub! "/usr/", "#{prefix}/" + s.change_make_var! "RAW_CC", ENV.cc + s.change_make_var! "RAW_FLAGS", ENV['CFLAGS'] + end + + system "make mac" + + bin.install "foremost" + (man+"man8").install "foremost.8.gz" + etc.install "foremost.conf" => "foremost.conf.sample" + end +end |
