2011-11-27 11:10:28 +00:00
|
|
|
require 'formula'
|
|
|
|
|
|
|
|
class GnuWhich < Formula
|
2012-08-13 14:57:12 +00:00
|
|
|
homepage 'http://carlo17.home.xs4all.nl/which/'
|
2011-11-27 11:10:28 +00:00
|
|
|
url 'http://ftpmirror.gnu.org/which/which-2.20.tar.gz'
|
2011-11-30 18:56:07 +00:00
|
|
|
mirror 'http://ftp.gnu.org/gnu/which/which-2.20.tar.gz'
|
2012-08-13 14:57:12 +00:00
|
|
|
sha1 '3bcd6d87aa5231917ba7123319eedcae90cfa0fd'
|
2011-11-27 11:10:28 +00:00
|
|
|
|
2012-08-13 14:57:12 +00:00
|
|
|
option 'default-names', "Do not prepend 'g' to the binary"
|
2011-11-27 11:10:28 +00:00
|
|
|
|
|
|
|
def install
|
|
|
|
args = ["--prefix=#{prefix}", "--disable-dependency-tracking"]
|
2012-08-13 14:57:12 +00:00
|
|
|
args << "--program-prefix=g" unless build.include? 'default-names'
|
2011-11-27 11:10:28 +00:00
|
|
|
|
|
|
|
system "./configure", *args
|
|
|
|
system "make install"
|
|
|
|
end
|
|
|
|
end
|