blob: 9396cda992d4f92dd1275116d66d26d645563e57 (
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
|
# 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-2.0.2-r8.ebuild,v 1.11 2006/03/01 14:54:38 nattfodd Exp $
inherit tetex-2 flag-o-matic
DESCRIPTION="a complete TeX distribution"
HOMEPAGE="http://tug.org/teTeX/"
KEYWORDS="alpha amd64 arm hppa ia64 ~mips ppc ~ppc-macos ppc64 s390 sh sparc x86"
IUSE=""
src_unpack() {
tetex-2_src_unpack
# bug 75801
EPATCH_OPTS="-d ${S}/libs/xpdf/xpdf -p0" epatch ${FILESDIR}/xpdf-CESA-2004-007-xpdf2-newer.diff
EPATCH_OPTS="-d ${S}/libs/xpdf -p1" epatch ${FILESDIR}/xpdf-goo-sizet.patch
EPATCH_OPTS="-d ${S}/libs/xpdf -p1" epatch ${FILESDIR}/xpdf2-underflow.patch
EPATCH_OPTS="-d ${S}/libs/xpdf/xpdf -p0" epatch ${FILESDIR}/xpdf-3.00pl2-CAN-2004-1125.patch
EPATCH_OPTS="-d ${S}/libs/xpdf/xpdf -p0" epatch ${FILESDIR}/xpdf-3.00pl3-CAN-2005-0064.patch
# bug 122365
EPATCH_OPTS="-d ${WORKDIR}" epatch ${FILESDIR}/tetex-2.0.2-flex-unput.patch || die
#bug 115775
EPATCH_OPTS="-d ${S}/libs/xpdf/xpdf -p2" epatch ${FILESDIR}/xpdf-2.02pl1-CAN-2005-3191-3.patch
EPATCH_OPTS="-d ${S} -p1" epatch ${FILESDIR}/xdvizilla.patch
# bug 85404
EPATCH_OPTS="-d ${S} -p1" epatch ${FILESDIR}/${P}-epstopdf-wrong-rotation.patch
EPATCH_OPTS="-d ${S} -p1" epatch ${FILESDIR}/${P}-flex-compile.patch
# bug 118264
EPATCH_OPTS="-d ${WORKDIR} -p0" epatch ${FILESDIR}/${P}-dvi-draw-conflicting-types.patch
}
src_compile() {
use amd64 && replace-flags "-O3" "-O2"
tetex_src_compile
}
src_install() {
insinto /usr/share/texmf/tex/latex/greek
doins ${FILESDIR}/iso-8859-7.def
tetex-2_src_install
}
|