commit:     0c0019b88969e7e75249e833343c0384b634a72c
Author:     Andreas Sturmlechner <asturm <AT> gentoo <DOT> org>
AuthorDate: Sun Oct  3 13:48:02 2021 +0000
Commit:     Andreas Sturmlechner <asturm <AT> gentoo <DOT> org>
CommitDate: Sun Oct  3 13:48:02 2021 +0000
URL:        https://gitweb.gentoo.org/proj/kde.git/commit/?id=0c0019b8

kde-apps/kmix: Add postinst message in global IUSE=pulseaudio context

Closes: https://bugs.gentoo.org/791889
Package-Manager: Portage-3.0.26, Repoman-3.0.3
Signed-off-by: Andreas Sturmlechner <asturm <AT> gentoo.org>

 kde-apps/kmix/kmix-21.08.49.9999.ebuild | 12 ++++++++++++
 kde-apps/kmix/kmix-9999.ebuild          | 12 ++++++++++++
 2 files changed, 24 insertions(+)

diff --git a/kde-apps/kmix/kmix-21.08.49.9999.ebuild 
b/kde-apps/kmix/kmix-21.08.49.9999.ebuild
index abe8723875..f1ba0ac216 100644
--- a/kde-apps/kmix/kmix-21.08.49.9999.ebuild
+++ b/kde-apps/kmix/kmix-21.08.49.9999.ebuild
@@ -59,3 +59,15 @@ src_configure() {
 
        ecm_src_configure
 }
+
+pkg_postinst() {
+       if use pulseaudio && has_version kde-plasma/plasma-pa; then
+               elog "In KDE Plasma, kde-plasma/plasma-pa is the default audio 
volume handler."
+               elog "Should you prefer this to be kde-apps/kmix instead, do 
the following:"
+               elog " - In system tray, right click on [Show hidden items]"
+               elog " - Select [Configure System Tray]"
+               elog " - In [Entries],  search for [Audio Volume] and set it to 
[Disabled]"
+               elog "KMix will be shown as [Volume Control]."
+       fi
+       ecm_pkg_postinst
+}

diff --git a/kde-apps/kmix/kmix-9999.ebuild b/kde-apps/kmix/kmix-9999.ebuild
index 097f347d63..0f298f8743 100644
--- a/kde-apps/kmix/kmix-9999.ebuild
+++ b/kde-apps/kmix/kmix-9999.ebuild
@@ -59,3 +59,15 @@ src_configure() {
 
        ecm_src_configure
 }
+
+pkg_postinst() {
+       if use pulseaudio && has_version kde-plasma/plasma-pa; then
+               elog "In KDE Plasma, kde-plasma/plasma-pa is the default audio 
volume handler."
+               elog "Should you prefer this to be kde-apps/kmix instead, do 
the following:"
+               elog " - In system tray, right click on [Show hidden items]"
+               elog " - Select [Configure System Tray]"
+               elog " - In [Entries],  search for [Audio Volume] and set it to 
[Disabled]"
+               elog "KMix will be shown as [Volume Control]."
+       fi
+       ecm_pkg_postinst
+}

Reply via email to