From c8ffc2f1e89de95dc37d7cfb214f97028d1dc2d5 Mon Sep 17 00:00:00 2001 From: Tareq A Khandaker Date: Sun, 27 Nov 2011 06:10:28 -0500 Subject: GNU which 2.20 Signed-off-by: Adam Vandenberg --- Library/Formula/gnu-which.rb | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) create mode 100644 Library/Formula/gnu-which.rb (limited to 'Library/Formula') diff --git a/Library/Formula/gnu-which.rb b/Library/Formula/gnu-which.rb new file mode 100644 index 000000000..d6e090cd6 --- /dev/null +++ b/Library/Formula/gnu-which.rb @@ -0,0 +1,19 @@ +require 'formula' + +class GnuWhich < Formula + url 'http://ftpmirror.gnu.org/which/which-2.20.tar.gz' + homepage 'http://carlo17.home.xs4all.nl/which/' + md5 '95be0501a466e515422cde4af46b2744' + + def options + [['--default-names', "Do NOT prepend 'g' to the binary; will override system utils."]] + end + + def install + args = ["--prefix=#{prefix}", "--disable-dependency-tracking"] + args << "--program-prefix=g" unless ARGV.include? '--default-names' + + system "./configure", *args + system "make install" + end +end -- cgit v1.2.3