| 1 | # Copyright 1999-2004 Gentoo Foundation |
1 | # Copyright 1999-2006 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.27 2006/02/28 11:09:25 nattfodd Exp $ |
3 | # $Header: /var/cvsroot/gentoo-x86/eclass/latex-package.eclass,v 1.31 2007/10/16 20:21:27 aballier Exp $ |
| 4 | # |
4 | # |
| 5 | # Author Matthew Turk <satai@gentoo.org> |
5 | # Author Matthew Turk <satai@gentoo.org> |
|
|
6 | # Martin Ehmsen <ehmsen@gentoo.org> |
|
|
7 | # Maintained by the text-markup team <text-markup@gentoo.org> |
| 6 | # |
8 | # |
| 7 | # This eClass is designed to be easy to use and implement. The vast majority of |
9 | # 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 |
10 | # LaTeX packages will only need to define SRC_URI (and sometimes S) for a |
| 9 | # successful installation. If fonts need to be installed, then the variable |
11 | # successful installation. If fonts need to be installed, then the variable |
| 10 | # SUPPLIER must also be defined. |
12 | # SUPPLIER must also be defined. |
| … | |
… | |
| 45 | # you must either grab each file individually, or find a place to mirror an |
47 | # you must either grab each file individually, or find a place to mirror an |
| 46 | # archive of them. (iBiblio) |
48 | # archive of them. (iBiblio) |
| 47 | |
49 | |
| 48 | inherit base |
50 | inherit base |
| 49 | |
51 | |
| 50 | DEPEND="virtual/tetex |
52 | DEPEND="virtual/latex-base |
| 51 | >=sys-apps/texinfo-4.2-r5" |
53 | >=sys-apps/texinfo-4.2-r5" |
| 52 | HOMEPAGE="http://www.tug.org/" |
54 | HOMEPAGE="http://www.tug.org/" |
| 53 | SRC_URI="ftp://tug.ctan.org/macros/latex/" |
55 | SRC_URI="ftp://tug.ctan.org/macros/latex/" |
| 54 | S=${WORKDIR}/${P} |
56 | S=${WORKDIR}/${P} |
| 55 | TEXMF="/usr/share/texmf" |
57 | TEXMF="/usr/share/texmf" |
| 56 | SUPPLIER="misc" # This refers to the font supplier; it should be overridden |
58 | SUPPLIER="misc" # This refers to the font supplier; it should be overridden |
| 57 | |
59 | |
| 58 | latex-package_has_tetex_3() { |
60 | latex-package_has_tetex_3() { |
| 59 | if has_version '>=app-text/tetex-3' || has_version '>=app-text/ptex-3.1.8' ; then |
61 | if has_version '>=app-text/tetex-3' || has_version '>=app-text/ptex-3.1.8' || has_version '>=app-text/texlive-core-2007' ; then |
| 60 | true |
62 | true |
| 61 | else |
63 | else |
| 62 | false |
64 | false |
| 63 | fi |
65 | fi |
| 64 | } |
66 | } |