Gentoo Archives: gentoo-commits

From: "Peter Volkov (pva)" <pva@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] gentoo-x86 commit in app-text/djvu: ChangeLog djvu-3.5.21_p20090103.ebuild
Date: Tue, 20 Jan 2009 18:38:40
Message-Id: E1LPLUi-0000by-V2@stork.gentoo.org
1 pva 09/01/20 18:38:36
2
3 Modified: ChangeLog
4 Added: djvu-3.5.21_p20090103.ebuild
5 Log:
6 Bump to CVS snapshot as it fixes plugin crash and amd64.
7 (Portage version: 2.2_rc23/cvs/Linux i686)
8
9 Revision Changes Path
10 1.87 app-text/djvu/ChangeLog
11
12 file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/app-text/djvu/ChangeLog?rev=1.87&view=markup
13 plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/app-text/djvu/ChangeLog?rev=1.87&content-type=text/plain
14 diff : http://sources.gentoo.org/viewcvs.py/gentoo-x86/app-text/djvu/ChangeLog?r1=1.86&r2=1.87
15
16 Index: ChangeLog
17 ===================================================================
18 RCS file: /var/cvsroot/gentoo-x86/app-text/djvu/ChangeLog,v
19 retrieving revision 1.86
20 retrieving revision 1.87
21 diff -u -r1.86 -r1.87
22 --- ChangeLog 1 Dec 2008 21:23:48 -0000 1.86
23 +++ ChangeLog 20 Jan 2009 18:38:36 -0000 1.87
24 @@ -1,6 +1,11 @@
25 # ChangeLog for app-text/djvu
26 -# Copyright 2002-2008 Gentoo Foundation; Distributed under the GPL v2
27 -# $Header: /var/cvsroot/gentoo-x86/app-text/djvu/ChangeLog,v 1.86 2008/12/01 21:23:48 ranger Exp $
28 +# Copyright 2002-2009 Gentoo Foundation; Distributed under the GPL v2
29 +# $Header: /var/cvsroot/gentoo-x86/app-text/djvu/ChangeLog,v 1.87 2009/01/20 18:38:36 pva Exp $
30 +
31 +*djvu-3.5.21_p20090103 (20 Jan 2009)
32 +
33 + 20 Jan 2009; Peter Volkov <pva@g.o> +djvu-3.5.21_p20090103.ebuild:
34 + Bump to CVS snapshot as it fixes plugin crash and amd64.
35
36 01 Dec 2008; Brent Baude <ranger@g.o> djvu-3.5.21.ebuild:
37 stable ppc64, bug 244258
38
39
40
41 1.1 app-text/djvu/djvu-3.5.21_p20090103.ebuild
42
43 file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/app-text/djvu/djvu-3.5.21_p20090103.ebuild?rev=1.1&view=markup
44 plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/app-text/djvu/djvu-3.5.21_p20090103.ebuild?rev=1.1&content-type=text/plain
45
46 Index: djvu-3.5.21_p20090103.ebuild
47 ===================================================================
48 # Copyright 1999-2009 Gentoo Foundation
49 # Distributed under the terms of the GNU General Public License v2
50 # $Header: /var/cvsroot/gentoo-x86/app-text/djvu/djvu-3.5.21_p20090103.ebuild,v 1.1 2009/01/20 18:38:36 pva Exp $
51
52 EAPI=1
53 inherit fdo-mime nsplugins flag-o-matic eutils multilib toolchain-funcs confutils
54
55 MY_P="${PN}libre-${PV#*_p}"
56
57 DESCRIPTION="DjVu viewers, encoders and utilities."
58 HOMEPAGE="http://djvu.sourceforge.net"
59 SRC_URI="mirror://sourceforge/djvu/${MY_P}.tar.gz"
60
61 LICENSE="GPL-2"
62 SLOT="0"
63 KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86 ~x86-fbsd"
64 IUSE="xml qt3 jpeg tiff debug threads nls nsplugin kde doc"
65
66 RDEPEND="jpeg? ( >=media-libs/jpeg-6b-r2 )
67 tiff? ( media-libs/tiff )
68 qt3? ( x11-libs/qt:3 )"
69 DEPEND="${RDEPEND}
70 qt3? ( nsplugin? ( x11-libs/libXt ) )"
71
72 S=${WORKDIR}/${MY_P}
73
74 LANGS="cs de en fr ja zh"
75 for X in ${LANGS}; do
76 IUSE="${IUSE} linguas_${X}"
77 done
78
79 pkg_setup() {
80 if ! use qt3; then
81 ewarn
82 ewarn "The standalone djvu viewer, djview, will not be compiled."
83 ewarn "Add \"qt3\" to your USE flags if you want it."
84 ewarn
85 fi
86
87 confutils_use_depend_all nsplugin qt3
88 }
89
90 src_compile() {
91 local I18N
92 if use nls; then
93 for X in ${LANGS}; do
94 if use linguas_${X}; then
95 I18N="${I18N} ${X}"
96 fi
97 done
98 I18N="${I18N# }"
99 if test -n "$I18N"; then
100 I18N="--enable-i18n=${I18N}"
101 else
102 I18N="--enable-i18n"
103 fi
104 else
105 I18N="--disable-i18n"
106 fi
107
108 # When enabling qt it must be compiled with threads. See bug #89544.
109 if use qt3 ; then
110 QTCONF=" --with-qt --enable-threads "
111 elif use threads ; then
112 QTCONF=" --without-qt --disable-djview --enable-threads "
113 else
114 QTCONF=" --without-qt --disable-djview --disable-threads "
115 fi
116
117 # We install all desktop files by hand.
118 econf --disable-desktopfiles \
119 $(use_enable xml xmltools) \
120 $(use_with jpeg) \
121 $(use_with tiff) \
122 "${I18N}" \
123 $(use_enable debug) \
124 ${QTCONF}
125
126 if ! use nsplugin; then
127 sed -e 's:nsdejavu::' -i "${S}"/gui/Makefile || die
128 fi
129
130 emake || die "emake failed"
131 }
132
133 src_install() {
134 emake DESTDIR="${D}" plugindir=/usr/$(get_libdir)/${PLUGINS_DIR} install
135
136 dodoc README TODO NEWS
137
138 use doc && cp -r doc/ "${D}"/usr/share/doc/${PF}
139
140 # Install desktop files.
141 cd desktopfiles
142 insinto /usr/share/icons/hicolor/22x22/mimetypes && newins hi22-djvu.png image-vnd.djvu.png || die
143 insinto /usr/share/icons/hicolor/32x32/mimetypes && newins hi32-djvu.png image-vnd.djvu.png || die
144 insinto /usr/share/icons/hicolor/48x48/mimetypes && newins hi48-djvu.png image-vnd.djvu.png || die
145 insinto /usr/share/mime/packages && doins djvulibre-mime.xml || die
146 if use kde ; then
147 insinto /usr/share/mimelnk/image && doins vnd.djvu.desktop || die
148 cp "${D}"/usr/share/mimelnk/image/{vnd.djvu.desktop,x-djvu.desktop}
149 sed -i -e 's:image/vnd.djvu:image/x-djvu:' "${D}"/usr/share/mimelnk/image/x-djvu.desktop
150 fi
151
152 if use qt3 ; then
153 insinto /usr/share/icons/hicolor/32x32/apps && newins hi32-djview3.png djvulibre-djview3.png || die
154 insinto /usr/share/applications/ && doins djvulibre-djview3.desktop || die
155 fi
156 }
157
158 pkg_postinst() {
159 fdo-mime_desktop_database_update
160 fdo-mime_mime_database_update
161 }
162
163 pkg_postrm() {
164 fdo-mime_desktop_database_update
165 fdo-mime_mime_database_update
166 }