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, 03 Jul 2008 21:06:31
Message-Id: E1KEW0X-00009E-G7@stork.gentoo.org
1 aballier 08/07/03 21:06:25
2
3 Modified: texlive-module.eclass
4 Log:
5 start to make room for TeX Live 2008 and simplify the jobs parser.
6
7 Revision Changes Path
8 1.9 eclass/texlive-module.eclass
9
10 file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/eclass/texlive-module.eclass?rev=1.9&view=markup
11 plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/eclass/texlive-module.eclass?rev=1.9&content-type=text/plain
12 diff : http://sources.gentoo.org/viewcvs.py/gentoo-x86/eclass/texlive-module.eclass?r1=1.8&r2=1.9
13
14 Index: texlive-module.eclass
15 ===================================================================
16 RCS file: /var/cvsroot/gentoo-x86/eclass/texlive-module.eclass,v
17 retrieving revision 1.8
18 retrieving revision 1.9
19 diff -u -r1.8 -r1.9
20 --- texlive-module.eclass 14 Feb 2008 09:02:11 -0000 1.8
21 +++ texlive-module.eclass 3 Jul 2008 21:06:25 -0000 1.9
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.8 2008/02/14 09:02:11 aballier Exp $
26 +# $Header: /var/cvsroot/gentoo-x86/eclass/texlive-module.eclass,v 1.9 2008/07/03 21:06:25 aballier Exp $
27
28 # @ECLASS: texlive-module.eclass
29 # @MAINTAINER:
30 @@ -30,15 +30,24 @@
31
32 HOMEPAGE="http://www.tug.org/texlive/"
33
34 -for i in ${TEXLIVE_MODULE_CONTENTS}; do
35 - SRC_URI="${SRC_URI} mirror://gentoo/texlive-module-${i}-${PV}.zip"
36 -done
37 -
38 COMMON_DEPEND=">=app-text/texlive-core-${PV}
39 ${TEXLIVE_MODULES_DEPS}"
40
41 +# TeX Live 2007 was providing .zip files of CTAN packages. For 2008 they are now
42 +# .tar.lzma
43 +if [ -z "${PV##2007*}" ] ; then
44 +for i in ${TEXLIVE_MODULE_CONTENTS}; do
45 + SRC_URI="${SRC_URI} mirror://gentoo/texlive-module-${i}-${PV}.zip"
46 +done
47 DEPEND="${COMMON_DEPEND}
48 app-arch/unzip"
49 +else
50 +for i in ${TEXLIVE_MODULE_CONTENTS}; do
51 + SRC_URI="${SRC_URI} mirror://gentoo/texlive-module-${i}-${PV}.tar.lzma"
52 +done
53 +DEPEND="${COMMON_DEPEND}
54 + app-arch/lzma-utils"
55 +fi
56
57 RDEPEND="${COMMON_DEPEND}"
58
59 @@ -69,15 +78,24 @@
60 done
61
62 # Generate config files
63 + # TeX Live 2007 was providing lists. For 2008 they are now tlpobj.
64 + if [ -z "${PV##2007*}" ] ; then
65 for i in "${S}"/texmf/lists/*;
66 do
67 - grep '^!' "${i}" | tr ' ' '=' |sort|uniq >> "${T}/jobs"
68 + grep '^!' "${i}" | sed -e 's/^!//' | tr ' ' '@' |sort|uniq >> "${T}/jobs"
69 done
70 + else
71 + for i in "${S}"/tlpkg/tlpobj/*;
72 + do
73 + grep '^execute ' "${i}" | sed -e 's/^execute //' | tr ' ' '@' |sort|uniq >> "${T}/jobs"
74 + done
75 + fi
76
77 - for j in $(<"${T}/jobs");
78 + for i in $(<"${T}/jobs");
79 do
80 - command=$(echo ${j} | sed 's/.\(.*\)=.*/\1/')
81 - parameter=$(echo ${j} | sed 's/.*=\(.*\)/\1/')
82 + j="$(echo $i | tr '@' ' ')"
83 + command=${j%% *}
84 + parameter=${j#* }
85 case "${command}" in
86 addMap)
87 echo "Map ${parameter}" >> "${S}/${PN}.cfg";;
88 @@ -87,6 +105,14 @@
89 echo "p +${parameter}" >> "${S}/${PN}-config.ps";;
90 addDvipdfmMap)
91 echo "f ${parameter}" >> "${S}/${PN}-config";;
92 + AddHyphen)
93 + ewarn "Sorry, $command not implemented yet.";;
94 + BuildFormat)
95 + elog "Format $parameter already built.";;
96 + BuildLanguageDat)
97 + elog "Language file $parameter already generated.";;
98 + *)
99 + die "No rule to proccess ${command}. Please file a bug."
100 esac
101 done
102 }
103 @@ -111,6 +137,7 @@
104
105 [ -d texmf ] && doins -r texmf
106 [ -d texmf-dist ] && doins -r texmf-dist
107 + [ -d tlpkg ] && doins -r tlpkg
108
109 insinto /var/lib/texmf
110 [ -d texmf-var ] && doins -r texmf-var/*
111
112
113
114 --
115 gentoo-commits@l.g.o mailing list