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.24.ebuild
Date: Sat, 30 Apr 2011 20:14:38
Message-Id: 20110430201428.189CC20054@flycatcher.gentoo.org
1 pva 11/04/30 20:14:28
2
3 Modified: ChangeLog
4 Added: djvu-3.5.24.ebuild
5 Log:
6 Version bump. Fixes gcc46 build issue, bug #361057, thank Vladimir for report and Ryan Hill for fix.
7
8 (Portage version: 2.1.9.46/cvs/Linux x86_64)
9
10 Revision Changes Path
11 1.118 app-text/djvu/ChangeLog
12
13 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/app-text/djvu/ChangeLog?rev=1.118&view=markup
14 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/app-text/djvu/ChangeLog?rev=1.118&content-type=text/plain
15 diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/app-text/djvu/ChangeLog?r1=1.117&r2=1.118
16
17 Index: ChangeLog
18 ===================================================================
19 RCS file: /var/cvsroot/gentoo-x86/app-text/djvu/ChangeLog,v
20 retrieving revision 1.117
21 retrieving revision 1.118
22 diff -u -r1.117 -r1.118
23 --- ChangeLog 16 Apr 2011 18:52:09 -0000 1.117
24 +++ ChangeLog 30 Apr 2011 20:14:27 -0000 1.118
25 @@ -1,6 +1,13 @@
26 # ChangeLog for app-text/djvu
27 # Copyright 1999-2011 Gentoo Foundation; Distributed under the GPL v2
28 -# $Header: /var/cvsroot/gentoo-x86/app-text/djvu/ChangeLog,v 1.117 2011/04/16 18:52:09 armin76 Exp $
29 +# $Header: /var/cvsroot/gentoo-x86/app-text/djvu/ChangeLog,v 1.118 2011/04/30 20:14:27 pva Exp $
30 +
31 +*djvu-3.5.24 (30 Apr 2011)
32 +
33 + 30 Apr 2011; Peter Volkov <pva@g.o> +djvu-3.5.24.ebuild,
34 + +files/djvu-3.5.24-gcc46.patch:
35 + Version bump. Fixes gcc46 build issue, bug #361057, thank Vladimir for report
36 + and Ryan Hill for fix.
37
38 16 Apr 2011; Raúl Porcel <armin76@g.o> djvu-3.5.23.ebuild:
39 ia64/s390/sh stable wrt #358193
40
41
42
43 1.1 app-text/djvu/djvu-3.5.24.ebuild
44
45 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/app-text/djvu/djvu-3.5.24.ebuild?rev=1.1&view=markup
46 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/app-text/djvu/djvu-3.5.24.ebuild?rev=1.1&content-type=text/plain
47
48 Index: djvu-3.5.24.ebuild
49 ===================================================================
50 # Copyright 1999-2011 Gentoo Foundation
51 # Distributed under the terms of the GNU General Public License v2
52 # $Header: /var/cvsroot/gentoo-x86/app-text/djvu/djvu-3.5.24.ebuild,v 1.1 2011/04/30 20:14:28 pva Exp $
53
54 EAPI="4"
55 inherit eutils fdo-mime autotools flag-o-matic
56
57 MY_P="${PN}libre-${PV#*_p}"
58
59 DESCRIPTION="DjVu viewers, encoders and utilities"
60 HOMEPAGE="http://djvu.sourceforge.net"
61 SRC_URI="mirror://sourceforge/djvu/${MY_P}.tar.gz"
62
63 LICENSE="GPL-2"
64 SLOT="0"
65 KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86 ~x86-fbsd"
66 IUSE="debug doc jpeg nls tiff xml"
67
68 RDEPEND="jpeg? ( virtual/jpeg )
69 tiff? ( media-libs/tiff )"
70 DEPEND="${RDEPEND}"
71
72 S=${WORKDIR}/${MY_P}
73
74 # No gui, only manual pages left and only on ja...
75 LANGS="ja"
76 IUSE+=" $(printf "linguas_%s" ${LANGS})"
77
78 src_prepare() {
79 sed 's/AC_CXX_OPTIMIZE/OPTS=;AC_SUBST(OPTS)/' -i configure.ac || die #263688
80 rm aclocal.m4 config/{libtool.m4,ltmain.sh,install-sh}
81 epatch "${FILESDIR}/${P}-gcc46.patch"
82 AT_M4DIR="config" eautoreconf
83 }
84
85 src_configure() {
86 local X I18N
87 if use nls; then
88 for X in ${LANGS}; do
89 if use linguas_${X}; then
90 I18N="${I18N} ${X}"
91 fi
92 done
93 I18N="${I18N# }"
94 if test -n "$I18N"; then
95 I18N="--enable-i18n=${I18N}"
96 else
97 I18N="--enable-i18n"
98 fi
99 else
100 I18N="--disable-i18n"
101 fi
102
103 use debug && append-cppflags "-DRUNTIME_DEBUG_ONLY"
104
105 # We install all desktop files by hand.
106 econf --disable-desktopfiles \
107 --without-qt \
108 $(use_enable xml xmltools) \
109 $(use_with jpeg) \
110 $(use_with tiff) \
111 "${I18N}"
112 }
113
114 src_install() {
115 emake DESTDIR="${D}" install || die
116
117 dodoc README TODO NEWS
118 use doc && dodoc -r doc
119
120 # Install desktop files.
121 cd desktopfiles
122 for i in {22,32,48,64}; do
123 insinto /usr/share/icons/hicolor/${i}x${i}/mimetypes
124 newins hi${i}-djvu.png image-vnd.djvu.png
125 done
126 insinto /usr/share/mime/packages
127 doins djvulibre-mime.xml
128 }
129
130 pkg_postinst() {
131 fdo-mime_mime_database_update
132 if ! has_version app-text/djview4 || ! has_version app-text/djview; then
133 elog "For djviewer or browser plugin, emerge app-text/djview."
134 fi
135 if has_version app-text/djview4; then
136 ewarn "Note, that app-text/djview4 has changed its name to app-text/djview."
137 fi
138 }
139
140 pkg_postrm() {
141 fdo-mime_mime_database_update
142 }