public inbox for gentoo-commits@lists.gentoo.org
 help / color / mirror / Atom feed
From: "Andreas Sturmlechner" <asturm@gentoo.org>
To: gentoo-commits@lists.gentoo.org
Subject: [gentoo-commits] repo/gentoo:master commit in: www-client/falkon/
Date: Sun, 17 Jul 2022 12:26:54 +0000 (UTC)	[thread overview]
Message-ID: <1658060671.251f7715b1676dce85e684a33a86b0c29e963075.asturm@gentoo> (raw)

commit:     251f7715b1676dce85e684a33a86b0c29e963075
Author:     Andreas Sturmlechner <asturm <AT> gentoo <DOT> org>
AuthorDate: Sun Jul 17 12:20:44 2022 +0000
Commit:     Andreas Sturmlechner <asturm <AT> gentoo <DOT> org>
CommitDate: Sun Jul 17 12:24:31 2022 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=251f7715

www-client/falkon: Re-add IUSE=python to 3.2.0 for testing

This reverts commit 24ee22ebae42f4eb4a0e04c08a4fd94477941730.

Bug: https://bugs.gentoo.org/840434
Signed-off-by: Andreas Sturmlechner <asturm <AT> gentoo.org>

 www-client/falkon/falkon-3.2.0-r1.ebuild | 35 ++++++++++++++++++++++++--------
 1 file changed, 27 insertions(+), 8 deletions(-)

diff --git a/www-client/falkon/falkon-3.2.0-r1.ebuild b/www-client/falkon/falkon-3.2.0-r1.ebuild
index f9dc201c1622..18b02edc8d3a 100644
--- a/www-client/falkon/falkon-3.2.0-r1.ebuild
+++ b/www-client/falkon/falkon-3.2.0-r1.ebuild
@@ -6,8 +6,9 @@ EAPI=8
 ECM_TEST="true"
 KFMIN=5.88.0
 QTMIN=5.15.2
+PYTHON_COMPAT=( python3_{8..10} )
 VIRTUALX_REQUIRED="test"
-inherit ecm kde.org
+inherit ecm kde.org python-single-r1
 
 DESCRIPTION="Cross-platform web browser using QtWebEngine"
 HOMEPAGE="https://www.falkon.org/ https://apps.kde.org/falkon/"
@@ -19,8 +20,9 @@ fi
 
 LICENSE="GPL-3"
 SLOT="0"
-IUSE="dbus kde +X"
+IUSE="dbus kde python +X"
 
+REQUIRED_USE="python? ( ${PYTHON_REQUIRED_USE} )"
 RESTRICT="test" # bug 653046
 
 COMMON_DEPEND="
@@ -43,6 +45,13 @@ COMMON_DEPEND="
 		>=kde-frameworks/kwallet-${KFMIN}:5
 		>=kde-frameworks/purpose-${KFMIN}:5
 	)
