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

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

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.23 - (show annotations) (download)
Thu Oct 2 18:20:08 2008 UTC (5 years, 11 months ago) by aballier
Branch: MAIN
CVS Tags: HEAD
Changes since 1.22: +1 -1 lines
FILE REMOVED
remove old
(Portage version: 2.2_rc11/cvs/Linux 2.6.26.5 x86_64)

1 # Copyright 1999-2008 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.10.ebuild,v 1.22 2008/06/27 10:00:14 ulm Exp $
4
5 WANT_AUTOCONF=2.1
6
7 inherit eutils flag-o-matic elisp-common autotools
8
9 XDVIK_JP="${P}-j1.33.patch.gz"
10
11 DESCRIPTION="DVI previewer for X Window System"
12 HOMEPAGE="http://sourceforge.net/projects/xdvi/ http://xdvi.sourceforge.jp/"
13 SRC_URI="mirror://sourceforge/xdvi/${P}.tar.gz
14 cjk? ( mirror://sourceforge.jp/xdvi/20703/${XDVIK_JP} )"
15
16 KEYWORDS="alpha amd64 arm hppa ia64 ppc ppc64 sh sparc x86 ~x86-fbsd"
17 SLOT="0"
18 LICENSE="GPL-2"
19 IUSE="cjk motif neXt Xaw3d emacs"
20
21 RDEPEND=">=media-libs/t1lib-5.0.2
22 x11-libs/libXmu
23 x11-libs/libXp
24 x11-libs/libXpm
25 motif? ( x11-libs/openmotif )
26 !motif? ( neXt? ( x11-libs/neXtaw )
27 !neXt? ( Xaw3d? ( x11-libs/Xaw3d ) ) )
28 cjk? ( || ( app-text/texlive-core app-text/ptex )
29 >=media-libs/freetype-2
30 >=media-fonts/kochi-substitute-20030809-r3 )
31 !cjk? ( virtual/latex-base )
32 !<app-text/texlive-2007"
33 DEPEND="${RDEPEND}"
34
35 # pkg_setup() {
36 # if has_version virtual/tetex && built_with_use virtual/tetex X ; then
37 # eerror "tetex provides xdvik when built with the X flag."
38 # eerror "To install this version of xdvik re-install tetex"
39 # eerror "without the X flag."
40 # die "xdvik collides with tetex built with the X flag"
41 # fi
42 # }
43
44 src_unpack() {
45 unpack ${P}.tar.gz
46 cd "${S}"
47 if use cjk ; then
48 epatch "${DISTDIR}/${XDVIK_JP}"
49 cat >>"${S}/texk/xdvik/vfontmap.sample"<<-EOF
50
51 # TrueType fonts
52 min /usr/share/fonts/kochi-substitute/kochi-mincho-subst.ttf
53 nmin /usr/share/fonts/kochi-substitute/kochi-mincho-subst.ttf
54 goth /usr/share/fonts/kochi-substitute/kochi-gothic-subst.ttf
55 tmin /usr/share/fonts/kochi-substitute/kochi-mincho-subst.ttf
56 tgoth /usr/share/fonts/kochi-substitute/kochi-gothic-subst.ttf
57 ngoth /usr/share/fonts/kochi-substitute/kochi-gothic-subst.ttf
58 jis /usr/share/fonts/kochi-substitute/kochi-mincho-subst.ttf
59 jisg /usr/share/fonts/kochi-substitute/kochi-gothic-subst.ttf
60 dm /usr/share/fonts/kochi-substitute/kochi-mincho-subst.ttf
61 dg /usr/share/fonts/kochi-substitute/kochi-gothic-subst.ttf
62 mgoth /usr/share/fonts/kochi-substitute/kochi-gothic-subst.ttf
63 fmin /usr/share/fonts/kochi-substitute/kochi-mincho-subst.ttf
64 fgoth /usr/share/fonts/kochi-substitute/kochi-gothic-subst.ttf
65 EOF
66 fi
67 epatch "${FILESDIR}"/${PN}-asneeded.patch
68 cd texk/xdvik
69 eautoconf -m ../etc/autoconf
70 }
71
72 src_compile() {
73
74 local TEXMF_PATH=$(kpsewhich --expand-var='$TEXMFMAIN')
75 local myconf toolkit
76
77 if use motif ; then
78 toolkit="motif"
79 elif use neXt ; then
80 toolkit="neXtaw"
81 elif use Xaw3d ; then
82 toolkit="xaw3d"
83 else
84 toolkit="xaw"
85 fi
86
87 econf --disable-multiplatform \
88 --enable-t1lib \
89 --enable-gf \
90 --with-system-t1lib \
91 --with-xdvi-x-toolkit="${toolkit}" \
92 ${myconf} || die "econf failed"
93
94 cd texk/xdvik
95 emake texmf="${TEXMF_PATH}" || die
96 use emacs && elisp-compile xdvi-search.el
97 }
98
99 src_install() {
100
101 dodir /etc/texmf/xdvi /etc/X11/app-defaults
102
103 local TEXMF_PATH=$(kpsewhich --expand-var='$TEXMFMAIN')
104
105 cd "${S}/texk/xdvik"
106 einstall texmf="${D}${TEXMF_PATH}" || die "install failed"
107
108 mv "${D}${TEXMF_PATH}/xdvi/XDvi" "${D}etc/X11/app-defaults"
109 dosym {/etc/X11/app-defaults,"${TEXMF_PATH}"}/XDvi
110 for i in $(find "${D}${TEXMF_PATH}/xdvi" -type f -maxdepth 1) ; do
111 mv ${i} "${D}etc/texmf/xdvi"
112 dosym {/etc/texmf,"${TEXMF_PATH}"}/xdvi/$(basename ${i})
113 done
114
115 dodoc BUGS FAQ README.*
116 if use cjk; then
117 dodoc CHANGES.xdvik-jp
118 docinto READMEs
119 dodoc READMEs/*
120 fi
121
122 use emacs && elisp-install tex-utils *.el *.elc
123 }
124
125 pkg_postinst() {
126 if use emacs; then
127 elog "Add"
128 elog " (add-to-list 'load-path \"${SITELISP}/tex-utils\")"
129 elog " (require 'xdvi-search)"
130 elog "to your ~/.emacs file"
131 fi
132 }

  ViewVC Help
Powered by ViewVC 1.1.20