Gentoo Archives: gentoo-commits

From: "Alexis Ballier (aballier)" <aballier@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] gentoo-x86 commit in dev-ml/camlp5: camlp5-6.02.3_p1.ebuild ChangeLog
Date: Wed, 30 Nov 2011 12:50:35
Message-Id: 20111130125025.ED9052004B@flycatcher.gentoo.org
1 aballier 11/11/30 12:50:25
2
3 Modified: ChangeLog
4 Added: camlp5-6.02.3_p1.ebuild
5 Log:
6 version bump
7
8 (Portage version: 2.2.0_alpha79/cvs/Linux x86_64)
9
10 Revision Changes Path
11 1.60 dev-ml/camlp5/ChangeLog
12
13 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-ml/camlp5/ChangeLog?rev=1.60&view=markup
14 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-ml/camlp5/ChangeLog?rev=1.60&content-type=text/plain
15 diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-ml/camlp5/ChangeLog?r1=1.59&r2=1.60
16
17 Index: ChangeLog
18 ===================================================================
19 RCS file: /var/cvsroot/gentoo-x86/dev-ml/camlp5/ChangeLog,v
20 retrieving revision 1.59
21 retrieving revision 1.60
22 diff -u -r1.59 -r1.60
23 --- ChangeLog 1 Oct 2011 03:26:13 -0000 1.59
24 +++ ChangeLog 30 Nov 2011 12:50:25 -0000 1.60
25 @@ -1,6 +1,11 @@
26 # ChangeLog for dev-ml/camlp5
27 # Copyright 1999-2011 Gentoo Foundation; Distributed under the GPL v2
28 -# $Header: /var/cvsroot/gentoo-x86/dev-ml/camlp5/ChangeLog,v 1.59 2011/10/01 03:26:13 phajdan.jr Exp $
29 +# $Header: /var/cvsroot/gentoo-x86/dev-ml/camlp5/ChangeLog,v 1.60 2011/11/30 12:50:25 aballier Exp $
30 +
31 +*camlp5-6.02.3_p1 (30 Nov 2011)
32 +
33 + 30 Nov 2011; Alexis Ballier <aballier@g.o> +camlp5-6.02.3_p1.ebuild:
34 + version bump
35
36 01 Oct 2011; Pawel Hajdan jr <phajdan.jr@g.o> camlp5-6.02.3.ebuild:
37 x86 stable wrt bug #383825
38
39
40
41 1.1 dev-ml/camlp5/camlp5-6.02.3_p1.ebuild
42
43 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-ml/camlp5/camlp5-6.02.3_p1.ebuild?rev=1.1&view=markup
44 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-ml/camlp5/camlp5-6.02.3_p1.ebuild?rev=1.1&content-type=text/plain
45
46 Index: camlp5-6.02.3_p1.ebuild
47 ===================================================================
48 # Copyright 1999-2011 Gentoo Foundation
49 # Distributed under the terms of the GNU General Public License v2
50 # $Header: /var/cvsroot/gentoo-x86/dev-ml/camlp5/camlp5-6.02.3_p1.ebuild,v 1.1 2011/11/30 12:50:25 aballier Exp $
51
52 EAPI="2"
53
54 inherit multilib findlib eutils
55
56 MY_P=${P%_p*}
57 DESCRIPTION="A preprocessor-pretty-printer of ocaml"
58 HOMEPAGE="http://pauillac.inria.fr/~ddr/camlp5/"
59 SRC_URI="http://pauillac.inria.fr/~ddr/camlp5/distrib/src/${MY_P}.tgz"
60
61 LICENSE="BSD"
62 SLOT="0"
63 KEYWORDS="~amd64 ~ppc ~sparc ~x86 ~x86-fbsd"
64 IUSE="doc +ocamlopt"
65
66 DEPEND=">=dev-lang/ocaml-3.10[ocamlopt?]"
67 RDEPEND="${DEPEND}"
68
69 PATCHLEVEL=${PV#*_p}
70 PATCHLIST=""
71
72 if [ "${PATCHLEVEL}" != "${PV}" ] ; then
73 for i in $(seq 1 ${PATCHLEVEL}) ; do
74 SRC_URI="${SRC_URI}
75 http://pauillac.inria.fr/~ddr/camlp5/distrib/src/patch-${PV%_p*}-${i} -> ${MY_P}-patch-${i}.patch"
76 PATCHLIST="${PATCHLIST} ${MY_P}-patch-${i}.patch"
77 done
78 fi
79
80 S=${WORKDIR}/${MY_P}
81
82 src_prepare() {
83 for i in ${PATCHLIST} ; do
84 epatch "${DISTDIR}/${i}"
85 done
86 }
87
88 src_configure() {
89 ./configure \
90 -prefix /usr \
91 -bindir /usr/bin \
92 -libdir /usr/$(get_libdir)/ocaml \
93 -mandir /usr/share/man || die "configure failed"
94 }
95
96 src_compile(){
97 emake || die "emake failed"
98 if use ocamlopt; then
99 emake opt || die "Compiling native code programs failed"
100 emake opt.opt || die "Compiling native code programs failed"
101 fi
102 }
103
104 src_install() {
105 emake DESTDIR="${D}" install || die "emake install failed"
106 # findlib support
107 insinto "$(ocamlfind printconf destdir)/${PN}"
108 doins etc/META || die "failed to install META file for findlib support"
109
110 use doc && dohtml -r doc/*
111
112 dodoc CHANGES DEVEL ICHANGES README UPGRADING MODE
113 }