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.04.ebuild
Date: Thu, 01 Mar 2012 22:10:44
Message-Id: 20120301221034.91BBA2004B@flycatcher.gentoo.org
1 aballier 12/03/01 22:10:34
2
3 Modified: ChangeLog
4 Added: camlp5-6.04.ebuild
5 Log:
6 version bump, switch to strict mode since everything in the tree is now fine with it
7
8 (Portage version: 2.2.0_alpha89/cvs/Linux x86_64)
9
10 Revision Changes Path
11 1.67 dev-ml/camlp5/ChangeLog
12
13 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-ml/camlp5/ChangeLog?rev=1.67&view=markup
14 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-ml/camlp5/ChangeLog?rev=1.67&content-type=text/plain
15 diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-ml/camlp5/ChangeLog?r1=1.66&r2=1.67
16
17 Index: ChangeLog
18 ===================================================================
19 RCS file: /var/cvsroot/gentoo-x86/dev-ml/camlp5/ChangeLog,v
20 retrieving revision 1.66
21 retrieving revision 1.67
22 diff -u -r1.66 -r1.67
23 --- ChangeLog 23 Feb 2012 20:22:08 -0000 1.66
24 +++ ChangeLog 1 Mar 2012 22:10:34 -0000 1.67
25 @@ -1,6 +1,12 @@
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.66 2012/02/23 20:22:08 aballier Exp $
29 +# $Header: /var/cvsroot/gentoo-x86/dev-ml/camlp5/ChangeLog,v 1.67 2012/03/01 22:10:34 aballier Exp $
30 +
31 +*camlp5-6.04 (01 Mar 2012)
32 +
33 + 01 Mar 2012; Alexis Ballier <aballier@g.o> +camlp5-6.04.ebuild:
34 + version bump, switch to strict mode since everything in the tree is now fine
35 + with it
36
37 23 Feb 2012; Alexis Ballier <aballier@g.o> -camlp5-5.14.ebuild,
38 -files/camlp5-5.14-ocaml312.patch:
39
40
41
42 1.1 dev-ml/camlp5/camlp5-6.04.ebuild
43
44 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-ml/camlp5/camlp5-6.04.ebuild?rev=1.1&view=markup
45 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-ml/camlp5/camlp5-6.04.ebuild?rev=1.1&content-type=text/plain
46
47 Index: camlp5-6.04.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/dev-ml/camlp5/camlp5-6.04.ebuild,v 1.1 2012/03/01 22:10:34 aballier Exp $
52
53 EAPI="2"
54
55 inherit multilib findlib eutils
56
57 MY_P=${P%_p*}
58 DESCRIPTION="A preprocessor-pretty-printer of ocaml"
59 HOMEPAGE="http://pauillac.inria.fr/~ddr/camlp5/"
60 SRC_URI="http://pauillac.inria.fr/~ddr/camlp5/distrib/src/${MY_P}.tgz"
61
62 LICENSE="BSD"
63 SLOT="0"
64 KEYWORDS="~amd64 ~ppc ~x86 ~x86-fbsd"
65 IUSE="doc +ocamlopt"
66
67 DEPEND=">=dev-lang/ocaml-3.10[ocamlopt?]"
68 RDEPEND="${DEPEND}"
69
70 PATCHLEVEL=${PV#*_p}
71 PATCHLIST=""
72
73 if [ "${PATCHLEVEL}" != "${PV}" ] ; then
74 for (( i=1; i<=PATCHLEVEL; i++ )) ; do
75 SRC_URI="${SRC_URI}
76 http://pauillac.inria.fr/~ddr/camlp5/distrib/src/patch-${PV%_p*}-${i} -> ${MY_P}-patch-${i}.patch"
77 PATCHLIST="${PATCHLIST} ${MY_P}-patch-${i}.patch"
78 done
79 fi
80
81 S=${WORKDIR}/${MY_P}
82
83 src_prepare() {
84 for i in ${PATCHLIST} ; do
85 epatch "${DISTDIR}/${i}"
86 done
87 }
88
89 src_configure() {
90 ./configure \
91 --strict \
92 -prefix /usr \
93 -bindir /usr/bin \
94 -libdir /usr/$(get_libdir)/ocaml \
95 -mandir /usr/share/man || die "configure failed"
96 }
97
98 src_compile(){
99 emake || die "emake failed"
100 if use ocamlopt; then
101 emake opt || die "Compiling native code programs failed"
102 emake opt.opt || die "Compiling native code programs failed"
103 fi
104 }
105
106 src_install() {
107 emake DESTDIR="${D}" install || die "emake install failed"
108 # findlib support
109 insinto "$(ocamlfind printconf destdir)/${PN}"
110 doins etc/META || die "failed to install META file for findlib support"
111
112 use doc && dohtml -r doc/*
113
114 dodoc CHANGES DEVEL ICHANGES README UPGRADING MODE
115 }