diff options
| author | Andreas Sturmlechner <asturm@gentoo.org> | 2025-10-24 19:28:12 +0200 |
|---|---|---|
| committer | Andreas Sturmlechner <asturm@gentoo.org> | 2025-10-27 19:33:52 +0100 |
| commit | f8c7af1b51019f5101457b35ccdd38d52e4cf1bb (patch) | |
| tree | 83589cabd6fd62db910877d9a6ed7196d723fa92 /eclass | |
| parent | 790665ef95873124b7c20536036ad485568b921e (diff) | |
| download | kde-f8c7af1b51019f5101457b35ccdd38d52e4cf1bb.tar.gz kde-f8c7af1b51019f5101457b35ccdd38d52e4cf1bb.tar.bz2 kde-f8c7af1b51019f5101457b35ccdd38d52e4cf1bb.zip | |
ecm.eclass: Use our own initial-cache file on top of cmake.eclass'
Define KDEInstallDirs variables to fix ECM >=6.19 warnings.
Use the opportunity and cleanup some quirks including ECM_KDEINSTALLDIRS.
Bug: https://bugs.gentoo.org/963981
Signed-off-by: Andreas Sturmlechner <asturm@gentoo.org>
Diffstat (limited to 'eclass')
| -rw-r--r-- | eclass/ecm.eclass | 45 |
1 files changed, 26 insertions, 19 deletions
diff --git a/eclass/ecm.eclass b/eclass/ecm.eclass index e2a86545391..c93eb5dd6fd 100644 --- a/eclass/ecm.eclass +++ b/eclass/ecm.eclass @@ -58,12 +58,6 @@ if [[ ${CATEGORY} == kde-frameworks ]]; then ECM_NONGUI=true fi -# @ECLASS_VARIABLE: ECM_KDEINSTALLDIRS -# @DESCRIPTION: -# Assume the package is using KDEInstallDirs macro and switch -# KDE_INSTALL_USE_QT_SYS_PATHS to ON. If set to "false", do nothing. -: "${ECM_KDEINSTALLDIRS:=true}" - # @ECLASS_VARIABLE: ECM_DEBUG # @DESCRIPTION: # Add "debug" to IUSE. If !debug, add -DQT_NO_DEBUG to CPPFLAGS. If set to @@ -659,23 +653,36 @@ ecm_src_configure() { cmakeargs+=( -DBUILD_QCH=$(usex doc) ) fi - if [[ ${ECM_KDEINSTALLDIRS} = true ]] ; then - cmakeargs+=( - # install mkspecs in the same directory as Qt stuff - -DKDE_INSTALL_USE_QT_SYS_PATHS=ON - # move handbook outside of doc dir, bug 667138 - -DKDE_INSTALL_DOCBUNDLEDIR="${EPREFIX}/usr/share/help" - ) + # Common ECM configure parameters (invariants) + local ecm_config=${BUILD_DIR}/gentoo_ecm_config.cmake + cat > ${ecm_config} <<- _EOF_ || die + # Gentoo downstream-added ECM options + set(ECM_DISABLE_QMLPLUGINDUMP ON CACHE BOOL "") # bug #835995, *-disable-qmlplugindump.patch + set(ECM_DISABLE_APPSTREAMTEST ON CACHE BOOL "") # *-disable-appstreamtest.patch + set(ECM_DISABLE_GIT ON CACHE BOOL "") # *-disable-git-commit-hooks.patch - # bug 928345 - # TODO: Eventually it should be put to upstream as to why LIBEXECDIR - # in KDEInstallDirsCommon.cmake is set to EXECROOTDIR/LIBDIR/libexec - [[ ${_KFSLOT} == 6 ]] && \ - cmakeargs+=( -DKDE_INSTALL_LIBEXECDIR="${EPREFIX}/usr/libexec" ) + # KDEInstallDirs[56] section + set(KDE_INSTALL_USE_QT_SYS_PATHS ON CACHE BOOL "") # install mkspecs in same dir as Qt stuff + # move handbook outside of doc dir, bug #667138 + set(KDE_INSTALL_DOCBUNDLEDIR="${EPREFIX}/usr/share/help" CACHE PATH "") + set(KDE_INSTALL_INFODIR "${EPREFIX}/usr/share/info" CACHE PATH "") + set(KDE_INSTALL_LIBDIR $(get_libdir) CACHE PATH "Output directory for libraries") + set(KDE_INSTALL_MANDIR "${EPREFIX}/usr/share/man" CACHE PATH "") + _EOF_ + + if [[ ${_KFSLOT} == 6 ]]; then + cat >> ${ecm_config} <<- _EOF_ || die + # TODO: Ask upstream why LIBEXECDIR is set to EXECROOTDIR/LIBDIR/libexec, bug #928345 + set(KDE_INSTALL_LIBEXECDIR="${EPREFIX}/usr/libexec" CACHE PATH "") + _EOF_ fi # allow the ebuild to override what we set here - mycmakeargs=("${cmakeargs[@]}" "${mycmakeargs[@]}") + mycmakeargs=( + -C "${ecm_config}" + "${cmakeargs[@]}" + "${mycmakeargs[@]}" + ) cmake_src_configure } |
