commit:     555fcc6bd1c4572edc4477c08be224211767827a
Author:     Michał Górny <mgorny <AT> gentoo <DOT> org>
AuthorDate: Thu Mar  1 15:37:23 2018 +0000
Commit:     Michael Palimaka <kensington <AT> gentoo <DOT> org>
CommitDate: Sun Mar 11 00:18:07 2018 +0000
URL:        https://gitweb.gentoo.org/proj/kde.git/commit/?id=555fcc6b

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

 eclass/cmake-utils.eclass | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/eclass/cmake-utils.eclass b/eclass/cmake-utils.eclass
index 814cc78f8d..c71ccfd64b 100644
--- a/eclass/cmake-utils.eclass
+++ b/eclass/cmake-utils.eclass
@@ -606,6 +606,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}"
 

Reply via email to