/[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.35 Revision 1.39
1# Copyright 1999-2008 Gentoo Foundation 1# Copyright 1999-2011 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.35 2008/08/30 12:49:36 aballier Exp $ 3# $Header: /var/cvsroot/gentoo-x86/eclass/latex-package.eclass,v 1.39 2011/08/22 04:46:32 vapier Exp $
4 4
5# @ECLASS: latex-package.eclass 5# @ECLASS: latex-package.eclass
6# @MAINTAINER: 6# @MAINTAINER:
7# TeX team <tex@gentoo.org> 7# TeX team <tex@gentoo.org>
8# 8# @AUTHOR:
9# Author Matthew Turk <satai@gentoo.org> 9# Matthew Turk <satai@gentoo.org>
10# Martin Ehmsen <ehmsen@gentoo.org> 10# Martin Ehmsen <ehmsen@gentoo.org>
11# @BLURB: An eclass for easy installation of LaTeX packages 11# @BLURB: An eclass for easy installation of LaTeX packages
12# @DESCRIPTION: 12# @DESCRIPTION:
13# This eClass is designed to be easy to use and implement. The vast majority of 13# This eClass is designed to be easy to use and implement. The vast majority of
14# LaTeX packages will only need to define SRC_URI (and sometimes S) for a 14# LaTeX packages will only need to define SRC_URI (and sometimes S) for a
53# 53#
54# It inherits base. 54# It inherits base.
55 55
56inherit base 56inherit base
57 57
58DEPEND="virtual/latex-base 58RDEPEND="virtual/latex-base"
59DEPEND="${RDEPEND}
59 >=sys-apps/texinfo-4.2-r5" 60 >=sys-apps/texinfo-4.2-r5"
60HOMEPAGE="http://www.tug.org/" 61HOMEPAGE="http://www.tug.org/"
61SRC_URI="ftp://tug.ctan.org/macros/latex/" 62SRC_URI="ftp://tug.ctan.org/macros/latex/"
62S=${WORKDIR}/${P} 63S=${WORKDIR}/${P}
63TEXMF="/usr/share/texmf" 64TEXMF="/usr/share/texmf"
64 65
65# @ECLASS-VARIABLE: SUPPLIER 66# @ECLASS-VARIABLE: SUPPLIER
66# @DESCRIPTION: 67# @DESCRIPTION:
67# This refers to the font supplier; it should be overridden (see eclass 68# This refers to the font supplier; it should be overridden (see eclass
68# DESCRIPTION above) 69# DESCRIPTION above)
69SUPPLIER="misc" 70SUPPLIER="misc"
70 71
71# @FUNCTION: latex-package_has_tetex3 72# @FUNCTION: latex-package_has_tetex3
72# @RETURN: true if at least one of (>=tetex-3 or >=ptex-3.1.8 or >=texlive-core-2007) is installed, else false 73# @RETURN: true if at least one of (>=tetex-3 or >=ptex-3.1.8 or >=texlive-core-2007) is installed, else false
73# @DESCRIPTION: 74# @DESCRIPTION:
74# It is often used to know if the current TeX installation supports gentoo's 75# It is often used to know if the current TeX installation supports gentoo's
113 "dvi" | "ps" | "pdf") 114 "dvi" | "ps" | "pdf")
114 for i in `find . -maxdepth 1 -type f -name "*.${1}"` 115 for i in `find . -maxdepth 1 -type f -name "*.${1}"`
115 do 116 do
116 insinto /usr/share/doc/${PF} 117 insinto /usr/share/doc/${PF}
117 doins $i || die "doins $i failed" 118 doins $i || die "doins $i failed"
119 dosym /usr/share/doc/${PF}/$(basename ${i}) ${TEXMF}/doc/latex/${PN}/${i}
118 #dodoc -u $i 120 #dodoc -u $i
119 done 121 done
120 ;; 122 ;;
121 "tex" | "dtx") 123 "tex" | "dtx")
122 for i in `find . -maxdepth 1 -type f -name "*.${1}"` 124 for i in `find . -maxdepth 1 -type f -name "*.${1}"`
195 if [ -n "${DOCS}" ] ; then 197 if [ -n "${DOCS}" ] ; then
196 dodoc ${DOCS} 198 dodoc ${DOCS}
197 fi 199 fi
198} 200}
199 201
200# @FUNCTION: latex-pacakge_pkg_postinst 202# @FUNCTION: latex-package_pkg_postinst
201# @DESCRIPTION: 203# @DESCRIPTION:
202# Calls latex-package_rehash to ensure the TeX installation is consistent with 204# Calls latex-package_rehash to ensure the TeX installation is consistent with
203# the kpathsea database 205# the kpathsea database
204latex-package_pkg_postinst() { 206latex-package_pkg_postinst() {
205 debug-print function $FUNCNAME $* 207 debug-print function $FUNCNAME $*

Legend:
Removed from v.1.35  
changed lines
  Added in v.1.39

  ViewVC Help
Powered by ViewVC 1.1.20