aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndrei Horodniceanu <a.horodniceanu@proton.me>2024-05-07 23:11:20 +0300
committerAndrei Horodniceanu <a.horodniceanu@proton.me>2024-05-07 23:11:20 +0300
commite440148fd0b48caf3f32bd9a0db7915ef0de64a0 (patch)
treea574cda655b7e16ef25971609b949f37cca74fe3 /dev-util
parentnet-misc/onedrive: enable ldc2-1_37 (diff)
downloaddlang-e440148fd0b48caf3f32bd9a0db7915ef0de64a0.tar.gz
dlang-e440148fd0b48caf3f32bd9a0db7915ef0de64a0.tar.bz2
dlang-e440148fd0b48caf3f32bd9a0db7915ef0de64a0.zip
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 <a.horodniceanu@proton.me>
Diffstat (limited to 'dev-util')
-rw-r--r--dev-util/dlang-tools/dlang-tools-2.108.0.ebuild5
1 files changed, 3 insertions, 2 deletions
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}