commit: e440148fd0b48caf3f32bd9a0db7915ef0de64a0 Author: Andrei Horodniceanu <a.horodniceanu <AT> proton <DOT> me> AuthorDate: Tue May 7 20:11:20 2024 +0000 Commit: Horodniceanu Andrei <a.horodniceanu <AT> proton <DOT> me> CommitDate: Tue May 7 20:11:20 2024 +0000 URL: https://gitweb.gentoo.org/repo/user/dlang.git/commit/?id=e440148f
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 <AT> proton.me> dev-util/dlang-tools/dlang-tools-2.108.0.ebuild | 5 +++-- 1 file 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}