blob: e37bcd7251827adfe05a2bd1ec60ac5c596b05b8 (
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
|
# Copyright 1999-2004 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/app-text/tetex/tetex-2.99.3.20041109.ebuild,v 1.1 2004/11/18 15:31:24 usata Exp $
inherit tetex eutils flag-o-matic
#TETEX_TEXMF_PV=2.96.5.20040711
TETEX_TEXMF_PV=${PV}
TEXMF_PATH=/var/lib/texmf
S=${WORKDIR}/tetex-src-${PV}-beta
TETEX_SRC="tetex-src-${TETEX_SRC_PV:-${TETEX_PV}}-beta.tar.gz"
TETEX_TEXMF="tetex-texmf-${TETEX_TEXMF_PV:-${TETEX_PV}}-beta.tar.gz"
#TETEX_TEXMF_SRC="tetex-texmfsrc-${TETEX_TEXMF_PV:-${TETEX_PV}}-beta.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-beta
SRC_URI="${SRC_PATH_TETEX}/${TETEX_SRC}
${SRC_PATH_TETEX}/${TETEX_TEXMF}
mirror://gentoo/${P}-gentoo.tar.gz
http://dev.gentoo.org/~usata/distfiles/${P}-gentoo.tar.gz"
KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~mips ~ppc ~ppc64 ~ppc-macos ~s390 ~sparc ~x86"
IUSE="motif lesstif Xaw3d"
DEPEND="motif? ( lesstif? ( x11-libs/lesstif )
!lesstif? ( x11-libs/openmotif ) )
!motif? ( Xaw3d? ( x11-libs/Xaw3d ) )
!dev-tex/memoir
!dev-tex/lineno
!dev-tex/SIunits
!dev-tex/floatflt
!dev-tex/g-brief
!dev-tex/pgf
!dev-tex/xcolor
!dev-tex/xkeyval"
pkg_setup() {
ewarn
ewarn "teTeX-beta ebuild will remove config files stored in /usr/share/texmf."
ewarn "Please make a backup before upgrading if you changed anything."
ewarn
ebeep
epause
}
src_compile() {
use amd64 && replace-flags "-O3" "-O2"
if use motif ; then
if use lesstif ; then
append-ldflags -L/usr/X11R6/lib/lesstif -R/usr/X11R6/lib/lesstif
export CPPFLAGS="${CPPFLAGS} -I/usr/X11R6/include/lesstif"
fi
toolkit="motif"
elif use Xaw3d ; then
toolkit="xaw3d"
else
toolkit="xaw"
fi
TETEX_ECONF="--with-x-toolkit=${toolkit}"
tetex_src_compile
}
src_install() {
tetex_src_install base doc fixup link
}
|