blob: 121816bdff6a8e6cbce64fc84e7b4f9113d5f316 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
|
# Copyright 1999-2006 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/app-text/tetex/tetex-3.0_p1-r1.ebuild,v 1.4 2006/03/20 02:58:41 vapier Exp $
inherit tetex-3 flag-o-matic versionator
SMALL_PV=$(get_version_component_range 1-2 ${PV})
TETEX_TEXMF_PV=${SMALL_PV}
S=${WORKDIR}/tetex-src-${SMALL_PV}
TETEX_SRC="tetex-src-${PV}.tar.gz"
TETEX_TEXMF="tetex-texmf-${TETEX_TEXMF_PV:-${TETEX_PV}}.tar.gz"
#TETEX_TEXMF_SRC="tetex-texmfsrc-${TETEX_TEXMF_PV:-${TETEX_PV}}.tar.gz"
TETEX_TEXMF_SRC=""
DESCRIPTION="a complete TeX distribution"
HOMEPAGE="http://tug.org/teTeX/"
SRC_PATH_TETEX=ftp://cam.ctan.org/tex-archive/systems/unix/teTeX/current/distrib
SRC_URI="http://dev.gentoo.org/~nattfodd/tetex/${TETEX_SRC}
${SRC_PATH_TETEX}/${TETEX_TEXMF}
http://dev.gentoo.org/~nattfodd/tetex/${P}-gentoo.tar.gz"
KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~m68k ~ppc ~ppc-macos ~ppc64 ~s390 ~sparc ~x86"
# these are defined in tetex.eclass and tetex-3.eclass
IUSE=""
DEPEND=""
src_unpack() {
tetex-3_src_unpack
cd ${S}
epatch ${FILESDIR}/${PN}-${SMALL_PV}-kpathsea-pic.patch
# bug 85404
epatch ${FILESDIR}/${PN}-${SMALL_PV}-epstopdf-wrong-rotation.patch
epatch ${FILESDIR}/${P}-amd64-xdvik-wp.patch
epatch ${FILESDIR}/${P}-mptest.patch
#bug 98029
epatch ${FILESDIR}/${P}-fmtutil-etex.patch
#bug 115775
epatch ${FILESDIR}/${P}-xpdf-vulnerabilities.patch
}
src_compile() {
#bug 119856
export LC_ALL=C
tetex-3_src_compile
}
src_test() {
fmtutil --fmtdir "${S}/texk/web2c" --all
make check
}
src_install() {
tetex-3_src_install
# virtex was removed from tetex-3
dosym /usr/bin/tex /usr/bin/virtex
dosym /usr/bin/pdftex /usr/bin/pdfvirtex
}
pkg_postinst() {
ewarn ""
ewarn "If you encounter any problems with tetex-3.0_p1-r1 involving TeX"
ewarn "configuration files, please try"
ewarn " emerge sync"
ewarn " rm -rf /etc/texmf"
ewarn " emerge -av tetex"
ewarn " texmf-update"
ewarn " fmtutil-sys --missing && fmtutil-sys --byfmt etex"
ewarn "Sorry for any inconvenience"
ewarn ""
}
|