kde4-base.eclass: Add exceptions to USE=+handbook
authorAndreas Sturmlechner <andreas.sturmlechner@gmail.com>
Sun, 15 May 2016 09:03:57 +0000 (11:03 +0200)
committerJohannes Huber <johu@gentoo.org>
Thu, 19 May 2016 14:16:38 +0000 (16:16 +0200)
kde-apps/kcontrol and kde-apps/knetattach also collide with slot 5.

Signed-off-by: Johannes Huber <johu@gentoo.org>
eclass/kde4-base.eclass

index 050f0c4fc80d7aab504674713dc1a095573182e2..2d761f8ae8f0e6b70e3ad489732ce95ad1ba4870 100644 (file)
@@ -160,7 +160,7 @@ KDE_HANDBOOK="${KDE_HANDBOOK:-never}"
 # translations. (Mostly all kde ebuilds does not ship documentation
 # and translations in live ebuilds)
 if [[ ${KDE_BUILD_TYPE} == live && -z ${KDE_LINGUAS_LIVE_OVERRIDE} ]]; then
-       # Kdebase actualy provides the handbooks even for live stuff
+       # Kdebase actually provides the handbooks even for live stuff
        [[ ${KDEBASE} == kde-base ]] || KDE_HANDBOOK=never
        KDE_LINGUAS=""
 fi
@@ -358,11 +358,14 @@ case ${KDE_HANDBOOK} in
                [[ ${PN} != kdelibs ]] && kderdepend+=" ${kdehandbookrdepend}"
                ;;
        optional)
-               if [[ ${PN} == kdesu ]] ; then
-                       IUSE+=" handbook"
-               else
-                       IUSE+=" +handbook"
-               fi
+               case ${PN} in
+                       kcontrol | kdesu | knetattach)
+                               _IUSE+=" handbook"
+                               ;;
+                       *)
+                               IUSE+=" +handbook"
+                               ;;
+               esac
                kdedepend+=" handbook? ( ${kdehandbookdepend} )"
                [[ ${PN} != kdelibs ]] && kderdepend+=" handbook? ( ${kdehandbookrdepend} )"
                ;;