summaryrefslogtreecommitdiff
path: root/eclass
diff options
context:
space:
mode:
authorAlexis Ballier <aballier@gentoo.org>2008-07-14 16:42:48 +0000
committerAlexis Ballier <aballier@gentoo.org>2008-07-14 16:42:48 +0000
commit74565d338c71c4083672783d95696ea74519d928 (patch)
tree1df1e74b972d3c54e351d02de696820d0f4b03e5 /eclass
parentalpha/ia64/x86 stable wrt #231779 (diff)
downloadgentoo-2-74565d338c71c4083672783d95696ea74519d928.tar.gz
gentoo-2-74565d338c71c4083672783d95696ea74519d928.tar.bz2
gentoo-2-74565d338c71c4083672783d95696ea74519d928.zip
Add source useflag for texlive2008
Diffstat (limited to 'eclass')
-rw-r--r--eclass/texlive-module.eclass9
1 files changed, 6 insertions, 3 deletions
diff --git a/eclass/texlive-module.eclass b/eclass/texlive-module.eclass
index c68dd28253b5..d2de4a9cbe0e 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.11 2008/07/03 22:36:12 aballier Exp $
+# $Header: /var/cvsroot/gentoo-x86/eclass/texlive-module.eclass,v 1.12 2008/07/14 16:42:48 aballier Exp $
# @ECLASS: texlive-module.eclass
# @MAINTAINER:
@@ -34,6 +34,8 @@ HOMEPAGE="http://www.tug.org/texlive/"
COMMON_DEPEND=">=app-text/texlive-core-${PV}
${TEXLIVE_MODULES_DEPS}"
+IUSE=""
+
# TeX Live 2007 was providing .zip files of CTAN packages. For 2008 they are now
# .tar.lzma
if [ -z "${PV##2007*}" ] ; then
@@ -48,11 +50,12 @@ for i in ${TEXLIVE_MODULE_CONTENTS}; do
done
DEPEND="${COMMON_DEPEND}
app-arch/lzma-utils"
+IUSE="${IUSE} source"
fi
RDEPEND="${COMMON_DEPEND}"
-[ -z "${PN##*documentation*}" ] || IUSE="doc"
+[ -z "${PN##*documentation*}" ] || IUSE="${IUSE} doc"
S="${WORKDIR}"
@@ -138,7 +141,7 @@ texlive-module_src_install() {
[ -d texmf ] && doins -r texmf
[ -d texmf-dist ] && doins -r texmf-dist
- [ -d tlpkg ] && doins -r tlpkg
+ [ -n "${PV##2007*}" ] && [ -d tlpkg ] && use source && doins -r tlpkg
insinto /var/lib/texmf
[ -d texmf-var ] && doins -r texmf-var/*