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
|
|
|
|
2013-10-28 10:34:25 +00:00
|
|
|
bottle do
|
2014-02-16 18:51:43 +00:00
|
|
|
revision 1
|
|
|
|
sha1 "319a4ac05d83b5b3db37dcc629a46a412ec1989b" => :mavericks
|
|
|
|
sha1 "83184a596d69f3a868e6780c1c8fba309ea28fb2" => :mountain_lion
|
|
|
|
sha1 "7d31f63e5ddd1bbbf0397b0b70df1ff9e70f998b" => :lion
|
2013-10-28 10:34:25 +00:00
|
|
|
end
|
|
|
|
|
2014-04-03 14:11:51 +00:00
|
|
|
keg_only :provided_until_xcode43
|
2012-02-27 20:08:58 +00:00
|
|
|
|
2012-02-27 00:41:17 +00:00
|
|
|
def install
|
2013-08-16 16:24:18 +00:00
|
|
|
ENV['PERL'] = '/usr/bin/perl'
|
|
|
|
|
2013-01-27 22:37:00 +00:00
|
|
|
# force autoreconf to look for and use our glibtoolize
|
|
|
|
inreplace 'bin/autoreconf.in', 'libtoolize', 'glibtoolize'
|
2013-11-12 18:37:07 +00:00
|
|
|
# also touch the man page so that it isn't rebuilt
|
|
|
|
inreplace 'man/autoreconf.1', '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"
|
2014-01-02 15:38:17 +00:00
|
|
|
rm_f info/'standards.info'
|
2012-02-27 00:41:17 +00:00
|
|
|
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
|