| 1 | # Copyright 1999-2004 Gentoo Foundation |
1 | # Copyright 1999-2004 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.19 2004/11/07 09:06:42 usata Exp $ |
3 | # $Header: /var/cvsroot/gentoo-x86/eclass/latex-package.eclass,v 1.20 2004/11/07 09:19:54 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 |
| … | |
… | |
| 69 | for i in `find . -maxdepth 1 -type f -name "*.${1}"` |
69 | for i in `find . -maxdepth 1 -type f -name "*.${1}"` |
| 70 | do |
70 | do |
| 71 | dobin $i |
71 | dobin $i |
| 72 | done |
72 | done |
| 73 | ;; |
73 | ;; |
| 74 | "sty" | "cls" | "fd" | "clo" | "def") |
74 | "sty" | "cls" | "fd" | "clo" | "def" | "cfg") |
| 75 | for i in `find . -maxdepth 1 -type f -name "*.${1}"` |
75 | for i in `find . -maxdepth 1 -type f -name "*.${1}"` |
| 76 | do |
76 | do |
| 77 | insinto ${TEXMF}/tex/latex/${PN} |
77 | insinto ${TEXMF}/tex/latex/${PN} |
| 78 | doins $i |
78 | doins $i |
| 79 | done |
79 | done |
| … | |
… | |
| 113 | insinto ${TEXMF}/bibtex/bst/${PN} |
113 | insinto ${TEXMF}/bibtex/bst/${PN} |
| 114 | doins $i |
114 | doins $i |
| 115 | done |
115 | done |
| 116 | ;; |
116 | ;; |
| 117 | "styles") |
117 | "styles") |
| 118 | latex-package_src_doinstall sty cls fd clo def bst |
118 | latex-package_src_doinstall sty cls fd clo def cfg bst |
| 119 | ;; |
119 | ;; |
| 120 | "doc") |
120 | "doc") |
| 121 | latex-package_src_doinstall tex dtx dvi ps pdf |
121 | latex-package_src_doinstall tex dtx dvi ps pdf |
| 122 | ;; |
122 | ;; |
| 123 | "fonts") |
123 | "fonts") |
| … | |
… | |
| 125 | ;; |
125 | ;; |
| 126 | "bin") |
126 | "bin") |
| 127 | latex-package_src_doinstall sh |
127 | latex-package_src_doinstall sh |
| 128 | ;; |
128 | ;; |
| 129 | "all") |
129 | "all") |
| 130 | latex-package_src_doinstall styles fonts bin doc |
130 | latex-package_src_doinstall styles fonts bin doc |
| 131 | ;; |
131 | ;; |
| 132 | esac |
132 | esac |
| 133 | shift |
133 | shift |
| 134 | done |
134 | done |
| 135 | } |
135 | } |