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