kde-apps/konsole: introduce minimal USE flag for Plasma 5 compatibility.
authorMichael Palimaka <kensington@gentoo.org>
Tue, 25 Aug 2015 13:26:45 +0000 (23:26 +1000)
committerMichael Palimaka <kensington@gentoo.org>
Tue, 25 Aug 2015 13:27:29 +0000 (23:27 +1000)
Enabling it strips the components colliding with konsole:5, leaving
effectively only konsolepart.

Package-Manager: portage-2.2.20.1

kde-apps/konsole/konsole-4.14.3.ebuild

index 0c4bd47661a4a550ae42537ec421aac03ab6c754..e1a86c6ac599c5d63e2843be26f94ac36e343ad8 100644 (file)
@@ -13,7 +13,7 @@ inherit kde4-base
 DESCRIPTION="X terminal for use with KDE"
 HOMEPAGE="https://www.kde.org/applications/system/konsole https://konsole.kde.org"
 KEYWORDS="amd64 ~arm ppc ppc64 x86 ~amd64-linux ~x86-linux"
-IUSE="debug"
+IUSE="debug minimal"
 
 COMMONDEPEND="
        !aqua? (
@@ -36,3 +36,12 @@ RDEPEND="${COMMONDEPEND}"
 
 # can't connect to a kded instance, fails to connect to dbus
 RESTRICT="test"
+
+src_install() {
+       kde4-base_src_install
+
+       if use minimal; then
+               rm "${D}/usr/bin/konsole" || die
+               rm "${D}/usr/bin/konsoleprofile" || die
+       fi
+}