aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Formula
diff options
context:
space:
mode:
authorTareq A Khandaker2011-11-27 06:10:28 -0500
committerAdam Vandenberg2011-11-27 08:35:40 -0800
commitc8ffc2f1e89de95dc37d7cfb214f97028d1dc2d5 (patch)
tree5b8f64261bac8df11c2fd4ddb907870580a5668d /Library/Formula
parentc5be4a70e2d42f9e9582ff44dabebbe0f3e8574e (diff)
downloadhomebrew-c8ffc2f1e89de95dc37d7cfb214f97028d1dc2d5.tar.bz2
GNU which 2.20
Signed-off-by: Adam Vandenberg <flangy@gmail.com>
Diffstat (limited to 'Library/Formula')
-rw-r--r--Library/Formula/gnu-which.rb19
1 files changed, 19 insertions, 0 deletions
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