class Autoconf < Formula desc "Automatic configure script builder" homepage "https://www.gnu.org/software/autoconf" url "https://ftp.gnu.org/gnu/autoconf/autoconf-2.69.tar.gz" mirror "https://ftpmirror.gnu.org/autoconf/autoconf-2.69.tar.gz" sha256 "954bd69b391edc12d6a4a51a2dd1476543da5c6bbf05a95b59dc0dd6fd4c2969" bottle do cellar :any_skip_relocation rebuild 4 sha256 "9724736d34773b6e41e2434ffa28fe79feccccf7b7786e54671441ca75115cdb" => :mojave sha256 "63957a3952b7af5496012b3819c9956822fd7d895d63339c23fdc65c502e1a40" => :high_sierra sha256 "a76fca79a00f733c1c9f75600b906de4755dd3fbb595b1b55ded1347ac141607" => :sierra sha256 "ded69c7dac4bc8747e52dca37d6d561e55e3162649d3805572db0dc2f940a4b8" => :el_capitan sha256 "daf70656aa9ff8b2fb612324222aa6b5e900e2705c9f555198bcd8cd798d7dd0" => :yosemite sha256 "d153b3318754731ff5e91b45b2518c75880993fa9d1f312a03696e2c1de0c9d5" => :mavericks end def install ENV["PERL"] = "/usr/bin/perl" # force autoreconf to look for and use our glibtoolize inreplace "bin/autoreconf.in", "libtoolize", "glibtoolize" # also touch the man page so that it isn't rebuilt inreplace "man/autoreconf.1", "libtoolize", "glibtoolize" system "./configure", "--prefix=#{prefix}", "--with-lispdir=#{elisp}" system "make", "install" rm_f info/"standards.info" end test do cp pkgshare/"autotest/autotest.m4", "autotest.m4" system bin/"autoconf", "autotest.m4" end end