]> arthur.barton.de Git - homebrew-alex.git/commitdiff
New formula: automake 1.11.5
authorAlexander Barton <alex@barton.de>
Wed, 30 May 2012 12:04:46 +0000 (14:04 +0200)
committerAlexander Barton <alex@barton.de>
Wed, 30 May 2012 12:04:46 +0000 (14:04 +0200)
This is useful because newer versions of GNU automake lack some features
like automatic "de-ANSI-fication" that this version provides ...

automake1-11.rb [new file with mode: 0644]

diff --git a/automake1-11.rb b/automake1-11.rb
new file mode 100644 (file)
index 0000000..56bae85
--- /dev/null
@@ -0,0 +1,29 @@
+require 'formula'
+
+class Automake111 < Formula
+  homepage 'http://www.gnu.org/software/automake/'
+  url 'http://ftpmirror.gnu.org/automake/automake-1.11.5.tar.gz'
+  mirror 'http://ftp.gnu.org/gnu/automake/automake-1.11.5.tar.gz'
+  sha1 '53949fa5b9776a5f4b6783486c037da64e374f4f'
+
+  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