kde5.eclass: Add KDE_DESIGNERPLUGIN handling for kde-frameworks/
authorAndreas Sturmlechner <asturm@gentoo.org>
Tue, 6 Aug 2019 22:19:18 +0000 (00:19 +0200)
committerAndreas Sturmlechner <asturm@gentoo.org>
Sat, 14 Sep 2019 14:52:27 +0000 (16:52 +0200)
Signed-off-by: Andreas Sturmlechner <asturm@gentoo.org>
eclass/kde5.eclass

index d49e0fbfdbfb02c56f4102d14ff952225b6ab62c..9f71e428c54fc020f9d44e957f4eb9b8be7341bb 100644 (file)
@@ -206,7 +206,11 @@ case ${KDE_DESIGNERPLUGIN} in
        false)  ;;
        *)
                IUSE+=" designer"
-               BDEPEND+=" designer? ( $(add_frameworks_dep kdesignerplugin) )"
+               if [[ ${CATEGORY} = kde-frameworks ]]; then
+                       BDEPEND+=" designer? ( $(add_qt_dep designer) )"
+               else
+                       BDEPEND+=" designer? ( $(add_frameworks_dep kdesignerplugin) )"
+               fi
 esac
 
 case ${KDE_EXAMPLES} in
@@ -598,8 +602,12 @@ kde5_src_configure() {
                cmakeargs+=( -DCMAKE_DISABLE_FIND_PACKAGE_KF5DocTools=ON )
        fi
 
-       if in_iuse designer && ! use designer && [[ ${KDE_DESIGNERPLUGIN} != false ]] ; then
-               cmakeargs+=( -DCMAKE_DISABLE_FIND_PACKAGE_KF5DesignerPlugin=ON )
+       if in_iuse designer && [[ ${KDE_DESIGNERPLUGIN} != false ]] ; then
+               if [[ ${CATEGORY} = kde-frameworks ]]; then
+                       cmakeargs+=( -DBUILD_DESIGNERPLUGIN=$(usex designer) )
+               else
+                       cmakeargs+=( $(cmake-utils_use_find_package designer KF5DesignerPlugin) )
+               fi
        fi
 
        if [[ ${KDE_QTHELP} != false ]]; then