Gentoo Archives: gentoo-commits

From: "Jauhien Piatlicki (jauhien)" <jauhien@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] gentoo-x86 commit in sci-mathematics/coq: coq-8.4_p6.ebuild ChangeLog
Date: Sun, 05 Jul 2015 20:43:41
Message-Id: 20150705204327.373E9750@oystercatcher.gentoo.org
1 jauhien 15/07/05 20:43:27
2
3 Modified: ChangeLog
4 Added: coq-8.4_p6.ebuild
5 Log:
6 version bump: close bug 553942, thanks to OGINO Masanori
7
8 (Portage version: 2.2.18/cvs/Linux i686, signed Manifest commit with key B2EFA1D4)
9
10 Revision Changes Path
11 1.88 sci-mathematics/coq/ChangeLog
12
13 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sci-mathematics/coq/ChangeLog?rev=1.88&view=markup
14 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sci-mathematics/coq/ChangeLog?rev=1.88&content-type=text/plain
15 diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sci-mathematics/coq/ChangeLog?r1=1.87&r2=1.88
16
17 Index: ChangeLog
18 ===================================================================
19 RCS file: /var/cvsroot/gentoo-x86/sci-mathematics/coq/ChangeLog,v
20 retrieving revision 1.87
21 retrieving revision 1.88
22 diff -u -r1.87 -r1.88
23 --- ChangeLog 27 Jun 2015 09:48:20 -0000 1.87
24 +++ ChangeLog 5 Jul 2015 20:43:27 -0000 1.88
25 @@ -1,6 +1,11 @@
26 # ChangeLog for sci-mathematics/coq
27 # Copyright 1999-2015 Gentoo Foundation; Distributed under the GPL v2
28 -# $Header: /var/cvsroot/gentoo-x86/sci-mathematics/coq/ChangeLog,v 1.87 2015/06/27 09:48:20 ago Exp $
29 +# $Header: /var/cvsroot/gentoo-x86/sci-mathematics/coq/ChangeLog,v 1.88 2015/07/05 20:43:27 jauhien Exp $
30 +
31 +*coq-8.4_p6 (05 Jul 2015)
32 +
33 + 05 Jul 2015; Jauhien Piatlicki <jauhien@g.o> +coq-8.4_p6.ebuild:
34 + version bump: close bug 553942, thanks to OGINO Masanori
35
36 27 Jun 2015; Agostino Sarubbo <ago@g.o> coq-8.4_p5.ebuild:
37 Stable for amd64, wrt bug #553322
38
39
40
41 1.1 sci-mathematics/coq/coq-8.4_p6.ebuild
42
43 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sci-mathematics/coq/coq-8.4_p6.ebuild?rev=1.1&view=markup
44 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sci-mathematics/coq/coq-8.4_p6.ebuild?rev=1.1&content-type=text/plain
45
46 Index: coq-8.4_p6.ebuild
47 ===================================================================
48 # Copyright 1999-2015 Gentoo Foundation
49 # Distributed under the terms of the GNU General Public License v2
50 # $Header: /var/cvsroot/gentoo-x86/sci-mathematics/coq/coq-8.4_p6.ebuild,v 1.1 2015/07/05 20:43:27 jauhien Exp $
51
52 EAPI="5"
53
54 inherit eutils multilib
55
56 MY_PV=${PV/_p/pl}
57 MY_P=${PN}-${MY_PV}
58
59 DESCRIPTION="Proof assistant written in O'Caml"
60 HOMEPAGE="http://coq.inria.fr/"
61 SRC_URI="http://${PN}.inria.fr/distrib/V${MY_PV}/files/${MY_P}.tar.gz"
62
63 LICENSE="LGPL-2.1"
64 SLOT="0"
65 KEYWORDS="~amd64 ~ppc ~x86"
66 IUSE="gtk debug +ocamlopt doc camlp5"
67
68 RDEPEND="
69 >=dev-lang/ocaml-3.11.2:=[ocamlopt?]
70 camlp5? ( >=dev-ml/camlp5-6.02.3:=[ocamlopt?] )
71 !camlp5? ( || ( dev-ml/camlp4:= <dev-lang/ocaml-4.02.0 ) )
72 gtk? ( >=dev-ml/lablgtk-2.10.1:=[ocamlopt?] )"
73 DEPEND="${RDEPEND}
74 doc? (
75 media-libs/netpbm[png,zlib]
76 virtual/latex-base
77 dev-tex/hevea
78 dev-tex/xcolor
79 dev-texlive/texlive-pictures
80 dev-texlive/texlive-mathextra
81 dev-texlive/texlive-latexextra
82 )"
83
84 S=${WORKDIR}/${MY_P}
85
86 src_prepare() {
87 epatch "${FILESDIR}/${PN}-8.4_p5-do-not-install-revision.patch"
88 # Fix generation of the index_urls.txt file with Gentoo dev-tex/hevea versions.
89 # http://lists.gforge.inria.fr/pipermail/coq-commits/2014-October/013582.html
90 epatch "${FILESDIR}/${PN}-8.4_p5-hevea.patch"
91 epatch "${FILESDIR}/${PN}-8.4_p5-no-clean-before-test.patch"
92 }
93
94 src_configure() {
95 ocaml_lib=$(ocamlc -where)
96 local myconf=(
97 --prefix /usr
98 --bindir /usr/bin
99 --libdir /usr/$(get_libdir)/coq
100 --mandir /usr/share/man
101 --emacslib /usr/share/emacs/site-lisp
102 --coqdocdir /usr/$(get_libdir)/coq/coqdoc
103 --docdir /usr/share/doc/${PF}
104 --configdir /etc/xdg/${PN}
105 --lablgtkdir ${ocaml_lib}/lablgtk2
106 )
107
108 use debug && myconf+=( --debug )
109 use doc || myconf+=( --with-doc no )
110
111 if use gtk; then
112 if use ocamlopt; then
113 myconf+=( --coqide opt )
114 else
115 myconf+=( --coqide byte )
116 fi
117 else
118 myconf+=( --coqide no )
119 fi
120
121 if use ocamlopt; then
122 myconf+=( --opt )
123 else
124 myconf+=( -byte-only )
125 fi
126
127 if use camlp5; then
128 myconf+=( --camlp5dir ${ocaml_lib}/camlp5 )
129 else
130 myconf+=( --usecamlp4 )
131 fi
132
133 export CAML_LD_LIBRARY_PATH="${S}/kernel/byterun/"
134 ./configure ${myconf[@]} || die "configure failed"
135 }
136
137 src_compile() {
138 emake STRIP="true" -j1 world VERBOSE=1
139 }
140
141 src_test() {
142 emake STRIP="true" check VERBOSE=1
143 }
144
145 src_install() {
146 emake STRIP="true" COQINSTALLPREFIX="${D}" install VERBOSE=1
147 dodoc README CREDITS CHANGES
148
149 use gtk && make_desktop_entry "coqide" "Coq IDE" "${EPREFIX}/usr/share/coq/coq.png"
150 }