| 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.19 2008/10/31 15:16:28 aballier Exp $ |
3 | # $Header: /var/cvsroot/gentoo-x86/eclass/texlive-module.eclass,v 1.20 2008/11/06 19:02:41 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 | # |
| … | |
… | |
| 206 | texlive-module_src_install() { |
206 | texlive-module_src_install() { |
| 207 | for i in texmf/fmtutil/format*.cnf; do |
207 | for i in texmf/fmtutil/format*.cnf; do |
| 208 | [ -f "${i}" ] && etexlinks "${i}" |
208 | [ -f "${i}" ] && etexlinks "${i}" |
| 209 | done |
209 | done |
| 210 | |
210 | |
| 211 | insinto /usr/share |
211 | dodir /usr/share |
| 212 | if [ -z "${PN##*documentation*}" ] || use doc; then |
212 | if [ -z "${PN##*documentation*}" ] || use doc; then |
| 213 | [ -d texmf-doc ] && doins -r texmf-doc |
213 | [ -d texmf-doc ] && cp -pR texmf-doc "${D}/usr/share/" |
| 214 | else |
214 | else |
| 215 | [ -d texmf/doc ] && rm -rf texmf/doc |
215 | [ -d texmf/doc ] && rm -rf texmf/doc |
| 216 | [ -d texmf-dist/doc ] && rm -rf texmf-dist/doc |
216 | [ -d texmf-dist/doc ] && rm -rf texmf-dist/doc |
| 217 | fi |
217 | fi |
| 218 | |
218 | |
| 219 | [ -d texmf ] && doins -r texmf |
219 | [ -d texmf ] && cp -pR texmf "${D}/usr/share/" |
| 220 | [ -d texmf-dist ] && doins -r texmf-dist |
220 | [ -d texmf-dist ] && cp -pR texmf-dist "${D}/usr/share/" |
| 221 | [ -n "${PV##2007*}" ] && [ -d tlpkg ] && use source && doins -r tlpkg |
221 | [ -n "${PV##2007*}" ] && [ -d tlpkg ] && use source && cp -pR tlpkg "${D}/usr/share/" |
| 222 | |
222 | |
| 223 | insinto /var/lib/texmf |
223 | insinto /var/lib/texmf |
| 224 | [ -d texmf-var ] && doins -r texmf-var/* |
224 | [ -d texmf-var ] && doins -r texmf-var/* |
| 225 | |
225 | |
| 226 | insinto /etc/texmf/updmap.d |
226 | insinto /etc/texmf/updmap.d |