Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

gnu-tar: use options DSL

Signed-off-by: Jack Nagel <jacknagel@gmail.com>
  • Loading branch information...
commit 68cfdd0ba487b88dbb7d4cb4d84f3887062234cd 1 parent fa07484
@jacknagel jacknagel authored
Showing with 5 additions and 7 deletions.
  1. +5 −7 Library/Formula/gnu-tar.rb
View
12 Library/Formula/gnu-tar.rb
@@ -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"
Please sign in to comment.
Something went wrong with that request. Please try again.