summaryrefslogtreecommitdiff
path: root/www-client/falkon/falkon-9999.ebuild
diff options
context:
space:
mode:
authorAndreas Sturmlechner <asturm@gentoo.org>2022-07-17 13:52:34 +0200
committerAndreas Sturmlechner <asturm@gentoo.org>2022-07-17 13:53:57 +0200
commitade7ab67a5dfce2ce99261fba08627e502c5c7db (patch)
tree364e6cf7d317373d9f54f205a81f2c5aaf02b45c /www-client/falkon/falkon-9999.ebuild
parentcca599478faa2d87b10e37a1526e8d5c1de3e362 (diff)
downloadkde-ade7ab67a5dfce2ce99261fba08627e502c5c7db.tar.gz
kde-ade7ab67a5dfce2ce99261fba08627e502c5c7db.tar.bz2
kde-ade7ab67a5dfce2ce99261fba08627e502c5c7db.zip
www-client/falkon: Fix cmake w/ shiboken2 multiple python targets
Thanks-to: Olivier Huber <oli.huber@gmail.com> Closes: https://bugs.gentoo.org/832889 Package-Manager: Portage-3.0.32, Repoman-3.0.3 Signed-off-by: Andreas Sturmlechner <asturm@gentoo.org>
Diffstat (limited to 'www-client/falkon/falkon-9999.ebuild')
-rw-r--r--www-client/falkon/falkon-9999.ebuild13
1 files changed, 9 insertions, 4 deletions
diff --git a/www-client/falkon/falkon-9999.ebuild b/www-client/falkon/falkon-9999.ebuild
index 18c1168945f..7dd37294c12 100644
--- a/www-client/falkon/falkon-9999.ebuild
+++ b/www-client/falkon/falkon-9999.ebuild
@@ -63,12 +63,12 @@ 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() {
- python-single-r1_pkg_setup
+ use python && python-single-r1_pkg_setup
ecm_pkg_setup
}
@@ -83,5 +83,10 @@ src_configure() {
$(cmake_use_find_package python Python3)
-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
}