2012-02-27 00:41:17 +00:00
|
|
|
require 'formula'
|
|
|
|
|
|
|
|
class Automake < Formula
|
|
|
|
homepage 'http://www.gnu.org/software/automake/'
|
2013-12-28 22:35:59 +00:00
|
|
|
url 'http://ftpmirror.gnu.org/automake/automake-1.14.1.tar.gz'
|
|
|
|
mirror 'http://ftp.gnu.org/gnu/automake/automake-1.14.1.tar.gz'
|
|
|
|
sha1 '0bb1714b78d70cab9907d2013082978a28f48a46'
|
2012-02-27 00:41:17 +00:00
|
|
|
|
2013-10-28 10:34:34 +00:00
|
|
|
bottle do
|
2013-12-28 22:35:59 +00:00
|
|
|
sha1 '8720e073a828e5b7e29e5cacd01b3ccca88a6d40' => :mavericks
|
|
|
|
sha1 'ed3cba7f2a806a4192e875e809bb73b65a128757' => :mountain_lion
|
|
|
|
sha1 '12d0d7d3b6d31ea4faf9551076225343e9a5af1f' => :lion
|
2013-10-28 10:34:34 +00:00
|
|
|
end
|
|
|
|
|
2012-07-10 20:32:52 +00:00
|
|
|
# Always needs a newer autoconf, even on Snow Leopard.
|
2013-11-04 18:00:06 +00:00
|
|
|
depends_on 'autoconf' => :run
|
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/automake"
|
2012-02-27 00:41:17 +00:00
|
|
|
keg_only "Xcode (up to and including 4.2) provides (a rather old) Automake."
|
|
|
|
end
|
|
|
|
|
|
|
|
def install
|
2013-08-16 16:24:26 +00:00
|
|
|
ENV['PERL'] = '/usr/bin/perl'
|
|
|
|
|
2012-02-28 17:32:39 +00:00
|
|
|
system "./configure", "--prefix=#{prefix}"
|
2012-02-27 00:41:17 +00:00
|
|
|
system "make install"
|
|
|
|
|
2012-07-07 18:08:22 +00:00
|
|
|
# Our aclocal must go first. See:
|
2013-12-14 18:13:11 +00:00
|
|
|
# https://github.com/Homebrew/homebrew/issues/10618
|
2012-02-27 12:11:20 +00:00
|
|
|
(share/"aclocal/dirlist").write <<-EOS.undent
|
2012-02-27 00:41:17 +00:00
|
|
|
#{HOMEBREW_PREFIX}/share/aclocal
|
2012-03-06 12:35:36 +00:00
|
|
|
/usr/share/aclocal
|
2012-07-07 18:08:22 +00:00
|
|
|
EOS
|
2012-02-27 00:41:17 +00:00
|
|
|
end
|
|
|
|
|
|
|
|
def test
|
2012-05-15 21:36:45 +00:00
|
|
|
system "#{bin}/automake", "--version"
|
2012-02-27 00:41:17 +00:00
|
|
|
end
|
|
|
|
end
|