From b9f665088d77b29d62aec6054cf9bd168b9c9201 Mon Sep 17 00:00:00 2001 From: Alfredo Tupone Date: Mon, 17 Jun 2024 18:32:36 +0200 Subject: [PATCH] dev-ml/cstruct: add test deps Closes: https://bugs.gentoo.org/934406 Signed-off-by: Alfredo Tupone --- ...cstruct-6.2.0.ebuild => cstruct-6.2.0-r1.ebuild} | 13 ++++++++++++- 1 file changed, 12 insertions(+), 1 deletion(-) rename dev-ml/cstruct/{cstruct-6.2.0.ebuild => cstruct-6.2.0-r1.ebuild} (68%) diff --git a/dev-ml/cstruct/cstruct-6.2.0.ebuild b/dev-ml/cstruct/cstruct-6.2.0-r1.ebuild similarity index 68% rename from dev-ml/cstruct/cstruct-6.2.0.ebuild rename to dev-ml/cstruct/cstruct-6.2.0-r1.ebuild index 6d78859ac5fcb..b397c637c0913 100644 --- a/dev-ml/cstruct/cstruct-6.2.0.ebuild +++ b/dev-ml/cstruct/cstruct-6.2.0-r1.ebuild @@ -12,7 +12,18 @@ SRC_URI="https://github.com/mirage/ocaml-cstruct/releases/download/v${PV}/${P}.t LICENSE="ISC" SLOT="0/${PV}" KEYWORDS="~amd64 ~arm64 ~ppc ~ppc64" -IUSE="+ocamlopt" +IUSE="+ocamlopt test" +RESTRICT="!test? ( test )" + +BDEPEND="test? ( + dev-ml/alcotest + dev-ml/cppo + dev-ml/ocaml-migrate-parsetree + dev-ml/ppx_sexp_conv + dev-ml/ppxlib + dev-ml/sexplib + ) +" src_compile() { dune-compile ${PN}