summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlexis Ballier <aballier@gentoo.org>2008-07-03 22:33:00 +0000
committerAlexis Ballier <aballier@gentoo.org>2008-07-03 22:33:00 +0000
commit6bd11e29ea6a1d252aa291641105b7f7a171e94e (patch)
treea7cf6f5ec305f83252458a8d1c5dda73102e3e12 /eclass/texlive-module.eclass
parentUnmask final www-client/opera-9.51 (bug #230633). (diff)
downloadgentoo-2-6bd11e29ea6a1d252aa291641105b7f7a171e94e.tar.gz
gentoo-2-6bd11e29ea6a1d252aa291641105b7f7a171e94e.tar.bz2
gentoo-2-6bd11e29ea6a1d252aa291641105b7f7a171e94e.zip
remove doc useflag from documentation packages, it does not make much sense for them, thanks to Pacho Ramos <pacho@condmat1.ciencias.uniovi.es>, bug #223617.
Diffstat (limited to 'eclass/texlive-module.eclass')
-rw-r--r--eclass/texlive-module.eclass6
1 files changed, 3 insertions, 3 deletions
diff --git a/eclass/texlive-module.eclass b/eclass/texlive-module.eclass
index 75b8e1ff20e0..bc57b0220ab7 100644
--- a/eclass/texlive-module.eclass
+++ b/eclass/texlive-module.eclass
@@ -1,6 +1,6 @@
# Copyright 1999-2008 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/eclass/texlive-module.eclass,v 1.9 2008/07/03 21:06:25 aballier Exp $
+# $Header: /var/cvsroot/gentoo-x86/eclass/texlive-module.eclass,v 1.10 2008/07/03 22:33:00 aballier Exp $
# @ECLASS: texlive-module.eclass
# @MAINTAINER:
@@ -51,7 +51,7 @@ fi
RDEPEND="${COMMON_DEPEND}"
-IUSE="doc"
+[ -z "${PN##*documentation*}" ] || IUSE="doc"
S="${WORKDIR}"
@@ -128,7 +128,7 @@ texlive-module_src_install() {
done
insinto /usr/share
- if use doc; then
+ if [ -z "${PN##*documentation*}" ] || use doc; then
[ -d texmf-doc ] && doins -r texmf-doc
else
[ -d texmf/doc ] && rm -rf texmf/doc