| 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.9 2008/07/03 21:06:25 aballier Exp $ |
3 | # $Header: /var/cvsroot/gentoo-x86/eclass/texlive-module.eclass,v 1.10 2008/07/03 22:33:00 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 | # |
| … | |
… | |
| 49 | app-arch/lzma-utils" |
49 | app-arch/lzma-utils" |
| 50 | fi |
50 | fi |
| 51 | |
51 | |
| 52 | RDEPEND="${COMMON_DEPEND}" |
52 | RDEPEND="${COMMON_DEPEND}" |
| 53 | |
53 | |
| 54 | IUSE="doc" |
54 | [ -z "${PN##*documentation*}" ] || IUSE="doc" |
| 55 | |
55 | |
| 56 | S="${WORKDIR}" |
56 | S="${WORKDIR}" |
| 57 | |
57 | |
| 58 | # @FUNCTION: texlive-module_src_compile |
58 | # @FUNCTION: texlive-module_src_compile |
| 59 | # @DESCRIPTION: |
59 | # @DESCRIPTION: |
| … | |
… | |
| 126 | for i in texmf/fmtutil/format*.cnf; do |
126 | for i in texmf/fmtutil/format*.cnf; do |
| 127 | [ -f "${i}" ] && etexlinks "${i}" |
127 | [ -f "${i}" ] && etexlinks "${i}" |
| 128 | done |
128 | done |
| 129 | |
129 | |
| 130 | insinto /usr/share |
130 | insinto /usr/share |
| 131 | if use doc; then |
131 | if [ -z "${PN##*documentation*}" ] || use doc; then |
| 132 | [ -d texmf-doc ] && doins -r texmf-doc |
132 | [ -d texmf-doc ] && doins -r texmf-doc |
| 133 | else |
133 | else |
| 134 | [ -d texmf/doc ] && rm -rf texmf/doc |
134 | [ -d texmf/doc ] && rm -rf texmf/doc |
| 135 | [ -d texmf-dist/doc ] && rm -rf texmf-dist/doc |
135 | [ -d texmf-dist/doc ] && rm -rf texmf-dist/doc |
| 136 | fi |
136 | fi |