/[gentoo-x86]/app-text/xdvik/xdvik-22.40y-r2.ebuild
Gentoo

Contents of /app-text/xdvik/xdvik-22.40y-r2.ebuild

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.20 - (show annotations) (download)
Thu Aug 7 20:53:46 2008 UTC (6 years, 1 month ago) by aballier
Branch: MAIN
CVS Tags: HEAD
Changes since 1.19: +1 -1 lines
FILE REMOVED
remove old
(Portage version: 2.2_rc6/cvs/Linux 2.6.26-gentoo x86_64)

1 # Copyright 1999-2007 Gentoo Foundation
2 # Distributed under the terms of the GNU General Public License v2
3 # $Header: /var/cvsroot/gentoo-x86/app-text/xdvik/xdvik-22.40y-r2.ebuild,v 1.19 2007/11/09 21:37:27 grobian Exp $
4
5 inherit eutils
6
7 IUSE="cjk libwww"
8
9 MY_P="${P}1"
10 XDVIK_JP="${MY_P}-j1.21"
11 S="${WORKDIR}/${MY_P}"
12
13 DESCRIPTION="DVI previewer for X Window System"
14 SRC_URI="mirror://sourceforge/xdvi/${MY_P}.tar.gz
15 cjk? ( http://www.nn.iij4u.or.jp/~tutimura/tex/${XDVIK_JP}.patch.gz )"
16 HOMEPAGE="http://sourceforge.net/projects/xdvi/"
17
18 KEYWORDS="alpha amd64 arm hppa ia64 ppc ppc64 sparc x86"
19 SLOT="0"
20 LICENSE="GPL-2"
21
22 DEPEND=">=media-libs/t1lib-1.3
23 x11-libs/libXpm
24 x11-libs/libXmu
25 virtual/tetex
26 cjk? ( >=media-libs/freetype-2 )
27 libwww? ( >=net-libs/libwww-5.3.2-r1 )
28 !app-text/texlive
29 !>app-text/tetex-3
30 !>app-text/ptex-3.1.8"
31
32 src_unpack () {
33
34 unpack ${MY_P}.tar.gz
35 cd ${S}
36 epatch ${FILESDIR}/xdvi-xorg-7.0.patch
37 epatch ${FILESDIR}/xdvizilla.patch
38 if use cjk ; then
39 epatch ${DISTDIR}/${XDVIK_JP}.patch.gz
40 epatch ${FILESDIR}/${P}-dvi-draw-conflicting-types.patch
41 sed -i -e "/\/usr\/local/s:^:%:g" \
42 -e "/kochi-.*-subst/s:%::g" \
43 -e "s:/usr/local:/usr:g" \
44 -e "s:/usr/X11R6/lib/X11/fonts/truetype:/usr/share/fonts/kochi-substitute:g" \
45 ${S}/texk/xdvik/vfontmap.freetype || die
46 fi
47 }
48
49 src_compile () {
50
51 local myconf
52
53 if use cjk ; then
54 export CPPFLAGS="${CPPFLAGS} -I/usr/include/freetype2"
55 myconf="${myconf} --with-vflib=vf2ft"
56 fi
57
58 econf --enable-xdvietcdir=/usr/share/texmf/xdvi \
59 --disable-multiplatform \
60 --with-system-t1lib \
61 `use_with libwww system-wwwlib` \
62 ${myconf} || die "econf failed"
63
64 cd texk/xdvik
65 make || die
66 }
67
68 src_install () {
69
70 dodir /usr/share/texmf/xdvi
71 dodir /usr/share/man/man1
72
73 cd ${S}/texk/xdvik
74 einstall texmf=${D}/usr/share/texmf \
75 XDVIETCDIR=${D}/usr/share/texmf/xdvi \
76 || die "install failed"
77
78 dodoc ANNOUNCE BUGS FAQ README.*
79 if use cjk; then
80 dodoc CHANGES.xdvik-jp
81 docinto READMEs
82 dodoc READMEs/*
83 fi
84 }

  ViewVC Help
Powered by ViewVC 1.1.20