summaryrefslogtreecommitdiff
path: root/dev-ml/ppx_variants_conv
diff options
context:
space:
mode:
authorV3n3RiX <venerix@koprulu.sector>2021-10-08 23:06:07 +0100
committerV3n3RiX <venerix@koprulu.sector>2021-10-08 23:06:07 +0100
commite23a08d0c97a0cc415aaa165da840b056f93c997 (patch)
tree4c5f7db60483518201fef36f8cc0712789a08db2 /dev-ml/ppx_variants_conv
parent391b5b359a346aff490103da7dddc85047f83830 (diff)
gentoo resync : 08.10.2021
Diffstat (limited to 'dev-ml/ppx_variants_conv')
-rw-r--r--dev-ml/ppx_variants_conv/Manifest4
-rw-r--r--dev-ml/ppx_variants_conv/files/ppx_variants_conv-0.14.1-ppxlib-0.23-compatibility.patch31
-rw-r--r--dev-ml/ppx_variants_conv/metadata.xml4
-rw-r--r--dev-ml/ppx_variants_conv/ppx_variants_conv-0.14.1-r1.ebuild29
4 files changed, 67 insertions, 1 deletions
diff --git a/dev-ml/ppx_variants_conv/Manifest b/dev-ml/ppx_variants_conv/Manifest
index a03df17aff99..ae81fe75a880 100644
--- a/dev-ml/ppx_variants_conv/Manifest
+++ b/dev-ml/ppx_variants_conv/Manifest
@@ -1,3 +1,5 @@
+AUX ppx_variants_conv-0.14.1-ppxlib-0.23-compatibility.patch 983 BLAKE2B bbc00d09fc8ff80ced828a52206d5e2d24073a33b8777af9e6bfc55e934d6450b6054065e312a299f172e700b27e4eb664a4ed9594ad559976f51a96544731de SHA512 9eaa489d9fe1459990c7c6d6f3454dd06c20100f0344e31fc8ba9ad59e8c68e5759b83c89d5e600e1308e0bebbc98fbeecf3ab9b578307560e21dae22732d50c
DIST ppx_variants_conv-0.14.1.tar.gz 9640 BLAKE2B a73241a8dfc1cf41d2ad184f7e321484525794e66a1e881c822616aca6f8d221e9e699464716410a71ae3cbd542eef6315e0d183447e5e0e49bdb02935876375 SHA512 2ee21751de1595e56b151d87413554af5c0aaf92053ddd2834cadea812f1f59fcd078f6f4a9e9894eca9ffbf211ed2de996df065534c84256dc9670ee8fcbed5
+EBUILD ppx_variants_conv-0.14.1-r1.ebuild 739 BLAKE2B 6cfd302aca4698039f5bcba86d5f608ee5e147623f2d943ae4d417ab3ecb3ad90a44d8cffec76fe0e4154158f81d3e58d55b2e6636edb78e536c0a1d173d0909 SHA512 41a6d2deebe1979f02edcb3c401dbb09c5b047168f8a35a765c7fc15df17ec01a5ec8e54f239de1406b992721dab2afd44bfc902437d9e580325682a87521116
EBUILD ppx_variants_conv-0.14.1.ebuild 664 BLAKE2B ff37f6685ad3c48f862dcd628d59016eacfa9d8e7740ac07cf0cdea0018080c3279e516f61dbe9cd6c8b4be3dc1bb1e5f493cdb0c041f4a030a8e5bd20c1faa0 SHA512 369332b89c74b0e09f0d69a173150347cc998c7507f4a0f78031e42ecb35a4f40cb04e6b77953afa8a8d379208328d8318ddf5041b794ee679402114d1e4a195
-MISC metadata.xml 338 BLAKE2B dfe645a1e9d551c9240fed15b666b55df5c04ca56dae2cf1051490d7f17c3de1850d93006861e916574ca86abb849c025eaae04661cf4b91dfd76365b8490df6 SHA512 fe8aa3284cae7c769d4d08586f5d8312c11937b4bd789f6326cb10cd62dbc6e243b9c23830cd5c2695a12641ecf9394b3192656fdf2239f67cae59d13e46c49b
+MISC metadata.xml 431 BLAKE2B 83c405af5f5545235e34f693d30cb519fc076516c1ce567589f1b4944c67df76cc959370b65fecba7b5be8fd9cc17fab164ee4886be1a760af3b7d65c7678af6 SHA512 21e04b3f4d77d63737123d349a57917a99a57b927d83a3020cb2b9455ff9a3bd3d53f11a4bc8a20a0ad7494484f393df1ab0c14ae39ca85e2558cb91296fbe8c
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 000000000000..d8df60aeec71
--- /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/metadata.xml b/dev-ml/ppx_variants_conv/metadata.xml
index 029ff6ac939f..b5b4c3bff187 100644
--- a/dev-ml/ppx_variants_conv/metadata.xml
+++ b/dev-ml/ppx_variants_conv/metadata.xml
@@ -1,6 +1,10 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE pkgmetadata SYSTEM "https://www.gentoo.org/dtd/metadata.dtd">
<pkgmetadata>
+ <maintainer type="project">
+ <email>ml@gentoo.org</email>
+ <name>ML</name>
+ </maintainer>
<maintainer type="person">
<email>gienah@gentoo.org</email>
<name>Mark Wright</name>
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 000000000000..8915cf1f56d1
--- /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
+)