commit:     478904b0dd0b968493c0443639bee1fa263f1287
Author:     Alfredo Tupone <tupone <AT> gentoo <DOT> org>
AuthorDate: Fri Nov 22 19:36:09 2024 +0000
Commit:     Alfredo Tupone <tupone <AT> gentoo <DOT> org>
CommitDate: Fri Nov 22 19:36:53 2024 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=478904b0

dev-ml/jsonm: add 1.0.2

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

 dev-ml/jsonm/Manifest           |  1 +
 dev-ml/jsonm/jsonm-1.0.2.ebuild | 37 +++++++++++++++++++++++++++++++++++++
 2 files changed, 38 insertions(+)

diff --git a/dev-ml/jsonm/Manifest b/dev-ml/jsonm/Manifest
index edc987b4d3cd..ae14979b3f4f 100644
--- a/dev-ml/jsonm/Manifest
+++ b/dev-ml/jsonm/Manifest
@@ -1 +1,2 @@
 DIST jsonm-1.0.1.tbz 21608 BLAKE2B 
4d3ce2a3430176df0876aeb6276a48bf23e51ebee2a1a46e5b25a370b26ba27c9ba09ff01365396123de4851d8f263c4c86c3176b13118910fd458ad3b23d80b
 SHA512 
e86e225073b429f71063af14ad39b87498609db6a122b39e1a739c5b77fcde487bf6b17235b2f9742b7d22aca0f6d475fdba1b0bab2a6329cf7e681fe43d31a6
+DIST jsonm-1.0.2.tbz 22368 BLAKE2B 
b2f500796a21abb3d540064462dba7bd63459d9f1a3b47e419a8ea075b8cef24b744a128e4eb2c4a238de36db7c0eaaf60f85e137e3767836e23b5ec3cf89b98
 SHA512 
0072f5c31080202ed1cb996a8530d72c882723f26b597f784441033f59338ba8c0cbabf901794d5b1ae749a54af4d7ebf7b47987db43488c7f6ac7fe191a042f

diff --git a/dev-ml/jsonm/jsonm-1.0.2.ebuild b/dev-ml/jsonm/jsonm-1.0.2.ebuild
new file mode 100644
index 000000000000..64e58477661e
--- /dev/null
+++ b/dev-ml/jsonm/jsonm-1.0.2.ebuild
@@ -0,0 +1,37 @@
+# Copyright 1999-2024 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+inherit findlib
+
+DESCRIPTION="Non-blocking streaming JSON codec for OCaml"
+HOMEPAGE="https://erratique.ch/software/jsonm";
+SRC_URI="https://erratique.ch/software/jsonm/releases/${P}.tbz";
+
+LICENSE="ISC"
+SLOT="0/${PV}"
+KEYWORDS="~amd64 ~arm ~arm64 ~ppc ~ppc64 ~riscv ~x86"
+
+RDEPEND=">=dev-ml/uutf-1.0.0:=
+       dev-lang/ocaml:=
+       dev-ml/uchar:="
+DEPEND="${RDEPEND}
+       dev-ml/topkg
+       dev-ml/ocamlbuild
+       dev-ml/findlib"
+
+src_compile() {
+       ocaml pkg/pkg.ml build || die
+}
+
+src_install() {
+       # Can't use opam-installer here as it is an opam dep...
+       findlib_src_preinst
+
+       local nativelibs="$(echo _build/src/${PN}.cm{x,xa,xs,ti} 
_build/src/${PN}.a)"
+       ocamlfind install ${PN} _build/pkg/META _build/src/${PN}.mli 
_build/src/${PN}.cm{a,i} ${nativelibs} || die
+
+       newbin _build/test/jsontrip.native jsontrip
+       dodoc CHANGES.md TODO.md README.md
+}

Reply via email to