homebrew-core/Formula/autoconf.rb

37 lines
1.2 KiB
Ruby
Raw Normal View History

require 'formula'
class Autoconf < Formula
homepage 'http://www.gnu.org/software/autoconf'
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'
2013-10-28 10:34:25 +00:00
bottle do
revision 1
sha1 "319a4ac05d83b5b3db37dcc629a46a412ec1989b" => :mavericks
sha1 "83184a596d69f3a868e6780c1c8fba309ea28fb2" => :mountain_lion
sha1 "7d31f63e5ddd1bbbf0397b0b70df1ff9e70f998b" => :lion
2013-10-28 10:34:25 +00:00
end
if MacOS::Xcode.provides_autotools? or File.file? "/usr/bin/autoconf"
keg_only "Xcode (up to and including 4.2) provides (a rather old) Autoconf."
end
def install
ENV['PERL'] = '/usr/bin/perl'
# force autoreconf to look for and use our glibtoolize
inreplace 'bin/autoreconf.in', 'libtoolize', 'glibtoolize'
# also touch the man page so that it isn't rebuilt
inreplace 'man/autoreconf.1', 'libtoolize', 'glibtoolize'
system "./configure", "--prefix=#{prefix}"
system "make install"
rm_f info/'standards.info'
end
test do
cp "#{share}/autoconf/autotest/autotest.m4", 'autotest.m4'
system "#{bin}/autoconf", 'autotest.m4'
end
end