| 1 | # Author Matthew Turk <m-turk@nwu.edu> |
1 | # Copyright 1999-2002 Gentoo Technologies, Inc. |
|
|
2 | # Distributed under the terms of the GNU General Public License v2 |
|
|
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 $ |
| 2 | # |
5 | # |
| 3 | # 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 |
| 4 | # 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 |
| 5 | # successful installation. If fonts need to be installed, then the variable |
8 | # successful installation. If fonts need to be installed, then the variable |
| 6 | # SUPPLIER must also be defined. |
9 | # SUPPLIER must also be defined. |
| … | |
… | |
| 43 | |
46 | |
| 44 | inherit base |
47 | inherit base |
| 45 | INHERITED="$INHERITED $ECLASS" |
48 | INHERITED="$INHERITED $ECLASS" |
| 46 | |
49 | |
| 47 | newdepend ">=app-text/tetex-1.0.7 |
50 | newdepend ">=app-text/tetex-1.0.7 |
| 48 | >=sys-apps/texinfo-4.2-r5" |
51 | >=sys-apps/texinfo-4.2-r5" |
| 49 | ECLASS=latex-package |
52 | ECLASS=latex-package |
| 50 | HOMEPAGE="http://www.tug.org/" |
53 | HOMEPAGE="http://www.tug.org/" |
| 51 | SRC_URI="ftp://tug.ctan.org/macros/latex/" |
54 | SRC_URI="ftp://tug.ctan.org/macros/latex/" |
| 52 | S=${WORKDIR}/${P} |
55 | S=${WORKDIR}/${P} |
| 53 | TEXMF="/usr/share/texmf" |
56 | TEXMF="/usr/share/texmf" |
| … | |
… | |
| 75 | done |
78 | done |
| 76 | ;; |
79 | ;; |
| 77 | "dvi" | "ps" | "pdf") |
80 | "dvi" | "ps" | "pdf") |
| 78 | for i in `find . -maxdepth 1 -type f -name "*.${1}"` |
81 | for i in `find . -maxdepth 1 -type f -name "*.${1}"` |
| 79 | do |
82 | do |
|
|
83 | insinto /usr/share/doc/${P} |
|
|
84 | doins $i |
| 80 | dodoc $i |
85 | #dodoc -u $i |
| 81 | done |
86 | done |
| 82 | ;; |
87 | ;; |
| 83 | "tex" | "dtx") |
88 | "tex" | "dtx") |
| 84 | for i in `find . -maxdepth 1 -type f -name "*.${1}"` |
89 | for i in `find . -maxdepth 1 -type f -name "*.${1}"` |
| 85 | do |
90 | do |
| 86 | texi2dvi -q -c --language=latex $i |
91 | echo "Making documentation: $i" |
| 87 | done |
92 | texi2dvi -q -c --language=latex $i &> /dev/null |
| 88 | ;; |
93 | done |
|
|
94 | ;; |
| 89 | "tfm" | "vf" | "afm" | "pfb") |
95 | "tfm" | "vf" | "afm" | "pfb") |
| 90 | for i in `find . -maxdepth 1 -type f -name "*.${1}"` |
96 | for i in `find . -maxdepth 1 -type f -name "*.${1}"` |
| 91 | do |
97 | do |
| 92 | insinto ${TEXMF}/fonts/${1}/${SUPPLIER}/${PN} |
98 | insinto ${TEXMF}/fonts/${1}/${SUPPLIER}/${PN} |
| 93 | doins $i |
99 | doins $i |
| … | |
… | |
| 111 | ;; |
117 | ;; |
| 112 | "bin") |
118 | "bin") |
| 113 | latex-package_src_doinstall sh |
119 | latex-package_src_doinstall sh |
| 114 | ;; |
120 | ;; |
| 115 | "all") |
121 | "all") |
| 116 | latex-package_src_doinstall styles doc fonts bin |
122 | latex-package_src_doinstall styles fonts bin doc |
| 117 | ;; |
123 | ;; |
| 118 | esac |
124 | esac |
| 119 | shift |
125 | shift |
| 120 | done |
126 | done |
| 121 | } |
127 | } |