2011-03-10 05:11:03 +00:00
|
|
|
class AutoconfArchive < Formula
|
2015-08-01 09:35:45 +00:00
|
|
|
desc "Collection of over 500 reusable autoconf macros"
|
2015-07-10 20:54:51 +00:00
|
|
|
homepage "https://savannah.gnu.org/projects/autoconf-archive/"
|
2015-03-03 16:47:00 +00:00
|
|
|
url "http://ftpmirror.gnu.org/autoconf-archive/autoconf-archive-2015.02.24.tar.xz"
|
|
|
|
mirror "https://ftp.gnu.org/gnu/autoconf-archive/autoconf-archive-2015.02.24.tar.xz"
|
2015-08-03 12:55:31 +00:00
|
|
|
sha256 "69715bdd078f552ca85e498a94543e11cb8bcdf0359e659b84d84d19372b0dc5"
|
2015-03-03 16:47:00 +00:00
|
|
|
|
2015-03-03 18:07:07 +00:00
|
|
|
bottle do
|
|
|
|
sha1 "379b87f4f2a0ab895b98566a9d846e39143febb9" => :yosemite
|
|
|
|
sha1 "57aa4726af450fa77e509a29aeb03d6c819706cf" => :mavericks
|
|
|
|
sha1 "5c2d27e4a970cdc0ef102e0404a5eb13cc1f0543" => :mountain_lion
|
|
|
|
end
|
|
|
|
|
2015-03-03 16:47:00 +00:00
|
|
|
# autoconf-archive is useless without autoconf
|
|
|
|
depends_on "autoconf" => :run
|
2010-04-23 15:56:10 +00:00
|
|
|
|
|
|
|
def install
|
2013-04-07 23:05:54 +00:00
|
|
|
system "./configure", "--prefix=#{prefix}"
|
2015-03-03 16:47:00 +00:00
|
|
|
system "make", "install"
|
|
|
|
end
|
|
|
|
|
|
|
|
test do
|
|
|
|
(testpath/"test.m4").write <<-EOS.undent
|
|
|
|
AC_INIT(myconfig, version-0.1)
|
|
|
|
AC_MSG_NOTICE([Hello, world.])
|
|
|
|
|
|
|
|
m4_include([#{share}/aclocal/ax_have_select.m4])
|
|
|
|
|
|
|
|
# from http://www.gnu.org/software/autoconf-archive/ax_have_select.html
|
|
|
|
AX_HAVE_SELECT(
|
|
|
|
[AX_CONFIG_FEATURE_ENABLE(select)],
|
|
|
|
[AX_CONFIG_FEATURE_DISABLE(select)])
|
|
|
|
AX_CONFIG_FEATURE(
|
|
|
|
[select], [This platform supports select(7)],
|
|
|
|
[HAVE_SELECT], [This platform supports select(7).])
|
|
|
|
EOS
|
|
|
|
|
|
|
|
system "#{Formula["autoconf"].bin}/autoconf", "test.m4"
|
2010-04-23 15:56:10 +00:00
|
|
|
end
|
|
|
|
end
|