Files
guru/dev-ml/ezjsonm/ezjsonm-1.3.0.ebuild
Thomas Bracht Laumann Jespersen 85164e550d 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@laumann.xyz>
2025-10-17 06:34:22 +00:00

47 lines
970 B
Bash

# 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
}