mirror of
https://github.com/gentoo-mirror/gentoo.git
synced 2026-09-24 04:59:14 -07:00
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@schm1dt.ch>
Closes: https://github.com/gentoo/gentoo/pull/15128
Signed-off-by: Mikle Kolyada <zlogene@gentoo.org>
This commit is contained in:
committed by
Mikle Kolyada
parent
5cc0e7d586
commit
69c76ab560
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user