1 |
commit: a41e99d5d07a2fafd4f7bab90567ed25fe5306d7 |
2 |
Author: Jason A. Donenfeld <zx2c4 <AT> gentoo <DOT> org> |
3 |
AuthorDate: Tue Jan 7 20:57:56 2020 +0000 |
4 |
Commit: Jason A. Donenfeld <zx2c4 <AT> gentoo <DOT> org> |
5 |
CommitDate: Tue Jan 7 21:00:55 2020 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=a41e99d5 |
7 |
|
8 |
sci-mathematics/coq: revbump for newer ocaml + num |
9 |
|
10 |
Fixes: https://bugs.gentoo.org/704928 |
11 |
Package-Manager: Portage-2.3.84, Repoman-2.3.20 |
12 |
Signed-off-by: Jason A. Donenfeld <zx2c4 <AT> gentoo.org> |
13 |
|
14 |
sci-mathematics/coq/coq-8.9.1-r2.ebuild | 86 +++++++++++++++++++++++++++++++++ |
15 |
1 file changed, 86 insertions(+) |
16 |
|
17 |
diff --git a/sci-mathematics/coq/coq-8.9.1-r2.ebuild b/sci-mathematics/coq/coq-8.9.1-r2.ebuild |
18 |
new file mode 100644 |
19 |
index 00000000000..75d3af58a1f |
20 |
--- /dev/null |
21 |
+++ b/sci-mathematics/coq/coq-8.9.1-r2.ebuild |
22 |
@@ -0,0 +1,86 @@ |
23 |
+# Copyright 1999-2020 Gentoo Authors |
24 |
+# Distributed under the terms of the GNU General Public License v2 |
25 |
+ |
26 |
+EAPI="7" |
27 |
+ |
28 |
+inherit desktop multilib |
29 |
+ |
30 |
+MY_PV=${PV/_p/pl} |
31 |
+MY_P=${PN}-${MY_PV} |
32 |
+ |
33 |
+DESCRIPTION="Proof assistant written in O'Caml" |
34 |
+HOMEPAGE="http://coq.inria.fr/" |
35 |
+SRC_URI="https://github.com/coq/coq/archive/V${MY_PV}.tar.gz -> ${P}.tar.gz" |
36 |
+ |
37 |
+LICENSE="LGPL-2.1" |
38 |
+SLOT="0" |
39 |
+KEYWORDS="~amd64 ~x86" |
40 |
+IUSE="gtk debug +ocamlopt doc" |
41 |
+ |
42 |
+RESTRICT=test |
43 |
+ |
44 |
+RDEPEND=" |
45 |
+ >=dev-lang/ocaml-4.0.7:=[ocamlopt?] |
46 |
+ dev-ml/camlp5:=[ocamlopt?] |
47 |
+ dev-ml/num:= |
48 |
+ gtk? ( dev-ml/lablgtk:=[sourceview,ocamlopt?] )" |
49 |
+DEPEND="${RDEPEND} |
50 |
+ dev-ml/findlib |
51 |
+ doc? ( |
52 |
+ media-libs/netpbm[png,zlib] |
53 |
+ virtual/latex-base |
54 |
+ dev-tex/hevea |
55 |
+ dev-texlive/texlive-latexrecommended |
56 |
+ dev-texlive/texlive-pictures |
57 |
+ dev-texlive/texlive-mathscience |
58 |
+ dev-texlive/texlive-latexextra |
59 |
+ )" |
60 |
+ |
61 |
+S=${WORKDIR}/${MY_P} |
62 |
+ |
63 |
+src_configure() { |
64 |
+ ocaml_lib=$(ocamlc -where) |
65 |
+ local myconf=( |
66 |
+ -prefix /usr |
67 |
+ -bindir /usr/bin |
68 |
+ -libdir /usr/$(get_libdir)/coq |
69 |
+ -mandir /usr/share/man |
70 |
+ -coqdocdir /usr/$(get_libdir)/coq/coqdoc |
71 |
+ -docdir /usr/share/doc/${PF} |
72 |
+ -configdir /etc/xdg/${PN} |
73 |
+ -lablgtkdir ${ocaml_lib}/lablgtk2 |
74 |
+ ) |
75 |
+ |
76 |
+ use debug && myconf+=( -debug ) |
77 |
+ use doc || myconf+=( -with-doc no ) |
78 |
+ |
79 |
+ if use gtk; then |
80 |
+ if use ocamlopt; then |
81 |
+ myconf+=( -coqide opt ) |
82 |
+ else |
83 |
+ myconf+=( -coqide byte ) |
84 |
+ fi |
85 |
+ else |
86 |
+ myconf+=( -coqide no ) |
87 |
+ fi |
88 |
+ |
89 |
+ use ocamlopt || myconf+=( -byte-only ) |
90 |
+ |
91 |
+ export CAML_LD_LIBRARY_PATH="${S}/kernel/byterun/" |
92 |
+ ./configure ${myconf[@]} || die "configure failed" |
93 |
+} |
94 |
+ |
95 |
+src_compile() { |
96 |
+ emake STRIP="true" -j1 world VERBOSE=1 |
97 |
+} |
98 |
+ |
99 |
+src_test() { |
100 |
+ emake STRIP="true" check VERBOSE=1 |
101 |
+} |
102 |
+ |
103 |
+src_install() { |
104 |
+ emake STRIP="true" COQINSTALLPREFIX="${D}" install VERBOSE=1 |
105 |
+ dodoc README.md CREDITS CHANGES.md |
106 |
+ |
107 |
+ use gtk && make_desktop_entry "coqide" "Coq IDE" "${EPREFIX}/usr/share/coq/coq.png" |
108 |
+} |