commit:     9f28a19a757b5ad8c901a62d10648a8e65e6bd15
Author:     Michał Górny <mgorny <AT> gentoo <DOT> org>
AuthorDate: Thu Apr  6 06:42:33 2017 +0000
Commit:     Michał Górny <mgorny <AT> gentoo <DOT> org>
CommitDate: Thu Apr  6 12:47:54 2017 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=9f28a19a

sys-devel/llvm: Include MANPATH in env.d file

Include MANPATH in the env.d file so that 'man' can reliably find all
the manpages. It seems that at least sys-apps/man-db can still find
the manpages relative to the tools found in PATH but that is most likely
unreliable.

 sys-devel/llvm/{llvm-4.0.0.ebuild => llvm-4.0.0-r1.ebuild} | 1 +
 sys-devel/llvm/llvm-9999.ebuild                            | 1 +
 2 files changed, 2 insertions(+)

diff --git a/sys-devel/llvm/llvm-4.0.0.ebuild 
b/sys-devel/llvm/llvm-4.0.0-r1.ebuild
similarity index 99%
rename from sys-devel/llvm/llvm-4.0.0.ebuild
rename to sys-devel/llvm/llvm-4.0.0-r1.ebuild
index f7f8e7c7456..1384df1a119 100644
--- a/sys-devel/llvm/llvm-4.0.0.ebuild
+++ b/sys-devel/llvm/llvm-4.0.0-r1.ebuild
@@ -258,6 +258,7 @@ multilib_src_install_all() {
                PATH="${EPREFIX}/usr/lib/llvm/${SLOT}/bin"
                # we need to duplicate it in ROOTPATH for Portage to respect...
                ROOTPATH="${EPREFIX}/usr/lib/llvm/${SLOT}/bin"
+               MANPATH="${EPREFIX}/usr/lib/llvm/${SLOT}/share/man"
                LDPATH="$( IFS=:; echo "${LLVM_LDPATHS[*]}" )"
 _EOF_
        doenvd "${T}/10llvm-${revord}"

diff --git a/sys-devel/llvm/llvm-9999.ebuild b/sys-devel/llvm/llvm-9999.ebuild
index cdba7b1daf4..16413680bdf 100644
--- a/sys-devel/llvm/llvm-9999.ebuild
+++ b/sys-devel/llvm/llvm-9999.ebuild
@@ -258,6 +258,7 @@ multilib_src_install_all() {
                PATH="${EPREFIX}/usr/lib/llvm/${SLOT}/bin"
                # we need to duplicate it in ROOTPATH for Portage to respect...
                ROOTPATH="${EPREFIX}/usr/lib/llvm/${SLOT}/bin"
+               MANPATH="${EPREFIX}/usr/lib/llvm/${SLOT}/share/man"
                LDPATH="$( IFS=:; echo "${LLVM_LDPATHS[*]}" )"
 _EOF_
        doenvd "${T}/10llvm-${revord}"

Reply via email to