homebrew-core/Formula/automake.rb

40 lines
1.1 KiB
Ruby
Raw Normal View History

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'
2013-10-28 10:34:34 +00:00
bottle do
sha1 'd4b453a2c8d0f4c0cefa499a8f658448d781225e' => :mavericks
sha1 'bbbd4cc22501df3e747596d4bfd02cba987fc852' => :mountain_lion
sha1 '8ee87f97dc533fd1b86a46dff0b05d831070c6cb' => :lion
end
2012-07-10 20:32:52 +00:00
# Always needs a newer autoconf, even on Snow Leopard.
depends_on 'autoconf' => :run
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
ENV['PERL'] = '/usr/bin/perl'
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