homebrew-core/Formula/gpp.rb

32 lines
1.3 KiB
Ruby

class Gpp < Formula
desc "General-purpose preprocessor with customizable syntax"
homepage "https://logological.org/gpp"
url "https://files.nothingisreal.com/software/gpp/gpp-2.27.tar.bz2"
sha256 "49eb99d22af991e7f4efe2b21baa1196e9ab98c05b4b7ed56524a612c47b8fd3"
license "GPL-3.0"
livecheck do
url "https://github.com/logological/gpp.git"
end
bottle do
sha256 cellar: :any_skip_relocation, arm64_big_sur: "614ed514c4443f444c66ba9f7da0a17ec8f3e2abb2469898e2c148462755893f"
sha256 cellar: :any_skip_relocation, big_sur: "78cea18184e8b89cdf57b98095da58be0aed6931d9015f346b59972416aab72b"
sha256 cellar: :any_skip_relocation, catalina: "f6dcf32a23b4dfab4c9fa231757f87a9eb8f4ea2fcd4e8146a02e8afe22b38cc"
sha256 cellar: :any_skip_relocation, mojave: "54f5f9b098335023273291b6ec95615148ab3fa02039a0d7c1645cd59d0eb134"
sha256 cellar: :any_skip_relocation, high_sierra: "d56879d518d9924d17327594b31501c8ea4eaa58295e12ae41fc74156cffc179"
end
def install
system "./configure", "--disable-debug", "--disable-dependency-tracking",
"--prefix=#{prefix}", "--mandir=#{man}"
system "make"
system "make", "check"
system "make", "install"
end
test do
system "#{bin}/gpp", "--version"
end
end