/[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.15 Revision 1.17
1# Copyright 1999-2003 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 $ 3# $Header: /var/cvsroot/gentoo-x86/eclass/latex-package.eclass,v 1.17 2004/04/10 13:02:38 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
46# archive of them. (iBiblio) 46# archive of them. (iBiblio)
47 47
48inherit base 48inherit base
49INHERITED="$INHERITED $ECLASS" 49INHERITED="$INHERITED $ECLASS"
50 50
51newdepend "virtual/tetex 51DEPEND="virtual/tetex
52 >=sys-apps/texinfo-4.2-r5" 52 >=sys-apps/texinfo-4.2-r5"
53ECLASS=latex-package 53ECLASS=latex-package
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"
105 do 105 do
106 insinto ${TEXMF}/fonts/truetype/${SUPPLIER}/${PN} 106 insinto ${TEXMF}/fonts/truetype/${SUPPLIER}/${PN}
107 doins $i 107 doins $i
108 done 108 done
109 ;; 109 ;;
110 "bst")
111 for i in `find . -maxdepth 1 -type f -name "*.bst"`
112 do
113 insinto ${TEXMF}/bibtex/bst/${PN}
114 doins $i
115 done
116 ;;
110 "styles") 117 "styles")
111 latex-package_src_doinstall sty cls fd clo def 118 latex-package_src_doinstall sty cls fd clo def bst
112 ;; 119 ;;
113 "doc") 120 "doc")
114 latex-package_src_doinstall tex dtx dvi ps pdf 121 latex-package_src_doinstall tex dtx dvi ps pdf
115 ;; 122 ;;
116 "fonts") 123 "fonts")
127 done 134 done
128} 135}
129 136
130latex-package_src_compile() { 137latex-package_src_compile() {
131 debug-print function $FUNCNAME $* 138 debug-print function $FUNCNAME $*
132 cd ${S}
133 for i in `find \`pwd\` -maxdepth 1 -type f -name "*.ins"` 139 for i in `find \`pwd\` -maxdepth 1 -type f -name "*.ins"`
134 do 140 do
135 einfo "Extracting from $i" 141 einfo "Extracting from $i"
136 latex --interaction=batchmode $i &> /dev/null 142 latex --interaction=batchmode $i &> /dev/null
137 done 143 done
138} 144}
139 145
140latex-package_src_install() { 146latex-package_src_install() {
141 debug-print function $FUNCNAME $* 147 debug-print function $FUNCNAME $*
142 cd ${S}
143 latex-package_src_doinstall all 148 latex-package_src_doinstall all
144} 149}
145 150
146latex-package_pkg_postinst() { 151latex-package_pkg_postinst() {
147 debug-print function $FUNCNAME $* 152 debug-print function $FUNCNAME $*

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

  ViewVC Help
Powered by ViewVC 1.1.20