commit: 85164e550d3775aac692e4e79902fab6360712e3 Author: Thomas Bracht Laumann Jespersen <t <AT> laumann <DOT> xyz> AuthorDate: Thu Oct 16 14:02:22 2025 +0000 Commit: Thomas Bracht Laumann Jespersen <t <AT> laumann <DOT> xyz> CommitDate: Fri Oct 17 06:34:22 2025 +0000 URL: https://gitweb.gentoo.org/repo/proj/guru.git/commit/?id=85164e55
dev-ml/ezjsonm: new package, add 1.3.0 This is in part based on the previous ebuilds for version 1.2.0, but dependencies for testing have been removed for this version. Link: https://gitweb.gentoo.org/repo/proj/guru.git/commit/?id=4b5deda48fa7d34c18aaad79ddf9e324727e83cb Signed-off-by: Thomas Bracht Laumann Jespersen <t <AT> laumann.xyz> dev-ml/ezjsonm/Manifest | 1 + dev-ml/ezjsonm/ezjsonm-1.3.0.ebuild | 46 +++++++++++++++++++++++++++++++++++++ dev-ml/ezjsonm/metadata.xml | 14 +++++++++++ 3 files changed, 61 insertions(+) diff --git a/dev-ml/ezjsonm/Manifest b/dev-ml/ezjsonm/Manifest new file mode 100644 index 0000000000..db98b8656b --- /dev/null +++ b/dev-ml/ezjsonm/Manifest @@ -0,0 +1 @@ +DIST ezjsonm-1.3.0.gh.tar.gz 11100 BLAKE2B 9bddc3ea60938583d33af0e5698ab3d7d99fcb5d48e5248c82c46307e52c7fbeec70c7844fcd039a5bf8daff938dfcc2a42ea1beed32dedaa381fe6627423448 SHA512 f1573431e9f0135d94def68ae614175f21f89182579e4a084f60b572657debb1fabd2b6283908af1d72ae50e0e7f9e554f7846cabec5e27250a568dc2040ca42 diff --git a/dev-ml/ezjsonm/ezjsonm-1.3.0.ebuild b/dev-ml/ezjsonm/ezjsonm-1.3.0.ebuild new file mode 100644 index 0000000000..b7af6b01f1 --- /dev/null +++ b/dev-ml/ezjsonm/ezjsonm-1.3.0.ebuild @@ -0,0 +1,46 @@ +# Copyright 2025 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +inherit dune multiprocessing + +DESCRIPTION="An easy interface on top of the Jsonm library" +HOMEPAGE="https://github.com/mirage/ezjsonm" +SRC_URI="https://github.com/mirage/${PN}/archive/v${PV}.tar.gz -> ${P}.gh.tar.gz" + +LICENSE="ISC" +SLOT="0/${PV}" +KEYWORDS="~amd64" +IUSE="lwt +ocamlopt" + +DEPEND=" + dev-ml/ocaml-hex:=[ocamlopt?] + >=dev-ml/jsonm-1.0.0:=[ocamlopt?] + dev-ml/sexplib0:=[ocamlopt?] + dev-ml/uutf:=[ocamlopt?] + + lwt? ( dev-ml/lwt:=[ocamlopt?] ) +" +RDEPEND="${DEPEND}" + +RESTRICT="test" + +src_prepare() { + default + # test libs and binaries are built unconditionally otherwise + rm lib_test/dune +} + +src_compile() { + local pkgs="ezjsonm" + if use lwt ; then + pkgs="${pkgs},ezjsonm-lwt" + fi + dune build --only-packages "${pkgs}" -j $(makeopts_jobs) --profile release || die +} + +src_install() { + dune_src_install ezjsonm + use lwt && dune_src_install ezjsonm-lwt +} diff --git a/dev-ml/ezjsonm/metadata.xml b/dev-ml/ezjsonm/metadata.xml new file mode 100644 index 0000000000..cec45eccbc --- /dev/null +++ b/dev-ml/ezjsonm/metadata.xml @@ -0,0 +1,14 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "https://www.gentoo.org/dtd/metadata.dtd"> +<pkgmetadata> + <maintainer type="person"> + <email>[email protected]</email> + <name>Thomas Bracht Laumann Jespersen</name> + </maintainer> + <use> + <flag name="lwt">Provides an Lwt variant of the serialisation functions in the Jsonm library.</flag> + </use> + <upstream> + <remote-id type="github">mirage/ezjsonm</remote-id> + </upstream> +</pkgmetadata>
