/[gentoo-x86]/eclass/latex-package.eclass
Gentoo

Diff of /eclass/latex-package.eclass

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

Revision 1.22 Revision 1.23
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.22 2005/02/18 14:12:48 usata Exp $ 3# $Header: /var/cvsroot/gentoo-x86/eclass/latex-package.eclass,v 1.23 2005/04/09 04:42:10 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
54HOMEPAGE="http://www.tug.org/" 54HOMEPAGE="http://www.tug.org/"
55SRC_URI="ftp://tug.ctan.org/macros/latex/" 55SRC_URI="ftp://tug.ctan.org/macros/latex/"
56S=${WORKDIR}/${P} 56S=${WORKDIR}/${P}
57TEXMF="/usr/share/texmf" 57TEXMF="/usr/share/texmf"
58SUPPLIER="misc" # This refers to the font supplier; it should be overridden 58SUPPLIER="misc" # This refers to the font supplier; it should be overridden
59
60latex-package_has_tetex_3() {
61 if has_version '>=app-text/tetex-3' || has_version '>=app-text/ptex-3.1.8' ; then
62 true
63 else
64 false
65 fi
66}
59 67
60latex-package_src_doinstall() { 68latex-package_src_doinstall() {
61 debug-print function $FUNCNAME $* 69 debug-print function $FUNCNAME $*
62 # This actually follows the directions for a "single-user" system 70 # This actually follows the directions for a "single-user" system
63 # at http://www.ctan.org/installationadvice/ modified for gentoo. 71 # at http://www.ctan.org/installationadvice/ modified for gentoo.
161 latex-package_rehash 169 latex-package_rehash
162} 170}
163 171
164latex-package_rehash() { 172latex-package_rehash() {
165 debug-print function $FUNCNAME $* 173 debug-print function $FUNCNAME $*
174 if latex-package_has_tetex_3 ; then
175 texmf-update
176 else
166 texconfig rehash 177 texconfig rehash
178 fi
167} 179}
168 180
169EXPORT_FUNCTIONS src_compile src_install pkg_postinst pkg_postrm 181EXPORT_FUNCTIONS src_compile src_install pkg_postinst pkg_postrm has_tetex_3

Legend:
Removed from v.1.22  
changed lines
  Added in v.1.23

  ViewVC Help
Powered by ViewVC 1.1.20