homebrew-core/Formula/findutils.rb

22 lines
652 B
Ruby
Raw Normal View History

require 'formula'
2009-09-07 16:27:11 +00:00
2011-03-10 05:11:03 +00:00
class Findutils < Formula
homepage 'http://www.gnu.org/software/findutils/'
url 'http://ftpmirror.gnu.org/findutils/findutils-4.4.2.tar.gz'
mirror 'http://ftp.gnu.org/gnu/findutils/findutils-4.4.2.tar.gz'
sha1 'e8dd88fa2cc58abffd0bfc1eddab9020231bb024'
2009-09-07 16:27:11 +00:00
option 'default-names', "Do not prepend 'g' to the binary"
2009-09-07 16:27:11 +00:00
def install
args = ["--prefix=#{prefix}",
"--localstatedir=#{var}/locate",
"--disable-dependency-tracking",
"--disable-debug"]
args << "--program-prefix=g" unless build.include? 'default-names'
system "./configure", *args
2009-09-07 16:27:11 +00:00
system "make install"
end
end