homebrew-core/Formula/automake.rb
Jack Nagel 7ce13c3f2a automake 1.13.1
1.13.1 has a better error message for the recently removed macros, so
there's that at least.
2013-01-06 20:59:05 -06:00

31 lines
889 B
Ruby

require 'formula'
class Automake < Formula
homepage 'http://www.gnu.org/software/automake/'
url 'http://ftpmirror.gnu.org/automake/automake-1.13.1.tar.gz'
mirror 'http://ftp.gnu.org/gnu/automake/automake-1.13.1.tar.gz'
sha1 '1778a1ab4ec2587aeceaf43b43536f11393cc59e'
# Always needs a newer autoconf, even on Snow Leopard.
depends_on 'autoconf'
if MacOS::Xcode.provides_autotools? or File.file? "/usr/bin/automake"
keg_only "Xcode (up to and including 4.2) provides (a rather old) Automake."
end
def install
system "./configure", "--prefix=#{prefix}"
system "make install"
# Our aclocal must go first. See:
# https://github.com/mxcl/homebrew/issues/10618
(share/"aclocal/dirlist").write <<-EOS.undent
#{HOMEBREW_PREFIX}/share/aclocal
/usr/share/aclocal
EOS
end
def test
system "#{bin}/automake", "--version"
end
end