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@schm1dt.ch>
Closes: https://github.com/gentoo/gentoo/pull/15128
Signed-off-by: Mikle Kolyada <zlogene@gentoo.org>
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