homebrew-core/Formula/gnu-which.rb
Jack Nagel ef8574bbf5 gnu-which: use options DSL
Signed-off-by: Jack Nagel <jacknagel@gmail.com>
2012-08-13 09:57:40 -05:00

18 lines
543 B
Ruby

require 'formula'
class GnuWhich < Formula
homepage 'http://carlo17.home.xs4all.nl/which/'
url 'http://ftpmirror.gnu.org/which/which-2.20.tar.gz'
mirror 'http://ftp.gnu.org/gnu/which/which-2.20.tar.gz'
sha1 '3bcd6d87aa5231917ba7123319eedcae90cfa0fd'
option 'default-names', "Do not prepend 'g' to the binary"
def install
args = ["--prefix=#{prefix}", "--disable-dependency-tracking"]
args << "--program-prefix=g" unless build.include? 'default-names'
system "./configure", *args
system "make install"
end
end