public inbox for gentoo-commits@lists.gentoo.org
 help / color / mirror / Atom feed
From: "Jimi Huotari" <chiitoo@gentoo.org>
To: gentoo-commits@lists.gentoo.org
Subject: [gentoo-commits] repo/gentoo:master commit in: x11-terms/qterminal/
Date: Wed,  9 Nov 2022 18:08:58 +0000 (UTC)	[thread overview]
Message-ID: <1668017261.b5067b45c35062240d143fb1f482cbcd949944a4.chiitoo@gentoo> (raw)

commit:     b5067b45c35062240d143fb1f482cbcd949944a4
Author:     Jimi Huotari <chiitoo <AT> gentoo <DOT> org>
AuthorDate: Wed Nov  9 18:07:41 2022 +0000
Commit:     Jimi Huotari <chiitoo <AT> gentoo <DOT> org>
CommitDate: Wed Nov  9 18:07:41 2022 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=b5067b45

x11-terms/qterminal: fix build with/without tests

Signed-off-by: Jimi Huotari <chiitoo <AT> gentoo.org>

 x11-terms/qterminal/qterminal-1.2.0.ebuild | 11 +++++++++++
 x11-terms/qterminal/qterminal-9999.ebuild  | 11 +++++++++++
 2 files changed, 22 insertions(+)

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
 }


             reply	other threads:[~2022-11-09 18:09 UTC|newest]

Thread overview: 75+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2022-11-09 18:08 Jimi Huotari [this message]
  -- strict thread matches above, loose matches on Subject: below --
2025-02-05 11:27 [gentoo-commits] repo/gentoo:master commit in: x11-terms/qterminal/ Sam James
2025-01-31  7:41 Arthur Zamarin
2024-12-07 14:03 Jimi Huotari
2024-11-08 19:08 Jimi Huotari
2024-11-08 19:08 Jimi Huotari
2024-11-07 23:12 Jimi Huotari
2024-10-04 15:37 Arthur Zamarin
2024-09-14  6:39 Arthur Zamarin
2024-09-12 17:23 Arthur Zamarin
2024-09-01 21:30 Sam James
2024-07-13 10:09 Yixun Lan
2024-07-11 19:44 Arthur Zamarin
2024-06-28 20:33 Jimi Huotari
2024-06-28  9:41 Jimi Huotari
2024-06-28  9:41 Jimi Huotari
2024-06-27 19:42 Jimi Huotari
2024-06-16 18:30 Jimi Huotari
2024-06-16 18:30 Jimi Huotari
2024-06-14 21:57 Jimi Huotari
2024-05-04 20:40 Jimi Huotari
2023-12-27 21:03 Sam James
2023-12-20  1:40 Sam James
2023-11-09 21:45 Jimi Huotari
2023-06-18 14:53 Andreas Sturmlechner
2023-05-29 21:57 Sam James
2023-05-29 11:05 Arthur Zamarin
2023-05-29  0:10 Sam James
2023-04-17 22:08 Jimi Huotari
2023-03-26 15:50 Jimi Huotari
2022-12-17 19:28 Arthur Zamarin
2022-12-16 21:50 Sam James
2022-12-16 20:33 Arthur Zamarin
2022-11-29 18:06 WANG Xuerui
2022-11-09 13:46 Jimi Huotari
2022-11-09 13:46 Jimi Huotari
2022-07-26  7:05 Sam James
2022-07-22 17:54 Sam James
2022-07-20  5:36 Sam James
2022-05-15  0:13 Sam James
2022-05-15  0:13 Sam James
2022-04-15 13:14 Arthur Zamarin
2022-04-15  6:17 Sam James
2022-01-21 19:07 Sam James
2021-09-30 17:24 Andreas Sturmlechner
2021-07-26  7:40 Yixun Lan
2021-07-12  1:06 Sam James
2021-07-11  8:58 Agostino Sarubbo
2021-04-18  5:09 Joonas Niilola
2021-03-26 19:44 Andreas Sturmlechner
2021-03-02  2:32 Sam James
2021-03-01 17:18 Thomas Deutschmann
2021-02-28 21:57 Andreas Sturmlechner
2020-11-23  7:12 Andreas Sturmlechner
2020-11-23  7:12 Andreas Sturmlechner
2020-08-17  7:10 Agostino Sarubbo
2020-08-17  7:01 Agostino Sarubbo
2020-05-20 23:28 Andreas Sturmlechner
2020-05-20 23:28 Andreas Sturmlechner
2020-02-11 22:46 Andreas Sturmlechner
2020-02-11 22:46 Andreas Sturmlechner
2019-07-22  8:51 Mikle Kolyada
2019-07-08 12:10 Thomas Deutschmann
2019-03-13 19:50 Andreas Sturmlechner
2019-03-11  6:51 Michael Palimaka
2019-02-17 12:39 Andreas Sturmlechner
2018-11-06  7:09 Mikle Kolyada
2018-11-04 19:14 Thomas Deutschmann
2017-08-13  2:33 Michael Palimaka
2017-08-13  2:33 Michael Palimaka
2017-04-26  7:40 Agostino Sarubbo
2016-05-11 18:46 Davide Pesavento
2016-05-11 18:26 Davide Pesavento
2016-05-11 18:26 Davide Pesavento
2016-01-16  7:49 Michael Palimaka

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=1668017261.b5067b45c35062240d143fb1f482cbcd949944a4.chiitoo@gentoo \
    --to=chiitoo@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