commit:     960ae9fa16b24891520a73b1a72fa98c23389ded
Author:     Andreas Sturmlechner <asturm <AT> gentoo <DOT> org>
AuthorDate: Mon Aug 26 01:10:48 2019 +0000
Commit:     Andreas Sturmlechner <asturm <AT> gentoo <DOT> org>
CommitDate: Mon Aug 26 01:15:01 2019 +0000
URL:        https://gitweb.gentoo.org/proj/kde.git/commit/?id=960ae9fa

media-libs/phonon: Install desktop entry if USE !pulseaudio, drop USE gui

In Plasma 5.17, the KCM in use up to now is going to be removed. Phonon provides
phononsettings as replacement with familiar UI, but regards it as redundant for
PA users.

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

 media-libs/phonon/phonon-9999.ebuild | 13 ++++++++++---
 1 file changed, 10 insertions(+), 3 deletions(-)

diff --git a/media-libs/phonon/phonon-9999.ebuild 
b/media-libs/phonon/phonon-9999.ebuild
index 9c9a4fc940..6edaf832b5 100644
--- a/media-libs/phonon/phonon-9999.ebuild
+++ b/media-libs/phonon/phonon-9999.ebuild
@@ -3,7 +3,7 @@
 
 EAPI=7
 
-inherit kde5
+inherit desktop kde5
 
 DESCRIPTION="KDE multimedia abstraction library"
 HOMEPAGE="https://phonon.kde.org/";
@@ -15,7 +15,7 @@ fi
 
 LICENSE="|| ( LGPL-2.1 LGPL-3 )"
 SLOT="0"
-IUSE="debug designer gstreamer gui pulseaudio +vlc"
+IUSE="debug designer gstreamer pulseaudio +vlc"
 
 BDEPEND="
        dev-qt/linguist-tools:5
@@ -42,7 +42,14 @@ src_configure() {
                -DPHONON_BUILD_DESIGNER_PLUGIN=$(usex designer)
                -DCMAKE_DISABLE_FIND_PACKAGE_GLIB2=$(usex !pulseaudio)
                -DCMAKE_DISABLE_FIND_PACKAGE_PulseAudio=$(usex !pulseaudio)
-               -DPHONON_BUILD_SETTINGS=$(usex gui)
+               -DPHONON_BUILD_SETTINGS=$(usex !pulseaudio)
        )
        kde5_src_configure
 }
+
+src_install() {
+       kde5_src_install
+       use pulseaudio || \
+               make_desktop_entry "${PN}settings" \
+                       "Phonon Audio and Video" preferences-desktop-sound
+}

Reply via email to