2009-10-15 08:07:12 +00:00
|
|
|
require 'formula'
|
2009-09-18 17:14:20 +00:00
|
|
|
|
|
|
|
class GnuTar < Formula
|
2009-11-18 23:43:33 +00:00
|
|
|
url 'ftp://ftp.gnu.org/gnu/tar/tar-1.22.tar.gz'
|
|
|
|
homepage 'http://www.gnu.org/software/tar/'
|
|
|
|
md5 'efafad1b256e3de410f4fce5335d9c9d'
|
2009-09-18 17:14:20 +00:00
|
|
|
|
2010-07-22 16:36:44 +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
|
2010-07-22 16:36:44 +00:00
|
|
|
args = [ "--prefix=#{prefix}" , "--mandir=#{man}" ]
|
|
|
|
args << "--program-prefix=g" unless ARGV.include? '--default-names'
|
|
|
|
|
2010-04-07 05:58:35 +00:00
|
|
|
system "./configure", *args
|
2009-09-18 17:14:20 +00:00
|
|
|
system "make install"
|
|
|
|
end
|
|
|
|
end
|