homebrew-core/Formula/gnu-tar.rb

20 lines
501 B
Ruby
Raw Normal View History

require 'formula'
2009-09-18 17:14:20 +00:00
class GnuTar < Formula
2010-11-14 00:59:39 +00:00
url 'ftp://ftp.gnu.org/gnu/tar/tar-1.25.tar.gz'
2009-11-18 23:43:33 +00:00
homepage 'http://www.gnu.org/software/tar/'
2010-11-14 00:59:39 +00:00
md5 '0e48e9e473a72f135d0ebbc8af2762cc'
2009-09-18 17:14:20 +00:00
def options
[['--default-names', "Do NOT prepend 'g' to the binary; will override system tar."]]
end
2009-09-18 17:14:20 +00:00
def install
args = [ "--prefix=#{prefix}" , "--mandir=#{man}" ]
args << "--program-prefix=g" unless ARGV.include? '--default-names'
system "./configure", *args
2009-09-18 17:14:20 +00:00
system "make install"
end
end