commit:     4609ad8fb53087dde6b1a3c9136ac71507415aa1
Author:     Andreas Sturmlechner <asturm <AT> gentoo <DOT> org>
AuthorDate: Sat Dec  2 18:55:47 2023 +0000
Commit:     Andreas Sturmlechner <asturm <AT> gentoo <DOT> org>
CommitDate: Sat Dec  2 18:55:47 2023 +0000
URL:        https://gitweb.gentoo.org/proj/kde.git/commit/?id=4609ad8f

kde-plasma/breeze: Add IUSE qt5

Signed-off-by: Andreas Sturmlechner <asturm <AT> gentoo.org>

 kde-plasma/breeze/breeze-9999.ebuild | 35 +++++++++++++++++++++++++++++++++--
 1 file changed, 33 insertions(+), 2 deletions(-)

diff --git a/kde-plasma/breeze/breeze-9999.ebuild 
b/kde-plasma/breeze/breeze-9999.ebuild
index caaa2d4bb2..7f91095c58 100644
--- a/kde-plasma/breeze/breeze-9999.ebuild
+++ b/kde-plasma/breeze/breeze-9999.ebuild
@@ -3,8 +3,10 @@
 
 EAPI=8
 
+KF5MIN=5.106.0
 KFMIN=5.245.0
 PVCUT=$(ver_cut 1-3)
+QT5MIN=5.15.9
 QTMIN=6.6.0
 inherit ecm plasma.kde.org
 
@@ -14,7 +16,7 @@ HOMEPAGE="https://invent.kde.org/plasma/breeze";
 LICENSE="GPL-2" # TODO: CHECK
 SLOT="6"
 KEYWORDS=""
-IUSE=""
+IUSE="qt5"
 
 # kde-frameworks/kwindowsystem[X]: Unconditional use of KX11Extras
 RDEPEND="
@@ -32,10 +34,39 @@ RDEPEND="
        >=kde-frameworks/kwidgetsaddons-${KFMIN}:6
        >=kde-frameworks/kwindowsystem-${KFMIN}:6[X]
        >=kde-plasma/kdecoration-${PVCUT}:6
+       qt5? (
+               >=dev-qt/qtdbus-${QT5MIN}:5
+               >=dev-qt/qtdeclarative-${QT5MIN}:5
+               >=dev-qt/qtgui-${QT5MIN}:5
+               >=dev-qt/qtwidgets-${QT5MIN}:5
+               >=dev-qt/qtx11extras-${QT5MIN}:5
+               >=kde-frameworks/frameworkintegration-${KF5MIN}:5
+               >=kde-frameworks/kcmutils-${KF5MIN}:5
+               >=kde-frameworks/kconfig-${KF5MIN}:5
+               >=kde-frameworks/kconfigwidgets-${KF5MIN}:5
+               >=kde-frameworks/kcoreaddons-${KF5MIN}:5
+               >=kde-frameworks/kguiaddons-${KF5MIN}:5
+               >=kde-frameworks/ki18n-${KF5MIN}:5
+               >=kde-frameworks/kiconthemes-${KF5MIN}:5
+               >=kde-frameworks/kirigami-${KF5MIN}:5
+               >=kde-frameworks/kwidgetsaddons-${KF5MIN}:5
+               >=kde-frameworks/kwindowsystem-${KF5MIN}:5
+       )
 "
 DEPEND="${RDEPEND}"
-BDEPEND=">=kde-frameworks/kcmutils-${KFMIN}:6"
+BDEPEND="
+       >=kde-frameworks/kcmutils-${KFMIN}:6
+       qt5? ( >=kde-frameworks/kcmutils-${KF5MIN}:5 )
+"
 PDEPEND="
        >=kde-frameworks/breeze-icons-${KFMIN}:*
        >=kde-plasma/kde-cli-tools-${PVCUT}:*
 "
+
+src_configure() {
+       local mycmakeargs=(
+               -DBUILD_QT6=ON
+               -DBUILD_QT5=$(usex qt5)
+       )
+       ecm_src_configure
+}

Reply via email to