blob: a472687f8e44388ee60c78a9a473851a9a7f5e96 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
|
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
|