aboutsummaryrefslogtreecommitdiffstats
path: root/Library
diff options
context:
space:
mode:
authorJack Nagel2012-08-13 09:57:12 -0500
committerJack Nagel2012-08-13 09:57:40 -0500
commit561e6d32c16a6a726f55635d70300ffd92d59236 (patch)
treea663d4f829335b0bba0d0f6b11d5a6703e6d3106 /Library
parent0f1643525ab4e296c6349061f2ca13c3eb4c6cd4 (diff)
downloadhomebrew-561e6d32c16a6a726f55635d70300ffd92d59236.tar.bz2
gnu-which: use options DSL
Signed-off-by: Jack Nagel <jacknagel@gmail.com>
Diffstat (limited to 'Library')
-rw-r--r--Library/Formula/gnu-which.rb10
1 files changed, 4 insertions, 6 deletions
diff --git a/Library/Formula/gnu-which.rb b/Library/Formula/gnu-which.rb
index cd7cd2a09..a472687f8 100644
--- a/Library/Formula/gnu-which.rb
+++ b/Library/Formula/gnu-which.rb
@@ -1,18 +1,16 @@
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'
- homepage 'http://carlo17.home.xs4all.nl/which/'
- md5 '95be0501a466e515422cde4af46b2744'
+ sha1 '3bcd6d87aa5231917ba7123319eedcae90cfa0fd'
- def options
- [['--default-names', "Do NOT prepend 'g' to the binary; will override system utils."]]
- end
+ option 'default-names', "Do not prepend 'g' to the binary"
def install
args = ["--prefix=#{prefix}", "--disable-dependency-tracking"]
- args << "--program-prefix=g" unless ARGV.include? '--default-names'
+ args << "--program-prefix=g" unless build.include? 'default-names'
system "./configure", *args
system "make install"