commit:     16496a605e81e56500375918a02ca4b8f1c6fedf
Author:     Andreas Sturmlechner <asturm <AT> gentoo <DOT> org>
AuthorDate: Fri Jul 13 20:01:37 2018 +0000
Commit:     Andreas Sturmlechner <asturm <AT> gentoo <DOT> org>
CommitDate: Fri Jul 13 20:09:37 2018 +0000
URL:        https://gitweb.gentoo.org/proj/kde.git/commit/?id=16496a60

kde5.eclass: Fix KDE_INSTALL_LIBEXECDIR for EAPI-7 ebuilds

Reported-by: GinoM <onigino <AT> protonmail.com>

 eclass/kde5.eclass | 9 ++++++++-
 1 file changed, 8 insertions(+), 1 deletion(-)

diff --git a/eclass/kde5.eclass b/eclass/kde5.eclass
index bc2bba2173..a3c86fee22 100644
--- a/eclass/kde5.eclass
+++ b/eclass/kde5.eclass
@@ -51,7 +51,8 @@ EXPORT_FUNCTIONS pkg_setup pkg_nofetch src_unpack src_prepare 
src_configure src_
 # @DESCRIPTION:
 # If set to "false", do nothing.
 # For any other value, assume the package is using KDEInstallDirs macro and 
switch
-# KDE_INSTALL_USE_QT_SYS_PATHS to ON.
+# KDE_INSTALL_USE_QT_SYS_PATHS to ON. For EAPI-7 and above, fix 
KDE_INSTALL_LIBEXECDIR
+# to use the correct location.
 : ${ECM_KDEINSTALLDIRS:=true}
 
 # @ECLASS-VARIABLE: KDE_AUTODEPS
@@ -647,6 +648,12 @@ kde5_src_configure() {
                        # install mkspecs in the same directory as qt stuff
                        -DKDE_INSTALL_USE_QT_SYS_PATHS=ON
                )
+               if [[ ${EAPI} != 6 ]] ; then
+                       cmakeargs+=(
+                               # install to correct libexec location
+                               -DKDE_INSTALL_LIBEXECDIR=${EPREFIX}/usr/libexec
+                       )
+               fi
        fi
 
        # allow the ebuild to override what we set here

Reply via email to