commit:     8890c71ea3daeccd183ea4ae61b07323a5623c08
Author:     Alfredo Tupone <tupone <AT> gentoo <DOT> org>
AuthorDate: Sat Jul 13 11:50:58 2024 +0000
Commit:     Alfredo Tupone <tupone <AT> gentoo <DOT> org>
CommitDate: Sat Jul 13 11:51:13 2024 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=8890c71e

dev-ml/yojson: add 2.2.2

Signed-off-by: Alfredo Tupone <tupone <AT> gentoo.org>

 dev-ml/yojson/Manifest            |  1 +
 dev-ml/yojson/yojson-2.2.2.ebuild | 43 +++++++++++++++++++++++++++++++++++++++
 2 files changed, 44 insertions(+)

diff --git a/dev-ml/yojson/Manifest b/dev-ml/yojson/Manifest
index 67cf7f1a54a8..7c6cc29e2d98 100644
--- a/dev-ml/yojson/Manifest
+++ b/dev-ml/yojson/Manifest
@@ -1,3 +1,4 @@
 DIST yojson-2.1.0.tar.gz 48316 BLAKE2B 
49634800de95035624803883b7f44eda1dd4ba8c050efc52ba31246aba7c37b57d717ebc6d487a9c99ba55ab416a5b196974b0bac09bc6a74992356840e4ae52
 SHA512 
d52e4fcac41165f9fb74e922d35dd247e1622674f74d6e80978fbc1f42b45f45797965e41129e7acd049451ef5fcec48021ca7c866e36a4e8c4c51e78bab9d7f
 DIST yojson-2.1.1.tar.gz 49090 BLAKE2B 
aa11a3d6b786f33fa2da6dbf34f2a496a1796eab64d87069420fc9953fef6442660a58f259c4abcca6373710375723e6965f0ab9c9dbcafea46eb6e03147fb54
 SHA512 
935014c43bca83201b0e9d3399e751ae5667ac12bc7fe3d8777b6a84a1216a7325b3cdafb8f9650a4c3979d0e2df6fdeae3cc894c92a175f7ee75ee6303b46c2
 DIST yojson-2.2.1.tar.gz 58073 BLAKE2B 
d53f2fd2743ffa239fc177f1ae6d612d0dd4cb2c85f3f172c8b36da883b0329cb0113b87a6b1e706f2877fc59d88b94c22f9cf97636ecc5137f9e06722b7d6a9
 SHA512 
17a141d002afcc3feb536747e259dfe4ad248495fcad00484324a28ed52975d34c8e332af4b794f7e8d7c27da4f4f4d75149929aeb7fd97db86f9df41a2b6e99
+DIST yojson-2.2.2.tar.gz 58638 BLAKE2B 
b1e9e0375b57ad6a112aba25adda15cfc176ac44017c2dc686e5bfd3d32ed7c06c8bb1a97378f49b71f25b4949c836e3be5a72b06bfff76d96acd2b840ee43b9
 SHA512 
d1fdaa5345a37bb4ed203e8ec842bc8e91e88001de63c6e9539ef9c9f54b861af67de7d1169eb76879bab1a3b5b758dbc6deb1eea9cb6831bbbfba228b5bb4a3

diff --git a/dev-ml/yojson/yojson-2.2.2.ebuild 
b/dev-ml/yojson/yojson-2.2.2.ebuild
new file mode 100644
index 000000000000..e987fb1738dd
--- /dev/null
+++ b/dev-ml/yojson/yojson-2.2.2.ebuild
@@ -0,0 +1,43 @@
+# Copyright 1999-2024 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+inherit dune
+
+DESCRIPTION="JSON parsing and pretty-printing library for OCaml"
+HOMEPAGE="https://github.com/ocaml-community/yojson";
+SRC_URI="https://github.com/ocaml-community/${PN}/archive/${PV}.tar.gz
+       -> ${P}.tar.gz"
+
+LICENSE="BSD"
+SLOT="0/${PV}"
+KEYWORDS="~amd64"
+IUSE="examples +ocamlopt test"
+RESTRICT="!test? ( test )"
+
+RDEPEND="
+       dev-ml/sedlex:=[ocamlopt?]
+       !!<dev-ml/seq-0.3
+"
+DEPEND="${RDEPEND}"
+BDEPEND="
+       test? ( dev-ml/alcotest )
+"
+
+PATCHES=( "${FILESDIR}/${PN}-2.1.1-dune-seq.patch" )
+
+src_prepare() {
+       default
+       # let's not build this
+       rm bench/dune yojson-bench.opam || die
+}
+
+src_install() {
+       dune_src_install
+
+       if use examples; then
+               dodoc -r examples
+               docompress -x /usr/share/doc/${PF}/examples
+       fi
+}

Reply via email to