/[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.29 Revision 1.30
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.29 2010/01/07 19:13:01 aballier Exp $ 3# $Header: /var/cvsroot/gentoo-x86/eclass/texlive-module.eclass,v 1.30 2010/01/07 19:16:52 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#
170# The next step is to generate config files that are to be installed in 170# The next step is to generate config files that are to be installed in
171# /etc/texmf; texmf-update script will take care of merging the different config 171# /etc/texmf; texmf-update script will take care of merging the different config
172# files for different packages in a single one used by the whole tex installation. 172# files for different packages in a single one used by the whole tex installation.
173 173
174texlive-module_src_compile() { 174texlive-module_src_compile() {
175 # Build format files
176 for i in texmf/fmtutil/format*.cnf; do
177 if [ -f "${i}" ]; then
178 einfo "Building format ${i}"
179 VARTEXFONTS="${T}/fonts" TEXMFHOME="${S}/texmf:${S}/texmf-dist:${S}/texmf-var"\
180 env -u TEXINPUTS fmtutil --cnffile "${i}" --fmtdir "${S}/texmf-var/web2c" --all\
181 || die "failed to build format ${i}"
182 fi
183 done
184
185 # Generate config files 175 # Generate config files
186 # TeX Live 2007 was providing lists. For 2008 they are now tlpobj. 176 # TeX Live 2007 was providing lists. For 2008 they are now tlpobj.
187 for i in "${S}"/tlpkg/tlpobj/*; 177 for i in "${S}"/tlpkg/tlpobj/*;
188 do 178 do
189 grep '^execute ' "${i}" | sed -e 's/^execute //' | tr ' ' '@' |sort|uniq >> "${T}/jobs" 179 grep '^execute ' "${i}" | sed -e 's/^execute //' | tr ' ' '@' |sort|uniq >> "${T}/jobs"
213 *) 203 *)
214 die "No rule to proccess ${command}. Please file a bug." 204 die "No rule to proccess ${command}. Please file a bug."
215 esac 205 esac
216 done 206 done
217 207
208 # Build format files
209 for i in texmf/fmtutil/format*.cnf; do
210 if [ -f "${i}" ]; then
211 einfo "Building format ${i}"
212 VARTEXFONTS="${T}/fonts" TEXMFHOME="${S}/texmf:${S}/texmf-dist:${S}/texmf-var"\
213 env -u TEXINPUTS fmtutil --cnffile "${i}" --fmtdir "${S}/texmf-var/web2c" --all\
214 || die "failed to build format ${i}"
215 fi
216 done
217
218 # Delete ls-R files, these should not be created but better be certain they 218 # Delete ls-R files, these should not be created but better be certain they
219 # do not end up being installed. 219 # do not end up being installed.
220 find . -name 'ls-R' -delete 220 find . -name 'ls-R' -delete
221} 221}
222 222

Legend:
Removed from v.1.29  
changed lines
  Added in v.1.30

  ViewVC Help
Powered by ViewVC 1.1.20