Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 911205

Summary: kde-plasma/breeze: build theme without kwin/Plasma support option
Product: Gentoo Linux Reporter: Gino McCarty <onigino>
Component: Current packagesAssignee: Gentoo KDE team <kde>
Status: UNCONFIRMED ---    
Severity: normal    
Priority: Normal    
Version: unspecified   
Hardware: All   
OS: Linux   
URL: https://invent.kde.org/plasma/breeze/-/issues/4
See Also: https://invent.kde.org/plasma/breeze/-/merge_requests/329
https://invent.kde.org/plasma/breeze/-/merge_requests/318
Whiteboard:
Package list:
Runtime testing required: ---

Description Gino McCarty 2023-07-25 15:25:20 UTC
Looks like upstream allows non KDE users to still build the breeze QT platform theme. Can we add use flags to support this on gentoo?

Attached is an example in which kwin use flag has been added in order to allow breeze on systems where KDE doesn't exist.

Please consider supporting some version of this for non KDE users who still enjoy QT apps and breeze theme

```
--- ../../../gentoo/kde-plasma/breeze/breeze-5.27.6.ebuild	2023-07-24 15:53:09.738259215 -0700
+++ breeze-5.27.6.ebuild	2023-07-25 08:14:22.302279108 -0700
@@ -14,7 +14,7 @@
 LICENSE="GPL-2" # TODO: CHECK
 SLOT="5"
 KEYWORDS="amd64 ~arm arm64 ~loong ~ppc64 ~riscv x86"
-IUSE=""
+IUSE="kwin wallpapers"

 RDEPEND="
 	>=dev-qt/qtdbus-${QTMIN}:5
@@ -31,11 +31,19 @@
 	>=kde-frameworks/ki18n-${KFMIN}:5
 	>=kde-frameworks/kiconthemes-${KFMIN}:5
 	>=kde-frameworks/kwidgetsaddons-${KFMIN}:5
-	>=kde-plasma/kdecoration-${PVCUT}:5
+	kwin? ( >=kde-plasma/kdecoration-${PVCUT}:5 )
 "
 DEPEND="${RDEPEND}"
 BDEPEND=">=kde-frameworks/kcmutils-${KFMIN}:5"
 PDEPEND="
 	>=kde-frameworks/breeze-icons-${KFMIN}:5
-	>=kde-plasma/kde-cli-tools-${PVCUT}:5
+	kwin? ( >=kde-plasma/kde-cli-tools-${PVCUT}:5 )
 "
+
+src_configure() {
+	local mycmakeargs=(
+		-DWITH_DECORATIONS=$(usex kwin decoration)
+		-DWITH_WALLPAPERS=$(usex wallpapers)
+	)
+	cmake_src_configure
+}
```

Reproducible: Always
Comment 1 Andreas Sturmlechner gentoo-dev 2023-07-25 15:55:06 UTC
Adding things to consider for making future packaging considerations here.
Comment 2 Gino McCarty 2023-12-28 05:00:12 UTC
bump

please consider merging this into your kde overlay, I see breeze for qt6 still not using additional use flags