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/files/, dev-ml/ppx_deriving/
Date: Fri, 07 Jul 2017 17:55:56
Message-Id: 1499450132.c4d3a2b0cbab97d23d839111e8d3420db4cc4392.aballier@gentoo
1 commit: c4d3a2b0cbab97d23d839111e8d3420db4cc4392
2 Author: Alexis Ballier <aballier <AT> gentoo <DOT> org>
3 AuthorDate: Fri Jul 7 17:55:32 2017 +0000
4 Commit: Alexis Ballier <aballier <AT> gentoo <DOT> org>
5 CommitDate: Fri Jul 7 17:55:32 2017 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=c4d3a2b0
7
8 dev-ml/ppx_deriving: Fix building ppx_deriving_make caught by running tests, bug #624146
9
10 Package-Manager: Portage-2.3.6, Repoman-2.3.2
11
12 dev-ml/ppx_deriving/files/ocb011.patch | 16 ++++++++++++++++
13 ...px_deriving-4.1.ebuild => ppx_deriving-4.1-r1.ebuild} | 8 ++++++--
14 2 files changed, 22 insertions(+), 2 deletions(-)
15
16 diff --git a/dev-ml/ppx_deriving/files/ocb011.patch b/dev-ml/ppx_deriving/files/ocb011.patch
17 new file mode 100644
18 index 00000000000..73c921971b0
19 --- /dev/null
20 +++ b/dev-ml/ppx_deriving/files/ocb011.patch
21 @@ -0,0 +1,16 @@
22 +commit a4428407e974361d872e0a70e036bc7ee20e8467
23 +Author: whitequark <whitequark@××××××××××.org>
24 +Date: Tue Feb 28 00:37:56 2017 +0000
25 +
26 + Fix ppx_deriving_make.mllib.
27 +
28 + This is a bug that goes back all the way to c2fb119f, but it was
29 + hidden by a matching bug in ocamlbuild <0.11.
30 +
31 +diff --git a/src_plugins/ppx_deriving_make.mllib b/src_plugins/ppx_deriving_make.mllib
32 +index 1b2681b..7f23204 100644
33 +--- a/src_plugins/ppx_deriving_make.mllib
34 ++++ b/src_plugins/ppx_deriving_make.mllib
35 +@@ -1 +1 @@
36 +-ppx_deriving_create
37 ++ppx_deriving_make
38
39 diff --git a/dev-ml/ppx_deriving/ppx_deriving-4.1.ebuild b/dev-ml/ppx_deriving/ppx_deriving-4.1-r1.ebuild
40 similarity index 91%
41 rename from dev-ml/ppx_deriving/ppx_deriving-4.1.ebuild
42 rename to dev-ml/ppx_deriving/ppx_deriving-4.1-r1.ebuild
43 index a55f0e65293..c0d348838f6 100644
44 --- a/dev-ml/ppx_deriving/ppx_deriving-4.1.ebuild
45 +++ b/dev-ml/ppx_deriving/ppx_deriving-4.1-r1.ebuild
46 @@ -1,9 +1,9 @@
47 -# Copyright 1999-2016 Gentoo Foundation
48 +# Copyright 1999-2017 Gentoo Foundation
49 # Distributed under the terms of the GNU General Public License v2
50
51 EAPI="5"
52
53 -inherit findlib
54 +inherit findlib eutils
55
56 DESCRIPTION="Type-driven code generation for OCaml"
57 HOMEPAGE="https://github.com/whitequark/ppx_deriving"
58 @@ -22,6 +22,10 @@ DEPEND="${RDEPEND}
59 dev-ml/opam
60 test? ( dev-ml/ounit )"
61
62 +src_prepare() {
63 + epatch "${FILESDIR}/ocb011.patch"
64 +}
65 +
66 src_compile() {
67 cp pkg/META.in pkg/META || die
68 ocaml pkg/build.ml \