homebrew-core/Formula/automake.rb
nibbles 2bits d77cf18072 automake 1.11.4
Signed-off-by: Adam Vandenberg <flangy@gmail.com>
2012-04-05 07:14:55 -07:00

29 lines
828 B
Ruby

require 'formula'
class Automake < Formula
homepage 'http://www.gnu.org/software/automake/'
url 'http://ftpmirror.gnu.org/automake/automake-1.11.4.tar.gz'
mirror 'http://ftp.gnu.org/gnu/automake/automake-1.11.4.tar.gz'
sha1 '6223b9a507fc33e30b7291dfbcc7c9fc9ee0b133'
depends_on "autoconf" => :build
if MacOS.xcode_version.to_f < 4.3 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: 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