ec289fdf2e
I sat on this for a while because I was afraid of introducing compatibility issues like 1.13 did, but MacPorts has shipped this for a couple of weeks now and upstream seems to be serious about using semantic versioning, so let's give it a shot.
31 lines
885 B
Ruby
31 lines
885 B
Ruby
require 'formula'
|
|
|
|
class Automake < Formula
|
|
homepage 'http://www.gnu.org/software/automake/'
|
|
url 'http://ftpmirror.gnu.org/automake/automake-1.14.tar.gz'
|
|
mirror 'http://ftp.gnu.org/gnu/automake/automake-1.14.tar.gz'
|
|
sha1 '648f7a3cf8473ff6aa433c7721cab1c7fae8d06c'
|
|
|
|
# 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
|