diff options
Diffstat (limited to 'eclass')
-rw-r--r-- | eclass/texlive-module.eclass | 12 |
1 files changed, 9 insertions, 3 deletions
diff --git a/eclass/texlive-module.eclass b/eclass/texlive-module.eclass index e37e949b1801..ced185a543d5 100644 --- a/eclass/texlive-module.eclass +++ b/eclass/texlive-module.eclass @@ -1,6 +1,6 @@ # Copyright 1999-2004 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 -# $Header: /var/cvsroot/gentoo-x86/eclass/texlive-module.eclass,v 1.3 2007/10/20 12:51:25 aballier Exp $ +# $Header: /var/cvsroot/gentoo-x86/eclass/texlive-module.eclass,v 1.4 2007/10/20 17:15:24 aballier Exp $ # # Original Author: Alexis Ballier <aballier@gentoo.org> @@ -86,10 +86,16 @@ texlive-module_src_install() { done insinto /usr/share + if use doc; then + [ -d texmf-doc ] && doins -r texmf-doc + else + [ -d texmf/doc ] && rm -rf texmf/doc + [ -d texmf-dist/doc ] && rm -rf texmf-dist/doc + fi + [ -d texmf ] && doins -r texmf [ -d texmf-dist ] && doins -r texmf-dist - use doc && [ -d texmf-doc ] && doins -r texmf-doc - + TEXMFSYSVAR="$(kpsewhich -var-value=TEXMFSYSVAR)" insinto "${TEXMFSYSVAR}" [ -d texmf-var ] && doins -r texmf-var/* |