Browse files

automake 1.12.5

Fixes 70

Closes #83.

Signed-off-by: Jack Nagel <jacknagel@gmail.com>
  • Loading branch information...
1 parent 6048d47 commit 3357a89cffd9849bf86a2e478d6a102d7abb0f4b Jim Whitehead committed with jacknagel Feb 18, 2013
Showing with 31 additions and 0 deletions.
  1. +31 −0 automake112.rb
View
31 automake112.rb
@@ -0,0 +1,31 @@
+require 'formula'
+
+class Automake112 < Formula
+ homepage 'http://www.gnu.org/software/automake/'
+ url 'http://ftpmirror.gnu.org/automake/automake-1.12.5.tar.gz'
+ mirror 'http://ftp.gnu.org/gnu/automake/automake-1.12.5.tar.gz'
+ sha1 'e3c4331e53a95d195a8e51eea4f0ec3785bdb800'
+
+ # Always needs a newer autoconf, even on Snow Leopard.
+ depends_on 'autoconf'
+
+ 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
+ system "./configure", "--prefix=#{prefix}"
+ system "make install"
+
+ # 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
+ EOS
+ end
+
+ def test
+ system "#{bin}/automake", "--version"
+ end
+end

0 comments on commit 3357a89

Please sign in to comment.