homebrew-core/Formula/autoconf.rb

47 lines
1.6 KiB
Ruby

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"
license "GPL-2.0"
livecheck do
url :stable
end
bottle do
cellar :any_skip_relocation
rebuild 4
sha256 "ca510b350e941fb9395522a03f9d2fb5df276085d806ceead763acb95889a368" => :catalina
sha256 "9724736d34773b6e41e2434ffa28fe79feccccf7b7786e54671441ca75115cdb" => :mojave
sha256 "63957a3952b7af5496012b3819c9956822fd7d895d63339c23fdc65c502e1a40" => :high_sierra
sha256 "a76fca79a00f733c1c9f75600b906de4755dd3fbb595b1b55ded1347ac141607" => :sierra
sha256 "ded69c7dac4bc8747e52dca37d6d561e55e3162649d3805572db0dc2f940a4b8" => :el_capitan
sha256 "daf70656aa9ff8b2fb612324222aa6b5e900e2705c9f555198bcd8cd798d7dd0" => :yosemite
sha256 "d153b3318754731ff5e91b45b2518c75880993fa9d1f312a03696e2c1de0c9d5" => :mavericks
end
uses_from_macos "m4"
uses_from_macos "perl"
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