2012-02-27 00:41:17 +00:00
|
|
|
class Autoconf < Formula
|
2015-05-19 00:00:59 +00:00
|
|
|
desc "Automatic configure script builder"
|
2015-03-14 08:07:47 +00:00
|
|
|
homepage "https://www.gnu.org/software/autoconf"
|
2014-12-27 15:59:32 +00:00
|
|
|
url "http://ftpmirror.gnu.org/autoconf/autoconf-2.69.tar.gz"
|
2015-03-14 08:07:47 +00:00
|
|
|
mirror "https://ftp.gnu.org/gnu/autoconf/autoconf-2.69.tar.gz"
|
|
|
|
sha256 "954bd69b391edc12d6a4a51a2dd1476543da5c6bbf05a95b59dc0dd6fd4c2969"
|
2012-02-27 00:41:17 +00:00
|
|
|
|
2013-10-28 10:34:25 +00:00
|
|
|
bottle do
|
2015-09-11 21:06:15 +00:00
|
|
|
cellar :any_skip_relocation
|
|
|
|
revision 4
|
2015-09-13 08:52:38 +00:00
|
|
|
sha256 "ded69c7dac4bc8747e52dca37d6d561e55e3162649d3805572db0dc2f940a4b8" => :el_capitan
|
2015-09-11 21:06:15 +00:00
|
|
|
sha256 "daf70656aa9ff8b2fb612324222aa6b5e900e2705c9f555198bcd8cd798d7dd0" => :yosemite
|
|
|
|
sha256 "d153b3318754731ff5e91b45b2518c75880993fa9d1f312a03696e2c1de0c9d5" => :mavericks
|
|
|
|
sha256 "37e77a2e7ca6d479f0a471d5f5d828efff621bd051c1884ff1363d77c5c4675e" => :mountain_lion
|
2013-10-28 10:34:25 +00:00
|
|
|
end
|
|
|
|
|
2014-04-03 14:11:51 +00:00
|
|
|
keg_only :provided_until_xcode43
|
2012-02-27 20:08:58 +00:00
|
|
|
|
2012-02-27 00:41:17 +00:00
|
|
|
def install
|
2014-12-27 15:59:32 +00:00
|
|
|
ENV["PERL"] = "/usr/bin/perl"
|
2013-08-16 16:24:18 +00:00
|
|
|
|
2013-01-27 22:37:00 +00:00
|
|
|
# force autoreconf to look for and use our glibtoolize
|
2014-12-27 15:59:32 +00:00
|
|
|
inreplace "bin/autoreconf.in", "libtoolize", "glibtoolize"
|
2014-12-27 20:07:17 +00:00
|
|
|
# also touch the man page so that it isn't rebuilt
|
2014-12-27 15:59:32 +00:00
|
|
|
inreplace "man/autoreconf.1", "libtoolize", "glibtoolize"
|
2015-07-05 19:56:14 +00:00
|
|
|
|
|
|
|
system "./configure", "--prefix=#{prefix}",
|
|
|
|
"--with-lispdir=#{share}/emacs/site-lisp/autoconf"
|
2014-12-27 15:59:32 +00:00
|
|
|
system "make", "install"
|
2015-07-05 19:56:14 +00:00
|
|
|
|
2014-12-27 15:59:32 +00:00
|
|
|
rm_f info/"standards.info"
|
2012-02-27 00:41:17 +00:00
|
|
|
end
|
|
|
|
|
2013-01-27 22:37:00 +00:00
|
|
|
test do
|
2014-12-27 15:59:32 +00:00
|
|
|
cp "#{share}/autoconf/autotest/autotest.m4", "autotest.m4"
|
|
|
|
system "#{bin}/autoconf", "autotest.m4"
|
2012-02-27 00:41:17 +00:00
|
|
|
end
|
|
|
|
end
|