]> arthur.barton.de Git - homebrew-alex.git/blob - automake1-11.rb
56bae85c9cff28490fcee27ba528d1175f372d54
[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   if MacOS.xcode_version.to_f < 4.3 or File.file? "/usr/bin/automake"
12     keg_only "Xcode (up to and including 4.2) provides (a rather old) Automake."
13   end
14
15   def install
16     system "./configure", "--prefix=#{prefix}"
17     system "make install"
18
19     # our aclocal must go first: https://github.com/mxcl/homebrew/issues/10618
20     (share/"aclocal/dirlist").write <<-EOS.undent
21       #{HOMEBREW_PREFIX}/share/aclocal
22       /usr/share/aclocal
23       EOS
24   end
25
26   def test
27     system "#{bin}/automake", "--version"
28   end
29 end