2012-02-27 00:41:17 +00:00
|
|
|
require 'formula'
|
|
|
|
|
|
|
|
class Autoconf < Formula
|
|
|
|
homepage 'http://www.gnu.org/software/autoconf'
|
2012-04-25 04:59:59 +00:00
|
|
|
url 'http://ftpmirror.gnu.org/autoconf/autoconf-2.69.tar.gz'
|
|
|
|
mirror 'http://ftp.gnu.org/gnu/autoconf/autoconf-2.69.tar.gz'
|
|
|
|
sha1 '562471cbcb0dd0fa42a76665acf0dbb68479b78a'
|
2012-02-27 00:41:17 +00:00
|
|
|
|
2012-07-11 01:25:16 +00:00
|
|
|
if MacOS::Xcode.provides_autotools? or File.file? "/usr/bin/autoconf"
|
2012-02-27 20:08:58 +00:00
|
|
|
keg_only "Xcode (up to and including 4.2) provides (a rather old) Autoconf."
|
|
|
|
end
|
|
|
|
|
2012-02-27 12:20:49 +00:00
|
|
|
def patches
|
|
|
|
# force autoreconf to look for and use our glibtoolize
|
|
|
|
DATA
|
|
|
|
end
|
|
|
|
|
2012-02-27 00:41:17 +00:00
|
|
|
def install
|
2012-02-28 17:32:21 +00:00
|
|
|
system "./configure", "--prefix=#{prefix}"
|
2012-02-27 00:41:17 +00:00
|
|
|
system "make install"
|
|
|
|
end
|
|
|
|
|
|
|
|
def test
|
2012-05-15 21:36:45 +00:00
|
|
|
system "#{bin}/autoconf", "--version"
|
2012-02-27 00:41:17 +00:00
|
|
|
end
|
|
|
|
end
|
2012-02-27 12:20:49 +00:00
|
|
|
|
|
|
|
|
|
|
|
__END__
|
2012-04-25 04:59:59 +00:00
|
|
|
--- a/bin/autoreconf.in 2012-04-24 15:00:28.000000000 -0700
|
|
|
|
+++ b/bin/autoreconf.in 2012-04-24 21:51:41.000000000 -0700
|
|
|
|
@@ -111,7 +111,7 @@
|
2012-02-27 12:20:49 +00:00
|
|
|
my $autom4te = $ENV{'AUTOM4TE'} || '@bindir@/@autom4te-name@';
|
|
|
|
my $automake = $ENV{'AUTOMAKE'} || 'automake';
|
|
|
|
my $aclocal = $ENV{'ACLOCAL'} || 'aclocal';
|
|
|
|
-my $libtoolize = $ENV{'LIBTOOLIZE'} || 'libtoolize';
|
|
|
|
+my $libtoolize = $ENV{'LIBTOOLIZE'} || 'glibtoolize';
|
|
|
|
my $autopoint = $ENV{'AUTOPOINT'} || 'autopoint';
|
|
|
|
my $make = $ENV{'MAKE'} || 'make';
|
|
|
|
|