From e440148fd0b48caf3f32bd9a0db7915ef0de64a0 Mon Sep 17 00:00:00 2001 From: Andrei Horodniceanu Date: Tue, 7 May 2024 23:11:20 +0300 Subject: dev-util/dlang-tools: form a REQUIRED_USE conditional around tests As suggested on IRC, since tests are only run if either ddemangle, dustmite, or, rdmd appear in USE, require that any of those are set when tests are enabled. This changes requires that test is added to IUSE. Signed-off-by: Andrei Horodniceanu --- dev-util/dlang-tools/dlang-tools-2.108.0.ebuild | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'dev-util') diff --git a/dev-util/dlang-tools/dlang-tools-2.108.0.ebuild b/dev-util/dlang-tools/dlang-tools-2.108.0.ebuild index b086a62..fbd6a3e 100644 --- a/dev-util/dlang-tools/dlang-tools-2.108.0.ebuild +++ b/dev-util/dlang-tools/dlang-tools-2.108.0.ebuild @@ -24,7 +24,8 @@ SLOT="0" KEYWORDS="~amd64 ~x86" TOOLS="ddemangle detab dustmite rdmd" -IUSE="+ddemangle detab dustmite +rdmd" +IUSE="+ddemangle detab dustmite +rdmd test" +RESTRICT="!test? ( test )" DLANG_COMPAT=( dmd-2_{106..108} gdc-13 ldc2-1_{35..37} ) @@ -36,7 +37,7 @@ PATCHES=( "${FILESDIR}/gdc-13-fix-parentheses.patch" ) -REQUIRED_USE="|| ( ${TOOLS[@]} ) ${DLANG_REQUIRED_USE}" +REQUIRED_USE="|| ( ${TOOLS[@]} ) ${DLANG_REQUIRED_USE} test? ( || ( ddemangle dustmite rdmd ) )" DEPEND=${DLANG_DEPS} BDEPEND=${DLANG_DEPS} RDEPEND=${DLANG_DEPS} -- cgit v1.2.3-65-gdbad