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@gentoo.org>
This commit is contained in:
Andreas Sturmlechner
2025-10-09 22:31:11 +02:00
parent 31005379c7
commit 6c5e9a6e4c
2 changed files with 10 additions and 3 deletions

View File

@@ -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>

View File

@@ -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