commit:     6c5e9a6e4cbef43b3878809e04c9aaf111eba384
Author:     Andreas Sturmlechner <asturm <AT> gentoo <DOT> org>
AuthorDate: Thu Oct  9 20:31:11 2025 +0000
Commit:     Andreas Sturmlechner <asturm <AT> gentoo <DOT> org>
CommitDate: Fri Oct 10 18:42:17 2025 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=6c5e9a6e

kde-plasma/plasma-workspace: Add IUSE phonon

Inspired by https://invent.kde.org/plasma/plasma-workspace/-/merge_requests/5908

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

 kde-plasma/plasma-workspace/metadata.xml                     |  1 +
 ...pace-6.4.5-r2.ebuild => plasma-workspace-6.4.5-r3.ebuild} | 12 +++++++++---
 2 files changed, 10 insertions(+), 3 deletions(-)

diff --git a/kde-plasma/plasma-workspace/metadata.xml 
b/kde-plasma/plasma-workspace/metadata.xml
index 72b8fb2505eb..8c3d00e1e1bd 100644
--- a/kde-plasma/plasma-workspace/metadata.xml
+++ b/kde-plasma/plasma-workspace/metadata.xml
@@ -13,6 +13,7 @@
                <flag name="appstream">Enable AppStream software metadata 
support</flag>
                <flag name="ksysguard">Enable device notifier and system 
monitor applets as well as terminate applications runner</flag>
                <flag name="networkmanager">Enable support for location-based 
time zone changes</flag>
+               <flag name="phonon">Enable KIO to Phonon bridge for network 
streaming via <pkg>media-libs/phonon</pkg></flag>
                <flag name="policykit">Enable locale generation and Users KCM 
using <pkg>sys-auth/polkit</pkg> and <pkg>sys-apps/accountsservice</pkg></flag>
                <flag name="screencast">Enable camera indicator applet 
(requires <pkg>media-video/pipewire</pkg> at runtime)</flag>
                <flag name="telemetry">Enable User Feedback control module for 
<pkg>kde-plasma/systemsettings</pkg></flag>

diff --git a/kde-plasma/plasma-workspace/plasma-workspace-6.4.5-r2.ebuild 
b/kde-plasma/plasma-workspace/plasma-workspace-6.4.5-r3.ebuild
similarity index 96%
rename from kde-plasma/plasma-workspace/plasma-workspace-6.4.5-r2.ebuild
rename to kde-plasma/plasma-workspace/plasma-workspace-6.4.5-r3.ebuild
index b799fd4d0ef7..03ef13bc33d9 100644
--- a/kde-plasma/plasma-workspace/plasma-workspace-6.4.5-r2.ebuild
+++ b/kde-plasma/plasma-workspace/plasma-workspace-6.4.5-r3.ebuild
@@ -15,8 +15,9 @@ SRC_URI+=" 
https://dev.gentoo.org/~asturm/distfiles/${P}-patchset.tar.xz";
 LICENSE="GPL-2" # TODO: CHECK
 SLOT="6"
 KEYWORDS="~amd64 ~arm64 ~loong ~ppc64 ~riscv ~x86"
-IUSE="appstream +calendar +fontconfig +ksysguard networkmanager +policykit
-screencast +semantic-desktop systemd telemetry +wallpaper-metadata +X"
+IUSE="appstream +calendar +fontconfig +ksysguard networkmanager phonon
++policykit screencast +semantic-desktop systemd telemetry
++wallpaper-metadata +X"
 
 REQUIRED_USE="fontconfig? ( X )"
 RESTRICT="test"
@@ -83,7 +84,6 @@ COMMON_DEPEND="
        >=kde-plasma/plasma-activities-stats-${KDE_CATV}:6
        >=kde-plasma/plasma5support-${KDE_CATV}:6
        media-libs/libcanberra
-       >=media-libs/phonon-4.12.0[qt6(+)]
        sci-libs/libqalculate:=
        sys-apps/dbus
        sys-libs/zlib
@@ -91,6 +91,7 @@ COMMON_DEPEND="
        appstream? ( >=dev-libs/appstream-1[qt6] )
        calendar? ( >=kde-frameworks/kholidays-${KFMIN}:6 )
        ksysguard? ( >=kde-plasma/libksysguard-${KDE_CATV}:6 )
+       phonon? ( >=media-libs/phonon-4.12.0[qt6(+)] )
        policykit? ( virtual/libcrypt:= )
        networkmanager? ( >=kde-frameworks/networkmanager-qt-${KFMIN}:6 )
        semantic-desktop? ( >=kde-frameworks/baloo-${KFMIN}:6 )
@@ -169,6 +170,11 @@ src_prepare() {
 
        cmake_comment_add_subdirectory login-sessions
 
+       if ! use phonon; then
+               sed -e "s/^find_package.*Phonon4Qt6/#&/" -i CMakeLists.txt || 
die
+               cmake_comment_add_subdirectory phonon
+       fi
+
        if ! use policykit; then
                cmake_run_in kcms cmake_comment_add_subdirectory users
        fi

Reply via email to