Gentoo Archives: gentoo-commits

From: Andreas Sturmlechner <asturm@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: eclass/
Date: Sat, 14 Jul 2018 08:44:48
Message-Id: 1531557866.78a01038840b9bf4c90b5d2ece8502577abb942a.asturm@gentoo
1 commit: 78a01038840b9bf4c90b5d2ece8502577abb942a
2 Author: Andreas Sturmlechner <asturm <AT> gentoo <DOT> org>
3 AuthorDate: Fri Jul 13 19:45:29 2018 +0000
4 Commit: Andreas Sturmlechner <asturm <AT> gentoo <DOT> org>
5 CommitDate: Sat Jul 14 08:44:26 2018 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=78a01038
7
8 kde5.eclass: Add ECM_KDEINSTALLDIRS
9
10 eclass/kde5.eclass | 15 +++++++++++++--
11 1 file changed, 13 insertions(+), 2 deletions(-)
12
13 diff --git a/eclass/kde5.eclass b/eclass/kde5.eclass
14 index d674611dc71..07d6c26a264 100644
15 --- a/eclass/kde5.eclass
16 +++ b/eclass/kde5.eclass
17 @@ -49,6 +49,13 @@ fi
18
19 EXPORT_FUNCTIONS pkg_setup pkg_nofetch src_unpack src_prepare src_configure src_compile src_test src_install pkg_preinst pkg_postinst pkg_postrm
20
21 +# @ECLASS-VARIABLE: ECM_KDEINSTALLDIRS
22 +# @DESCRIPTION:
23 +# If set to "false", do nothing.
24 +# For any other value, assume the package is using KDEInstallDirs macro and switch
25 +# KDE_INSTALL_USE_QT_SYS_PATHS to ON.
26 +: ${ECM_KDEINSTALLDIRS:=true}
27 +
28 # @ECLASS-VARIABLE: KDE_AUTODEPS
29 # @DESCRIPTION:
30 # If set to "false", do nothing.
31 @@ -641,8 +648,12 @@ kde5_src_configure() {
32 cmakeargs+=( -DBUILD_QCH=$(usex doc) )
33 fi
34
35 - # install mkspecs in the same directory as qt stuff
36 - cmakeargs+=(-DKDE_INSTALL_USE_QT_SYS_PATHS=ON)
37 + if [[ ${ECM_KDEINSTALLDIRS} != false ]] ; then
38 + cmakeargs+=(
39 + # install mkspecs in the same directory as qt stuff
40 + -DKDE_INSTALL_USE_QT_SYS_PATHS=ON
41 + )
42 + fi
43
44 # allow the ebuild to override what we set here
45 mycmakeargs=("${cmakeargs[@]}" "${mycmakeargs[@]}")