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/'
|
2014-05-12 10:16:43 +00:00
|
|
|
url 'http://ftpmirror.gnu.org/tar/tar-1.27.1.tar.gz'
|
|
|
|
mirror 'http://ftp.gnu.org/gnu/tar/tar-1.27.1.tar.gz'
|
|
|
|
sha1 '192f480cac95b1fbaff11c87a64f7092045b411b'
|
2009-09-18 17:14:20 +00:00
|
|
|
|
2014-02-22 22:42:52 +00:00
|
|
|
bottle do
|
2014-05-12 13:19:19 +00:00
|
|
|
sha1 "ecc6fc62b93bee896a2bd6e604c934bdb9bdc2dd" => :mavericks
|
|
|
|
sha1 "ac457284fa432dc49d5f8166c050421cb6561102" => :mountain_lion
|
|
|
|
sha1 "33c07152ade47e3b3c7bfa2d66346a0acc5ff3ef" => :lion
|
2014-02-22 22:42:52 +00:00
|
|
|
end
|
|
|
|
|
2009-09-18 17:14:20 +00:00
|
|
|
def install
|
2012-08-13 14:56:49 +00:00
|
|
|
args = ["--prefix=#{prefix}", "--mandir=#{man}"]
|
2013-08-20 21:18:56 +00:00
|
|
|
args << "--program-prefix=g"
|
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"
|
2013-08-20 21:18:56 +00:00
|
|
|
|
|
|
|
# Symlink the executable into libexec/gnubin as "tar"
|
|
|
|
(libexec/'gnubin').install_symlink bin/"gtar" => "tar"
|
|
|
|
end
|
|
|
|
|
|
|
|
def caveats; <<-EOS.undent
|
|
|
|
gnu-tar has been installed as 'gtar'.
|
|
|
|
|
|
|
|
If you really need to use it as 'tar', you can add a 'gnubin' directory
|
|
|
|
to your PATH from your bashrc like:
|
|
|
|
|
2014-03-06 05:28:31 +00:00
|
|
|
PATH="#{opt_libexec}/gnubin:$PATH"
|
2013-08-20 21:18:56 +00:00
|
|
|
EOS
|
2009-09-18 17:14:20 +00:00
|
|
|
end
|
|
|
|
end
|