| 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/latex-package.eclass,v 1.37 2008/08/30 13:49:28 aballier Exp $ |
3 | # $Header: /var/cvsroot/gentoo-x86/eclass/latex-package.eclass,v 1.38 2009/01/11 21:46:39 ulm Exp $ |
| 4 | |
4 | |
| 5 | # @ECLASS: latex-package.eclass |
5 | # @ECLASS: latex-package.eclass |
| 6 | # @MAINTAINER: |
6 | # @MAINTAINER: |
| 7 | # TeX team <tex@gentoo.org> |
7 | # TeX team <tex@gentoo.org> |
| 8 | # |
8 | # |
| 9 | # Author Matthew Turk <satai@gentoo.org> |
9 | # Author Matthew Turk <satai@gentoo.org> |
| 10 | # Martin Ehmsen <ehmsen@gentoo.org> |
10 | # Martin Ehmsen <ehmsen@gentoo.org> |
| 11 | # @BLURB: An eclass for easy installation of LaTeX packages |
11 | # @BLURB: An eclass for easy installation of LaTeX packages |
| 12 | # @DESCRIPTION: |
12 | # @DESCRIPTION: |
| 13 | # This eClass is designed to be easy to use and implement. The vast majority of |
13 | # This eClass is designed to be easy to use and implement. The vast majority of |
| … | |
… | |
| 65 | |
65 | |
| 66 | # @ECLASS-VARIABLE: SUPPLIER |
66 | # @ECLASS-VARIABLE: SUPPLIER |
| 67 | # @DESCRIPTION: |
67 | # @DESCRIPTION: |
| 68 | # This refers to the font supplier; it should be overridden (see eclass |
68 | # This refers to the font supplier; it should be overridden (see eclass |
| 69 | # DESCRIPTION above) |
69 | # DESCRIPTION above) |
| 70 | SUPPLIER="misc" |
70 | SUPPLIER="misc" |
| 71 | |
71 | |
| 72 | # @FUNCTION: latex-package_has_tetex3 |
72 | # @FUNCTION: latex-package_has_tetex3 |
| 73 | # @RETURN: true if at least one of (>=tetex-3 or >=ptex-3.1.8 or >=texlive-core-2007) is installed, else false |
73 | # @RETURN: true if at least one of (>=tetex-3 or >=ptex-3.1.8 or >=texlive-core-2007) is installed, else false |
| 74 | # @DESCRIPTION: |
74 | # @DESCRIPTION: |
| 75 | # It is often used to know if the current TeX installation supports gentoo's |
75 | # It is often used to know if the current TeX installation supports gentoo's |
| … | |
… | |
| 197 | if [ -n "${DOCS}" ] ; then |
197 | if [ -n "${DOCS}" ] ; then |
| 198 | dodoc ${DOCS} |
198 | dodoc ${DOCS} |
| 199 | fi |
199 | fi |
| 200 | } |
200 | } |
| 201 | |
201 | |
| 202 | # @FUNCTION: latex-pacakge_pkg_postinst |
202 | # @FUNCTION: latex-package_pkg_postinst |
| 203 | # @DESCRIPTION: |
203 | # @DESCRIPTION: |
| 204 | # Calls latex-package_rehash to ensure the TeX installation is consistent with |
204 | # Calls latex-package_rehash to ensure the TeX installation is consistent with |
| 205 | # the kpathsea database |
205 | # the kpathsea database |
| 206 | latex-package_pkg_postinst() { |
206 | latex-package_pkg_postinst() { |
| 207 | debug-print function $FUNCNAME $* |
207 | debug-print function $FUNCNAME $* |