2015-04-11 18:10:29 +00:00
|
|
|
class Camlp5TransitionalModeRequirement < Requirement
|
2013-01-19 01:30:43 +00:00
|
|
|
fatal true
|
|
|
|
|
2015-06-26 03:55:45 +00:00
|
|
|
satisfy(:build_env => false) { !Tab.for_name("camlp5").include?("strict") }
|
2013-01-20 02:45:59 +00:00
|
|
|
|
2012-03-13 03:26:25 +00:00
|
|
|
def message; <<-EOS.undent
|
|
|
|
camlp5 must be compiled in transitional mode (instead of --strict mode):
|
|
|
|
brew install camlp5
|
|
|
|
EOS
|
|
|
|
end
|
|
|
|
end
|
|
|
|
|
2010-09-30 19:31:04 +00:00
|
|
|
class Coq < Formula
|
2015-05-19 00:00:59 +00:00
|
|
|
desc "Proof assistant for higher-order logic"
|
2014-10-31 23:39:27 +00:00
|
|
|
homepage "https://coq.inria.fr/"
|
2015-05-15 21:18:10 +00:00
|
|
|
url "https://coq.inria.fr/distrib/V8.4pl6/files/coq-8.4pl6.tar.gz"
|
|
|
|
version "8.4pl6"
|
2015-04-19 10:25:52 +00:00
|
|
|
sha256 "a540a231a9970a49353ca039f3544616ff86a208966ab1c593779ae13c91ebd6"
|
2015-07-31 17:57:56 +00:00
|
|
|
revision 1
|
2010-09-30 19:31:04 +00:00
|
|
|
|
2015-05-15 14:05:09 +00:00
|
|
|
head "git://scm.gforge.inria.fr/coq/coq.git", :branch => "trunk"
|
2010-12-03 20:44:55 +00:00
|
|
|
|
2015-05-15 22:19:04 +00:00
|
|
|
bottle do
|
2015-07-31 18:50:41 +00:00
|
|
|
sha256 "59f6e0b26fbb0be09c8ea9959ea25b60cd4ce9f424e126d58478500cc2965a9b" => :yosemite
|
|
|
|
sha256 "dcf2a61af6f3ea17d25a4201d32ffea2b0b7644d134d4f4517822946f0138e4e" => :mavericks
|
|
|
|
sha256 "dd082d214e2540429c6f757a41e4df23307e339d50ae68cd108dbd569c6b9ed1" => :mountain_lion
|
2015-05-15 22:19:04 +00:00
|
|
|
end
|
|
|
|
|
2015-04-11 18:10:29 +00:00
|
|
|
depends_on Camlp5TransitionalModeRequirement
|
2014-05-25 14:50:13 +00:00
|
|
|
depends_on "camlp5"
|
2015-07-05 19:33:48 +00:00
|
|
|
depends_on "objective-caml"
|
2010-09-30 19:31:04 +00:00
|
|
|
|
|
|
|
def install
|
2014-05-25 14:50:13 +00:00
|
|
|
camlp5_lib = Formula["camlp5"].opt_lib+"ocaml/camlp5"
|
2010-09-30 19:31:04 +00:00
|
|
|
system "./configure", "-prefix", prefix,
|
|
|
|
"-mandir", man,
|
|
|
|
"-camlp5dir", camlp5_lib,
|
2015-07-05 19:33:48 +00:00
|
|
|
"-emacslib", "#{share}/emacs/site-lisp/coq",
|
2010-09-30 19:31:04 +00:00
|
|
|
"-coqdocdir", "#{share}/coq/latex",
|
2012-08-22 19:24:45 +00:00
|
|
|
"-coqide", "no",
|
2012-08-29 17:50:21 +00:00
|
|
|
"-with-doc", "no"
|
2010-09-30 19:31:04 +00:00
|
|
|
ENV.j1 # Otherwise "mkdir bin" can be attempted by more than one job
|
2014-05-25 14:50:13 +00:00
|
|
|
system "make", "world"
|
|
|
|
system "make", "install"
|
2010-09-30 19:31:04 +00:00
|
|
|
end
|
|
|
|
|
2012-03-13 03:26:25 +00:00
|
|
|
def caveats; <<-EOS.undent
|
2015-07-05 19:33:48 +00:00
|
|
|
To use the Coq Emacs mode, add the the following to your init file:
|
2014-04-25 00:08:26 +00:00
|
|
|
(setq auto-mode-alist (cons '("\\\\.v$" . coq-mode) auto-mode-alist))
|
2010-09-30 19:31:04 +00:00
|
|
|
(autoload 'coq-mode "coq" "Major mode for editing Coq vernacular." t)
|
|
|
|
EOS
|
|
|
|
end
|
|
|
|
end
|