homebrew-core/Formula/gnu-tar.rb
Jack Nagel ecabf4fd8b gnu-tar: use options DSL
Signed-off-by: Jack Nagel <jacknagel@gmail.com>
2012-08-13 09:57:39 -05:00

18 lines
515 B
Ruby

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'
sha1 'ba89cba98c1a6aea3c80cda5ddcd5eceb5adbb9b'
option 'default-names', "Do not prepend 'g' to the binary"
def install
args = ["--prefix=#{prefix}", "--mandir=#{man}"]
args << "--program-prefix=g" unless build.include? 'default-names'
system "./configure", *args
system "make install"
end
end