85374334e7
Closes Homebrew/homebrew#23106. Signed-off-by: Adam Vandenberg <flangy@gmail.com>
29 lines
787 B
Ruby
29 lines
787 B
Ruby
require 'formula'
|
|
|
|
class GnuTar < Formula
|
|
homepage 'http://www.gnu.org/software/tar/'
|
|
url 'http://ftpmirror.gnu.org/tar/tar-1.27.tar.gz'
|
|
mirror 'http://ftp.gnu.org/gnu/tar/tar-1.27.tar.gz'
|
|
sha1 '790cf784589a9fcc1ced33517e71051e3642642f'
|
|
|
|
def install
|
|
args = ["--prefix=#{prefix}", "--mandir=#{man}"]
|
|
args << "--program-prefix=g"
|
|
|
|
system "./configure", *args
|
|
system "make install"
|
|
|
|
# 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:
|
|
|
|
PATH="#{opt_prefix}/libexec/gnubin:$PATH"
|
|
EOS
|
|
end
|
|
end
|