| 1 | # Copyright 1999-2003 Gentoo Technologies, Inc. |
1 | # Copyright 1999-2003 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 | # $Header: /var/cvsroot/gentoo-x86/eclass/latex-package.eclass,v 1.15 2003/09/09 01:06:09 usata Exp $ |
3 | # $Header: /var/cvsroot/gentoo-x86/eclass/latex-package.eclass,v 1.16 2004/03/27 19:08:16 usata Exp $ |
| 4 | # |
4 | # |
| 5 | # Author Matthew Turk <satai@gentoo.org> |
5 | # Author Matthew Turk <satai@gentoo.org> |
| 6 | # |
6 | # |
| 7 | # This eClass is designed to be easy to use and implement. The vast majority of |
7 | # This eClass is designed to be easy to use and implement. The vast majority of |
| 8 | # LaTeX packages will only need to define SRC_URI (and sometimes S) for a |
8 | # LaTeX packages will only need to define SRC_URI (and sometimes S) for a |
| … | |
… | |
| 105 | do |
105 | do |
| 106 | insinto ${TEXMF}/fonts/truetype/${SUPPLIER}/${PN} |
106 | insinto ${TEXMF}/fonts/truetype/${SUPPLIER}/${PN} |
| 107 | doins $i |
107 | doins $i |
| 108 | done |
108 | done |
| 109 | ;; |
109 | ;; |
|
|
110 | "bst") |
|
|
111 | for i in `find . -maxdepth 1 -type f -name "*.bst"` |
|
|
112 | do |
|
|
113 | insinto ${TEXMF}/bibtex/bst/${PN} |
|
|
114 | doins $i |
|
|
115 | done |
|
|
116 | ;; |
| 110 | "styles") |
117 | "styles") |
| 111 | latex-package_src_doinstall sty cls fd clo def |
118 | latex-package_src_doinstall sty cls fd clo def bst |
| 112 | ;; |
119 | ;; |
| 113 | "doc") |
120 | "doc") |
| 114 | latex-package_src_doinstall tex dtx dvi ps pdf |
121 | latex-package_src_doinstall tex dtx dvi ps pdf |
| 115 | ;; |
122 | ;; |
| 116 | "fonts") |
123 | "fonts") |
| … | |
… | |
| 127 | done |
134 | done |
| 128 | } |
135 | } |
| 129 | |
136 | |
| 130 | latex-package_src_compile() { |
137 | latex-package_src_compile() { |
| 131 | debug-print function $FUNCNAME $* |
138 | debug-print function $FUNCNAME $* |
| 132 | cd ${S} |
|
|
| 133 | for i in `find \`pwd\` -maxdepth 1 -type f -name "*.ins"` |
139 | for i in `find \`pwd\` -maxdepth 1 -type f -name "*.ins"` |
| 134 | do |
140 | do |
| 135 | einfo "Extracting from $i" |
141 | einfo "Extracting from $i" |
| 136 | latex --interaction=batchmode $i &> /dev/null |
142 | latex --interaction=batchmode $i &> /dev/null |
| 137 | done |
143 | done |
| 138 | } |
144 | } |
| 139 | |
145 | |
| 140 | latex-package_src_install() { |
146 | latex-package_src_install() { |
| 141 | debug-print function $FUNCNAME $* |
147 | debug-print function $FUNCNAME $* |
| 142 | cd ${S} |
|
|
| 143 | latex-package_src_doinstall all |
148 | latex-package_src_doinstall all |
| 144 | } |
149 | } |
| 145 | |
150 | |
| 146 | latex-package_pkg_postinst() { |
151 | latex-package_pkg_postinst() { |
| 147 | debug-print function $FUNCNAME $* |
152 | debug-print function $FUNCNAME $* |