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

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

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.8 - (show annotations) (download)
Thu Jan 31 11:58:50 2008 UTC (6 years, 10 months ago) by aballier
Branch: MAIN
CVS Tags: HEAD
Changes since 1.7: +1 -1 lines
FILE REMOVED
remove unused version
(Portage version: 2.1.4)

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.84.5.ebuild,v 1.7 2007/11/07 10:46:24 armin76 Exp $
4
5 inherit eutils flag-o-matic elisp-common
6
7 IUSE="cjk libwww lesstif motif neXt Xaw3d emacs"
8
9 XDVIK_JP="${P}-20041106-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/12134/${XDVIK_JP}.diff.gz )"
14 HOMEPAGE="http://sourceforge.net/projects/xdvi/
15 http://xdvi.sourceforge.jp/"
16
17 KEYWORDS="~alpha ~amd64 ~ppc ~ppc64 ~sparc ~x86"
18 SLOT="0"
19 LICENSE="GPL-2"
20
21 DEPEND=">=media-libs/t1lib-5.0.2
22 x11-libs/libXmu
23 x11-libs/libXpm
24 motif? ( lesstif? ( x11-libs/lesstif )
25 !lesstif? ( x11-libs/openmotif ) )
26 !motif? ( neXt? ( x11-libs/neXtaw )
27 !neXt? ( Xaw3d? ( x11-libs/Xaw3d ) ) )
28 libwww? ( >=net-libs/libwww-5.3.2-r1 )
29 cjk? ( app-text/ptex
30 >=media-libs/freetype-2
31 >=media-fonts/kochi-substitute-20030809-r3 )
32 !cjk? ( virtual/tetex )
33 !app-text/texlive"
34
35 src_unpack () {
36
37 unpack ${P}.tar.gz
38 if use cjk ; then
39 epatch ${DISTDIR}/${XDVIK_JP}.diff.gz
40 cat >>${S}/texk/xdvik/vfontmap.sample<<-EOF
41
42 # TrueType fonts
43 min /usr/share/fonts/kochi-substitute/kochi-mincho-subst.ttf
44 nmin /usr/share/fonts/kochi-substitute/kochi-mincho-subst.ttf
45 goth /usr/share/fonts/kochi-substitute/kochi-gothic-subst.ttf
46 tmin /usr/share/fonts/kochi-substitute/kochi-mincho-subst.ttf
47 tgoth /usr/share/fonts/kochi-substitute/kochi-gothic-subst.ttf
48 ngoth /usr/share/fonts/kochi-substitute/kochi-gothic-subst.ttf
49 jis /usr/share/fonts/kochi-substitute/kochi-mincho-subst.ttf
50 jisg /usr/share/fonts/kochi-substitute/kochi-gothic-subst.ttf
51 dm /usr/share/fonts/kochi-substitute/kochi-mincho-subst.ttf
52 dg /usr/share/fonts/kochi-substitute/kochi-gothic-subst.ttf
53 mgoth /usr/share/fonts/kochi-substitute/kochi-gothic-subst.ttf
54 fmin /usr/share/fonts/kochi-substitute/kochi-mincho-subst.ttf
55 fgoth /usr/share/fonts/kochi-substitute/kochi-gothic-subst.ttf
56 EOF
57 fi
58 }
59
60 src_compile () {
61
62 local TEXMF_PATH=$(kpsewhich --expand-var='$TEXMFMAIN')
63 local myconf toolkit
64
65 if use cjk ; then
66 export CPPFLAGS="${CPPFLAGS} -I/usr/include/freetype2"
67 myconf="${myconf} --with-vflib=vf2ft"
68 fi
69
70 if use motif ; then
71 if use lesstif ; then
72 append-ldflags -L/usr/X11R6/lib/lesstif -R/usr/X11R6/lib/lesstif
73 export CPPFLAGS="${CPPFLAGS} -I/usr/X11R6/include/lesstif"
74 fi
75 toolkit="motif"
76 elif use neXt ; then
77 toolkit="neXtaw"
78 elif use Xaw3d ; then
79 toolkit="xaw3d"
80 else
81 toolkit="xaw"
82 fi
83
84 econf --disable-multiplatform \
85 --enable-t1lib \
86 --enable-gf \
87 --with-system-t1lib \
88 $(use_enable cjk freetype) \
89 $(use_with libwww system-wwwlib) \
90 --with-x-toolkit="${toolkit}" \
91 ${myconf} || die "econf failed"
92
93 cd texk/xdvik
94 make texmf=${TEXMF_PATH} || die
95 use emacs && elisp-compile xdvi-search.el
96 }
97
98 src_install () {
99
100 dodir /etc/texmf/xdvi /etc/X11/app-defaults
101
102 local TEXMF_PATH=$(kpsewhich --expand-var='$TEXMFMAIN')
103
104 cd ${S}/texk/xdvik
105 einstall texmf=${D}${TEXMF_PATH} || die "install failed"
106
107 mv ${D}${TEXMF_PATH}/xdvi/XDvi ${D}etc/X11/app-defaults
108 dosym {/etc/X11/app-defaults,${TEXMF_PATH}}/XDvi
109 for i in $(find ${D}${TEXMF_PATH}/xdvi -type f -maxdepth 1) ; do
110 mv $i ${D}etc/texmf/xdvi
111 dosym {/etc/texmf,${TEXMF_PATH}}/xdvi/$(basename $i)
112 done
113
114 dodoc ANNOUNCE BUGS FAQ README.*
115 if use cjk; then
116 dodoc CHANGES.xdvik-jp
117 docinto READMEs
118 dodoc READMEs/*
119 fi
120
121 use emacs && elisp-install tex-utils *.el *.elc
122 }

  ViewVC Help
Powered by ViewVC 1.1.20