mirror of
https://github.com/gentoo-mirror/gentoo.git
synced 2026-09-24 17:09:10 -07:00
dev-ml/jsonm: add 1.0.2
Signed-off-by: Alfredo Tupone <tupone@gentoo.org>
This commit is contained in:
@@ -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
|
||||
|
||||
37
dev-ml/jsonm/jsonm-1.0.2.ebuild
Normal file
37
dev-ml/jsonm/jsonm-1.0.2.ebuild
Normal file
@@ -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
|
||||
}
|
||||
Reference in New Issue
Block a user