| 1 | # Copyright 1999-2012 Gentoo Foundation |
1 | # Copyright 1999-2012 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.62 2012/07/26 16:30:37 aballier Exp $ |
3 | # $Header: /var/cvsroot/gentoo-x86/eclass/texlive-module.eclass,v 1.63 2012/07/26 16:40:47 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 | # @AUTHOR: |
8 | # @AUTHOR: |
| … | |
… | |
| 241 | texlive-module_src_compile() { |
241 | texlive-module_src_compile() { |
| 242 | # Generate config files from the tlpobj files provided by TeX Live 2008 and |
242 | # Generate config files from the tlpobj files provided by TeX Live 2008 and |
| 243 | # later |
243 | # later |
| 244 | for i in "${S}"/tlpkg/tlpobj/*; |
244 | for i in "${S}"/tlpkg/tlpobj/*; |
| 245 | do |
245 | do |
| 246 | grep '^execute ' "${i}" | sed -e 's/^execute //' | tr ' \t' '@@' |sort|uniq >> "${T}/jobs" |
246 | grep '^execute ' "${i}" | sed -e 's/^execute //' | tr ' \t' '##' |sort|uniq >> "${T}/jobs" |
| 247 | done |
247 | done |
| 248 | |
248 | |
| 249 | for i in $(<"${T}/jobs"); |
249 | for i in $(<"${T}/jobs"); |
| 250 | do |
250 | do |
| 251 | j="$(echo $i | tr '@' ' ')" |
251 | j="$(echo $i | tr '#' ' ')" |
| 252 | command=${j%% *} |
252 | command=${j%% *} |
| 253 | parameter=${j#* } |
253 | parameter=${j#* } |
| 254 | case "${command}" in |
254 | case "${command}" in |
| 255 | addMap) |
255 | addMap) |
| 256 | echo "Map ${parameter}" >> "${S}/${PN}.cfg";; |
256 | echo "Map ${parameter}" >> "${S}/${PN}.cfg";; |