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: Mon, 26 Jun 2017 11:43:33
Message-Id: 1498477402.4a51666e5848f25f06ca29517492be77890bb07c.aballier@gentoo
1 commit: 4a51666e5848f25f06ca29517492be77890bb07c
2 Author: Alexis Ballier <aballier <AT> gentoo <DOT> org>
3 AuthorDate: Mon Jun 26 11:10:03 2017 +0000
4 Commit: Alexis Ballier <aballier <AT> gentoo <DOT> org>
5 CommitDate: Mon Jun 26 11:43:22 2017 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=4a51666e
7
8 dev-ml/camlp5: Bump to 7.00
9
10 Package-Manager: Portage-2.3.6, Repoman-2.3.2
11
12 dev-ml/camlp5/Manifest | 1 +
13 dev-ml/camlp5/camlp5-7.00.ebuild | 65 ++++++++++++++++++++++++++++++++++++++++
14 2 files changed, 66 insertions(+)
15
16 diff --git a/dev-ml/camlp5/Manifest b/dev-ml/camlp5/Manifest
17 index 548bf739ae3..779132d5854 100644
18 --- a/dev-ml/camlp5/Manifest
19 +++ b/dev-ml/camlp5/Manifest
20 @@ -1 +1,2 @@
21 DIST camlp5-6.17.tar.gz 718935 SHA256 8fa2a46a7030b1194862650cbb71ab52a10a0174890560a8b6edf236f8937414 SHA512 c4bf32eb79202d6127375b940fe77fc57c7dc5f8c6763b50ba23ab52ae9f3edb0ba15148109af2f6f4808619348d78e927cfdf29901bf1141b17de0d3fd8ff30 WHIRLPOOL 287641aa68bda275e39968aae93500307b5726e5381bbb5012840fcd6f3fd9a24335e9950a8fd9fed61045bf328ea877cd96ad735f6ce712b2e65a747e4ccf9e
22 +DIST camlp5-7.00.tar.gz 755750 SHA256 0b252388e58f879c78c075b17fc8bf3714bc070d5914425bb3adfeefa9097cfd SHA512 2d63451229f86fffeb287735ed26901ad43bb964b6ede1716cb82737001a5c1e4b77479a969509606f6a4f14bb6dbff32275d82f4a9640e0c16bb6594779e849 WHIRLPOOL 14fe8e69a7146397744d3868196f8df4d14e33a849bc0159ac6ffb4f4acc99ee1b8c37a65de3a1a82743eeaac7506c7c8fe517c0f1880e5967e0adb1d5684dc4
23
24 diff --git a/dev-ml/camlp5/camlp5-7.00.ebuild b/dev-ml/camlp5/camlp5-7.00.ebuild
25 new file mode 100644
26 index 00000000000..c0f52ab10e7
27 --- /dev/null
28 +++ b/dev-ml/camlp5/camlp5-7.00.ebuild
29 @@ -0,0 +1,65 @@
30 +# Copyright 1999-2017 Gentoo Foundation
31 +# Distributed under the terms of the GNU General Public License v2
32 +
33 +EAPI="5"
34 +
35 +inherit multilib findlib eutils versionator
36 +
37 +MY_P=${P%_p*}
38 +DESCRIPTION="A preprocessor-pretty-printer of ocaml"
39 +HOMEPAGE="https://camlp5.github.io/"
40 +SRC_URI="https://github.com/camlp5/camlp5/archive/rel$(replace_all_version_separators '').tar.gz -> ${P}.tar.gz"
41 +S="${WORKDIR}/${PN}-rel$(replace_all_version_separators '')"
42 +
43 +LICENSE="BSD"
44 +SLOT="0/${PV}"
45 +KEYWORDS="~alpha ~amd64 ~ppc ~x86 ~x86-fbsd"
46 +IUSE="doc +ocamlopt"
47 +
48 +DEPEND=">=dev-lang/ocaml-3.10:=[ocamlopt?]"
49 +RDEPEND="${DEPEND}"
50 +
51 +PATCHLEVEL=${PV#*_p}
52 +PATCHLIST=""
53 +
54 +if [ "${PATCHLEVEL}" != "${PV}" ] ; then
55 + for (( i=1; i<=PATCHLEVEL; i++ )) ; do
56 + SRC_URI="${SRC_URI}
57 + http://pauillac.inria.fr/~ddr/camlp5/distrib/src/patch-${PV%_p*}-${i} -> ${MY_P}-patch-${i}.patch"
58 + PATCHLIST="${PATCHLIST} ${MY_P}-patch-${i}.patch"
59 + done
60 +fi
61 +
62 +src_prepare() {
63 + for i in ${PATCHLIST} ; do
64 + epatch "${DISTDIR}/${i}"
65 + done
66 +}
67 +
68 +src_configure() {
69 + ./configure \
70 + --strict \
71 + -prefix /usr \
72 + -bindir /usr/bin \
73 + -libdir /usr/$(get_libdir)/ocaml \
74 + -mandir /usr/share/man || die "configure failed"
75 +}
76 +
77 +src_compile(){
78 + emake out
79 + if use ocamlopt; then
80 + emake opt
81 + emake opt.opt
82 + fi
83 +}
84 +
85 +src_install() {
86 + emake DESTDIR="${D}" install
87 + # findlib support
88 + insinto "$(ocamlfind printconf destdir)/${PN}"
89 + doins etc/META
90 +
91 + use doc && dohtml -r doc/*
92 +
93 + dodoc CHANGES DEVEL ICHANGES README UPGRADING MODE
94 +}