Gentoo Archives: gentoo-commits

From: Alexis Ballier <aballier@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: dev-ml/camlp5/
Date: Tue, 02 Feb 2016 08:51:31
Message-Id: 1454403076.4ed327cd4fb362993732fcb7c775bfc5f80ee5c9.aballier@gentoo
1 commit: 4ed327cd4fb362993732fcb7c775bfc5f80ee5c9
2 Author: Alexis Ballier <aballier <AT> gentoo <DOT> org>
3 AuthorDate: Tue Feb 2 08:36:42 2016 +0000
4 Commit: Alexis Ballier <aballier <AT> gentoo <DOT> org>
5 CommitDate: Tue Feb 2 08:51:16 2016 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=4ed327cd
7
8 dev-ml/camlp5: bump to 6.15
9
10 Package-Manager: portage-2.2.27
11 Signed-off-by: Alexis Ballier <aballier <AT> gentoo.org>
12
13 dev-ml/camlp5/Manifest | 1 +
14 dev-ml/camlp5/camlp5-6.15.ebuild | 67 ++++++++++++++++++++++++++++++++++++++++
15 2 files changed, 68 insertions(+)
16
17 diff --git a/dev-ml/camlp5/Manifest b/dev-ml/camlp5/Manifest
18 index 9c3a372..d38913a 100644
19 --- a/dev-ml/camlp5/Manifest
20 +++ b/dev-ml/camlp5/Manifest
21 @@ -1 +1,2 @@
22 DIST camlp5-6.14.tgz 748674 SHA256 09f9ed12893d2ec39c88106af2306865c966096bedce0250f2fe52b67d2480e2 SHA512 7dd57b8725953099726fc2e5f6dda01ed74485a4bbf41cb30ccd2163ee38bc6dff36fd83069c58d7990522527d266c9e180a8e333b36a42bc216315dc88a25e9 WHIRLPOOL 305bb842e449775352cbbf3c89a301a188419c10462f0959b00e181596218b5251dac50856f152ad471fd680e557e6595978c395e9c2864c38ddacd7287c4e3b
23 +DIST camlp5-6.15.tgz 756199 SHA256 2e0e1e31e0537f2179766820dd9bd0a4d424bc5ab9c610e6dbf9145f27747f2b SHA512 658ff32d1d124e91e85d8eba47039bb75573b3807d67fae723335bb06d3237c4151f6d671fb3b068ec4ebffdde03f7956174c9f0ca29eafa5990974987bc2aca WHIRLPOOL d449b7a485967b79efbc030527513d99dd19d4856ebc132133d09d7028c210b4314ac401de65ac7671d3066f6a2184df157a0091fc173f4d6e7ae8bc7ad2c432
24
25 diff --git a/dev-ml/camlp5/camlp5-6.15.ebuild b/dev-ml/camlp5/camlp5-6.15.ebuild
26 new file mode 100644
27 index 0000000..4fcf3b9
28 --- /dev/null
29 +++ b/dev-ml/camlp5/camlp5-6.15.ebuild
30 @@ -0,0 +1,67 @@
31 +# Copyright 1999-2015 Gentoo Foundation
32 +# Distributed under the terms of the GNU General Public License v2
33 +# $Id$
34 +
35 +EAPI="5"
36 +
37 +inherit multilib findlib eutils
38 +
39 +MY_P=${P%_p*}
40 +DESCRIPTION="A preprocessor-pretty-printer of ocaml"
41 +HOMEPAGE="http://camlp5.gforge.inria.fr/"
42 +SRC_URI="http://camlp5.gforge.inria.fr/distrib/src/${MY_P}.tgz"
43 +
44 +LICENSE="BSD"
45 +SLOT="0/${PV}"
46 +KEYWORDS="~amd64 ~ppc ~x86 ~x86-fbsd"
47 +IUSE="doc +ocamlopt"
48 +
49 +DEPEND=">=dev-lang/ocaml-3.10:=[ocamlopt?]"
50 +RDEPEND="${DEPEND}"
51 +
52 +PATCHLEVEL=${PV#*_p}
53 +PATCHLIST=""
54 +
55 +if [ "${PATCHLEVEL}" != "${PV}" ] ; then
56 + for (( i=1; i<=PATCHLEVEL; i++ )) ; do
57 + SRC_URI="${SRC_URI}
58 + http://pauillac.inria.fr/~ddr/camlp5/distrib/src/patch-${PV%_p*}-${i} -> ${MY_P}-patch-${i}.patch"
59 + PATCHLIST="${PATCHLIST} ${MY_P}-patch-${i}.patch"
60 + done
61 +fi
62 +
63 +S=${WORKDIR}/${MY_P}
64 +
65 +src_prepare() {
66 + for i in ${PATCHLIST} ; do
67 + epatch "${DISTDIR}/${i}"
68 + done
69 +}
70 +
71 +src_configure() {
72 + ./configure \
73 + --strict \
74 + -prefix /usr \
75 + -bindir /usr/bin \
76 + -libdir /usr/$(get_libdir)/ocaml \
77 + -mandir /usr/share/man || die "configure failed"
78 +}
79 +
80 +src_compile(){
81 + emake out
82 + if use ocamlopt; then
83 + emake opt
84 + emake opt.opt
85 + fi
86 +}
87 +
88 +src_install() {
89 + emake DESTDIR="${D}" install
90 + # findlib support
91 + insinto "$(ocamlfind printconf destdir)/${PN}"
92 + doins etc/META
93 +
94 + use doc && dohtml -r doc/*
95 +
96 + dodoc CHANGES DEVEL ICHANGES README UPGRADING MODE
97 +}