homebrew-core/Formula/autogen.rb

39 lines
1.3 KiB
Ruby

class Autogen < Formula
desc "Automated text file generator"
homepage "https://autogen.sourceforge.io"
url "https://ftp.gnu.org/gnu/autogen/autogen-5.18.7.tar.xz"
mirror "https://ftpmirror.gnu.org/autogen/autogen-5.18.7.tar.xz"
sha256 "a7a580a5e18931cb341b255cec2fee2dfd81bea5ddbf0d8ad722703e19aaa405"
revision 2
bottle do
sha256 "d03a9f847a677d4445cf1fb0d3cbcae6748c81d370b166b8f199951e0daa17aa" => :high_sierra
sha256 "bb9df7f082b4245d8ace423e3da43ed995822f857d33b62eb738f6ed15aeb597" => :sierra
sha256 "1b91461ba2dec3c68c969483cf098039f6951a2c0841bdb405b669673fe6397f" => :el_capitan
end
depends_on "pkg-config" => :build
depends_on "guile"
# Allow guile 2.2 to be used
patch do
url "https://raw.githubusercontent.com/Homebrew/formula-patches/0de886b/autogen/allow-guile-2.2.diff"
sha256 "438fe673432c96d5da449b84daa4d1c6ad238ea0b4ccd13491872df8c51fa978"
end
def install
system "./configure", "--disable-debug",
"--disable-dependency-tracking",
"--disable-silent-rules",
"--prefix=#{prefix}"
# make and install must be separate steps for this formula
system "make"
system "make", "install"
end
test do
system bin/"autogen", "-v"
end
end