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/ppx_deriving/
Date: Wed, 17 Feb 2016 21:08:33
Message-Id: 1455743287.ac562b67497585f9aedfcf9652a54a2cd2d7be89.aballier@gentoo
1 commit: ac562b67497585f9aedfcf9652a54a2cd2d7be89
2 Author: Alexis Ballier <aballier <AT> gentoo <DOT> org>
3 AuthorDate: Wed Feb 17 20:09:30 2016 +0000
4 Commit: Alexis Ballier <aballier <AT> gentoo <DOT> org>
5 CommitDate: Wed Feb 17 21:08:07 2016 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=ac562b67
7
8 dev-ml/ppx_deriving: bump to 3.1
9
10 Package-Manager: portage-2.2.27
11 Signed-off-by: Alexis Ballier <aballier <AT> gentoo.org>
12
13 dev-ml/ppx_deriving/Manifest | 1 +
14 dev-ml/ppx_deriving/ppx_deriving-3.1.ebuild | 54 +++++++++++++++++++++++++++++
15 2 files changed, 55 insertions(+)
16
17 diff --git a/dev-ml/ppx_deriving/Manifest b/dev-ml/ppx_deriving/Manifest
18 index 58d9aa2..7ddb5a2 100644
19 --- a/dev-ml/ppx_deriving/Manifest
20 +++ b/dev-ml/ppx_deriving/Manifest
21 @@ -1 +1,2 @@
22 DIST ppx_deriving-3.0.tar.gz 38560 SHA256 1998607e68b35b6c61e1fb33c03b523f3bf88f802df6d5bf180dc6932317179b SHA512 1b8ef40fd1b85df0d5307edcc46c16ae1834aadb1419d92dced4b2b542f51bb24999abcdf725647f1f7033ca2df4dc88ab156002b1e6a7a6a83a5e0e4854d833 WHIRLPOOL cda0c6afc31c6d39dd4974c2ce63d28ddea2019bb8bc1c50338c1005880a0a0ef66c2ceb00e86a6a7040c042778f1216321cda3d1dcfc2327c6e084f0ab45b53
23 +DIST ppx_deriving-3.1.tar.gz 40720 SHA256 19babff7706753d24d4859a24d7303555dd1af125d6ca8a0589b8fac3c110fa7 SHA512 ef3174f4fbecea9c613deb62aebb45de2b2abf640d557973f0621575a391cc11fc4135c782dc3d202012ddbeaadb3c7dd84f42d08aef0ba668bd169dedfeedf0 WHIRLPOOL cdace363540346f3660811c57f7c10757dd09011fed1300fe29e3746297cae9ed3567e2b865c20dda6061404bb10c5b1e3350acfa8ad7f92bb20199f0a8052ea
24
25 diff --git a/dev-ml/ppx_deriving/ppx_deriving-3.1.ebuild b/dev-ml/ppx_deriving/ppx_deriving-3.1.ebuild
26 new file mode 100644
27 index 0000000..0099ce5
28 --- /dev/null
29 +++ b/dev-ml/ppx_deriving/ppx_deriving-3.1.ebuild
30 @@ -0,0 +1,54 @@
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 findlib
38 +
39 +DESCRIPTION="Type-driven code generation for OCaml"
40 +HOMEPAGE="https://github.com/whitequark/ppx_deriving"
41 +SRC_URI="https://github.com/whitequark/ppx_deriving/archive/v${PV}.tar.gz -> ${P}.tar.gz"
42 +
43 +LICENSE="MIT"
44 +SLOT="0/${PV}"
45 +KEYWORDS="~amd64"
46 +IUSE="doc +ocamlopt test"
47 +
48 +DEPEND="dev-ml/ppx_tools:=
49 + >=dev-lang/ocaml-4.02.3:=[ocamlopt?]"
50 +RDEPEND="${DEPEND}"
51 +DEPEND="${RDEPEND}
52 + dev-ml/opam
53 + test? ( dev-ml/ounit )"
54 +
55 +src_compile() {
56 + cp pkg/META.in pkg/META || die
57 + ocaml pkg/build.ml \
58 + native=$(usex ocamlopt true false) \
59 + native-dynlink=$(usex ocamlopt true false) \
60 + || die
61 + use doc && emake doc
62 +}
63 +
64 +src_test() {
65 + ocamlbuild -j 0 -use-ocamlfind -classic-display \
66 + src_test/test_ppx_deriving.byte -- || die
67 + if use ocamlopt; then
68 + ocamlbuild -j 0 -use-ocamlfind -classic-display \
69 + src_test/test_ppx_deriving.native -- || die
70 + fi
71 +}
72 +
73 +src_install() {
74 + opam-installer -i \
75 + --prefix="${ED}/usr" \
76 + --libdir="${D}/$(ocamlc -where)" \
77 + --docdir="${ED}/usr/share/doc/${PF}" \
78 + ${PN}.install || die
79 + mv "${ED}/usr/lib/ppx_deriving/ppx_deriving" "${D}/$(ocamlc -where)/ppx_deriving/" || die
80 +
81 + use doc && dohtml api.docdir/*
82 +
83 + dodoc CHANGELOG.md README.md
84 +}