/[gentoo-x86]/eclass/tetex.eclass
Gentoo

Diff of /eclass/tetex.eclass

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

Revision 1.24 Revision 1.25
1# Copyright 1999-2004 Gentoo Foundation 1# Copyright 1999-2004 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/Attic/tetex.eclass,v 1.24 2004/10/29 15:14:02 usata Exp $ 3# $Header: /var/cvsroot/gentoo-x86/eclass/Attic/tetex.eclass,v 1.25 2004/10/29 15:19:00 usata Exp $
4# 4#
5# Author: Jaromir Malenko <malenko@email.cz> 5# Author: Jaromir Malenko <malenko@email.cz>
6# Author: Mamoru KOMACHI <usata@gentoo.org> 6# Author: Mamoru KOMACHI <usata@gentoo.org>
7# 7#
8# A generic eclass to install tetex distributions. 8# A generic eclass to install tetex distributions.
41 sys-apps/ed 41 sys-apps/ed
42 sys-libs/zlib 42 sys-libs/zlib
43 X? ( virtual/x11 ) 43 X? ( virtual/x11 )
44 >=media-libs/libpng-1.2.1 44 >=media-libs/libpng-1.2.1
45 sys-libs/ncurses 45 sys-libs/ncurses
46 >=net-libs/libwww-5.3.2-r1 46 >=net-libs/libwww-5.3.2-r1"
47 app-text/texi2html"
48RDEPEND="${DEPEND} 47RDEPEND="${DEPEND}
49 !app-text/dvipdfm 48 !app-text/dvipdfm
50 !dev-tex/currvita 49 !dev-tex/currvita
51 !dev-tex/eurosym 50 !dev-tex/eurosym
52 !dev-tex/extsizes 51 !dev-tex/extsizes
84 # Do not run config. Also fix local texmf tree. 83 # Do not run config. Also fix local texmf tree.
85 cd ${S} 84 cd ${S}
86 epatch ${FILESDIR}/../../tetex/files/tetex-${TETEX_PV}-dont-run-config.diff 85 epatch ${FILESDIR}/../../tetex/files/tetex-${TETEX_PV}-dont-run-config.diff
87 epatch ${FILESDIR}/../../tetex/files/tetex-${TETEX_PV}.diff 86 epatch ${FILESDIR}/../../tetex/files/tetex-${TETEX_PV}.diff
88 epatch ${FILESDIR}/../../tetex/files/tetex-texdoctk-gentoo.patch 87 epatch ${FILESDIR}/../../tetex/files/tetex-texdoctk-gentoo.patch
88
89 if useq ppc-macos ; then
90 sed -i -e "/^HOMETEXMF/s:\$HOME/texmf:\$HOME/Library/texmf:" ${S}/texk/kpathsea/texmf.in || die "sed texmf.in failed."
91 fi
89 92
90 if [ "${TETEX_PV}" == "2.0.2" ] ; then 93 if [ "${TETEX_PV}" == "2.0.2" ] ; then
91 # fix up misplaced listings.sty in the 2.0.2 archive. 94 # fix up misplaced listings.sty in the 2.0.2 archive.
92 # this should be fixed in the next release <obz@gentoo.org> 95 # this should be fixed in the next release <obz@gentoo.org>
93 mv texmf/source/latex/listings/listings.sty texmf/tex/latex/listings/ 96 mv texmf/source/latex/listings/listings.sty texmf/tex/latex/listings/
115 118
116 local xdvik 119 local xdvik
117 120
118 if useq X ; then 121 if useq X ; then
119 xdvik="--with-xdvik --with-oxdvik" 122 xdvik="--with-xdvik --with-oxdvik"
123 #xdvik="$xdvik --with-system-t1lib"
120 else 124 else
121 xdvik="--without-xdvik --without-oxdvik" 125 xdvik="--without-xdvik --without-oxdvik"
122 fi 126 fi
123 127
124 econf --bindir=/usr/bin \ 128 econf --bindir=/usr/bin \
141 --enable-ipc \ 145 --enable-ipc \
142 --with-etex \ 146 --with-etex \
143 $(use_with X x) \ 147 $(use_with X x) \
144 ${xdvik} \ 148 ${xdvik} \
145 ${TETEX_ECONF} || die 149 ${TETEX_ECONF} || die
150
151 if useq X && useq ppc-macos ; then
152 for f in $(find ${S} -name config.status) ; do
153 sed -i -e "s:-ldl::g" $f
154 done
155 fi
146 156
147 if [ "${TETEX_PV}" == "2.0.2" ] ; then 157 if [ "${TETEX_PV}" == "2.0.2" ] ; then
148 emake -j1 texmf=/usr/share/texmf || die "make teTeX failed" 158 emake -j1 texmf=/usr/share/texmf || die "make teTeX failed"
149 else 159 else
150 emake -j1 texmf=/var/lib/texmf || die "make teTeX failed" 160 emake -j1 texmf=/var/lib/texmf || die "make teTeX failed"
205 #docinto xdvik 215 #docinto xdvik
206 #cd ${S}/texk/xdvik 216 #cd ${S}/texk/xdvik
207 #dodoc BUGS FAQ README* 217 #dodoc BUGS FAQ README*
208 218
209 # move docs to /usr/share/doc/${PF} 219 # move docs to /usr/share/doc/${PF}
210 if use doc ; then 220 if useq doc ; then
211 dodir /usr/share/doc 221 dodir /usr/share/doc
212 mv ${D}/usr/share/texmf/doc/* \ 222 mv ${D}/usr/share/texmf/doc/* \
213 ${D}/usr/share/doc/${PF} \ 223 ${D}/usr/share/doc/${PF} \
214 || die "mv doc failed." 224 || die "mv doc failed."
215 cd ${D}/usr/share/texmf 225 cd ${D}/usr/share/texmf
311 einfo "Here I am!" 321 einfo "Here I am!"
312} 322}
313 323
314tetex_pkg_postinst() { 324tetex_pkg_postinst() {
315 325
326 if [ -z "$1" ]; then
316 tetex_pkg_postinst all 327 tetex_pkg_postinst all
328 fi
317 329
318 while [ "$1" ]; do 330 while [ "$1" ]; do
319 case $1 in 331 case $1 in
320 configure) 332 configure)
321 if [ $ROOT = "/" ] 333 if [ $ROOT = "/" ]

Legend:
Removed from v.1.24  
changed lines
  Added in v.1.25

  ViewVC Help
Powered by ViewVC 1.1.20