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 00:41:17 +00:00
|
|
|
def install
|
2013-01-27 22:37:00 +00:00
|
|
|
# force autoreconf to look for and use our glibtoolize
|
|
|
|
inreplace 'bin/autoreconf.in', 'libtoolize', 'glibtoolize'
|
2012-02-28 17:32:21 +00:00
|
|
|
system "./configure", "--prefix=#{prefix}"
|
2012-02-27 00:41:17 +00:00
|
|
|
system "make install"
|
|
|
|
end
|
|
|
|
|
2013-01-27 22:37:00 +00:00
|
|
|
test do
|
|
|
|
cp "#{share}/autoconf/autotest/autotest.m4", 'autotest.m4'
|
|
|
|
system "#{bin}/autoconf", 'autotest.m4'
|
2012-02-27 00:41:17 +00:00
|
|
|
end
|
|
|
|
end
|