summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRick Farina <zerochaos@gentoo.org>2023-01-11 16:22:52 -0500
committerRick Farina <zerochaos@gentoo.org>2023-01-11 16:23:38 -0500
commit34e65b97babf151a5c99651c8a878f1f241fc5d3 (patch)
treebf20e9b81b6cdba2f1b6223ac6990b01c7a05a39 /net-wireless
parentapp-containers/cosign: add 1.13.1 (diff)
downloadgentoo-34e65b97babf151a5c99651c8a878f1f241fc5d3.tar.gz
gentoo-34e65b97babf151a5c99651c8a878f1f241fc5d3.tar.bz2
gentoo-34e65b97babf151a5c99651c8a878f1f241fc5d3.zip
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@gentoo.org>
Diffstat (limited to 'net-wireless')
-rw-r--r--net-wireless/qdmr/qdmr-0.11.0-r1.ebuild (renamed from net-wireless/qdmr/qdmr-0.11.0.ebuild)11
-rw-r--r--net-wireless/qdmr/qdmr-9999.ebuild11
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
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
}