Gentoo Archives: gentoo-commits

From: "Alexis Ballier (aballier)" <aballier@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] gentoo-x86 commit in eclass: texlive-module.eclass
Date: Thu, 07 Jan 2010 18:17:38
Message-Id: E1NSwvP-0001Tb-Nw@stork.gentoo.org
1 aballier 10/01/07 18:17:35
2
3 Modified: texlive-module.eclass
4 Log:
5 Add SRC_URI support for TeX Live 2009
6
7 Revision Changes Path
8 1.27 eclass/texlive-module.eclass
9
10 file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/eclass/texlive-module.eclass?rev=1.27&view=markup
11 plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/eclass/texlive-module.eclass?rev=1.27&content-type=text/plain
12 diff : http://sources.gentoo.org/viewcvs.py/gentoo-x86/eclass/texlive-module.eclass?r1=1.26&r2=1.27
13
14 Index: texlive-module.eclass
15 ===================================================================
16 RCS file: /var/cvsroot/gentoo-x86/eclass/texlive-module.eclass,v
17 retrieving revision 1.26
18 retrieving revision 1.27
19 diff -u -r1.26 -r1.27
20 --- texlive-module.eclass 12 Nov 2009 19:04:01 -0000 1.26
21 +++ texlive-module.eclass 7 Jan 2010 18:17:35 -0000 1.27
22 @@ -1,6 +1,6 @@
23 # Copyright 1999-2008 Gentoo Foundation
24 # Distributed under the terms of the GNU General Public License v2
25 -# $Header: /var/cvsroot/gentoo-x86/eclass/texlive-module.eclass,v 1.26 2009/11/12 19:04:01 aballier Exp $
26 +# $Header: /var/cvsroot/gentoo-x86/eclass/texlive-module.eclass,v 1.27 2010/01/07 18:17:35 aballier Exp $
27
28 # @ECLASS: texlive-module.eclass
29 # @MAINTAINER:
30 @@ -51,21 +51,28 @@
31
32 COMMON_DEPEND=">=app-text/texlive-core-${PV}"
33
34 -IUSE=""
35 +IUSE="source"
36 +
37 +# TeX Live 2008 was providing .tar.lzma files of CTAN packages. For 2009 they are now
38 +# .tar.xz
39 +if [ "${PV#2008}" != "${PV}" ]; then
40 + PKGEXT=tar.lzma
41 + DEPEND="${COMMON_DEPEND}
42 + || ( app-arch/xz-utils app-arch/lzma-utils )"
43 +else
44 + PKGEXT=tar.xz
45 + DEPEND="${COMMON_DEPEND}
46 + app-arch/xz-utils"
47 +fi
48
49 -# TeX Live 2007 was providing .zip files of CTAN packages. For 2008 they are now
50 -# .tar.lzma
51 for i in ${TEXLIVE_MODULE_CONTENTS}; do
52 - SRC_URI="${SRC_URI} mirror://gentoo/texlive-module-${i}-${PV}.tar.lzma"
53 + SRC_URI="${SRC_URI} mirror://gentoo/texlive-module-${i}-${PV}.${PKGEXT}"
54 done
55 -DEPEND="${COMMON_DEPEND}
56 - || ( app-arch/xz-utils app-arch/lzma-utils )"
57 -IUSE="${IUSE} source"
58
59 # Forge doc SRC_URI
60 [ -n "${PN##*documentation*}" ] && [ -n "${TEXLIVE_MODULE_DOC_CONTENTS}" ] && SRC_URI="${SRC_URI} doc? ("
61 for i in ${TEXLIVE_MODULE_DOC_CONTENTS}; do
62 - SRC_URI="${SRC_URI} mirror://gentoo/texlive-module-${i}-${PV}.tar.lzma"
63 + SRC_URI="${SRC_URI} mirror://gentoo/texlive-module-${i}-${PV}.${PKGEXT}"
64 done
65 [ -n "${PN##*documentation*}" ] && [ -n "${TEXLIVE_MODULE_DOC_CONTENTS}" ] && SRC_URI="${SRC_URI} )"
66
67 @@ -73,7 +80,7 @@
68 if [ -n "${TEXLIVE_MODULE_SRC_CONTENTS}" ] ; then
69 SRC_URI="${SRC_URI} source? ("
70 for i in ${TEXLIVE_MODULE_SRC_CONTENTS}; do
71 - SRC_URI="${SRC_URI} mirror://gentoo/texlive-module-${i}-${PV}.tar.lzma"
72 + SRC_URI="${SRC_URI} mirror://gentoo/texlive-module-${i}-${PV}.${PKGEXT}"
73 done
74 SRC_URI="${SRC_URI} )"
75 fi