/[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.6 Revision 1.13
1# Author Matthew Turk <m-turk@nwu.edu> 1# Copyright 1999-2003 Gentoo Technologies, Inc.
2# Distributed under the terms of the GNU General Public License v2
3# $Header: /var/cvsroot/gentoo-x86/eclass/latex-package.eclass,v 1.13 2003/02/16 04:26:21 vapier Exp $
4#
5# Author Matthew Turk <satai@gentoo.org>
2# 6#
3# 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
4# 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
5# successful installation. If fonts need to be installed, then the variable 9# successful installation. If fonts need to be installed, then the variable
6# SUPPLIER must also be defined. 10# SUPPLIER must also be defined.
43 47
44inherit base 48inherit base
45INHERITED="$INHERITED $ECLASS" 49INHERITED="$INHERITED $ECLASS"
46 50
47newdepend ">=app-text/tetex-1.0.7 51newdepend ">=app-text/tetex-1.0.7
48 >=sys-apps/texinfo-4.2-r5" 52 >=sys-apps/texinfo-4.2-r5"
49ECLASS=latex-package 53ECLASS=latex-package
50HOMEPAGE="http://www.tug.org/" 54HOMEPAGE="http://www.tug.org/"
51SRC_URI="ftp://tug.ctan.org/macros/latex/" 55SRC_URI="ftp://tug.ctan.org/macros/latex/"
52S=${WORKDIR}/${P} 56S=${WORKDIR}/${P}
53TEXMF="/usr/share/texmf" 57TEXMF="/usr/share/texmf"
75 done 79 done
76 ;; 80 ;;
77 "dvi" | "ps" | "pdf") 81 "dvi" | "ps" | "pdf")
78 for i in `find . -maxdepth 1 -type f -name "*.${1}"` 82 for i in `find . -maxdepth 1 -type f -name "*.${1}"`
79 do 83 do
84 insinto /usr/share/doc/${P}
85 doins $i
80 dodoc $i 86 #dodoc -u $i
81 done 87 done
82 ;; 88 ;;
83 "tex" | "dtx") 89 "tex" | "dtx")
84 for i in `find . -maxdepth 1 -type f -name "*.${1}"` 90 for i in `find . -maxdepth 1 -type f -name "*.${1}"`
85 do 91 do
86 texi2dvi -q -c --language=latex $i 92 einfo "Making documentation: $i"
87 done 93 texi2dvi -q -c --language=latex $i &> /dev/null
88 ;; 94 done
95 ;;
89 "tfm" | "vf" | "afm" | "pfb") 96 "tfm" | "vf" | "afm" | "pfb")
90 for i in `find . -maxdepth 1 -type f -name "*.${1}"` 97 for i in `find . -maxdepth 1 -type f -name "*.${1}"`
91 do 98 do
92 insinto ${TEXMF}/fonts/${1}/${SUPPLIER}/${PN} 99 insinto ${TEXMF}/fonts/${1}/${SUPPLIER}/${PN}
93 doins $i 100 doins $i
111 ;; 118 ;;
112 "bin") 119 "bin")
113 latex-package_src_doinstall sh 120 latex-package_src_doinstall sh
114 ;; 121 ;;
115 "all") 122 "all")
116 latex-package_src_doinstall styles doc fonts bin 123 latex-package_src_doinstall styles fonts bin doc
117 ;; 124 ;;
118 esac 125 esac
119 shift 126 shift
120 done 127 done
121} 128}
123latex-package_src_compile() { 130latex-package_src_compile() {
124 debug-print function $FUNCNAME $* 131 debug-print function $FUNCNAME $*
125 cd ${S} 132 cd ${S}
126 for i in `find \`pwd\` -maxdepth 1 -type f -name "*.ins"` 133 for i in `find \`pwd\` -maxdepth 1 -type f -name "*.ins"`
127 do 134 do
128 echo "Extracting from $i" 135 einfo "Extracting from $i"
129 latex --interaction=batchmode $i > /dev/null 136 latex --interaction=batchmode $i &> /dev/null
130 done 137 done
131} 138}
132 139
133latex-package_src_install() { 140latex-package_src_install() {
134 debug-print function $FUNCNAME $* 141 debug-print function $FUNCNAME $*

Legend:
Removed from v.1.6  
changed lines
  Added in v.1.13

  ViewVC Help
Powered by ViewVC 1.1.20