commit:     3706916926b85f1acbccd98137346099982536af
Author:     Andreas Sturmlechner <asturm <AT> gentoo <DOT> org>
AuthorDate: Sun Mar  3 17:43:38 2024 +0000
Commit:     Andreas Sturmlechner <asturm <AT> gentoo <DOT> org>
CommitDate: Mon Mar 11 09:50:22 2024 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=37069169

net-irc/konversation: Add konsole view optfeature

Signed-off-by: Andreas Sturmlechner <asturm <AT> gentoo.org>

 net-irc/konversation/konversation-23.08.5.ebuild | 9 ++++++++-
 1 file changed, 8 insertions(+), 1 deletion(-)

diff --git a/net-irc/konversation/konversation-23.08.5.ebuild 
b/net-irc/konversation/konversation-23.08.5.ebuild
index d1d0fc64f012..82a8ada7d872 100644
--- a/net-irc/konversation/konversation-23.08.5.ebuild
+++ b/net-irc/konversation/konversation-23.08.5.ebuild
@@ -6,7 +6,7 @@ EAPI=8
 ECM_HANDBOOK="forceoptional"
 KFMIN=5.106.0
 QTMIN=5.15.9
-inherit ecm gear.kde.org
+inherit ecm gear.kde.org optfeature
 
 DESCRIPTION="User friendly IRC Client"
 HOMEPAGE="https://konversation.kde.org https://apps.kde.org/konversation/";
@@ -70,3 +70,10 @@ src_install() {
        insinto /etc/xdg
        doins "${FILESDIR}"/konversationrc
 }
+
+pkg_postinst() {
+       if [[ -z "${REPLACING_VERSIONS}" ]]; then
+               optfeature "konsole view" "kde-apps/konsolepart:5" 
"kde-apps/konsole:5"
+       fi
+       ecm_pkg_postinst
+}

Reply via email to