Gentoo Archives: gentoo-commits

From: Andreas Sturmlechner <asturm@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] proj/kde:master commit in: eclass/
Date: Fri, 13 Jul 2018 20:18:37
Message-Id: 1531511129.8d6a36a6266dcf43e147b28b813493a8b504b6ee.asturm@gentoo
1 commit: 8d6a36a6266dcf43e147b28b813493a8b504b6ee
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: Fri Jul 13 19:45:29 2018 +0000
6 URL: https://gitweb.gentoo.org/proj/kde.git/commit/?id=8d6a36a6
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 454e3364eb..bc2bba2173 100644
15 --- a/eclass/kde5.eclass
16 +++ b/eclass/kde5.eclass
17 @@ -47,6 +47,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 @@ -635,8 +642,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[@]}")