commit:     4a91874450d42060cd67fde8293519161fa847ff
Author:     Matthew Smith <matthew <AT> gentoo <DOT> org>
AuthorDate: Sun Oct  2 19:11:47 2022 +0000
Commit:     Matthew Smith <matthew <AT> gentoo <DOT> org>
CommitDate: Fri Nov 25 08:55:24 2022 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=4a918744

waf-utils.eclass: add default mandir setting

Closes: https://bugs.gentoo.org/376149
Signed-off-by: Matthew Smith <matthew <AT> gentoo.org>

 eclass/waf-utils.eclass | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/eclass/waf-utils.eclass b/eclass/waf-utils.eclass
index cfcefed52274..b73866072f7a 100644
--- a/eclass/waf-utils.eclass
+++ b/eclass/waf-utils.eclass
@@ -88,6 +88,9 @@ waf-utils_src_configure() {
        if [[ ${waf_help} == *--libdir* ]]; then
                conf_args+=( --libdir="${EPREFIX}/usr/$(get_libdir)" )
        fi
+       if [[ ${waf_help} == *--mandir* ]]; then
+               conf_args+=( --mandir="${EPREFIX}"/usr/share/man )
+       fi
 
        tc-export AR CC CPP CXX RANLIB
 

Reply via email to