commit:     79e5248b86a0231ebb4d67fb9e939199d1b17c0b
Author:     Sam James <sam <AT> gentoo <DOT> org>
AuthorDate: Mon Jan  4 17:26:58 2021 +0000
Commit:     Sam James <sam <AT> gentoo <DOT> org>
CommitDate: Mon Jan  4 17:27:05 2021 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=79e5248b

dev-ml/yojson: add missing test dependency

Package-Manager: Portage-3.0.12, Repoman-3.0.2
Signed-off-by: Sam James <sam <AT> gentoo.org>

 dev-ml/yojson/yojson-1.7.0.ebuild | 8 ++++++--
 1 file changed, 6 insertions(+), 2 deletions(-)

diff --git a/dev-ml/yojson/yojson-1.7.0.ebuild 
b/dev-ml/yojson/yojson-1.7.0.ebuild
index b8701343a2d..48357a363ee 100644
--- a/dev-ml/yojson/yojson-1.7.0.ebuild
+++ b/dev-ml/yojson/yojson-1.7.0.ebuild
@@ -12,14 +12,18 @@ 
SRC_URI="https://github.com/ocaml-community/yojson/archive/${PV}.tar.gz -> ${P}.
 LICENSE="BSD"
 SLOT="0/${PV}"
 KEYWORDS="~amd64"
-IUSE="examples +ocamlopt"
+IUSE="examples +ocamlopt test"
+RESTRICT="!test? ( test )"
 
 RDEPEND="
        >=dev-lang/ocaml-4.02.3:=[ocamlopt=]
        dev-ml/easy-format:=[ocamlopt=]
        >=dev-ml/biniou-1.2:=[ocamlopt=]
 "
-DEPEND="${RDEPEND}"
+DEPEND="
+       ${RDEPEND}
+       test? ( dev-ml/alcotest )
+"
 BDEPEND=">=dev-ml/cppo-1.6.1"
 
 src_install() {

Reply via email to