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: ChangeLog camlp5-6.06.ebuild
Date: Tue, 05 Jun 2012 23:30:44
Message-Id: 20120605233027.F30D42004B@flycatcher.gentoo.org
1 aballier 12/06/05 23:30:27
2
3 Modified: ChangeLog
4 Added: camlp5-6.06.ebuild
5 Log:
6 version bump
7
8 (Portage version: 2.2.0_alpha109/cvs/Linux x86_64)
9
10 Revision Changes Path
11 1.70 dev-ml/camlp5/ChangeLog
12
13 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-ml/camlp5/ChangeLog?rev=1.70&view=markup
14 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-ml/camlp5/ChangeLog?rev=1.70&content-type=text/plain
15 diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-ml/camlp5/ChangeLog?r1=1.69&r2=1.70
16
17 Index: ChangeLog
18 ===================================================================
19 RCS file: /var/cvsroot/gentoo-x86/dev-ml/camlp5/ChangeLog,v
20 retrieving revision 1.69
21 retrieving revision 1.70
22 diff -u -r1.69 -r1.70
23 --- ChangeLog 18 May 2012 17:06:20 -0000 1.69
24 +++ ChangeLog 5 Jun 2012 23:30:27 -0000 1.70
25 @@ -1,6 +1,11 @@
26 # ChangeLog for dev-ml/camlp5
27 # Copyright 1999-2012 Gentoo Foundation; Distributed under the GPL v2
28 -# $Header: /var/cvsroot/gentoo-x86/dev-ml/camlp5/ChangeLog,v 1.69 2012/05/18 17:06:20 aballier Exp $
29 +# $Header: /var/cvsroot/gentoo-x86/dev-ml/camlp5/ChangeLog,v 1.70 2012/06/05 23:30:27 aballier Exp $
30 +
31 +*camlp5-6.06 (05 Jun 2012)
32 +
33 + 05 Jun 2012; Alexis Ballier <aballier@g.o> +camlp5-6.06.ebuild:
34 + version bump
35
36 18 May 2012; Alexis Ballier <aballier@g.o> -camlp5-6.03.ebuild,
37 -camlp5-6.04.ebuild:
38
39
40
41 1.1 dev-ml/camlp5/camlp5-6.06.ebuild
42
43 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-ml/camlp5/camlp5-6.06.ebuild?rev=1.1&view=markup
44 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-ml/camlp5/camlp5-6.06.ebuild?rev=1.1&content-type=text/plain
45
46 Index: camlp5-6.06.ebuild
47 ===================================================================
48 # Copyright 1999-2012 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.06.ebuild,v 1.1 2012/06/05 23:30:27 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 ~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=1; i<=PATCHLEVEL; i++ )) ; 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 --strict \
91 -prefix /usr \
92 -bindir /usr/bin \
93 -libdir /usr/$(get_libdir)/ocaml \
94 -mandir /usr/share/man || die "configure failed"
95 }
96
97 src_compile(){
98 emake || die "emake failed"
99 if use ocamlopt; then
100 emake opt || die "Compiling native code programs failed"
101 emake opt.opt || die "Compiling native code programs failed"
102 fi
103 }
104
105 src_install() {
106 emake DESTDIR="${D}" install || die "emake install failed"
107 # findlib support
108 insinto "$(ocamlfind printconf destdir)/${PN}"
109 doins etc/META || die "failed to install META file for findlib support"
110
111 use doc && dohtml -r doc/*
112
113 dodoc CHANGES DEVEL ICHANGES README UPGRADING MODE
114 }