+	python? (
+		${PYTHON_DEPS}
+		$(python_gen_cond_dep '
+			dev-python/pyside2[designer,gui,webengine,widgets,${PYTHON_USEDEP}]
+			dev-python/shiboken2[${PYTHON_USEDEP}]
+		')
+	)
 	X? (
 		>=dev-qt/qtx11extras-${QTMIN}:5
 		x11-libs/libxcb:=
@@ -58,20 +67,30 @@ fi
 RDEPEND="${COMMON_DEPEND}
 	>=dev-qt/qtsvg-${QTMIN}:5
 "
-BDEPEND="
-	>=dev-qt/linguist-tools-${QTMIN}:5
-"
+BDEPEND=">=dev-qt/linguist-tools-${QTMIN}:5"
+
+PATCHES=( "${FILESDIR}/${PN}-22.04.3-python3.patch" )
+
+pkg_setup() {
+	use python && python-single-r1_pkg_setup
+	ecm_pkg_setup
+}
 
 src_configure() {
 	local mycmakeargs=(
 		-DBUILD_KEYRING=OFF
-		-DCMAKE_DISABLE_FIND_PACKAGE_PySide2=ON
-		-DCMAKE_DISABLE_FIND_PACKAGE_Shiboken2=ON
-		-DCMAKE_DISABLE_FIND_PACKAGE_PythonLibs=ON
 		-DDISABLE_DBUS=$(usex !dbus)
+		$(cmake_use_find_package python PySide2)
+		$(cmake_use_find_package python Shiboken2)
+		$(cmake_use_find_package python Python3)
 		$(cmake_use_find_package kde KF5Wallet)
 		$(cmake_use_find_package kde KF5KIO)
 		-DNO_X11=$(usex !X)
 	)
+	use python && mycmakeargs+=(
+		-DPYTHON_CONFIG_SUFFIX="-${EPYTHON}" # shiboken_helpers.cmake quirk
+		-DPython3_INCLUDE_DIR=$(python_get_includedir)
+		-DPython3_LIBRARY=$(python_get_library_path)
+	)
 	ecm_src_configure
 }


             reply	other threads:[~2022-07-17 12:26 UTC|newest]

Thread overview: 54+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2022-07-17 12:26 Andreas Sturmlechner [this message]
  -- strict thread matches above, loose matches on Subject: below --
2025-03-27 21:32 [gentoo-commits] repo/gentoo:master commit in: www-client/falkon/ Andreas Sturmlechner
2025-03-27  7:21 Arthur Zamarin
2025-03-07 16:59 Arthur Zamarin
2025-02-09 16:49 Andreas Sturmlechner
2025-01-30 16:18 Andreas Sturmlechner
2025-01-24  7:06 Arthur Zamarin
2025-01-24  7:06 Arthur Zamarin
2025-01-06 22:51 Ionen Wolkens
2024-10-25  5:49 Arthur Zamarin
2024-10-12 18:16 Arthur Zamarin
2024-08-28 21:11 Andreas Sturmlechner
2024-05-20 11:39 Andreas Sturmlechner
2024-01-06 12:35 Arthur Zamarin
2023-02-07 10:41 Andreas Sturmlechner
2023-02-07 10:37 Andreas Sturmlechner
2023-01-25 19:24 Arthur Zamarin
2022-12-03 10:55 Sam James
2022-09-16  7:59 Andreas Sturmlechner
2022-09-01 19:14 Sam James
2022-08-29 14:31 Sam James
2022-08-15 21:14 Andreas Sturmlechner
2022-08-15 21:14 Andreas Sturmlechner
2022-07-17 12:26 Andreas Sturmlechner
2022-05-20 18:47 Jakov Smolić
2022-05-20  9:03 Agostino Sarubbo
2022-05-19 13:33 Agostino Sarubbo
2022-05-18 11:35 Andreas Sturmlechner
2022-02-06 21:17 Andreas Sturmlechner
2022-02-04 14:08 Andreas Sturmlechner
2021-04-30 18:30 Mikle Kolyada
2020-05-27 23:23 Georgy Yakovlev
2020-02-07  0:28 Andreas Sturmlechner
2020-01-16 18:33 Andreas Sturmlechner
2019-05-12 20:56 Thomas Deutschmann
2019-05-08 22:56 Andreas Sturmlechner
2019-04-27 20:51 Andreas Sturmlechner
2019-04-20 17:46 Mikle Kolyada
2019-02-19 18:04 Andreas Sturmlechner
2019-02-09 20:58 Andreas Sturmlechner
2019-02-09 16:54 Andreas Sturmlechner
2019-02-07 10:54 Mikle Kolyada
2018-06-18  0:13 Thomas Deutschmann
2018-06-09  7:07 Andreas Sturmlechner
2018-06-08 22:22 Aaron Bauman
2018-06-08 17:19 Andreas Sturmlechner
2018-06-08 12:53 Aaron Bauman
2018-05-09  7:51 Andreas Sturmlechner
2018-04-12 18:31 Andreas Sturmlechner
2018-04-06  0:19 Aaron Bauman
2018-04-05 20:14 Andreas Sturmlechner
2018-04-03 15:25 Andreas Sturmlechner
2018-03-01 15:44 Andreas Sturmlechner
2018-02-27 16:14 Andreas Sturmlechner

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=1658060671.251f7715b1676dce85e684a33a86b0c29e963075.asturm@gentoo \
    --to=asturm@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