]> arthur.barton.de Git - homebrew-alex.git/blobdiff - Formula/automake1-11.rb
Move Formula files into "Formula/" subdirectory
[homebrew-alex.git] / Formula / automake1-11.rb
diff --git a/Formula/automake1-11.rb b/Formula/automake1-11.rb
new file mode 100644 (file)
index 0000000..fbcf5a9
--- /dev/null
@@ -0,0 +1,31 @@
+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
+
+  def install
+    system "./configure", "--prefix=#{prefix}"
+    system "make install"
+
+    # remove all files that clash with the "automake" formula ...
+    system "rm", "#{prefix}/bin/aclocal"
+    system "rm", "#{prefix}/bin/automake"
+    system "rm", "#{prefix}/share/man/man1/aclocal.1"
+    system "rm", "#{prefix}/share/man/man1/automake.1"
+    system "rm", "-r", "#{prefix}/share/doc"
+    system "rm", "-r", "#{prefix}/share/info"
+
+    # make sure all required files are found ...
+    system "ln", "-s", "#{prefix}/share/aclocal-1.11", "#{prefix}/share/aclocal"
+    system "ln", "-s", "#{prefix}/share/automake-1.11", "#{prefix}/share/automake"
+  end
+
+  def test
+    system "#{bin}/automake", "--version"
+  end
+end