dev-ml/ppx_deriving: Fix building ppx_deriving_make caught by running tests, bug...
authorAlexis Ballier <aballier@gentoo.org>
Fri, 7 Jul 2017 17:55:32 +0000 (19:55 +0200)
committerAlexis Ballier <aballier@gentoo.org>
Fri, 7 Jul 2017 17:55:32 +0000 (19:55 +0200)
Package-Manager: Portage-2.3.6, Repoman-2.3.2

dev-ml/ppx_deriving/files/ocb011.patch [new file with mode: 0644]
dev-ml/ppx_deriving/ppx_deriving-4.1-r1.ebuild [moved from dev-ml/ppx_deriving/ppx_deriving-4.1.ebuild with 91% similarity]

diff --git a/dev-ml/ppx_deriving/files/ocb011.patch b/dev-ml/ppx_deriving/files/ocb011.patch
new file mode 100644 (file)
index 0000000..73c9219
--- /dev/null
@@ -0,0 +1,16 @@
+commit a4428407e974361d872e0a70e036bc7ee20e8467
+Author: whitequark <whitequark@whitequark.org>
+Date:   Tue Feb 28 00:37:56 2017 +0000
+
+    Fix ppx_deriving_make.mllib.
+    
+    This is a bug that goes back all the way to c2fb119f, but it was
+    hidden by a matching bug in ocamlbuild <0.11.
+
+diff --git a/src_plugins/ppx_deriving_make.mllib b/src_plugins/ppx_deriving_make.mllib
+index 1b2681b..7f23204 100644
+--- a/src_plugins/ppx_deriving_make.mllib
++++ b/src_plugins/ppx_deriving_make.mllib
+@@ -1 +1 @@
+-ppx_deriving_create
++ppx_deriving_make
similarity index 91%
rename from dev-ml/ppx_deriving/ppx_deriving-4.1.ebuild
rename to dev-ml/ppx_deriving/ppx_deriving-4.1-r1.ebuild
index a55f0e65293a854baf183c58351e8636462cba98..c0d348838f6c9c539ce3b36ee189138b03781e33 100644 (file)
@@ -1,9 +1,9 @@
-# Copyright 1999-2016 Gentoo Foundation
+# Copyright 1999-2017 Gentoo Foundation
 # Distributed under the terms of the GNU General Public License v2
 
 EAPI="5"
 
-inherit findlib
+inherit findlib eutils
 
 DESCRIPTION="Type-driven code generation for OCaml"
 HOMEPAGE="https://github.com/whitequark/ppx_deriving"
@@ -22,6 +22,10 @@ DEPEND="${RDEPEND}
        dev-ml/opam
        test? ( dev-ml/ounit )"
 
+src_prepare() {
+       epatch "${FILESDIR}/ocb011.patch"
+}
+
 src_compile() {
        cp pkg/META.in pkg/META || die
        ocaml pkg/build.ml \