| 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.10 2010/01/08 15:19:20 aballier Exp $ |
3 | # $Header: /var/cvsroot/gentoo-x86/eclass/texlive-common.eclass,v 1.11 2010/01/09 16:01:52 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 | # |
| … | |
… | |
| 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 | [ -d "${D}${TEXMF_PATH}" ] || return |
| 32 | cd "${D}${TEXMF_PATH}" |
32 | cd "${D}${TEXMF_PATH}" |
| 33 | 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 |
| 34 | if [ "${f#*config}" != "${f}" ] ; then |
34 | if [ "${f#*config}" != "${f}" -o "${f#doc}" != "${f}" ] ; then |
| 35 | continue |
35 | continue |
| 36 | fi |
36 | fi |
| 37 | dodir /etc/texmf/$(dirname ${f}).d |
37 | dodir /etc/texmf/$(dirname ${f}).d |
| 38 | einfo "Moving (and symlinking) ${TEXMF_PATH}/${f} to /etc/texmf/$(dirname ${f}).d" |
38 | einfo "Moving (and symlinking) ${TEXMF_PATH}/${f} to /etc/texmf/$(dirname ${f}).d" |
| 39 | mv "${D}/${TEXMF_PATH}/${f}" "${D}/etc/texmf/$(dirname ${f}).d" || die "mv ${f} failed." |
39 | mv "${D}/${TEXMF_PATH}/${f}" "${D}/etc/texmf/$(dirname ${f}).d" || die "mv ${f} failed." |