Gentoo Archives: gentoo-commits

From: "Alexis Ballier (aballier)" <aballier@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] gentoo-x86 commit in app-text/xdvik: ChangeLog xdvik-22.84.16.ebuild
Date: Sat, 03 Oct 2009 09:32:33
Message-Id: E1Mu0yd-0005yf-3J@stork.gentoo.org
1 aballier 09/10/03 09:32:31
2
3 Modified: ChangeLog
4 Added: xdvik-22.84.16.ebuild
5 Log:
6 version bump, drop cjk patches they cause more harm than good
7 (Portage version: 2.2_rc42/cvs/Linux x86_64)
8
9 Revision Changes Path
10 1.64 app-text/xdvik/ChangeLog
11
12 file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/app-text/xdvik/ChangeLog?rev=1.64&view=markup
13 plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/app-text/xdvik/ChangeLog?rev=1.64&content-type=text/plain
14 diff : http://sources.gentoo.org/viewcvs.py/gentoo-x86/app-text/xdvik/ChangeLog?r1=1.63&r2=1.64
15
16 Index: ChangeLog
17 ===================================================================
18 RCS file: /var/cvsroot/gentoo-x86/app-text/xdvik/ChangeLog,v
19 retrieving revision 1.63
20 retrieving revision 1.64
21 diff -u -r1.63 -r1.64
22 --- ChangeLog 8 Feb 2009 11:07:00 -0000 1.63
23 +++ ChangeLog 3 Oct 2009 09:32:30 -0000 1.64
24 @@ -1,6 +1,12 @@
25 # ChangeLog for app-text/xdvik
26 -# Copyright 2000-2009 Gentoo Foundation; Distributed under the GPL v2
27 -# $Header: /var/cvsroot/gentoo-x86/app-text/xdvik/ChangeLog,v 1.63 2009/02/08 11:07:00 aballier Exp $
28 +# Copyright 1999-2009 Gentoo Foundation; Distributed under the GPL v2
29 +# $Header: /var/cvsroot/gentoo-x86/app-text/xdvik/ChangeLog,v 1.64 2009/10/03 09:32:30 aballier Exp $
30 +
31 +*xdvik-22.84.16 (03 Oct 2009)
32 +
33 + 03 Oct 2009; Alexis Ballier <aballier@g.o> +xdvik-22.84.16.ebuild,
34 + +files/xdvik-22.84.16-open-mode.patch:
35 + version bump, drop cjk patches they cause more harm than good
36
37 *xdvik-22.84.14-r1 (08 Feb 2009)
38
39
40
41
42 1.1 app-text/xdvik/xdvik-22.84.16.ebuild
43
44 file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/app-text/xdvik/xdvik-22.84.16.ebuild?rev=1.1&view=markup
45 plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/app-text/xdvik/xdvik-22.84.16.ebuild?rev=1.1&content-type=text/plain
46
47 Index: xdvik-22.84.16.ebuild
48 ===================================================================
49 # Copyright 1999-2009 Gentoo Foundation
50 # Distributed under the terms of the GNU General Public License v2
51 # $Header: /var/cvsroot/gentoo-x86/app-text/xdvik/xdvik-22.84.16.ebuild,v 1.1 2009/10/03 09:32:30 aballier Exp $
52
53 inherit eutils flag-o-matic elisp-common toolchain-funcs
54
55 DESCRIPTION="DVI previewer for X Window System"
56 HOMEPAGE="http://xdvi.sourceforge.net/"
57 SRC_URI="mirror://sourceforge/xdvi/${P}.tar.gz"
58
59 KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~ppc ~ppc64 ~sh ~sparc ~x86 ~x86-fbsd"
60 SLOT="0"
61 LICENSE="GPL-2"
62 IUSE="motif neXt Xaw3d emacs"
63
64 RDEPEND=">=media-libs/t1lib-5.0.2
65 x11-libs/libXmu
66 x11-libs/libXp
67 x11-libs/libXpm
68 motif? ( x11-libs/openmotif )
69 !motif? ( neXt? ( x11-libs/neXtaw )
70 !neXt? ( Xaw3d? ( x11-libs/Xaw3d ) ) )
71 virtual/latex-base
72 !<app-text/texlive-2007"
73 DEPEND="${RDEPEND}"
74 TEXMF_PATH=/usr/share/texmf
75 S=${WORKDIR}/${P}/texk/xdvik
76
77 src_unpack() {
78 unpack ${A}
79 cd "${S}"
80 epatch "${FILESDIR}/${P}-open-mode.patch"
81 }
82
83 src_compile() {
84 cd "${WORKDIR}/${P}"
85
86 tc-export CC AR RANLIB
87
88 local toolkit
89
90 if use motif ; then
91 toolkit="motif"
92 elif use neXt ; then
93 toolkit="neXtaw"
94 elif use Xaw3d ; then
95 toolkit="xaw3d"
96 else
97 toolkit="xaw"
98 fi
99
100 econf --disable-multiplatform \
101 --enable-t1lib \
102 --enable-gf \
103 --with-system-t1lib \
104 --with-system-kpathsea \
105 --with-kpathsea-include=/usr/include/kpathsea \
106 --with-xdvi-x-toolkit="${toolkit}"
107
108 cd "${S}"
109 emake kpathsea_dir="/usr/include/kpathsea" texmf="${TEXMF_PATH}" || die
110 use emacs && elisp-compile xdvi-search.el
111 }
112
113 src_install() {
114 einstall kpathsea_dir="/usr/include/kpathsea" texmf="${D}${TEXMF_PATH}" || die "install failed"
115
116 dodir /etc/texmf/xdvi /etc/X11/app-defaults
117 mv "${D}${TEXMF_PATH}/xdvi/XDvi" "${D}etc/X11/app-defaults" || die "failed to move config file"
118 dosym {/etc/X11/app-defaults,"${TEXMF_PATH}/xdvi"}/XDvi || die "failed to symlink config file"
119 for i in $(find "${D}${TEXMF_PATH}/xdvi" -type f -maxdepth 1) ; do
120 mv ${i} "${D}etc/texmf/xdvi" || die "failed to move $i"
121 dosym {/etc/texmf,"${TEXMF_PATH}"}/xdvi/$(basename ${i}) || die "failed to symlink $i"
122 done
123
124 dodoc BUGS FAQ README.* || die "dodoc failed"
125
126 use emacs && elisp-install tex-utils *.el *.elc
127
128 doicon "${FILESDIR}/${PN}.png"
129 make_desktop_entry xdvi "XDVI" xdvik "Graphics;Viewer"
130 echo "MimeType=application/x-dvi;" >> "${D}"usr/share/applications/xdvi-"${PN}".desktop
131 }
132
133 pkg_postinst() {
134 if use emacs; then
135 elog "Add"
136 elog " (add-to-list 'load-path \"${SITELISP}/tex-utils\")"
137 elog " (require 'xdvi-search)"
138 elog "to your ~/.emacs file"
139 fi
140 }