commit:     69c76ab560eae84bd631d6a5d91d1ed6641fd154
Author:     Dominik Schmidt <dominik <AT> schm1dt <DOT> ch>
AuthorDate: Thu Mar 26 18:28:19 2020 +0000
Commit:     Mikle Kolyada <zlogene <AT> gentoo <DOT> org>
CommitDate: Fri Mar 27 07:39:26 2020 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=69c76ab5

texlive-module.eclass: fix doc installation

If the package does not create ${WORKDIR}/texmf-doc, then the eclass assumes
that no documentation should be installed.
This is assumption is incorrect, since the documentation tar-balls can put the
docs into texmf-dist and not texmf-doc, as happens with e.g. 
texlive-mathscience.
As a result, the documentation files are not installed anymore.

Bug: https://bugs.gentoo.org/714908
Signed-off-by: Dominik Schmidt <dominik <AT> schm1dt.ch>
Closes: https://github.com/gentoo/gentoo/pull/15128
Signed-off-by: Mikle Kolyada <zlogene <AT> gentoo.org>

 eclass/texlive-module.eclass | 6 ++++--
 1 file changed, 4 insertions(+), 2 deletions(-)

diff --git a/eclass/texlive-module.eclass b/eclass/texlive-module.eclass
index 5c4dec838d7..a415205e035 100644
--- a/eclass/texlive-module.eclass
+++ b/eclass/texlive-module.eclass
@@ -350,8 +350,10 @@ texlive-module_src_install() {
        done
 
        dodir /usr/share
-       if use doc && [[ -d texmf-doc ]]; then
-               cp -pR texmf-doc "${ED}/usr/share/" || die
+       if use doc; then
+               if [[ -d texmf-doc ]]; then
+                       cp -pR texmf-doc "${ED}/usr/share/" || die
+               fi
        else
                if [[ -d texmf-dist/doc ]]; then
                        rm -rf texmf-dist/doc || die

Reply via email to