2012-02-27 00:41:17 +00:00
|
|
|
class Automake < Formula
|
2015-05-19 00:00:59 +00:00
|
|
|
desc "Tool for generating GNU Standards-compliant Makefiles"
|
2015-03-14 08:16:24 +00:00
|
|
|
homepage "https://www.gnu.org/software/automake/"
|
2015-01-05 21:37:52 +00:00
|
|
|
url "http://ftpmirror.gnu.org/automake/automake-1.15.tar.xz"
|
|
|
|
mirror "https://ftp.gnu.org/gnu/automake/automake-1.15.tar.xz"
|
2015-03-14 08:16:24 +00:00
|
|
|
sha256 "9908c75aabd49d13661d6dcb1bc382252d22cc77bf733a2d55e87f2aa2db8636"
|
2012-02-27 00:41:17 +00:00
|
|
|
|
2013-10-28 10:34:34 +00:00
|
|
|
bottle do
|
2015-09-11 15:23:36 +00:00
|
|
|
cellar :any
|
|
|
|
revision 2
|
|
|
|
sha256 "70a763221d2bb9baaf630f2170224c915ca96a9966fbb1d86781c8743740bb7b" => :el_capitan
|
|
|
|
sha256 "d8e4773130e25ff576a0c7d18b4d010b1e03eba90b0074e1ac749fdf3bc13e26" => :yosemite
|
|
|
|
sha256 "69c1635672fa682a40949572e64fe3495055e97ad2c105dd46fb2e447d0d65a8" => :mavericks
|
|
|
|
sha256 "6e6fdaa7fb7ddaaeb103341d1ca351e0669874f86eb21eb6623cb345dd1f5b6f" => :mountain_lion
|
2013-10-28 10:34:34 +00:00
|
|
|
end
|
|
|
|
|
2015-01-05 21:37:52 +00:00
|
|
|
depends_on "autoconf" => :run
|
2012-02-27 00:41:17 +00:00
|
|
|
|
2014-04-03 14:11:51 +00:00
|
|
|
keg_only :provided_until_xcode43
|
2012-02-27 00:41:17 +00:00
|
|
|
|
|
|
|
def install
|
2015-01-05 21:37:52 +00:00
|
|
|
ENV["PERL"] = "/usr/bin/perl"
|
2013-08-16 16:24:26 +00:00
|
|
|
|
2012-02-28 17:32:39 +00:00
|
|
|
system "./configure", "--prefix=#{prefix}"
|
2015-01-05 21:37:52 +00:00
|
|
|
system "make", "install"
|
2012-02-27 00:41:17 +00:00
|
|
|
|
2012-07-07 18:08:22 +00:00
|
|
|
# Our aclocal must go first. See:
|
2013-12-14 18:13:11 +00:00
|
|
|
# https://github.com/Homebrew/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-07-07 18:08:22 +00:00
|
|
|
EOS
|
2012-02-27 00:41:17 +00:00
|
|
|
end
|
|
|
|
|
2014-02-23 21:31:41 +00:00
|
|
|
test do
|
2015-10-08 09:44:03 +00:00
|
|
|
(testpath/"test.c").write <<-EOS.undent
|
|
|
|
int main() { return 0; }
|
|
|
|
EOS
|
|
|
|
(testpath/"configure.ac").write <<-EOS.undent
|
|
|
|
AC_INIT(test, 1.0)
|
|
|
|
AM_INIT_AUTOMAKE
|
|
|
|
AC_PROG_CC
|
|
|
|
AC_CONFIG_FILES(Makefile)
|
|
|
|
AC_OUTPUT
|
|
|
|
EOS
|
|
|
|
(testpath/"Makefile.am").write <<-EOS.undent
|
|
|
|
bin_PROGRAMS = test
|
|
|
|
test_SOURCES = test.c
|
|
|
|
EOS
|
|
|
|
system bin/"aclocal"
|
|
|
|
system bin/"automake", "--add-missing", "--foreign"
|
|
|
|
system "autoconf"
|
|
|
|
system "./configure"
|
|
|
|
system "make"
|
|
|
|
system "./test"
|
2012-02-27 00:41:17 +00:00
|
|
|
end
|
|
|
|
end
|