sys-devel/llvm: Include MANPATH in env.d file
authorMichał Górny <mgorny@gentoo.org>
Thu, 6 Apr 2017 06:42:33 +0000 (08:42 +0200)
committerMichał Górny <mgorny@gentoo.org>
Thu, 6 Apr 2017 12:47:54 +0000 (14:47 +0200)
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-r1.ebuild [moved from sys-devel/llvm/llvm-4.0.0.ebuild with 99% similarity]
sys-devel/llvm/llvm-9999.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 f7f8e7c7456ef276608b62d4ec2eefc3dea679a3..1384df1a119157b58b2829d1195157f9177f5dd7 100644 (file)
@@ -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}"
index cdba7b1daf4e81b29bae8eef7e26ab2ebb5eb6b2..16413680bdfe393e5a8efe513ff2e3865b2bb3f4 100644 (file)
@@ -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}"