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