From 69c76ab560eae84bd631d6a5d91d1ed6641fd154 Mon Sep 17 00:00:00 2001 From: Dominik Schmidt Date: Thu, 26 Mar 2020 19:28:19 +0100 Subject: [PATCH] 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 Closes: https://github.com/gentoo/gentoo/pull/15128 Signed-off-by: Mikle Kolyada --- 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 5c4dec838d77..a415205e035f 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 -- 2.26.2