/[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.10 Revision 1.15
1# Copyright 1999-2002 Gentoo Technologies, Inc. 1# Copyright 1999-2003 Gentoo Technologies, Inc.
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.15 2003/09/09 01:06:09 usata Exp $
4#
3# Author Matthew Turk <satai@gentoo.org> 5# Author Matthew Turk <satai@gentoo.org>
4# $Header: /var/cvsroot/gentoo-x86/eclass/latex-package.eclass,v 1.10 2002/10/25 19:57:51 vapier Exp $
5# 6#
6# 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
7# 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
8# successful installation. If fonts need to be installed, then the variable 9# successful installation. If fonts need to be installed, then the variable
9# SUPPLIER must also be defined. 10# SUPPLIER must also be defined.
34# The eClass automatically takes care of rehashing TeX's cache (ls-lR) after 35# The eClass automatically takes care of rehashing TeX's cache (ls-lR) after
35# installation and after removal, as well as creating final documentation from 36# installation and after removal, as well as creating final documentation from
36# TeX files that come with the source. Note that we break TeX layout standards 37# TeX files that come with the source. Note that we break TeX layout standards
37# by placing documentation in /usr/share/doc/${PN} 38# by placing documentation in /usr/share/doc/${PN}
38# 39#
39# For examples of basic installations, check out app-text/latex-aastex and 40# For examples of basic installations, check out dev-tex/aastex and
40# app-text/latex-leaflet. 41# dev-tex/leaflet .
41# 42#
42# NOTE: The CTAN "directory grab" function creates files with different MD5 43# NOTE: The CTAN "directory grab" function creates files with different MD5
43# signatures EVERY TIME. For this reason, if you are grabbing from the CTAN, 44# signatures EVERY TIME. For this reason, if you are grabbing from the CTAN,
44# you must either grab each file individually, or find a place to mirror an 45# you must either grab each file individually, or find a place to mirror an
45# archive of them. (iBiblio) 46# archive of them. (iBiblio)
46 47
47inherit base 48inherit base
48INHERITED="$INHERITED $ECLASS" 49INHERITED="$INHERITED $ECLASS"
49 50
50newdepend ">=app-text/tetex-1.0.7 51newdepend "virtual/tetex
51 >=sys-apps/texinfo-4.2-r5" 52 >=sys-apps/texinfo-4.2-r5"
52ECLASS=latex-package 53ECLASS=latex-package
53HOMEPAGE="http://www.tug.org/" 54HOMEPAGE="http://www.tug.org/"
54SRC_URI="ftp://tug.ctan.org/macros/latex/" 55SRC_URI="ftp://tug.ctan.org/macros/latex/"
55S=${WORKDIR}/${P} 56S=${WORKDIR}/${P}
83 insinto /usr/share/doc/${P} 84 insinto /usr/share/doc/${P}
84 doins $i 85 doins $i
85 #dodoc -u $i 86 #dodoc -u $i
86 done 87 done
87 ;; 88 ;;
88 "tex" | "dtx") 89 "tex" | "dtx")
89 for i in `find . -maxdepth 1 -type f -name "*.${1}"` 90 for i in `find . -maxdepth 1 -type f -name "*.${1}"`
90 do 91 do
91 echo "Making documentation: $i" 92 einfo "Making documentation: $i"
92 texi2dvi -q -c --language=latex $i 93 texi2dvi -q -c --language=latex $i &> /dev/null
93 done 94 done
94 ;; 95 ;;
95 "tfm" | "vf" | "afm" | "pfb") 96 "tfm" | "vf" | "afm" | "pfb")
96 for i in `find . -maxdepth 1 -type f -name "*.${1}"` 97 for i in `find . -maxdepth 1 -type f -name "*.${1}"`
97 do 98 do
98 insinto ${TEXMF}/fonts/${1}/${SUPPLIER}/${PN} 99 insinto ${TEXMF}/fonts/${1}/${SUPPLIER}/${PN}
99 doins $i 100 doins $i
129latex-package_src_compile() { 130latex-package_src_compile() {
130 debug-print function $FUNCNAME $* 131 debug-print function $FUNCNAME $*
131 cd ${S} 132 cd ${S}
132 for i in `find \`pwd\` -maxdepth 1 -type f -name "*.ins"` 133 for i in `find \`pwd\` -maxdepth 1 -type f -name "*.ins"`
133 do 134 do
134 echo "Extracting from $i" 135 einfo "Extracting from $i"
135 latex --interaction=batchmode $i > /dev/null 136 latex --interaction=batchmode $i &> /dev/null
136 done 137 done
137} 138}
138 139
139latex-package_src_install() { 140latex-package_src_install() {
140 debug-print function $FUNCNAME $* 141 debug-print function $FUNCNAME $*

Legend:
Removed from v.1.10  
changed lines
  Added in v.1.15

  ViewVC Help
Powered by ViewVC 1.1.20