| 1 | # Copyright 1999-2002 Gentoo Technologies, Inc. |
1 | # Copyright 1999-2002 Gentoo Technologies, Inc. |
| 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 | # Author Matthew Turk <satai@gentoo.org> |
3 | # Author Matthew Turk <satai@gentoo.org> |
| 4 | # $Header: /var/cvsroot/gentoo-x86/eclass/latex-package.eclass,v 1.11 2002/11/05 03:58:33 satai Exp $ |
4 | # $Header: /var/cvsroot/gentoo-x86/eclass/latex-package.eclass,v 1.12 2003/02/08 03:09:16 satai Exp $ |
| 5 | # |
5 | # |
| 6 | # This eClass is designed to be easy to use and implement. The vast majority of |
6 | # This eClass is designed to be easy to use and implement. The vast majority of |
| 7 | # LaTeX packages will only need to define SRC_URI (and sometimes S) for a |
7 | # LaTeX packages will only need to define SRC_URI (and sometimes S) for a |
| 8 | # successful installation. If fonts need to be installed, then the variable |
8 | # successful installation. If fonts need to be installed, then the variable |
| 9 | # SUPPLIER must also be defined. |
9 | # SUPPLIER must also be defined. |
| … | |
… | |
| 86 | done |
86 | done |
| 87 | ;; |
87 | ;; |
| 88 | "tex" | "dtx") |
88 | "tex" | "dtx") |
| 89 | for i in `find . -maxdepth 1 -type f -name "*.${1}"` |
89 | for i in `find . -maxdepth 1 -type f -name "*.${1}"` |
| 90 | do |
90 | do |
| 91 | echo "Making documentation: $i" |
91 | einfo "Making documentation: $i" |
| 92 | texi2dvi -q -c --language=latex $i &> /dev/null |
92 | texi2dvi -q -c --language=latex $i &> /dev/null |
| 93 | done |
93 | done |
| 94 | ;; |
94 | ;; |
| 95 | "tfm" | "vf" | "afm" | "pfb") |
95 | "tfm" | "vf" | "afm" | "pfb") |
| 96 | for i in `find . -maxdepth 1 -type f -name "*.${1}"` |
96 | for i in `find . -maxdepth 1 -type f -name "*.${1}"` |
| … | |
… | |
| 129 | latex-package_src_compile() { |
129 | latex-package_src_compile() { |
| 130 | debug-print function $FUNCNAME $* |
130 | debug-print function $FUNCNAME $* |
| 131 | cd ${S} |
131 | cd ${S} |
| 132 | for i in `find \`pwd\` -maxdepth 1 -type f -name "*.ins"` |
132 | for i in `find \`pwd\` -maxdepth 1 -type f -name "*.ins"` |
| 133 | do |
133 | do |
| 134 | echo "Extracting from $i" |
134 | einfo "Extracting from $i" |
| 135 | latex --interaction=batchmode $i > /dev/null |
135 | latex --interaction=batchmode $i &> /dev/null |
| 136 | done |
136 | done |
| 137 | } |
137 | } |
| 138 | |
138 | |
| 139 | latex-package_src_install() { |
139 | latex-package_src_install() { |
| 140 | debug-print function $FUNCNAME $* |
140 | debug-print function $FUNCNAME $* |