| 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-common.eclass,v 1.4 2008/02/14 09:02:11 aballier Exp $ |
3 | # $Header: /var/cvsroot/gentoo-x86/eclass/texlive-common.eclass,v 1.5 2008/07/03 21:01:53 aballier Exp $ |
| 4 | |
4 | |
| 5 | # @ECLASS: texlive-common.eclass |
5 | # @ECLASS: texlive-common.eclass |
| 6 | # @MAINTAINER: |
6 | # @MAINTAINER: |
| 7 | # tex@gentoo.org |
7 | # tex@gentoo.org |
| 8 | # |
8 | # |
| … | |
… | |
| 26 | # from their original location. This is to allow easy update of texlive's |
26 | # from their original location. This is to allow easy update of texlive's |
| 27 | # configuration |
27 | # configuration |
| 28 | |
28 | |
| 29 | texlive-common_handle_config_files() { |
29 | texlive-common_handle_config_files() { |
| 30 | # Handle config files properly |
30 | # Handle config files properly |
|
|
31 | [ -d "${D}${TEXMF_PATH}" ] || return |
| 31 | cd "${D}${TEXMF_PATH}" |
32 | cd "${D}${TEXMF_PATH}" |
| 32 | for f in $(find . -name '*.cnf' -o -name '*.cfg' -type f | sed -e "s:\./::g") ; do |
33 | for f in $(find . -name '*.cnf' -o -name '*.cfg' -type f | sed -e "s:\./::g") ; do |
| 33 | if [ "${f#*config}" != "${f}" ] ; then |
34 | if [ "${f#*config}" != "${f}" ] ; then |
| 34 | continue |
35 | continue |
| 35 | fi |
36 | fi |