forked from lotia/homebrew-versions
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathautomake112.rb
30 lines (24 loc) · 869 Bytes
/
automake112.rb
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
require 'formula'
class Automake112 < Formula
homepage 'http://www.gnu.org/software/automake/'
url 'http://ftpmirror.gnu.org/automake/automake-1.12.6.tar.gz'
mirror 'http://ftp.gnu.org/gnu/automake/automake-1.12.6.tar.gz'
sha1 '34bfda1c720e1170358562b1667e533a203878d6'
depends_on 'autoconf' => :run
if MacOS::Xcode.provides_autotools? 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}", "--program-suffix=112"
system "make install"
# Our aclocal must go first. See:
# https://github.com/mxcl/homebrew/issues/10618
(share/"aclocal/dirlist").write <<-EOS.undent
#{HOMEBREW_PREFIX}/share/aclocal
/usr/share/aclocal
EOS
end
test do
system "#{bin}/automake112", "--version"
end
end