summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichał Górny <mgorny@gentoo.org>2018-03-01 16:37:23 +0100
committerMichał Górny <mgorny@gentoo.org>2018-03-10 12:35:13 +0100
commit04c4a2f5840fe8aaf876c7c414b038e036b5c981 (patch)
treef198e4a90dc8c37aa45a60ba5a581a1c3d53c735 /eclass/cmake-utils.eclass
parentcmake-utils.eclass: Extend ASM rules to ASM-ATT (diff)
downloadgentoo-04c4a2f5840fe8aaf876c7c414b038e036b5c981.tar.gz
gentoo-04c4a2f5840fe8aaf876c7c414b038e036b5c981.tar.bz2
gentoo-04c4a2f5840fe8aaf876c7c414b038e036b5c981.zip
cmake-utils.eclass: Override CMAKE_INSTALL_{INFO,MAN}DIR
Provide an explicit override for CMAKE_INSTALL_INFODIR and CMAKE_INSTALL_MANDIR to force Gentoo standards for those locations. This is needed for Gentoo/FreeBSD where CMake defaults to /usr/info and /usr/man; while PMS specifies /usr/share/info and /usr/share/man via econf & do* helpers. Closes: https://bugs.gentoo.org/649200
Diffstat (limited to 'eclass/cmake-utils.eclass')
-rw-r--r--eclass/cmake-utils.eclass2
1 files changed, 2 insertions, 0 deletions
diff --git a/eclass/cmake-utils.eclass b/eclass/cmake-utils.eclass
index ef3f3c2607f8..3a5a1f24cedb 100644
--- a/eclass/cmake-utils.eclass
+++ b/eclass/cmake-utils.eclass
@@ -604,6 +604,8 @@ cmake-utils_src_configure() {
SET (CMAKE_GENTOO_BUILD ON CACHE BOOL "Indicate Gentoo package build")
SET (LIB_SUFFIX ${libdir/lib} CACHE STRING "library path suffix" FORCE)
SET (CMAKE_INSTALL_LIBDIR ${libdir} CACHE PATH "Output directory for libraries")
+ set (CMAKE_INSTALL_INFODIR "${EPREFIX}/usr/share/info" CACHE PATH "")
+ set (CMAKE_INSTALL_MANDIR "${EPREFIX}/usr/share/man" CACHE PATH "")
_EOF_
[[ "${NOCOLOR}" = true || "${NOCOLOR}" = yes ]] && echo 'SET (CMAKE_COLOR_MAKEFILE OFF CACHE BOOL "pretty colors during make" FORCE)' >> "${common_config}"