gnu-tar: use options DSL
Signed-off-by: Jack Nagel <jacknagel@gmail.com>
This commit is contained in:
parent
1a5b46ed51
commit
ecabf4fd8b
1 changed files with 5 additions and 7 deletions
|
@ -1,18 +1,16 @@
|
|||
require 'formula'
|
||||
|
||||
class GnuTar < Formula
|
||||
homepage 'http://www.gnu.org/software/tar/'
|
||||
url 'http://ftpmirror.gnu.org/tar/tar-1.26.tar.gz'
|
||||
mirror 'http://ftp.gnu.org/gnu/tar/tar-1.26.tar.gz'
|
||||
homepage 'http://www.gnu.org/software/tar/'
|
||||
md5 '00d1e769c6af702c542cca54b728920d'
|
||||
sha1 'ba89cba98c1a6aea3c80cda5ddcd5eceb5adbb9b'
|
||||
|
||||
def options
|
||||
[['--default-names', "Do NOT prepend 'g' to the binary; will override system tar."]]
|
||||
end
|
||||
option 'default-names', "Do not prepend 'g' to the binary"
|
||||
|
||||
def install
|
||||
args = [ "--prefix=#{prefix}" , "--mandir=#{man}" ]
|
||||
args << "--program-prefix=g" unless ARGV.include? '--default-names'
|
||||
args = ["--prefix=#{prefix}", "--mandir=#{man}"]
|
||||
args << "--program-prefix=g" unless build.include? 'default-names'
|
||||
|
||||
system "./configure", *args
|
||||
system "make install"
|
||||
|
|
Loading…
Reference in a new issue