Gentoo Archives: gentoo-commits

From: "Alexis Ballier (aballier)" <aballier@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] gentoo-x86 commit in sci-mathematics/coq: ChangeLog coq-8.4.ebuild
Date: Fri, 24 Aug 2012 16:01:31
Message-Id: 20120824160119.8FD0E205BB@flycatcher.gentoo.org
1 aballier 12/08/24 16:01:19
2
3 Modified: ChangeLog
4 Added: coq-8.4.ebuild
5 Log:
6 version bump, use camlp4 and switch the desktop entry to make_desktop_entry
7
8 (Portage version: 2.2.0_alpha122/cvs/Linux x86_64)
9
10 Revision Changes Path
11 1.73 sci-mathematics/coq/ChangeLog
12
13 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sci-mathematics/coq/ChangeLog?rev=1.73&view=markup
14 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sci-mathematics/coq/ChangeLog?rev=1.73&content-type=text/plain
15 diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sci-mathematics/coq/ChangeLog?r1=1.72&r2=1.73
16
17 Index: ChangeLog
18 ===================================================================
19 RCS file: /var/cvsroot/gentoo-x86/sci-mathematics/coq/ChangeLog,v
20 retrieving revision 1.72
21 retrieving revision 1.73
22 diff -u -r1.72 -r1.73
23 --- ChangeLog 24 Aug 2012 13:41:32 -0000 1.72
24 +++ ChangeLog 24 Aug 2012 16:01:19 -0000 1.73
25 @@ -1,6 +1,12 @@
26 # ChangeLog for sci-mathematics/coq
27 # Copyright 1999-2012 Gentoo Foundation; Distributed under the GPL v2
28 -# $Header: /var/cvsroot/gentoo-x86/sci-mathematics/coq/ChangeLog,v 1.72 2012/08/24 13:41:32 aballier Exp $
29 +# $Header: /var/cvsroot/gentoo-x86/sci-mathematics/coq/ChangeLog,v 1.73 2012/08/24 16:01:19 aballier Exp $
30 +
31 +*coq-8.4 (24 Aug 2012)
32 +
33 + 24 Aug 2012; Alexis Ballier <aballier@g.o> +coq-8.4.ebuild,
34 + +files/coq-8.4-lablgtk216.patch:
35 + version bump, use camlp4 and switch the desktop entry to make_desktop_entry
36
37 24 Aug 2012; Alexis Ballier <aballier@g.o> files/coqide.desktop:
38 Add Science category to the desktop entry, fixing a repoman warning.
39
40
41
42 1.1 sci-mathematics/coq/coq-8.4.ebuild
43
44 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sci-mathematics/coq/coq-8.4.ebuild?rev=1.1&view=markup
45 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sci-mathematics/coq/coq-8.4.ebuild?rev=1.1&content-type=text/plain
46
47 Index: coq-8.4.ebuild
48 ===================================================================
49 # Copyright 1999-2012 Gentoo Foundation
50 # Distributed under the terms of the GNU General Public License v2
51 # $Header: /var/cvsroot/gentoo-x86/sci-mathematics/coq/coq-8.4.ebuild,v 1.1 2012/08/24 16:01:19 aballier Exp $
52
53 EAPI="2"
54
55 inherit eutils multilib
56
57 MY_PV=${PV/_p/pl}
58 MY_P=${PN}-${MY_PV}
59
60 DESCRIPTION="Coq is a proof assistant written in O'Caml"
61 HOMEPAGE="http://coq.inria.fr/"
62 SRC_URI="http://${PN}.inria.fr/V${MY_PV}/files/${MY_P}.tar.gz"
63
64 LICENSE="LGPL-2.1"
65 SLOT="0"
66 KEYWORDS="~amd64 ~ppc ~x86"
67 IUSE="gtk debug +ocamlopt doc"
68
69 RDEPEND=">=dev-lang/ocaml-3.11.2[ocamlopt?]
70 gtk? ( >=dev-ml/lablgtk-2.10.1[ocamlopt?] )"
71 DEPEND="${RDEPEND}
72 doc? (
73 media-libs/netpbm[png,zlib]
74 virtual/latex-base
75 dev-tex/hevea
76 dev-tex/xcolor
77 dev-texlive/texlive-pictures
78 dev-texlive/texlive-mathextra
79 dev-texlive/texlive-latexextra
80 )"
81
82 S=${WORKDIR}/${MY_P}
83
84 src_prepare() {
85 has_version '>=dev-ml/lablgtk-2.16' && epatch "${FILESDIR}/coq-8.4-lablgtk216.patch"
86 }
87
88 src_configure() {
89 ocaml_lib=`ocamlc -where`
90 local myconf="--prefix /usr
91 --bindir /usr/bin
92 --libdir /usr/$(get_libdir)/coq
93 --mandir /usr/share/man
94 --emacslib /usr/share/emacs/site-lisp
95 --coqdocdir /usr/$(get_libdir)/coq/coqdoc
96 --docdir /usr/share/doc/${PF}
97 --configdir /etc/xdg/${PN}
98 --usecamlp4
99 --lablgtkdir ${ocaml_lib}/lablgtk2"
100
101 use debug && myconf="--debug $myconf"
102 use doc || myconf="$myconf --with-doc no"
103
104 if use gtk; then
105 use ocamlopt && myconf="$myconf --coqide opt"
106 use ocamlopt || myconf="$myconf --coqide byte"
107 else
108 myconf="$myconf --coqide no"
109 fi
110 use ocamlopt || myconf="$myconf -byte-only"
111 use ocamlopt && myconf="$myconf --opt"
112
113 export CAML_LD_LIBRARY_PATH="${S}/kernel/byterun/"
114 ./configure $myconf || die "configure failed"
115 }
116
117 src_compile() {
118 emake STRIP="true" -j1 || die "make failed"
119 }
120
121 src_install() {
122 emake STRIP="true" COQINSTALLPREFIX="${D}" install || die
123 dodoc README CREDITS CHANGES
124
125 use gtk && make_desktop_entry "/usr/bin/coqide" "Coq IDE" "/usr/share/coq/coq.png"
126 }