2009-10-15 08:07:12 +00:00
|
|
|
require 'formula'
|
2009-09-18 17:14:20 +00:00
|
|
|
|
|
|
|
class GnuTar < Formula
|
2012-08-13 14:56:49 +00:00
|
|
|
homepage 'http://www.gnu.org/software/tar/'
|
2011-09-12 16:31:30 +00:00
|
|
|
url 'http://ftpmirror.gnu.org/tar/tar-1.26.tar.gz'
|
2011-11-30 18:56:07 +00:00
|
|
|
mirror 'http://ftp.gnu.org/gnu/tar/tar-1.26.tar.gz'
|
2012-08-13 14:56:49 +00:00
|
|
|
sha1 'ba89cba98c1a6aea3c80cda5ddcd5eceb5adbb9b'
|
2009-09-18 17:14:20 +00:00
|
|
|
|
2012-08-13 14:56:49 +00:00
|
|
|
option 'default-names', "Do not prepend 'g' to the binary"
|
2010-07-22 16:36:44 +00:00
|
|
|
|
2009-09-18 17:14:20 +00:00
|
|
|
def install
|
2012-08-13 14:56:49 +00:00
|
|
|
args = ["--prefix=#{prefix}", "--mandir=#{man}"]
|
|
|
|
args << "--program-prefix=g" unless build.include? 'default-names'
|
2010-07-22 16:36:44 +00:00
|
|
|
|
2010-04-07 05:58:35 +00:00
|
|
|
system "./configure", *args
|
2009-09-18 17:14:20 +00:00
|
|
|
system "make install"
|
|
|
|
end
|
|
|
|
end
|