homebrew-core/Formula/automake.rb

32 lines
889 B
Ruby
Raw Normal View History

require 'formula'
class Automake < Formula
homepage 'http://www.gnu.org/software/automake/'
2013-06-20 18:10:30 +00:00
url 'http://ftpmirror.gnu.org/automake/automake-1.13.4.tar.gz'
mirror 'http://ftp.gnu.org/gnu/automake/automake-1.13.4.tar.gz'
sha1 '627d9df65f2edc2c0e9e6aa270d1c2c068921a3a'
2012-07-10 20:32:52 +00:00
# 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"
2012-07-07 18:08:22 +00:00
# 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
2012-07-07 18:08:22 +00:00
EOS
end
def test
system "#{bin}/automake", "--version"
end
end