2012-02-27 00:41:17 +00:00
|
|
|
require 'formula'
|
|
|
|
|
|
|
|
class Automake < Formula
|
|
|
|
homepage 'http://www.gnu.org/software/automake/'
|
2012-02-27 09:04:27 +00:00
|
|
|
url 'http://ftpmirror.gnu.org/automake/automake-1.11.3.tar.gz'
|
2012-02-27 20:08:11 +00:00
|
|
|
mirror 'http://ftp.gnu.org/gnu/automake/automake-1.11.3.tar.gz'
|
2012-02-27 09:04:27 +00:00
|
|
|
md5 '93ecb319f0365cb801990b00f658d026'
|
2012-02-27 00:41:17 +00:00
|
|
|
|
|
|
|
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"
|
|
|
|
|
2012-02-27 12:11:20 +00:00
|
|
|
(share/"aclocal/dirlist").write <<-EOS.undent
|
2012-02-27 00:41:17 +00:00
|
|
|
/usr/share/aclocal
|
|
|
|
#{HOMEBREW_PREFIX}/share/aclocal
|
|
|
|
EOS
|
|
|
|
end
|
|
|
|
|
|
|
|
def test
|
2012-02-27 20:08:58 +00:00
|
|
|
system "#{bin}/automake --version"
|
2012-02-27 00:41:17 +00:00
|
|
|
end
|
|
|
|
end
|