]> arthur.barton.de Git - homebrew-alex.git/blob - automake1-11.rb
ff5d33fa2483f24938d30f6271a67812b74775f4
[homebrew-alex.git] / automake1-11.rb
1 require 'formula'
2
3 class Automake111 < Formula
4   homepage 'http://www.gnu.org/software/automake/'
5   url 'http://ftpmirror.gnu.org/automake/automake-1.11.5.tar.gz'
6   mirror 'http://ftp.gnu.org/gnu/automake/automake-1.11.5.tar.gz'
7   sha1 '53949fa5b9776a5f4b6783486c037da64e374f4f'
8
9   depends_on "autoconf" => :build
10
11   def install
12     system "./configure", "--prefix=#{prefix}"
13     system "make install"
14
15     # remove all files that clash with the "automake" formula ...
16     system "rm", "#{prefix}/bin/aclocal"
17     system "rm", "#{prefix}/bin/automake"
18     system "rm", "#{prefix}/share/man/man1/aclocal.1"
19     system "rm", "#{prefix}/share/man/man1/automake.1"
20     system "rm", "-r", "#{prefix}/share/doc"
21     system "rm", "-r", "#{prefix}/share/info"
22   end
23
24   def test
25     system "#{bin}/automake", "--version"
26   end
27 end