/[gentoo-x86]/eclass/texlive-module.eclass
Gentoo

Diff of /eclass/texlive-module.eclass

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

Revision 1.21 Revision 1.22
1# Copyright 1999-2008 Gentoo Foundation 1# Copyright 1999-2008 Gentoo Foundation
2# Distributed under the terms of the GNU General Public License v2 2# Distributed under the terms of the GNU General Public License v2
3# $Header: /var/cvsroot/gentoo-x86/eclass/texlive-module.eclass,v 1.21 2009/06/08 10:05:04 aballier Exp $ 3# $Header: /var/cvsroot/gentoo-x86/eclass/texlive-module.eclass,v 1.22 2009/06/21 10:34:44 aballier Exp $
4 4
5# @ECLASS: texlive-module.eclass 5# @ECLASS: texlive-module.eclass
6# @MAINTAINER: 6# @MAINTAINER:
7# tex@gentoo.org 7# tex@gentoo.org
8# 8#
53 53
54IUSE="" 54IUSE=""
55 55
56# TeX Live 2007 was providing .zip files of CTAN packages. For 2008 they are now 56# TeX Live 2007 was providing .zip files of CTAN packages. For 2008 they are now
57# .tar.lzma 57# .tar.lzma
58if [ -z "${PV##2007*}" ] ; then
59for i in ${TEXLIVE_MODULE_CONTENTS}; do
60 SRC_URI="${SRC_URI} mirror://gentoo/texlive-module-${i}-${PV}.zip"
61done
62COMMON_DEPEND="${COMMON_DEPEND}
63 ${TEXLIVE_MODULES_DEPS}"
64DEPEND="${COMMON_DEPEND}
65 app-arch/unzip"
66else
67for i in ${TEXLIVE_MODULE_CONTENTS}; do 58for i in ${TEXLIVE_MODULE_CONTENTS}; do
68 SRC_URI="${SRC_URI} mirror://gentoo/texlive-module-${i}-${PV}.tar.lzma" 59 SRC_URI="${SRC_URI} mirror://gentoo/texlive-module-${i}-${PV}.tar.lzma"
69done 60done
70DEPEND="${COMMON_DEPEND} 61DEPEND="${COMMON_DEPEND}
71 app-arch/lzma-utils" 62 app-arch/lzma-utils"
83 SRC_URI="${SRC_URI} source? (" 74 SRC_URI="${SRC_URI} source? ("
84 for i in ${TEXLIVE_MODULE_SRC_CONTENTS}; do 75 for i in ${TEXLIVE_MODULE_SRC_CONTENTS}; do
85 SRC_URI="${SRC_URI} mirror://gentoo/texlive-module-${i}-${PV}.tar.lzma" 76 SRC_URI="${SRC_URI} mirror://gentoo/texlive-module-${i}-${PV}.tar.lzma"
86 done 77 done
87 SRC_URI="${SRC_URI} )" 78 SRC_URI="${SRC_URI} )"
88fi
89fi 79fi
90 80
91RDEPEND="${COMMON_DEPEND}" 81RDEPEND="${COMMON_DEPEND}"
92 82
93[ -z "${PN##*documentation*}" ] || IUSE="${IUSE} doc" 83[ -z "${PN##*documentation*}" ] || IUSE="${IUSE} doc"
157 fi 147 fi
158 done 148 done
159 149
160 # Generate config files 150 # Generate config files
161 # TeX Live 2007 was providing lists. For 2008 they are now tlpobj. 151 # TeX Live 2007 was providing lists. For 2008 they are now tlpobj.
162 if [ -z "${PV##2007*}" ] ; then
163 for i in "${S}"/texmf/lists/*;
164 do
165 grep '^!' "${i}" | sed -e 's/^!//' | tr ' ' '@' |sort|uniq >> "${T}/jobs"
166 done
167 else
168 for i in "${S}"/tlpkg/tlpobj/*; 152 for i in "${S}"/tlpkg/tlpobj/*;
169 do 153 do
170 grep '^execute ' "${i}" | sed -e 's/^execute //' | tr ' ' '@' |sort|uniq >> "${T}/jobs" 154 grep '^execute ' "${i}" | sed -e 's/^execute //' | tr ' ' '@' |sort|uniq >> "${T}/jobs"
171 done 155 done
172 fi
173 156
174 for i in $(<"${T}/jobs"); 157 for i in $(<"${T}/jobs");
175 do 158 do
176 j="$(echo $i | tr '@' ' ')" 159 j="$(echo $i | tr '@' ' ')"
177 command=${j%% *} 160 command=${j%% *}
216 [ -d texmf-dist/doc ] && rm -rf texmf-dist/doc 199 [ -d texmf-dist/doc ] && rm -rf texmf-dist/doc
217 fi 200 fi
218 201
219 [ -d texmf ] && cp -pR texmf "${D}/usr/share/" 202 [ -d texmf ] && cp -pR texmf "${D}/usr/share/"
220 [ -d texmf-dist ] && cp -pR texmf-dist "${D}/usr/share/" 203 [ -d texmf-dist ] && cp -pR texmf-dist "${D}/usr/share/"
221 [ -n "${PV##2007*}" ] && [ -d tlpkg ] && use source && cp -pR tlpkg "${D}/usr/share/" 204 [ -d tlpkg ] && use source && cp -pR tlpkg "${D}/usr/share/"
222 205
223 insinto /var/lib/texmf 206 insinto /var/lib/texmf
224 [ -d texmf-var ] && doins -r texmf-var/* 207 [ -d texmf-var ] && doins -r texmf-var/*
225 208
226 insinto /etc/texmf/updmap.d 209 insinto /etc/texmf/updmap.d

Legend:
Removed from v.1.21  
changed lines
  Added in v.1.22

  ViewVC Help
Powered by ViewVC 1.1.20