1 |
commit: 510d11ec66f3399aad91e58310a40ad96d8a6dee |
2 |
Author: Alexis Ballier <aballier <AT> gentoo <DOT> org> |
3 |
AuthorDate: Tue Jul 18 17:13:58 2017 +0000 |
4 |
Commit: Alexis Ballier <aballier <AT> gentoo <DOT> org> |
5 |
CommitDate: Tue Jul 18 17:18:24 2017 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=510d11ec |
7 |
|
8 |
sci-mathematics/coq: bump to 8.6.1 |
9 |
|
10 |
Package-Manager: Portage-2.3.6, Repoman-2.3.2 |
11 |
|
12 |
sci-mathematics/coq/Manifest | 1 + |
13 |
sci-mathematics/coq/coq-8.6.1.ebuild | 91 ++++++++++++++++++++++++++++++++++++ |
14 |
2 files changed, 92 insertions(+) |
15 |
|
16 |
diff --git a/sci-mathematics/coq/Manifest b/sci-mathematics/coq/Manifest |
17 |
index 1579e488b9b..a0ddf10c480 100644 |
18 |
--- a/sci-mathematics/coq/Manifest |
19 |
+++ b/sci-mathematics/coq/Manifest |
20 |
@@ -1 +1,2 @@ |
21 |
+DIST coq-8.6.1.tar.gz 5588811 SHA256 32f8aa92853483dec18030def9f0857a708fee56cf4287e39c9a260f08138f9d SHA512 814ab76a06ca15f927081428da74add4bc67290199fa011853b9c68a00cdefaf813b10fbac18a434f4504fce8f2173eb544080bf6f50d62caa41bb8724b13083 WHIRLPOOL e0d918909b9902acd4ab0f8b4b5ce425ed8a26e80f5e2714b7e0c38ed737b9c83eab3a7fc8ba1407298bdf24adbcd435771d5cd92f3e4296e04b5503aea44c2d |
22 |
DIST coq-8.6.tar.gz 5538848 SHA256 6e3c3cf5c8e2b0b760dc52738e2e849f3a8c630869659ecc0cf41413fcee81df SHA512 9f5f4913fda8cf83683fec9398b42d4567207c3d4b52b4638d5e09a24ed25a43905fb57a9fac1bb9f9d681bd47f3560e1da74e79348b3a3fd93e2e8c686cebae WHIRLPOOL 714226c0f9138ea7dc9828db6dbc59e9b6e0c18ae305fc1a67c5c1c7a950ec1deabd37f462e20d1d1ddbd148a8bc3845a72f88f5ef6cbd4f93abfd02539dbcbc |
23 |
|
24 |
diff --git a/sci-mathematics/coq/coq-8.6.1.ebuild b/sci-mathematics/coq/coq-8.6.1.ebuild |
25 |
new file mode 100644 |
26 |
index 00000000000..9b09cfd79dd |
27 |
--- /dev/null |
28 |
+++ b/sci-mathematics/coq/coq-8.6.1.ebuild |
29 |
@@ -0,0 +1,91 @@ |
30 |
+# Copyright 1999-2017 Gentoo Foundation |
31 |
+# Distributed under the terms of the GNU General Public License v2 |
32 |
+ |
33 |
+EAPI="5" |
34 |
+ |
35 |
+inherit eutils multilib |
36 |
+ |
37 |
+MY_PV=${PV/_p/pl} |
38 |
+MY_P=${PN}-${MY_PV} |
39 |
+ |
40 |
+DESCRIPTION="Proof assistant written in O'Caml" |
41 |
+HOMEPAGE="http://coq.inria.fr/" |
42 |
+SRC_URI="http://${PN}.inria.fr/distrib/V${MY_PV}/files/${MY_P}.tar.gz" |
43 |
+ |
44 |
+LICENSE="LGPL-2.1" |
45 |
+SLOT="0" |
46 |
+KEYWORDS="~amd64 ~ppc ~x86" |
47 |
+IUSE="gtk debug +ocamlopt doc camlp5" |
48 |
+ |
49 |
+RDEPEND=" |
50 |
+ >=dev-lang/ocaml-3.11.2:=[ocamlopt?] |
51 |
+ camlp5? ( >=dev-ml/camlp5-6.02.3:=[ocamlopt?] ) |
52 |
+ !camlp5? ( dev-ml/camlp4:= ) |
53 |
+ gtk? ( >=dev-ml/lablgtk-2.10.1:=[sourceview,ocamlopt?] )" |
54 |
+DEPEND="${RDEPEND} |
55 |
+ dev-ml/findlib |
56 |
+ doc? ( |
57 |
+ media-libs/netpbm[png,zlib] |
58 |
+ virtual/latex-base |
59 |
+ dev-tex/hevea |
60 |
+ dev-tex/xcolor |
61 |
+ dev-texlive/texlive-pictures |
62 |
+ || ( dev-texlive/texlive-mathscience dev-texlive/texlive-mathextra ) |
63 |
+ dev-texlive/texlive-latexextra |
64 |
+ )" |
65 |
+ |
66 |
+S=${WORKDIR}/${MY_P} |
67 |
+ |
68 |
+src_configure() { |
69 |
+ ocaml_lib=$(ocamlc -where) |
70 |
+ local myconf=( |
71 |
+ -prefix /usr |
72 |
+ -bindir /usr/bin |
73 |
+ -libdir /usr/$(get_libdir)/coq |
74 |
+ -mandir /usr/share/man |
75 |
+ -emacslib /usr/share/emacs/site-lisp |
76 |
+ -coqdocdir /usr/$(get_libdir)/coq/coqdoc |
77 |
+ -docdir /usr/share/doc/${PF} |
78 |
+ -configdir /etc/xdg/${PN} |
79 |
+ -lablgtkdir ${ocaml_lib}/lablgtk2 |
80 |
+ ) |
81 |
+ |
82 |
+ use debug && myconf+=( -debug ) |
83 |
+ use doc || myconf+=( -with-doc no ) |
84 |
+ |
85 |
+ if use gtk; then |
86 |
+ if use ocamlopt; then |
87 |
+ myconf+=( -coqide opt ) |
88 |
+ else |
89 |
+ myconf+=( -coqide byte ) |
90 |
+ fi |
91 |
+ else |
92 |
+ myconf+=( -coqide no ) |
93 |
+ fi |
94 |
+ |
95 |
+ use ocamlopt || myconf+=( -byte-only ) |
96 |
+ |
97 |
+ if use camlp5; then |
98 |
+ myconf+=( -usecamlp5 -camlp5dir ${ocaml_lib}/camlp5 ) |
99 |
+ else |
100 |
+ myconf+=( -usecamlp4 ) |
101 |
+ fi |
102 |
+ |
103 |
+ export CAML_LD_LIBRARY_PATH="${S}/kernel/byterun/" |
104 |
+ ./configure ${myconf[@]} || die "configure failed" |
105 |
+} |
106 |
+ |
107 |
+src_compile() { |
108 |
+ emake STRIP="true" -j1 world VERBOSE=1 |
109 |
+} |
110 |
+ |
111 |
+src_test() { |
112 |
+ emake STRIP="true" check VERBOSE=1 |
113 |
+} |
114 |
+ |
115 |
+src_install() { |
116 |
+ emake STRIP="true" COQINSTALLPREFIX="${D}" install VERBOSE=1 |
117 |
+ dodoc README.md CREDITS CHANGES |
118 |
+ |
119 |
+ use gtk && make_desktop_entry "coqide" "Coq IDE" "${EPREFIX}/usr/share/coq/coq.png" |
120 |
+} |