cmake-utils.eclass: Override CMAKE_INSTALL_{INFO,MAN}DIR
authorMichał Górny <mgorny@gentoo.org>
Thu, 1 Mar 2018 15:37:23 +0000 (16:37 +0100)
committerMichał Górny <mgorny@gentoo.org>
Sat, 10 Mar 2018 11:35:13 +0000 (12:35 +0100)
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

eclass/cmake-utils.eclass

index ef3f3c2607f8c4e8c9caabab29c9889912048e6e..3a5a1f24cedb36f680c1437746f1e29963623c0f 100644 (file)
@@ -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}"