public inbox for gentoo-commits@lists.gentoo.org
 help / color / mirror / Atom feed
* [gentoo-commits] repo/gentoo:master commit in: dev-ml/ppx_expect/, dev-ml/ppx_expect/files/
@ 2016-05-03 17:44 Alexis Ballier
  0 siblings, 0 replies; only message in thread
From: Alexis Ballier @ 2016-05-03 17:44 UTC (permalink / raw
  To: gentoo-commits

commit:     e873d8de7f7e999e597ce5a35384185612a52f1c
Author:     Alexis Ballier <aballier <AT> gentoo <DOT> org>
AuthorDate: Tue May  3 17:20:53 2016 +0000
Commit:     Alexis Ballier <aballier <AT> gentoo <DOT> org>
CommitDate: Tue May  3 17:44:22 2016 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=e873d8de

dev-ml/ppx_expect: fix build with ocaml 4.03

Package-Manager: portage-2.2.28
Signed-off-by: Alexis Ballier <aballier <AT> gentoo.org>

 dev-ml/ppx_expect/files/oc43.patch            | 49 +++++++++++++++++++++++++++
 dev-ml/ppx_expect/ppx_expect-113.33.01.ebuild |  4 +++
 2 files changed, 53 insertions(+)

diff --git a/dev-ml/ppx_expect/files/oc43.patch b/dev-ml/ppx_expect/files/oc43.patch
new file mode 100644
index 0000000..3606d29
--- /dev/null
+++ b/dev-ml/ppx_expect/files/oc43.patch
@@ -0,0 +1,49 @@
+diff -uNr ppx_expect-113.33.01/expect_payload/ppx_expect_payload.ml ppx_expect-113.33.01+4.03/expect_payload/ppx_expect_payload.ml
+--- ppx_expect-113.33.01/expect_payload/ppx_expect_payload.ml	2016-03-22 17:09:17.000000000 +0100
++++ ppx_expect-113.33.01+4.03/expect_payload/ppx_expect_payload.ml	2016-04-06 12:35:50.000000000 +0200
+@@ -63,7 +63,7 @@
+ 
+ let pattern () =
+   Ast_pattern.(
+-    map (single_expr_payload (pexp_loc __ (pexp_constant (const_string __ __))))
++    map (single_expr_payload (pexp_loc __ (pexp_constant (pconst_string __ __))))
+       ~f:(fun f loc s tag -> f (Some (loc, s, tag)))
+     |||
+     map (pstr nil)
+diff -uNr ppx_expect-113.33.01/_oasis ppx_expect-113.33.01+4.03/_oasis
+--- ppx_expect-113.33.01/_oasis	2016-03-22 17:09:17.000000000 +0100
++++ ppx_expect-113.33.01+4.03/_oasis	2016-04-06 12:35:50.000000000 +0200
+@@ -1,8 +1,8 @@
+ OASISFormat:           0.4
+-OCamlVersion:          >= 4.02.3
++OCamlVersion:          >= 4.03.0
+ FindlibVersion:        >= 1.3.2
+ Name:                  ppx_expect
+-Version:               113.33.01
++Version:               113.33.01+4.03
+ Synopsis:              Cram like framework for OCaml
+ Authors:               Jane Street Group, LLC <opensource@janestreet.com>
+ Copyrights:            (C) 2015-2016 Jane Street Group LLC <opensource@janestreet.com>
+diff -uNr ppx_expect-113.33.01/opam ppx_expect-113.33.01+4.03/opam
+--- ppx_expect-113.33.01/opam	2016-03-22 18:31:21.000000000 +0100
++++ ppx_expect-113.33.01+4.03/opam	2016-04-06 12:54:27.000000000 +0200
+@@ -27,4 +27,4 @@
+   "sexplib"
+   "variantslib"
+ ]
+-available: [ ocaml-version >= "4.02.3" ]
++available: [ ocaml-version >= "4.03.0" ]
+diff -uNr ppx_expect-113.33.01/src/expect_extension.ml ppx_expect-113.33.01+4.03/src/expect_extension.ml
+--- ppx_expect-113.33.01/src/expect_extension.ml	2016-03-22 17:09:17.000000000 +0100
++++ ppx_expect-113.33.01+4.03/src/expect_extension.ml	2016-04-06 12:35:50.000000000 +0200
+@@ -24,9 +24,8 @@
+   pstr ((
+     pstr_value nonrecursive (
+       value_binding
+-        ~pat:(map (pstring __) ~f:(fun f x -> f (Some x)))
++        ~pat:(alt_option (pstring __) ppat_any)
+         ~expr ^:: nil)
+-    ||| map (pstr_eval expr nil) ~f:(fun f -> f None)
+   ) ^:: nil)
+ 
+ let expect_test =

diff --git a/dev-ml/ppx_expect/ppx_expect-113.33.01.ebuild b/dev-ml/ppx_expect/ppx_expect-113.33.01.ebuild
index c605caa..4bb651b 100644
--- a/dev-ml/ppx_expect/ppx_expect-113.33.01.ebuild
+++ b/dev-ml/ppx_expect/ppx_expect-113.33.01.ebuild
@@ -34,6 +34,10 @@ DEPEND="dev-ml/ppx_tools:=
 RDEPEND="${DEPEND}"
 DEPEND="${DEPEND} dev-ml/opam"
 
+src_prepare() {
+	has_version '>=dev-lang/ocaml-4.03' && epatch "${FILESDIR}/oc43.patch"
+}
+
 src_configure() {
 	emake setup.exe
 	OASIS_SETUP_COMMAND="./setup.exe" oasis_src_configure


^ permalink raw reply related	[flat|nested] only message in thread

only message in thread, other threads:[~2016-05-03 17:45 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2016-05-03 17:44 [gentoo-commits] repo/gentoo:master commit in: dev-ml/ppx_expect/, dev-ml/ppx_expect/files/ Alexis Ballier

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox