summaryrefslogtreecommitdiff
path: root/eclass
diff options
context:
space:
mode:
authorMichał Górny <mgorny@gentoo.org>2018-03-29 21:05:54 +0200
committerAndreas Sturmlechner <asturm@gentoo.org>2018-06-02 17:24:03 +0200
commit11ddbefe34d0cdbda28e58c67eec255eb20b8094 (patch)
tree78259ff87cadf54cecab96ebb94db63444384450 /eclass
parent1206f1c8271241c4e73261f79554c1c84deab19f (diff)
downloadkde-11ddbefe34d0cdbda28e58c67eec255eb20b8094.tar.gz
kde-11ddbefe34d0cdbda28e58c67eec255eb20b8094.tar.bz2
kde-11ddbefe34d0cdbda28e58c67eec255eb20b8094.zip
cmake-utils.eclass: Override CMAKE_INSTALL_DOCDIR in EAPI 7
Pass the correct docdir for GNUInstallDirs in EAPIs starting with 7. We do not need add it retroactively to avoid breaking something accidentally.
Diffstat (limited to 'eclass')
-rw-r--r--eclass/cmake-utils.eclass6
1 files changed, 6 insertions, 0 deletions
diff --git a/eclass/cmake-utils.eclass b/eclass/cmake-utils.eclass
index 4dc7c4456f6..6541f2af0f6 100644
--- a/eclass/cmake-utils.eclass
+++ b/eclass/cmake-utils.eclass
@@ -614,6 +614,12 @@ cmake-utils_src_configure() {
_EOF_
[[ "${NOCOLOR}" = true || "${NOCOLOR}" = yes ]] && echo 'SET (CMAKE_COLOR_MAKEFILE OFF CACHE BOOL "pretty colors during make" FORCE)' >> "${common_config}"
+ if [[ ${EAPI} != [56] ]]; then
+ cat >> "${common_config}" <<- _EOF_ || die
+ SET (CMAKE_INSTALL_DOCDIR "${EPREFIX}/usr/share/doc/${PF}" CACHE PATH "")
+ _EOF_
+ fi
+
# Wipe the default optimization flags out of CMake
if [[ ${CMAKE_BUILD_TYPE} != Gentoo && ${EAPI} != 5 ]]; then
cat >> ${common_config} <<- _EOF_ || die