gnu-tar: patch configure, don't autoreconf

This commit is contained in:
Misty De Meo 2014-08-13 23:14:37 -07:00
parent 5d15095720
commit aef9a1792d

View file

@ -12,23 +12,17 @@ class GnuTar < Formula
sha1 "8f68e3ef6195270056223f15b011d7249684480d" => :lion
end
# autoconf/automake can be removed when the patch is merged upstream.
depends_on "autoconf" => :build
depends_on "automake" => :build
# Fix for xattrs bug causing build failures on OS X:
# https://lists.gnu.org/archive/html/bug-tar/2014-08/msg00001.html
patch :p1 do
url "https://raw.githubusercontent.com/DomT4/patch-mayhem/master/0001-xattrs-fix-bug-in-configure.patch"
sha1 "d8d9f9f5862fa1c1468a914e609daaf57accf3d2"
url "https://gist.githubusercontent.com/mistydemeo/10fbae8b8441359ba86d/raw/e5c183b72036821856f9e82b46fba6185e10e8b9/gnutar-configure-xattrs.patch"
sha1 "55d570de077eb1dd30b1e499484f28636fbda882"
end
def install
args = ["--prefix=#{prefix}", "--mandir=#{man}"]
args << "--program-prefix=g"
# autoreconf can be removed when the patch is merged upstream.
system "autoreconf"
system "./configure", *args
system "make", "install"