diff options
author | Alexis Ballier <aballier@gentoo.org> | 2007-10-20 17:15:24 +0000 |
---|---|---|
committer | Alexis Ballier <aballier@gentoo.org> | 2007-10-20 17:15:24 +0000 |
commit | fe131a3e39b071910d55a0061a9f121d983810fa (patch) | |
tree | 9ceeede6a6e4a9dd0834f14045bf195323ce3d26 /eclass | |
parent | fix #82311, #193492, #194415, #194546, #194828, #195792 (diff) | |
download | gentoo-2-fe131a3e39b071910d55a0061a9f121d983810fa.tar.gz gentoo-2-fe131a3e39b071910d55a0061a9f121d983810fa.tar.bz2 gentoo-2-fe131a3e39b071910d55a0061a9f121d983810fa.zip |
also remove texmf/doc directory if doc useflag is not set, will save much more space if you dont want the documention
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/* |