/[gentoo-x86]/app-text/xdvik/xdvik-22.84.3.ebuild
Gentoo

Contents of /app-text/xdvik/xdvik-22.84.3.ebuild

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.3 - (show annotations) (download)
Fri Nov 19 22:00:51 2004 UTC (10 years, 1 month ago) by usata
Branch: MAIN
CVS Tags: HEAD
Changes since 1.2: +1 -1 lines
FILE REMOVED
Removed old ebuilds.

1 # Copyright 1999-2004 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.84.3.ebuild,v 1.2 2004/10/24 12:24:45 usata Exp $
4
5 inherit eutils flag-o-matic
6
7 IUSE="cjk libwww lesstif motif Xaw3d"
8
9 XDVIK_JP="xdvik-${PV}-20040825-jp"
10
11 DESCRIPTION="DVI previewer for X Window System"
12 SRC_URI="mirror://sourceforge/xdvi/${P}.tar.gz
13 cjk? ( mirror://sourceforge.jp/xdvi/11043/${XDVIK_JP}.diff.gz )"
14 HOMEPAGE="http://sourceforge.net/projects/xdvi/
15 http://xdvi.sourceforge.jp/"
16
17 KEYWORDS="~x86 ~alpha ~ppc ~sparc ~amd64 ~ppc64 ppc-macos"
18 SLOT="0"
19 LICENSE="GPL-2"
20
21 DEPEND=">=media-libs/t1lib-5.0.2
22 virtual/x11
23 motif? ( lesstif? ( x11-libs/lesstif )
24 !lesstif? ( x11-libs/openmotif ) )
25 !motif? ( Xaw3d? ( x11-libs/Xaw3d ) )
26 libwww? ( >=net-libs/libwww-5.3.2-r1 )
27 cjk? ( app-text/ptex
28 >=media-libs/freetype-2
29 >=media-fonts/kochi-substitute-20030809-r3 )
30 !cjk? ( virtual/tetex )"
31
32 src_unpack () {
33
34 unpack ${P}.tar.gz
35 if use cjk ; then
36 epatch ${DISTDIR}/${XDVIK_JP}.diff.gz
37 cat >>${S}/texk/xdvik/vfontmap.sample<<-EOF
38
39 # TrueType fonts
40 min /usr/share/fonts/kochi-substitute/kochi-mincho-subst.ttf
41 nmin /usr/share/fonts/kochi-substitute/kochi-mincho-subst.ttf
42 goth /usr/share/fonts/kochi-substitute/kochi-gothic-subst.ttf
43 tmin /usr/share/fonts/kochi-substitute/kochi-mincho-subst.ttf
44 tgoth /usr/share/fonts/kochi-substitute/kochi-gothic-subst.ttf
45 ngoth /usr/share/fonts/kochi-substitute/kochi-gothic-subst.ttf
46 jis /usr/share/fonts/kochi-substitute/kochi-mincho-subst.ttf
47 jisg /usr/share/fonts/kochi-substitute/kochi-gothic-subst.ttf
48 dm /usr/share/fonts/kochi-substitute/kochi-mincho-subst.ttf
49 dg /usr/share/fonts/kochi-substitute/kochi-gothic-subst.ttf
50 mgoth /usr/share/fonts/kochi-substitute/kochi-gothic-subst.ttf
51 fmin /usr/share/fonts/kochi-substitute/kochi-mincho-subst.ttf
52 fgoth /usr/share/fonts/kochi-substitute/kochi-gothic-subst.ttf
53 EOF
54 fi
55 }
56
57 src_compile () {
58
59 local myconf toolkit
60
61 if use cjk ; then
62 export CPPFLAGS="${CPPFLAGS} -I/usr/include/freetype2"
63 myconf="${myconf} --with-vflib=vf2ft"
64 fi
65
66 if use motif ; then
67 if use lesstif ; then
68 append-ldflags -L/usr/X11R6/lib/lesstif -R/usr/X11R6/lib/lesstif
69 export CPPFLAGS="${CPPFLAGS} -I/usr/X11R6/include/lesstif"
70 fi
71 toolkit="motif"
72 elif use Xaw3d ; then
73 toolkit="xaw3d"
74 else
75 toolkit="xaw"
76 fi
77
78 econf --disable-multiplatform \
79 --with-system-t1lib \
80 $(use_enable cjk freetype) \
81 $(use_with libwww system-wwwlib) \
82 --with-x-toolkit="${toolkit}" \
83 ${myconf} || die "econf failed"
84
85 cd texk/xdvik
86 make || die
87 }
88
89 src_install () {
90
91 dodir /usr/share/texmf/xdvi
92 dodir /usr/share/man/man1
93
94 cd ${S}/texk/xdvik
95 einstall texmf=${D}/usr/share/texmf \
96 || die "install failed"
97
98 dodoc ANNOUNCE BUGS FAQ README.*
99 if use cjk; then
100 dodoc CHANGES.xdvik-jp
101 docinto READMEs
102 dodoc READMEs/*
103 fi
104 }

  ViewVC Help
Powered by ViewVC 1.1.20