summaryrefslogtreecommitdiff
path: root/eclass
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
commita2e74971ff519bd93bc0aa4da06d97cbc9310dde (patch)
treee3aedad75cf9a40e67ec9264effd7d08c0a08464 /eclass
parentamd64 stable, bug 285475 (diff)
downloadhistorical-a2e74971ff519bd93bc0aa4da06d97cbc9310dde.tar.gz
historical-a2e74971ff519bd93bc0aa4da06d97cbc9310dde.tar.bz2
historical-a2e74971ff519bd93bc0aa4da06d97cbc9310dde.zip
Add SRC_URI support for TeX Live 2009
Diffstat (limited to 'eclass')
-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