homebrew-core/Formula/automake.rb
Jack Nagel c1fd9b501e Use cellar paths in tests
This lets `brew test` work when these are keg-only, etc. Also fix a
couple of typos and style things.

Signed-off-by: Jack Nagel <jacknagel@gmail.com>
2012-02-27 14:11:01 -06:00

29 lines
808 B
Ruby

require 'formula'
class Automake < Formula
homepage 'http://www.gnu.org/software/automake/'
url 'http://ftpmirror.gnu.org/automake/automake-1.11.3.tar.gz'
mirror 'http://ftp.gnu.org/gnu/automake/automake-1.11.3.tar.gz'
md5 '93ecb319f0365cb801990b00f658d026'
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/dirlist").write <<-EOS.undent
/usr/share/aclocal
#{HOMEBREW_PREFIX}/share/aclocal
EOS
end
def test
system "#{bin}/automake --version"
end
end