homebrew-core/Formula/proof-general.rb
2018-09-04 16:58:42 +02:00

50 lines
1.5 KiB
Ruby

class ProofGeneral < Formula
desc "Emacs-based generic interface for theorem provers"
homepage "https://proofgeneral.github.io"
url "https://github.com/ProofGeneral/PG/archive/v4.4.tar.gz"
sha256 "1ba236d81768a87afa0287f49d4b2223097bc61d180468cbd997d46ab6132e7e"
revision 2
head "https://github.com/ProofGeneral/PG.git"
bottle do
rebuild 2
sha256 "fb33f343985000a24f2f3b8737ac8732d22cdfc43c178b089652abe50297c54b" => :mojave
sha256 "da11c2494db95b66a9db3528a98198878d1ac56cc63ac104b6bedafb1676a9a4" => :high_sierra
sha256 "da11c2494db95b66a9db3528a98198878d1ac56cc63ac104b6bedafb1676a9a4" => :sierra
sha256 "da11c2494db95b66a9db3528a98198878d1ac56cc63ac104b6bedafb1676a9a4" => :el_capitan
end
depends_on "texi2html" => :build
depends_on "texinfo" => :build
depends_on "emacs"
def install
ENV.deparallelize # Otherwise lisp compilation can result in 0-byte files
args = %W[
PREFIX=#{prefix}
DEST_PREFIX=#{prefix}
ELISPP=share/emacs/site-lisp/proof-general
ELISP_START=#{elisp}/site-start.d
EMACS=#{which "emacs"}
]
system "make", "install", *args
cd "doc" do
system "make", "info", "html"
end
man1.install "doc/proofgeneral.1"
info.install "doc/ProofGeneral.info", "doc/PG-adapting.info"
doc.install "doc/ProofGeneral", "doc/PG-adapting"
end
def caveats; <<~EOS
HTML documentation is available in: #{HOMEBREW_PREFIX}/share/doc/proof-general
EOS
end
test do
system bin/"proofgeneral", "--help"
end
end