2012-02-27 00:41:17 +00:00
|
|
|
require 'formula'
|
|
|
|
|
|
|
|
class Automake < Formula
|
|
|
|
homepage 'http://www.gnu.org/software/automake/'
|
2012-04-28 07:06:22 +00:00
|
|
|
url 'http://ftpmirror.gnu.org/automake/automake-1.12.tar.gz'
|
|
|
|
mirror 'http://ftp.gnu.org/gnu/automake/automake-1.12.tar.gz'
|
|
|
|
sha1 '735e5a755dd4ba24dbb345901198873b2686804d'
|
2012-02-27 00:41:17 +00:00
|
|
|
|
2012-02-28 17:31:20 +00:00
|
|
|
depends_on "autoconf" => :build
|
2012-02-27 00:41:17 +00:00
|
|
|
|
|
|
|
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
|
2012-02-28 17:32:39 +00:00
|
|
|
system "./configure", "--prefix=#{prefix}"
|
2012-02-27 00:41:17 +00:00
|
|
|
system "make install"
|
|
|
|
|
2012-03-06 12:35:36 +00:00
|
|
|
# our aclocal must go first: https://github.com/mxcl/homebrew/issues/10618
|
2012-02-27 12:11:20 +00:00
|
|
|
(share/"aclocal/dirlist").write <<-EOS.undent
|
2012-02-27 00:41:17 +00:00
|
|
|
#{HOMEBREW_PREFIX}/share/aclocal
|
2012-03-06 12:35:36 +00:00
|
|
|
/usr/share/aclocal
|
2012-02-27 00:41:17 +00:00
|
|
|
EOS
|
|
|
|
end
|
|
|
|
|
|
|
|
def test
|
2012-05-15 21:36:45 +00:00
|
|
|
system "#{bin}/automake", "--version"
|
2012-02-27 00:41:17 +00:00
|
|
|
end
|
|
|
|
end
|