* [gentoo-commits] repo/gentoo:master commit in: dev-ml/ppx_variants_conv/files/, dev-ml/ppx_variants_conv/
@ 2021-10-06 1:02 Sam James
0 siblings, 0 replies; only message in thread
From: Sam James @ 2021-10-06 1:02 UTC (permalink / raw
To: gentoo-commits
commit: e957c5cbaf3463ad30b10fc0934ef6cf3ee7ffc3
Author: Sam James <sam <AT> gentoo <DOT> org>
AuthorDate: Wed Oct 6 00:50:12 2021 +0000
Commit: Sam James <sam <AT> gentoo <DOT> org>
CommitDate: Wed Oct 6 01:00:57 2021 +0000
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=e957c5cb
dev-ml/ppx_variants_conv: fix compatibility with ppxlib-0.23
Closes: https://bugs.gentoo.org/816099
Signed-off-by: Sam James <sam <AT> gentoo.org>
...nts_conv-0.14.1-ppxlib-0.23-compatibility.patch | 31 ++++++++++++++++++++++
.../ppx_variants_conv-0.14.1-r1.ebuild | 29 ++++++++++++++++++++
2 files changed, 60 insertions(+)
diff --git a/dev-ml/ppx_variants_conv/files/ppx_variants_conv-0.14.1-ppxlib-0.23-compatibility.patch b/dev-ml/ppx_variants_conv/files/ppx_variants_conv-0.14.1-ppxlib-0.23-compatibility.patch
new file mode 100644
index 00000000000..d8df60aeec7
--- /dev/null
+++ b/dev-ml/ppx_variants_conv/files/ppx_variants_conv-0.14.1-ppxlib-0.23-compatibility.patch
@@ -0,0 +1,31 @@
+From 6103f6fc56f978c847ba7c1f2d9f38ee93a5e337 Mon Sep 17 00:00:00 2001
+From: Sonja Heinze <sonjaleaheinze@gmail.com>
+Date: Tue, 9 Mar 2021 12:57:47 +0100
+Subject: [PATCH] Adapt to Ppxlib's API change
+
+Ppxlib is removing Lexer.keyword_table from the API in exchange for
+the more lightweight Keyword.is_keyword.
+
+Signed-off-by: Sonja Heinze <sonjaleaheinze@gmail.com>
+--- a/ppx_variants_conv.opam
++++ b/ppx_variants_conv.opam
+@@ -15,7 +15,7 @@ depends: [
+ "base" {>= "v0.14" & < "v0.15"}
+ "variantslib" {>= "v0.14" & < "v0.15"}
+ "dune" {>= "2.0.0"}
+- "ppxlib" {>= "0.14.0"}
++ "ppxlib" {>= "0.23.0"}
+ ]
+ synopsis: "Generation of accessor and iteration functions for ocaml variant types"
+ description: "
+--- a/src/ppx_variants_conv.ml
++++ b/src/ppx_variants_conv.ml
+@@ -66,7 +66,7 @@ end
+
+ let variant_name_to_string v =
+ let s = String.lowercase v in
+- if Caml.Hashtbl.mem Lexer.keyword_table s
++ if Keyword.is_keyword s
+ then s ^ "_"
+ else s
+
diff --git a/dev-ml/ppx_variants_conv/ppx_variants_conv-0.14.1-r1.ebuild b/dev-ml/ppx_variants_conv/ppx_variants_conv-0.14.1-r1.ebuild
new file mode 100644
index 00000000000..8915cf1f56d
--- /dev/null
+++ b/dev-ml/ppx_variants_conv/ppx_variants_conv-0.14.1-r1.ebuild
@@ -0,0 +1,29 @@
+# Copyright 1999-2021 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=7
+
+inherit dune
+
+DESCRIPTION="Generation of accessor and iteration functions for ocaml variant types"
+HOMEPAGE="https://github.com/janestreet/ppx_variants_conv"
+SRC_URI="https://github.com/janestreet/${PN}/archive/v${PV}.tar.gz -> ${P}.tar.gz"
+
+LICENSE="Apache-2.0"
+SLOT="0/${PV}"
+KEYWORDS="~amd64 ~arm ~arm64 ~ppc ~ppc64 ~x86"
+IUSE="+ocamlopt"
+
+DEPEND="
+ >=dev-ml/base-0.14.0:=
+ >=dev-ml/variantslib-0.14.0:=
+ >=dev-ml/ppxlib-0.23.0:=
+ >=dev-ml/ocaml-compiler-libs-0.11.0:=
+ >=dev-ml/ocaml-migrate-parsetree-2.0.0:=
+ dev-ml/cinaps:=
+"
+RDEPEND="${DEPEND}"
+
+PATCHES=(
+ "${FILESDIR}"/${PN}-0.14.1-ppxlib-0.23-compatibility.patch
+)
^ permalink raw reply related [flat|nested] only message in thread
only message in thread, other threads:[~2021-10-06 1:02 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2021-10-06 1:02 [gentoo-commits] repo/gentoo:master commit in: dev-ml/ppx_variants_conv/files/, dev-ml/ppx_variants_conv/ Sam James
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox