forked from lotia/homebrew-versions
-
Notifications
You must be signed in to change notification settings - Fork 0
/
coq83.rb
59 lines (50 loc) · 1.85 KB
/
coq83.rb
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
class TransitionalMode < Requirement
fatal true
satisfy { !Tab.for_name("camlp5-606").include?("strict") }
def message; <<-EOS.undent
camlp5 must be compiled in transitional mode (instead of --strict mode):
brew install camlp5
EOS
end
end
class Coq83 < Formula
desc "Proof assistant for higher-order logic"
homepage "https://coq.inria.fr/"
url "https://coq.inria.fr/distrib/V8.3pl5/files/coq-8.3pl5.tar.gz"
version "8.3pl5"
sha256 "89d185fa3e0d3620703ad4b723ef85695ce427da6235fe91d74fc22d1ffcfd5d"
bottle do
sha256 "beafdfe1bc6998f86828e22d1c804a8a53b0deab63b765fd356133abc56732c4" => :yosemite
sha256 "1843f9ec028f792a0f2768fadc6ad3c96704fdda6a276c194b91304844b8fb0d" => :mavericks
sha256 "8ae5624dd484c4da18a1b56b25a9adec861014d86155bf7ab9977d923a7d4e4c" => :mountain_lion
end
depends_on TransitionalMode
depends_on "objective-caml312"
depends_on "camlp5-606"
def install
camlp5_lib = "#{Formula["camlp5-606"].lib}/ocaml/camlp5"
system "./configure", "-prefix", prefix,
"-mandir", man,
"-camlp5dir", camlp5_lib,
"-emacslib", "#{lib}/emacs/site-lisp",
"-coqdocdir", "#{share}/coq/latex",
"-coqide", "no",
"-with-doc", "no"
# Otherwise "mkdir bin" can be attempted by more than one job
ENV.j1
system "make", "world"
system "make", "install"
end
def caveats; <<-EOS.undent
Coq's Emacs mode is installed into
#{lib}/emacs/site-lisp
To use the Coq Emacs mode, you need to put the following lines in
your .emacs file:
(setq auto-mode-alist (cons '("\\.v$" . coq-mode) auto-mode-alist))
(autoload 'coq-mode "coq" "Major mode for editing Coq vernacular." t)
EOS
end
test do
system bin/"coqc", "-v"
end
end