homebrew-core/Formula/automake.rb
2012-02-27 04:22:52 +00:00

33 lines
1 KiB
Ruby

require 'formula'
class Automake < Formula
homepage 'http://www.gnu.org/software/automake/'
url 'http://ftpmirror.gnu.org/automake/automake-1.11.tar.gz'
md5 'fab0bd2c3990a6679adaf9eeac0c6d2a'
depends_on "autoconf"
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", "--disable-debug", "--disable-dependency-tracking",
"--prefix=#{prefix}"
system "make install"
(share/"aclocal-#{version}/dirlist").write <<-EOS.undent
/usr/share/aclocal
#{HOMEBREW_PREFIX}/share/aclocal
EOS
end
def test
# This test will fail and we won't accept that! It's enough to just
# replace "false" with the main program this formula installs, but
# it'd be nice if you were more thorough. Test the test with
# `brew test automake`. Remove this comment before submitting
# your pull request!
system "#{HOMEBREW_PREFIX}/bin/automake --version"
end
end