commit:     d32281081a4be1697c7e5635f60b340dfab6dbe4
Author:     Andreas Sturmlechner <asturm <AT> gentoo <DOT> org>
AuthorDate: Fri Feb  4 13:46:46 2022 +0000
Commit:     Andreas Sturmlechner <asturm <AT> gentoo <DOT> org>
CommitDate: Fri Feb  4 13:52:05 2022 +0000
URL:        https://gitweb.gentoo.org/proj/kde.git/commit/?id=d3228108

www-client/falkon: Add IUSE=python

- Move dev-qt/linguist-tools to BDEPEND where it belongs
- Set BUILD_KEYRING=OFF as was done in Gentoo ebuild repo
- Fix SRC_URI for latest release

Package-Manager: Portage-3.0.30, Repoman-3.0.3
Signed-off-by: Andreas Sturmlechner <asturm <AT> gentoo.org>

 www-client/falkon/falkon-9999.ebuild | 32 ++++++++++++++++++++++++++------
 1 file changed, 26 insertions(+), 6 deletions(-)

diff --git a/www-client/falkon/falkon-9999.ebuild 
b/www-client/falkon/falkon-9999.ebuild
index 5f9f42b041..702af5b75a 100644
--- a/www-client/falkon/falkon-9999.ebuild
+++ b/www-client/falkon/falkon-9999.ebuild
@@ -4,23 +4,25 @@
 EAPI=8
 
 ECM_TEST="true"
-KFMIN=5.82.0
+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/";
 
 if [[ ${KDE_BUILD_TYPE} != live ]]; then
-       SRC_URI="mirror://kde/stable/${PN}/${PV%.0}/${P}.tar.xz"
-       KEYWORDS="~amd64 ~arm64 ~ppc64 ~x86"
+       SRC_URI="mirror://kde/stable/${PN}/${PV}/${P}.tar.xz"
+       KEYWORDS="~amd64 ~arm64 ~x86"
 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,widgets,${PYTHON_USEDEP}]
+                       dev-python/shiboken2[${PYTHON_USEDEP}]
+               ')
+       )
        X? (
                >=dev-qt/qtx11extras-${QTMIN}:5
                x11-libs/libxcb:=
@@ -50,7 +59,6 @@ COMMON_DEPEND="
        )
 "
 DEPEND="${COMMON_DEPEND}
-       >=dev-qt/linguist-tools-${QTMIN}:5
        >=dev-qt/qtconcurrent-${QTMIN}:5
 "
 if [[ ${KDE_BUILD_TYPE} != live ]]; then
@@ -59,12 +67,24 @@ fi
 RDEPEND="${COMMON_DEPEND}
        >=dev-qt/qtsvg-${QTMIN}:5
 "
+BDEPEND="
+       >=dev-qt/linguist-tools-${QTMIN}:5
+"
+
+pkg_setup() {
+       python-single-r1_pkg_setup
+       ecm_pkg_setup
+}
 
 src_configure() {
        local mycmakeargs=(
+               -DBUILD_KEYRING=OFF
                -DDISABLE_DBUS=$(usex !dbus)
                $(cmake_use_find_package kde KF5Wallet)
                $(cmake_use_find_package kde KF5KIO)
+               $(cmake_use_find_package python PySide2)
+               $(cmake_use_find_package python Shiboken2)
+               $(cmake_use_find_package python Python3)
                -DNO_X11=$(usex !X)
        )
        ecm_src_configure

Reply via email to