findutils: add --default-names option

Closes Homebrew/homebrew#15643.

Signed-off-by: Adam Vandenberg <flangy@gmail.com>
This commit is contained in:
Daniel Schuler 2012-10-24 07:52:46 -07:00 committed by Adam Vandenberg
parent bb67adee4e
commit 6d751da366

View file

@ -1,14 +1,20 @@
require 'formula' require 'formula'
class Findutils < Formula class Findutils < Formula
homepage 'http://www.gnu.org/software/findutils/'
url 'http://ftpmirror.gnu.org/findutils/findutils-4.4.2.tar.gz' 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' mirror 'http://ftp.gnu.org/gnu/findutils/findutils-4.4.2.tar.gz'
homepage 'http://www.gnu.org/software/findutils/'
sha1 'e8dd88fa2cc58abffd0bfc1eddab9020231bb024' sha1 'e8dd88fa2cc58abffd0bfc1eddab9020231bb024'
option 'default-names', "Do not prepend 'g' to the binary"
def install def install
system "./configure", "--prefix=#{prefix}", "--program-prefix=g", args = ["--prefix=#{prefix}",
"--disable-dependency-tracking", "--disable-debug" "--disable-dependency-tracking",
"--disable-debug"]
args << "--program-prefix=g" unless build.include? 'default-names'
system "./configure", *args
system "make install" system "make install"
end end
end end