diff options
author | 2024-06-24 08:34:12 +0200 | |
---|---|---|
committer | 2024-06-24 18:11:16 +0200 | |
commit | 1c3bb695031994a951d3b6b4c0e1b3b996707d0f (patch) | |
tree | d9bbaeb43f9b330000e2f72fbbc018131d139404 /dev-ml/yojson | |
parent | dev-python/hypothesis: Bump to 6.103.5 (diff) | |
download | gentoo-1c3bb695031994a951d3b6b4c0e1b3b996707d0f.tar.gz gentoo-1c3bb695031994a951d3b6b4c0e1b3b996707d0f.tar.bz2 gentoo-1c3bb695031994a951d3b6b4c0e1b3b996707d0f.zip |
dev-ml/yojson: add 2.2.1
Signed-off-by: Alfredo Tupone <tupone@gentoo.org>
Diffstat (limited to 'dev-ml/yojson')
-rw-r--r-- | dev-ml/yojson/Manifest | 1 | ||||
-rw-r--r-- | dev-ml/yojson/yojson-2.2.1.ebuild | 44 |
2 files changed, 45 insertions, 0 deletions
diff --git a/dev-ml/yojson/Manifest b/dev-ml/yojson/Manifest index 99da581f40e9..67cf7f1a54a8 100644 --- a/dev-ml/yojson/Manifest +++ b/dev-ml/yojson/Manifest @@ -1,2 +1,3 @@ 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 diff --git a/dev-ml/yojson/yojson-2.2.1.ebuild b/dev-ml/yojson/yojson-2.2.1.ebuild new file mode 100644 index 000000000000..13f7fb0fb563 --- /dev/null +++ b/dev-ml/yojson/yojson-2.2.1.ebuild @@ -0,0 +1,44 @@ +# 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-lang/ocaml-4.07:=[ocamlopt?] + dev-ml/sedlex:= + !!<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 +} |