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

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

  ViewVC Help
Powered by ViewVC 1.1.20