Gentoo Archives: gentoo-commits

From: "Gilles Dartiguelongue (eva)" <eva@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] gentoo-x86 commit in x11-libs/gtk+: gtk+-2.14.7-r2.ebuild ChangeLog
Date: Sun, 01 Mar 2009 23:01:20
Message-Id: E1Ldueo-0005uJ-O3@stork.gentoo.org
1 eva 09/03/01 23:01:14
2
3 Modified: ChangeLog
4 Added: gtk+-2.14.7-r2.ebuild
5 Log:
6 Bump to 2.14.7-r2. Hopefully fix test failures, bug #238995, and enhance mime-type resolution, bug #257980.
7 (Portage version: 2.2_rc23/cvs/Linux x86_64)
8
9 Revision Changes Path
10 1.411 x11-libs/gtk+/ChangeLog
11
12 file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/x11-libs/gtk+/ChangeLog?rev=1.411&view=markup
13 plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/x11-libs/gtk+/ChangeLog?rev=1.411&content-type=text/plain
14 diff : http://sources.gentoo.org/viewcvs.py/gentoo-x86/x11-libs/gtk+/ChangeLog?r1=1.410&r2=1.411
15
16 Index: ChangeLog
17 ===================================================================
18 RCS file: /var/cvsroot/gentoo-x86/x11-libs/gtk+/ChangeLog,v
19 retrieving revision 1.410
20 retrieving revision 1.411
21 diff -u -r1.410 -r1.411
22 --- ChangeLog 15 Feb 2009 12:40:44 -0000 1.410
23 +++ ChangeLog 1 Mar 2009 23:01:14 -0000 1.411
24 @@ -1,6 +1,14 @@
25 # ChangeLog for x11-libs/gtk+
26 # Copyright 2002-2009 Gentoo Foundation; Distributed under the GPL v2
27 -# $Header: /var/cvsroot/gentoo-x86/x11-libs/gtk+/ChangeLog,v 1.410 2009/02/15 12:40:44 armin76 Exp $
28 +# $Header: /var/cvsroot/gentoo-x86/x11-libs/gtk+/ChangeLog,v 1.411 2009/03/01 23:01:14 eva Exp $
29 +
30 +*gtk+-2.14.7-r2 (01 Mar 2009)
31 +
32 + 01 Mar 2009; Gilles Dartiguelongue <eva@g.o>
33 + +files/gtk+-2.14.7-ignore-gtkcurve.patch,
34 + +files/gtk+-2.14.7-uncertain-mime.patch, +gtk+-2.14.7-r2.ebuild:
35 + Bump to 2.14.7-r2. Hopefully fix test failures, bug #238995, and enhance
36 + mime-type resolution, bug #257980.
37
38 15 Feb 2009; Raúl Porcel <armin76@g.o> gtk+-2.12.11.ebuild:
39 arm/sh stable
40
41
42
43 1.1 x11-libs/gtk+/gtk+-2.14.7-r2.ebuild
44
45 file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/x11-libs/gtk+/gtk+-2.14.7-r2.ebuild?rev=1.1&view=markup
46 plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/x11-libs/gtk+/gtk+-2.14.7-r2.ebuild?rev=1.1&content-type=text/plain
47
48 Index: gtk+-2.14.7-r2.ebuild
49 ===================================================================
50 # Copyright 1999-2009 Gentoo Foundation
51 # Distributed under the terms of the GNU General Public License v2
52 # $Header: /var/cvsroot/gentoo-x86/x11-libs/gtk+/gtk+-2.14.7-r2.ebuild,v 1.1 2009/03/01 23:01:14 eva Exp $
53
54 WANT_AUTOMAKE="1.7"
55
56 inherit gnome.org flag-o-matic eutils libtool virtualx
57
58 DESCRIPTION="Gimp ToolKit +"
59 HOMEPAGE="http://www.gtk.org/"
60
61 LICENSE="LGPL-2"
62 SLOT="2"
63 KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~mips ~ppc ~ppc64 ~sh ~sparc ~x86 ~x86-fbsd"
64 IUSE="cups debug doc jpeg jpeg2k tiff vim-syntax xinerama"
65
66 RDEPEND="x11-libs/libXrender
67 x11-libs/libX11
68 x11-libs/libXi
69 x11-libs/libXt
70 x11-libs/libXext
71 >=x11-libs/libXrandr-1.2
72 x11-libs/libXcursor
73 x11-libs/libXfixes
74 x11-libs/libXcomposite
75 x11-libs/libXdamage
76 xinerama? ( x11-libs/libXinerama )
77 >=dev-libs/glib-2.17.6
78 >=x11-libs/pango-1.20
79 >=dev-libs/atk-1.13
80 >=x11-libs/cairo-1.6
81 media-libs/fontconfig
82 x11-misc/shared-mime-info
83 >=media-libs/libpng-1.2.1
84 cups? ( net-print/cups )
85 jpeg? ( >=media-libs/jpeg-6b-r2 )
86 jpeg2k? ( media-libs/jasper )
87 tiff? ( >=media-libs/tiff-3.5.7 )
88 !<gnome-base/gail-1000"
89 DEPEND="${RDEPEND}
90 >=dev-util/pkgconfig-0.9
91 x11-proto/xextproto
92 x11-proto/xproto
93 x11-proto/inputproto
94 x11-proto/damageproto
95 xinerama? ( x11-proto/xineramaproto )
96 >=dev-util/gtk-doc-am-1.8
97 doc? (
98 >=dev-util/gtk-doc-1.8
99 ~app-text/docbook-xml-dtd-4.1.2
100 )"
101 PDEPEND="vim-syntax? ( app-vim/gtk-syntax )"
102
103 pkg_setup() {
104 if ! built_with_use x11-libs/cairo X; then
105 eerror "Please re-emerge x11-libs/cairo with the X USE flag set"
106 die "cairo needs the X flag set"
107 fi
108 }
109
110 set_gtk2_confdir() {
111 # An arch specific config directory is used on multilib systems
112 has_multilib_profile && GTK2_CONFDIR="/etc/gtk-2.0/${CHOST}"
113 GTK2_CONFDIR=${GTK2_CONFDIR:=/etc/gtk-2.0}
114 }
115
116 src_unpack() {
117 unpack ${A}
118 cd "${S}"
119
120 # use an arch-specific config directory so that 32bit and 64bit versions
121 # dont clash on multilib systems
122 has_multilib_profile && epatch "${FILESDIR}/${PN}-2.8.0-multilib.patch"
123
124 # Workaround adobe flash infinite loop. Patch from http://bugzilla.gnome.org/show_bug.cgi?id=463773#c11
125 epatch "${FILESDIR}/${PN}-2.12.0-flash-workaround.patch"
126
127 # Don't break inclusion of gtkclist.h, upstream bug 536767
128 epatch "${FILESDIR}/${PN}-2.14.3-limit-gtksignal-includes.patch"
129
130 # Fix filechooser placement. bug #239360
131 epatch "${FILESDIR}/${PN}-2.14.7-filechooser.patch"
132
133 # Ignore broken curve tests, bug #238995
134 epatch "${FILESDIR}/${PN}-2.14.7-ignore-gtkcurve.patch"
135
136 # Uncertain mime fix, bug #257980
137 epatch "${FILESDIR}/${PN}-2.14.7-uncertain-mime.patch"
138
139 # -O3 and company cause random crashes in applications. Bug #133469
140 replace-flags -O3 -O2
141 strip-flags
142
143 use ppc64 && append-flags -mminimal-toc
144
145 elibtoolize
146 }
147
148 src_compile() {
149 # png always on to display icons (foser)
150 local myconf="$(use_enable doc gtk-doc) \
151 $(use_with jpeg libjpeg) \
152 $(use_with jpeg2k libjasper) \
153 $(use_with tiff libtiff) \
154 $(use_enable xinerama) \
155 $(use_enable cups cups auto) \
156 --with-libpng \
157 --with-gdktarget=x11 \
158 --with-xinput"
159
160 # Passing --disable-debug is not recommended for production use
161 use debug && myconf="${myconf} --enable-debug=yes"
162
163 econf ${myconf} || die "configure failed"
164 emake || die "compile failed"
165 }
166
167 src_test() {
168 unset DBUS_SESSION_BUS_ADDRESS
169 Xemake check || die "tests failed"
170 }
171
172 src_install() {
173 emake DESTDIR="${D}" install || die "Installation failed"
174
175 set_gtk2_confdir
176 dodir ${GTK2_CONFDIR}
177 keepdir ${GTK2_CONFDIR}
178
179 # see bug #133241
180 echo 'gtk-fallback-icon-theme = "gnome"' > "${D}/${GTK2_CONFDIR}/gtkrc"
181
182 # Enable xft in environment as suggested by <utx@g.o>
183 dodir /etc/env.d
184 echo "GDK_USE_XFT=1" > "${D}/etc/env.d/50gtk2"
185
186 dodoc AUTHORS ChangeLog* HACKING NEWS* README*
187
188 # This has to be removed, because it's multilib specific; generated in
189 # postinst
190 rm "${D}/etc/gtk-2.0/gtk.immodules"
191 }
192
193 pkg_postinst() {
194 set_gtk2_confdir
195
196 if [ -d "${ROOT}${GTK2_CONFDIR}" ]; then
197 gtk-query-immodules-2.0 > "${ROOT}${GTK2_CONFDIR}/gtk.immodules"
198 gdk-pixbuf-query-loaders > "${ROOT}${GTK2_CONFDIR}/gdk-pixbuf.loaders"
199 else
200 ewarn "The destination path ${ROOT}${GTK2_CONFDIR} doesn't exist;"
201 ewarn "to complete the installation of GTK+, please create the"
202 ewarn "directory and then manually run:"
203 ewarn " cd ${ROOT}${GTK2_CONFDIR}"
204 ewarn " gtk-query-immodules-2.0 > gtk.immodules"
205 ewarn " gdk-pixbuf-query-loaders > gdk-pixbuf.loaders"
206 fi
207
208 if [ -e /usr/lib/gtk-2.0/2.[^1]* ]; then
209 elog "You need to rebuild ebuilds that installed into" /usr/lib/gtk-2.0/2.[^1]*
210 elog "to do that you can use qfile from portage-utils:"
211 elog "emerge -va1 \$(qfile -qC /usr/lib/gtk-2.0/2.[^1]*)"
212 fi
213
214 elog "Please install app-text/evince for print preview functionality."
215 elog "Alternatively, check \"gtk-print-preview-command\" documentation and"
216 elog "add it to your gtkrc."
217 }