summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJimi Huotari <chiitoo@gentoo.org>2022-11-09 20:07:41 +0200
committerJimi Huotari <chiitoo@gentoo.org>2022-11-09 20:07:41 +0200
commitb5067b45c35062240d143fb1f482cbcd949944a4 (patch)
tree183f44092529839c7058b6077102da1032e3adec /x11-terms
parentdev-python/pytest-bdd: Bump to 6.1.1 (diff)
downloadgentoo-b5067b45c35062240d143fb1f482cbcd949944a4.tar.gz
gentoo-b5067b45c35062240d143fb1f482cbcd949944a4.tar.bz2
gentoo-b5067b45c35062240d143fb1f482cbcd949944a4.zip
x11-terms/qterminal: fix build with/without tests
Signed-off-by: Jimi Huotari <chiitoo@gentoo.org>
Diffstat (limited to 'x11-terms')
-rw-r--r--x11-terms/qterminal/qterminal-1.2.0.ebuild11
-rw-r--r--x11-terms/qterminal/qterminal-9999.ebuild11
2 files changed, 22 insertions, 0 deletions
diff --git a/x11-terms/qterminal/qterminal-1.2.0.ebuild b/x11-terms/qterminal/qterminal-1.2.0.ebuild
index f38c21ae5800..981896ae4138 100644
--- a/x11-terms/qterminal/qterminal-1.2.0.ebuild
+++ b/x11-terms/qterminal/qterminal-1.2.0.ebuild
@@ -18,6 +18,8 @@ fi
LICENSE="GPL-2 GPL-2+"
SLOT="0"
+IUSE="test"
+RESTRICT="!test? ( test )"
BDEPEND=">=dev-util/lxqt-build-tools-0.12.0"
DEPEND="
@@ -28,9 +30,18 @@ DEPEND="
>=dev-qt/qtx11extras-5.15:5
x11-libs/libX11
~x11-libs/qtermwidget-${PV}:=
+ test? ( dev-qt/qttest:5 )
"
RDEPEND="${DEPEND}"
+src_configure() {
+ local mycmakeargs=(
+ -DBUILD_TESTS=$(usex test)
+ )
+
+ cmake_src_configure
+}
+
pkg_postinst() {
xdg_icon_cache_update
}
diff --git a/x11-terms/qterminal/qterminal-9999.ebuild b/x11-terms/qterminal/qterminal-9999.ebuild
index f38c21ae5800..981896ae4138 100644
--- a/x11-terms/qterminal/qterminal-9999.ebuild
+++ b/x11-terms/qterminal/qterminal-9999.ebuild
@@ -18,6 +18,8 @@ fi
LICENSE="GPL-2 GPL-2+"
SLOT="0"
+IUSE="test"
+RESTRICT="!test? ( test )"
BDEPEND=">=dev-util/lxqt-build-tools-0.12.0"
DEPEND="
@@ -28,9 +30,18 @@ DEPEND="
>=dev-qt/qtx11extras-5.15:5
x11-libs/libX11
~x11-libs/qtermwidget-${PV}:=
+ test? ( dev-qt/qttest:5 )
"
RDEPEND="${DEPEND}"
+src_configure() {
+ local mycmakeargs=(
+ -DBUILD_TESTS=$(usex test)
+ )
+
+ cmake_src_configure
+}
+
pkg_postinst() {
xdg_icon_cache_update
}