public inbox for gentoo-commits@lists.gentoo.org
 help / color / mirror / Atom feed
From: "Horodniceanu Andrei" <a.horodniceanu@proton.me>
To: gentoo-commits@lists.gentoo.org
Subject: [gentoo-commits] repo/user/dlang:master commit in: dev-util/dlang-tools/
Date: Tue,  7 May 2024 23:18:47 +0000 (UTC)	[thread overview]
Message-ID: <1715112680.e440148fd0b48caf3f32bd9a0db7915ef0de64a0.a.horodniceanu@gentoo> (raw)

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}


             reply	other threads:[~2024-05-07 23:18 UTC|newest]

Thread overview: 15+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2024-05-07 23:18 Horodniceanu Andrei [this message]
  -- strict thread matches above, loose matches on Subject: below --
2025-01-03 20:34 [gentoo-commits] repo/user/dlang:master commit in: dev-util/dlang-tools/ Horodniceanu Andrei
2024-07-14 19:44 Horodniceanu Andrei
2024-06-02  5:29 Horodniceanu Andrei
2024-06-02  5:29 Horodniceanu Andrei
2024-05-30 17:28 Horodniceanu Andrei
2024-05-30 17:28 Horodniceanu Andrei
2024-05-30 17:28 Horodniceanu Andrei
2024-04-13 23:04 Horodniceanu Andrei
2024-02-18 22:49 Horodniceanu Andrei
2024-02-18 22:49 Horodniceanu Andrei
2024-02-18 22:49 Horodniceanu Andrei
2023-11-17 21:44 Horodniceanu Andrei
2023-09-28  4:56 Marco Leise
2023-09-28  4:56 Marco Leise

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1715112680.e440148fd0b48caf3f32bd9a0db7915ef0de64a0.a.horodniceanu@gentoo \
    --to=a.horodniceanu@proton.me \
    --cc=gentoo-commits@lists.gentoo.org \
    --cc=gentoo-dev@lists.gentoo.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox