From: "Rick Farina" <zerochaos@gentoo.org>
To: gentoo-commits@lists.gentoo.org
Subject: [gentoo-commits] repo/gentoo:master commit in: net-wireless/qdmr/
Date: Wed, 11 Jan 2023 21:23:31 +0000 (UTC) [thread overview]
Message-ID: <1673472218.34e65b97babf151a5c99651c8a878f1f241fc5d3.zerochaos@gentoo> (raw)
commit: 34e65b97babf151a5c99651c8a878f1f241fc5d3
Author: Rick Farina <zerochaos <AT> gentoo <DOT> org>
AuthorDate: Wed Jan 11 21:22:52 2023 +0000
Commit: Rick Farina <zerochaos <AT> gentoo <DOT> org>
CommitDate: Wed Jan 11 21:23:38 2023 +0000
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=34e65b97
net-wireless/qdmr: add support for FEATURES=test
fix testing deps to use testing use flag
actually build the tests when FEATURES=test is set
Signed-off-by: Rick Farina <zerochaos <AT> gentoo.org>
.../qdmr/{qdmr-0.11.0.ebuild => qdmr-0.11.0-r1.ebuild} | 11 ++++++++++-
net-wireless/qdmr/qdmr-9999.ebuild | 11 ++++++++++-
2 files changed, 20 insertions(+), 2 deletions(-)
diff --git a/net-wireless/qdmr/qdmr-0.11.0.ebuild b/net-wireless/qdmr/qdmr-0.11.0-r1.ebuild
similarity index 89%
rename from net-wireless/qdmr/qdmr-0.11.0.ebuild
rename to net-wireless/qdmr/qdmr-0.11.0-r1.ebuild
index 808caea3cb4c..1ba9c2ff8c36 100644
--- a/net-wireless/qdmr/qdmr-0.11.0.ebuild
+++ b/net-wireless/qdmr/qdmr-0.11.0-r1.ebuild
@@ -16,6 +16,8 @@ else
S="${WORKDIR}/${PN}-${MY_PV}"
KEYWORDS="~amd64 ~x86"
fi
+IUSE="test"
+RESTRICT="!test? ( test )"
LICENSE="GPL-3+"
SLOT="0"
@@ -32,7 +34,7 @@ RDEPEND="
"
DEPEND="${RDEPEND}
dev-qt/designer:5
- dev-qt/qttest:5
+ test? ( dev-qt/qttest:5 )
"
BDEPEND="dev-qt/linguist-tools:5"
@@ -49,6 +51,13 @@ src_prepare() {
cmake_src_prepare
}
+src_configure() {
+ local mycmakeargs=(
+ -DBUILD_TESTS="$(usex test)"
+ )
+ cmake_src_configure
+}
+
pkg_postinst() {
udev_reload
}
diff --git a/net-wireless/qdmr/qdmr-9999.ebuild b/net-wireless/qdmr/qdmr-9999.ebuild
index 808caea3cb4c..1ba9c2ff8c36 100644
--- a/net-wireless/qdmr/qdmr-9999.ebuild
+++ b/net-wireless/qdmr/qdmr-9999.ebuild
@@ -16,6 +16,8 @@ else
S="${WORKDIR}/${PN}-${MY_PV}"
KEYWORDS="~amd64 ~x86"
fi
+IUSE="test"
+RESTRICT="!test? ( test )"
LICENSE="GPL-3+"
SLOT="0"
@@ -32,7 +34,7 @@ RDEPEND="
"
DEPEND="${RDEPEND}
dev-qt/designer:5
- dev-qt/qttest:5
+ test? ( dev-qt/qttest:5 )
"
BDEPEND="dev-qt/linguist-tools:5"
@@ -49,6 +51,13 @@ src_prepare() {
cmake_src_prepare
}
+src_configure() {
+ local mycmakeargs=(
+ -DBUILD_TESTS="$(usex test)"
+ )
+ cmake_src_configure
+}
+
pkg_postinst() {
udev_reload
}
next reply other threads:[~2023-01-11 21:23 UTC|newest]
Thread overview: 32+ messages / expand[flat|nested] mbox.gz Atom feed top
2023-01-11 21:23 Rick Farina [this message]
-- strict thread matches above, loose matches on Subject: below --
2024-09-05 16:40 [gentoo-commits] repo/gentoo:master commit in: net-wireless/qdmr/ Rick Farina
2024-09-05 16:40 Rick Farina
2024-09-05 16:33 Rick Farina
2023-11-16 1:54 Rick Farina
2023-01-30 16:11 Rick Farina
2023-01-13 19:40 Rick Farina
2023-01-11 19:52 Rick Farina
2023-01-11 19:52 Rick Farina
2022-11-13 22:27 Jory Pratt
2022-09-11 18:18 Rick Farina
2022-09-11 18:18 Rick Farina
2022-08-12 12:29 Agostino Sarubbo
2022-08-09 1:24 Jory Pratt
2022-08-08 9:40 Andreas Sturmlechner
2022-04-08 16:48 Rick Farina
2022-04-08 13:40 Rick Farina
2022-01-06 15:33 Rick Farina
2022-01-06 15:33 Rick Farina
2021-11-06 23:28 Rick Farina
2021-11-06 23:28 Rick Farina
2021-10-28 18:59 Rick Farina
2021-10-11 16:47 Rick Farina
2021-10-04 16:45 Rick Farina
2021-10-04 1:07 Rick Farina
2021-09-28 16:07 Rick Farina
2021-07-13 14:17 Rick Farina
2021-05-14 18:17 Rick Farina
2021-04-29 14:18 Rick Farina
2021-04-21 20:11 Rick Farina
2021-04-05 21:09 Rick Farina
2021-04-05 20:05 Rick Farina
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=1673472218.34e65b97babf151a5c99651c8a878f1f241fc5d3.zerochaos@gentoo \
--to=zerochaos@gentoo.org \
--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