summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlexis Ballier <aballier@gentoo.org>2010-01-07 18:17:35 +0000
committerAlexis Ballier <aballier@gentoo.org>2010-01-07 18:17:35 +0000
commit57f40e43377b99348b68196c2fd781f0da8b0285 (patch)
tree09909b01cf49c22f049891576db93eaba94e042d
parentamd64 stable, bug 285475 (diff)
downloadgentoo-2-57f40e43377b99348b68196c2fd781f0da8b0285.tar.gz
gentoo-2-57f40e43377b99348b68196c2fd781f0da8b0285.tar.bz2
gentoo-2-57f40e43377b99348b68196c2fd781f0da8b0285.zip
Add SRC_URI support for TeX Live 2009
-rw-r--r--eclass/texlive-module.eclass27
1 files changed, 17 insertions, 10 deletions
diff --git a/eclass/texlive-module.eclass b/eclass/texlive-module.eclass
index 6fe0887afeb4..e58142e23c6a 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.26 2009/11/12 19:04:01 aballier Exp $
+# $Header: /var/cvsroot/gentoo-x86/eclass/texlive-module.eclass,v 1.27 2010/01/07 18:17:35 aballier Exp $
# @ECLASS: texlive-module.eclass
# @MAINTAINER:
@@ -51,21 +51,28 @@ HOMEPAGE="http://www.tug.org/texlive/"
COMMON_DEPEND=">=app-text/texlive-core-${PV}"
-IUSE=""
+IUSE="source"
+
+# TeX Live 2008 was providing .tar.lzma files of CTAN packages. For 2009 they are now
+# .tar.xz
+if [ "${PV#2008}" != "${PV}" ]; then
+ PKGEXT=tar.lzma
+ DEPEND="${COMMON_DEPEND}
+ || ( app-arch/xz-utils app-arch/lzma-utils )"
+else
+ PKGEXT=tar.xz
+ DEPEND="${COMMON_DEPEND}
+ app-arch/xz-utils"
+fi
-# TeX Live 2007 was providing .zip files of CTAN packages. For 2008 they are now
-# .tar.lzma
for i in ${TEXLIVE_MODULE_CONTENTS}; do
- SRC_URI="${SRC_URI} mirror://gentoo/texlive-module-${i}-${PV}.tar.lzma"
+ SRC_URI="${SRC_URI} mirror://gentoo/texlive-module-${i}-${PV}.${PKGEXT}"
done
-DEPEND="${COMMON_DEPEND}
- || ( app-arch/xz-utils app-arch/lzma-utils )"
-IUSE="${IUSE} source"
# Forge doc SRC_URI
[ -n "${PN##*documentation*}" ] && [ -n "${TEXLIVE_MODULE_DOC_CONTENTS}" ] && SRC_URI="${SRC_URI} doc? ("
for i in ${TEXLIVE_MODULE_DOC_CONTENTS}; do
- SRC_URI="${SRC_URI} mirror://gentoo/texlive-module-${i}-${PV}.tar.lzma"
+ SRC_URI="${SRC_URI} mirror://gentoo/texlive-module-${i}-${PV}.${PKGEXT}"
done
[ -n "${PN##*documentation*}" ] && [ -n "${TEXLIVE_MODULE_DOC_CONTENTS}" ] && SRC_URI="${SRC_URI} )"
@@ -73,7 +80,7 @@ done
if [ -n "${TEXLIVE_MODULE_SRC_CONTENTS}" ] ; then
SRC_URI="${SRC_URI} source? ("
for i in ${TEXLIVE_MODULE_SRC_CONTENTS}; do
- SRC_URI="${SRC_URI} mirror://gentoo/texlive-module-${i}-${PV}.tar.lzma"
+ SRC_URI="${SRC_URI} mirror://gentoo/texlive-module-${i}-${PV}.${PKGEXT}"
done
SRC_URI="${SRC_URI} )"
fi