mirror of
https://github.com/gentoo-mirror/guru.git
synced 2026-07-21 04:53:07 -04:00
dev-ml/ezjsonm: tests and useflags
Signed-off-by: Alessandro Barbieri <lssndrbarbieri@gmail.com>
This commit is contained in:
@@ -3,7 +3,7 @@
|
|||||||
|
|
||||||
EAPI=8
|
EAPI=8
|
||||||
|
|
||||||
inherit dune
|
inherit dune multiprocessing
|
||||||
|
|
||||||
DESCRIPTION="An easy interface on top of the Jsonm library"
|
DESCRIPTION="An easy interface on top of the Jsonm library"
|
||||||
HOMEPAGE="https://github.com/mirage/ezjsonm"
|
HOMEPAGE="https://github.com/mirage/ezjsonm"
|
||||||
@@ -13,18 +13,38 @@ S="${WORKDIR}/${PN}-v${PV}"
|
|||||||
LICENSE="ISC"
|
LICENSE="ISC"
|
||||||
SLOT="0/${PV}"
|
SLOT="0/${PV}"
|
||||||
KEYWORDS="~amd64"
|
KEYWORDS="~amd64"
|
||||||
IUSE="ocamlopt"
|
IUSE="lwt ocamlopt test"
|
||||||
|
|
||||||
DEPEND="
|
DEPEND="
|
||||||
dev-ml/hex
|
dev-ml/hex
|
||||||
>=dev-ml/jsonm-1.0.0
|
>=dev-ml/jsonm-1.0.0
|
||||||
dev-ml/lwt
|
|
||||||
dev-ml/sexplib0
|
dev-ml/sexplib0
|
||||||
dev-ml/uutf
|
dev-ml/uutf
|
||||||
|
|
||||||
|
lwt? ( dev-ml/lwt )
|
||||||
"
|
"
|
||||||
RDEPEND="${DEPEND}"
|
RDEPEND="
|
||||||
|
${DEPEND}
|
||||||
|
test? (
|
||||||
|
dev-ml/alcotest
|
||||||
|
dev-ml/js_of_ocaml
|
||||||
|
net-libs/nodejs[npm]
|
||||||
|
dev-ml/ppx_sexp_conv
|
||||||
|
)
|
||||||
|
"
|
||||||
|
|
||||||
|
RESTRICT="!test? ( test )"
|
||||||
|
REQUIRED_USE="test? ( lwt )"
|
||||||
|
|
||||||
|
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() {
|
src_install() {
|
||||||
dune_src_install ezjsonm
|
dune_src_install ezjsonm
|
||||||
dune_src_install ezjsonm-lwt
|
use lwt && dune_src_install ezjsonm-lwt
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -9,4 +9,7 @@
|
|||||||
<upstream>
|
<upstream>
|
||||||
<remote-id type="github">mirage/ezjsonm</remote-id>
|
<remote-id type="github">mirage/ezjsonm</remote-id>
|
||||||
</upstream>
|
</upstream>
|
||||||
|
<use>
|
||||||
|
<flag name="lwt">Simple Lwt-based interface to the Jsonm JSON library</flag>
|
||||||
|
</use>
|
||||||
</pkgmetadata>
|
</pkgmetadata>
|
||||||
|
|||||||
Reference in New Issue
Block a user