GNU which 2.20
Signed-off-by: Adam Vandenberg <flangy@gmail.com>
This commit is contained in:
parent
7224bb21a5
commit
bd27751de0
1 changed files with 19 additions and 0 deletions
19
Formula/gnu-which.rb
Normal file
19
Formula/gnu-which.rb
Normal file
|
@ -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
|
Loading…
Reference in a new issue