1 |
tetromino 12/11/05 01:10:44 |
2 |
|
3 |
Modified: gtk+-3.4.4.ebuild gtk+-2.24.12.ebuild |
4 |
gtk+-2.24.13.ebuild ChangeLog |
5 |
Added: gtk+-2.24.13-r1.ebuild |
6 |
Log: |
7 |
Fix 3.4.4 build failure with uclibc (bug #441634, thanks to Anthony Basile). For 2.24.13-r1, share bookmarks with gtk3, and do not install obsolete env.d file (bug #431018, thanks to Hans). UI tests in gtk2 fail if immodules are not already installed (bug #413185, thanks to Patrick Lauer). |
8 |
|
9 |
(Portage version: 2.2.0_alpha142/cvs/Linux x86_64, signed Manifest commit with key CF0ADD61) |
10 |
|
11 |
Revision Changes Path |
12 |
1.11 x11-libs/gtk+/gtk+-3.4.4.ebuild |
13 |
|
14 |
file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/x11-libs/gtk+/gtk+-3.4.4.ebuild?rev=1.11&view=markup |
15 |
plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/x11-libs/gtk+/gtk+-3.4.4.ebuild?rev=1.11&content-type=text/plain |
16 |
diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/x11-libs/gtk+/gtk+-3.4.4.ebuild?r1=1.10&r2=1.11 |
17 |
|
18 |
Index: gtk+-3.4.4.ebuild |
19 |
=================================================================== |
20 |
RCS file: /var/cvsroot/gentoo-x86/x11-libs/gtk+/gtk+-3.4.4.ebuild,v |
21 |
retrieving revision 1.10 |
22 |
retrieving revision 1.11 |
23 |
diff -u -r1.10 -r1.11 |
24 |
--- gtk+-3.4.4.ebuild 28 Oct 2012 16:49:24 -0000 1.10 |
25 |
+++ gtk+-3.4.4.ebuild 5 Nov 2012 01:10:44 -0000 1.11 |
26 |
@@ -1,6 +1,6 @@ |
27 |
# Copyright 1999-2012 Gentoo Foundation |
28 |
# Distributed under the terms of the GNU General Public License v2 |
29 |
-# $Header: /var/cvsroot/gentoo-x86/x11-libs/gtk+/gtk+-3.4.4.ebuild,v 1.10 2012/10/28 16:49:24 armin76 Exp $ |
30 |
+# $Header: /var/cvsroot/gentoo-x86/x11-libs/gtk+/gtk+-3.4.4.ebuild,v 1.11 2012/11/05 01:10:44 tetromino Exp $ |
31 |
|
32 |
EAPI="4" |
33 |
|
34 |
@@ -100,6 +100,9 @@ |
35 |
# Apparently needed for new libxkbcommon headers; bug #408131 |
36 |
epatch "${FILESDIR}/${PN}-3.3.20-wayland-xkbcommon-headers.patch" |
37 |
|
38 |
+ # Build fix for uclibc from gtk+-3.5.x; bug #441634 |
39 |
+ epatch "${FILESDIR}/${PN}-3.4.4-isnan.patch" |
40 |
+ |
41 |
# Non-working test in gentoo's env |
42 |
sed 's:\(g_test_add_func ("/ui-tests/keys-events.*\):/*\1*/:g' \ |
43 |
-i gtk/tests/testing.c || die "sed 1 failed" |
44 |
@@ -159,7 +162,7 @@ |
45 |
# would result in circular dependencies. |
46 |
# https://bugzilla.gnome.org/show_bug.cgi?id=669562 |
47 |
if ! has_version '>=x11-themes/gnome-themes-standard-3.3.91'; then |
48 |
- ewarn "Tests will be skipped because >=gnome-themes-standard-3.3.90" |
49 |
+ ewarn "Tests will be skipped because >=gnome-themes-standard-3.3.91" |
50 |
ewarn "is not installed. Please re-run tests after installing the" |
51 |
ewarn "required version of gnome-themes-standard." |
52 |
return 0 |
53 |
|
54 |
|
55 |
|
56 |
1.12 x11-libs/gtk+/gtk+-2.24.12.ebuild |
57 |
|
58 |
file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/x11-libs/gtk+/gtk+-2.24.12.ebuild?rev=1.12&view=markup |
59 |
plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/x11-libs/gtk+/gtk+-2.24.12.ebuild?rev=1.12&content-type=text/plain |
60 |
diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/x11-libs/gtk+/gtk+-2.24.12.ebuild?r1=1.11&r2=1.12 |
61 |
|
62 |
Index: gtk+-2.24.12.ebuild |
63 |
=================================================================== |
64 |
RCS file: /var/cvsroot/gentoo-x86/x11-libs/gtk+/gtk+-2.24.12.ebuild,v |
65 |
retrieving revision 1.11 |
66 |
retrieving revision 1.12 |
67 |
diff -u -r1.11 -r1.12 |
68 |
--- gtk+-2.24.12.ebuild 28 Oct 2012 16:49:24 -0000 1.11 |
69 |
+++ gtk+-2.24.12.ebuild 5 Nov 2012 01:10:44 -0000 1.12 |
70 |
@@ -1,6 +1,6 @@ |
71 |
# Copyright 1999-2012 Gentoo Foundation |
72 |
# Distributed under the terms of the GNU General Public License v2 |
73 |
-# $Header: /var/cvsroot/gentoo-x86/x11-libs/gtk+/gtk+-2.24.12.ebuild,v 1.11 2012/10/28 16:49:24 armin76 Exp $ |
74 |
+# $Header: /var/cvsroot/gentoo-x86/x11-libs/gtk+/gtk+-2.24.12.ebuild,v 1.12 2012/11/05 01:10:44 tetromino Exp $ |
75 |
|
76 |
EAPI="4" |
77 |
|
78 |
@@ -132,6 +132,15 @@ |
79 |
# https://bugzilla.gnome.org/show_bug.cgi?id=617473 |
80 |
sed -i -e 's:pltcheck.sh:$(NULL):g' \ |
81 |
gtk/Makefile.am || die |
82 |
+ |
83 |
+ # UI tests require immodules already installed; bug #413185 |
84 |
+ if ! has_version 'x11-libs/gtk+:2'; then |
85 |
+ ewarn "Disabling UI tests because this is the first install of" |
86 |
+ ewarn "gtk+:2 on this machine. Please re-run the tests after $P" |
87 |
+ ewarn "has been installed." |
88 |
+ sed '/g_test_add_func.*ui-tests/ d' \ |
89 |
+ -i gtk/tests/testing.c || die "sed 2 failed" |
90 |
+ fi |
91 |
fi |
92 |
|
93 |
if ! use examples; then |
94 |
|
95 |
|
96 |
|
97 |
1.4 x11-libs/gtk+/gtk+-2.24.13.ebuild |
98 |
|
99 |
file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/x11-libs/gtk+/gtk+-2.24.13.ebuild?rev=1.4&view=markup |
100 |
plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/x11-libs/gtk+/gtk+-2.24.13.ebuild?rev=1.4&content-type=text/plain |
101 |
diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/x11-libs/gtk+/gtk+-2.24.13.ebuild?r1=1.3&r2=1.4 |
102 |
|
103 |
Index: gtk+-2.24.13.ebuild |
104 |
=================================================================== |
105 |
RCS file: /var/cvsroot/gentoo-x86/x11-libs/gtk+/gtk+-2.24.13.ebuild,v |
106 |
retrieving revision 1.3 |
107 |
retrieving revision 1.4 |
108 |
diff -u -r1.3 -r1.4 |
109 |
--- gtk+-2.24.13.ebuild 10 Oct 2012 07:44:20 -0000 1.3 |
110 |
+++ gtk+-2.24.13.ebuild 5 Nov 2012 01:10:44 -0000 1.4 |
111 |
@@ -1,6 +1,6 @@ |
112 |
# Copyright 1999-2012 Gentoo Foundation |
113 |
# Distributed under the terms of the GNU General Public License v2 |
114 |
-# $Header: /var/cvsroot/gentoo-x86/x11-libs/gtk+/gtk+-2.24.13.ebuild,v 1.3 2012/10/10 07:44:20 tetromino Exp $ |
115 |
+# $Header: /var/cvsroot/gentoo-x86/x11-libs/gtk+/gtk+-2.24.13.ebuild,v 1.4 2012/11/05 01:10:44 tetromino Exp $ |
116 |
|
117 |
EAPI="4" |
118 |
|
119 |
@@ -77,7 +77,7 @@ |
120 |
} |
121 |
|
122 |
src_prepare() { |
123 |
- # |
124 |
+ # https://bugzilla.gnome.org/show_bug.cgi?id=684787 |
125 |
epatch "${FILESDIR}/${PN}-2.24.13-gold.patch" |
126 |
|
127 |
# use an arch-specific config directory so that 32bit and 64bit versions |
128 |
@@ -131,6 +131,15 @@ |
129 |
# https://bugzilla.gnome.org/show_bug.cgi?id=617473 |
130 |
sed -i -e 's:pltcheck.sh:$(NULL):g' \ |
131 |
gtk/Makefile.am || die |
132 |
+ |
133 |
+ # UI tests require immodules already installed; bug #413185 |
134 |
+ if ! has_version 'x11-libs/gtk+:2'; then |
135 |
+ ewarn "Disabling UI tests because this is the first install of" |
136 |
+ ewarn "gtk+:2 on this machine. Please re-run the tests after $P" |
137 |
+ ewarn "has been installed." |
138 |
+ sed '/g_test_add_func.*ui-tests/ d' \ |
139 |
+ -i gtk/tests/testing.c || die "sed 2 failed" |
140 |
+ fi |
141 |
fi |
142 |
|
143 |
if ! use examples; then |
144 |
|
145 |
|
146 |
|
147 |
1.620 x11-libs/gtk+/ChangeLog |
148 |
|
149 |
file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/x11-libs/gtk+/ChangeLog?rev=1.620&view=markup |
150 |
plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/x11-libs/gtk+/ChangeLog?rev=1.620&content-type=text/plain |
151 |
diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/x11-libs/gtk+/ChangeLog?r1=1.619&r2=1.620 |
152 |
|
153 |
Index: ChangeLog |
154 |
=================================================================== |
155 |
RCS file: /var/cvsroot/gentoo-x86/x11-libs/gtk+/ChangeLog,v |
156 |
retrieving revision 1.619 |
157 |
retrieving revision 1.620 |
158 |
diff -u -r1.619 -r1.620 |
159 |
--- ChangeLog 28 Oct 2012 16:49:24 -0000 1.619 |
160 |
+++ ChangeLog 5 Nov 2012 01:10:44 -0000 1.620 |
161 |
@@ -1,6 +1,17 @@ |
162 |
# ChangeLog for x11-libs/gtk+ |
163 |
# Copyright 1999-2012 Gentoo Foundation; Distributed under the GPL v2 |
164 |
-# $Header: /var/cvsroot/gentoo-x86/x11-libs/gtk+/ChangeLog,v 1.619 2012/10/28 16:49:24 armin76 Exp $ |
165 |
+# $Header: /var/cvsroot/gentoo-x86/x11-libs/gtk+/ChangeLog,v 1.620 2012/11/05 01:10:44 tetromino Exp $ |
166 |
+ |
167 |
+*gtk+-2.24.13-r1 (05 Nov 2012) |
168 |
+ |
169 |
+ 05 Nov 2012; Alexandre Rostovtsev <tetromino@g.o> gtk+-2.24.12.ebuild, |
170 |
+ gtk+-2.24.13.ebuild, +gtk+-2.24.13-r1.ebuild, |
171 |
+ +files/gtk+-2.24.13-gtk3-bookmarks.patch, gtk+-3.4.4.ebuild, |
172 |
+ +files/gtk+-3.4.4-isnan.patch: |
173 |
+ Fix 3.4.4 build failure with uclibc (bug #441634, thanks to Anthony Basile). |
174 |
+ For 2.24.13-r1, share bookmarks with gtk3, and do not install obsolete env.d |
175 |
+ file (bug #431018, thanks to Hans). UI tests in gtk2 fail if immodules are |
176 |
+ not already installed (bug #413185, thanks to Patrick Lauer). |
177 |
|
178 |
28 Oct 2012; Raúl Porcel <armin76@g.o> gtk+-2.24.12.ebuild, |
179 |
gtk+-3.4.4.ebuild: |
180 |
|
181 |
|
182 |
|
183 |
1.1 x11-libs/gtk+/gtk+-2.24.13-r1.ebuild |
184 |
|
185 |
file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/x11-libs/gtk+/gtk+-2.24.13-r1.ebuild?rev=1.1&view=markup |
186 |
plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/x11-libs/gtk+/gtk+-2.24.13-r1.ebuild?rev=1.1&content-type=text/plain |
187 |
|
188 |
Index: gtk+-2.24.13-r1.ebuild |
189 |
=================================================================== |
190 |
# Copyright 1999-2012 Gentoo Foundation |
191 |
# Distributed under the terms of the GNU General Public License v2 |
192 |
# $Header: /var/cvsroot/gentoo-x86/x11-libs/gtk+/gtk+-2.24.13-r1.ebuild,v 1.1 2012/11/05 01:10:44 tetromino Exp $ |
193 |
|
194 |
EAPI="4" |
195 |
|
196 |
inherit eutils flag-o-matic gnome.org virtualx autotools |
197 |
|
198 |
DESCRIPTION="Gimp ToolKit +" |
199 |
HOMEPAGE="http://www.gtk.org/" |
200 |
SRC_URI="${SRC_URI} mirror://gentoo/introspection.m4.bz2" |
201 |
|
202 |
LICENSE="LGPL-2+" |
203 |
SLOT="2" |
204 |
KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~mips ~ppc ~ppc64 ~sh ~sparc ~x86 ~amd64-fbsd ~x86-fbsd ~x86-freebsd ~x86-interix ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos ~sparc-solaris ~sparc64-solaris ~x64-solaris ~x86-solaris" |
205 |
IUSE="aqua cups debug examples +introspection test vim-syntax xinerama" |
206 |
|
207 |
# NOTE: cairo[svg] dep is due to bug 291283 (not patched to avoid eautoreconf) |
208 |
COMMON_DEPEND="!aqua? ( |
209 |
x11-libs/libXrender |
210 |
x11-libs/libX11 |
211 |
x11-libs/libXi |
212 |
x11-libs/libXt |
213 |
x11-libs/libXext |
214 |
>=x11-libs/libXrandr-1.3 |
215 |
x11-libs/libXcursor |
216 |
x11-libs/libXfixes |
217 |
x11-libs/libXcomposite |
218 |
x11-libs/libXdamage |
219 |
>=x11-libs/cairo-1.6[X,svg] |
220 |
x11-libs/gdk-pixbuf:2[X,introspection?] |
221 |
) |
222 |
aqua? ( |
223 |
>=x11-libs/cairo-1.6[aqua,svg] |
224 |
x11-libs/gdk-pixbuf:2[introspection?] |
225 |
) |
226 |
xinerama? ( x11-libs/libXinerama ) |
227 |
>=dev-libs/glib-2.30:2 |
228 |
>=x11-libs/pango-1.20[introspection?] |
229 |
>=dev-libs/atk-1.29.2[introspection?] |
230 |
media-libs/fontconfig |
231 |
x11-misc/shared-mime-info |
232 |
cups? ( net-print/cups ) |
233 |
introspection? ( >=dev-libs/gobject-introspection-0.9.3 ) |
234 |
!<gnome-base/gail-1000" |
235 |
DEPEND="${COMMON_DEPEND} |
236 |
virtual/pkgconfig |
237 |
!aqua? ( |
238 |
x11-proto/xextproto |
239 |
x11-proto/xproto |
240 |
x11-proto/inputproto |
241 |
x11-proto/damageproto |
242 |
) |
243 |
xinerama? ( x11-proto/xineramaproto ) |
244 |
>=dev-util/gtk-doc-am-1.11 |
245 |
test? ( |
246 |
media-fonts/font-misc-misc |
247 |
media-fonts/font-cursor-misc )" |
248 |
# gtk+-2.24.8 breaks Alt key handling in <=x11-libs/vte-0.28.2:0 |
249 |
# Remove blocker after >=vte-0.28.2-r201:0 is stable |
250 |
RDEPEND="${COMMON_DEPEND} |
251 |
!<x11-libs/vte-0.28.2-r201:0" |
252 |
PDEPEND="vim-syntax? ( app-vim/gtk-syntax )" |
253 |
|
254 |
strip_builddir() { |
255 |
local rule=$1 |
256 |
shift |
257 |
local directory=$1 |
258 |
shift |
259 |
sed -e "s/^\(${rule} =.*\)${directory}\(.*\)$/\1\2/" -i $@ \ |
260 |
|| die "Could not strip director ${directory} from build." |
261 |
} |
262 |
|
263 |
set_gtk2_confdir() { |
264 |
# An arch specific config directory is used on multilib systems |
265 |
GTK2_CONFDIR="/etc/gtk-2.0/${CHOST}" |
266 |
} |
267 |
|
268 |
src_prepare() { |
269 |
# https://bugzilla.gnome.org/show_bug.cgi?id=684787 |
270 |
epatch "${FILESDIR}/${PN}-2.24.13-gold.patch" |
271 |
|
272 |
# use an arch-specific config directory so that 32bit and 64bit versions |
273 |
# dont clash on multilib systems |
274 |
epatch "${FILESDIR}/${PN}-2.21.3-multilib.patch" |
275 |
|
276 |
# Don't break inclusion of gtkclist.h, upstream bug 536767 |
277 |
epatch "${FILESDIR}/${PN}-2.14.3-limit-gtksignal-includes.patch" |
278 |
|
279 |
# fix building with gir #372953, upstream bug #642085 |
280 |
epatch "${FILESDIR}"/${PN}-2.24.7-darwin-quartz-introspection.patch |
281 |
|
282 |
# share bookmarks with gtk3 if they are found; in 2.24.14 |
283 |
epatch "${FILESDIR}/${P}-gtk3-bookmarks.patch" |
284 |
|
285 |
# marshalers code was pre-generated with glib-2.31, upstream bug #671763 |
286 |
rm -v gdk/gdkmarshalers.c gtk/gtkmarshal.c gtk/gtkmarshalers.c \ |
287 |
perf/marshalers.c || die |
288 |
|
289 |
# Stop trying to build unmaintained docs, bug #349754 |
290 |
strip_builddir SUBDIRS tutorial docs/Makefile.am docs/Makefile.in |
291 |
strip_builddir SUBDIRS faq docs/Makefile.am docs/Makefile.in |
292 |
|
293 |
# -O3 and company cause random crashes in applications. Bug #133469 |
294 |
replace-flags -O3 -O2 |
295 |
strip-flags |
296 |
|
297 |
use ppc64 && append-flags -mminimal-toc |
298 |
|
299 |
if ! use test; then |
300 |
# don't waste time building tests |
301 |
strip_builddir SRC_SUBDIRS tests Makefile.{am,in} |
302 |
strip_builddir SUBDIRS tests gdk/Makefile.{am,in} gtk/Makefile.{am,in} |
303 |
else |
304 |
# Non-working test in gentoo's env |
305 |
sed 's:\(g_test_add_func ("/ui-tests/keys-events.*\):/*\1*/:g' \ |
306 |
-i gtk/tests/testing.c || die "sed 1 failed" |
307 |
|
308 |
# Cannot work because glib is too clever to find real user's home |
309 |
# gentoo bug #285687, upstream bug #639832 |
310 |
# XXX: /!\ Pay extra attention to second sed when bumping /!\ |
311 |
sed '/TEST_PROGS.*recentmanager/d' -i gtk/tests/Makefile.am \ |
312 |
|| die "failed to disable recentmanager test (1)" |
313 |
sed '/^TEST_PROGS =/,+3 s/recentmanager//' -i gtk/tests/Makefile.in \ |
314 |
|| die "failed to disable recentmanager test (2)" |
315 |
sed 's:\({ "GtkFileChooserButton".*},\):/*\1*/:g' -i gtk/tests/object.c \ |
316 |
|| die "failed to disable recentmanager test (3)" |
317 |
|
318 |
# Skip tests known to fail |
319 |
# https://bugzilla.gnome.org/show_bug.cgi?id=646609 |
320 |
sed -e '/g_test_add_func.*test_text_access/s:^://:' \ |
321 |
-i "${S}/gtk/tests/testing.c" || die |
322 |
|
323 |
# https://bugzilla.gnome.org/show_bug.cgi?id=617473 |
324 |
sed -i -e 's:pltcheck.sh:$(NULL):g' \ |
325 |
gtk/Makefile.am || die |
326 |
|
327 |
# UI tests require immodules already installed; bug #413185 |
328 |
if ! has_version 'x11-libs/gtk+:2'; then |
329 |
ewarn "Disabling UI tests because this is the first install of" |
330 |
ewarn "gtk+:2 on this machine. Please re-run the tests after $P" |
331 |
ewarn "has been installed." |
332 |
sed '/g_test_add_func.*ui-tests/ d' \ |
333 |
-i gtk/tests/testing.c || die "sed 2 failed" |
334 |
fi |
335 |
fi |
336 |
|
337 |
if ! use examples; then |
338 |
# don't waste time building demos |
339 |
strip_builddir SRC_SUBDIRS demos Makefile.am Makefile.in |
340 |
fi |
341 |
|
342 |
# http://bugs.gentoo.org/show_bug.cgi?id=371907 |
343 |
mkdir -p "${S}/m4" || die |
344 |
mv "${WORKDIR}/introspection.m4" "${S}/m4macros" || die |
345 |
AT_M4DIR=m4macros eautoreconf |
346 |
# Use elibtoolize in place of eautoreconf when it will be dropped |
347 |
#elibtoolize |
348 |
} |
349 |
|
350 |
src_configure() { |
351 |
local myconf="$(use_enable xinerama) |
352 |
$(use_enable cups cups auto) |
353 |
$(use_enable introspection) |
354 |
--disable-papi" |
355 |
if use aqua; then |
356 |
myconf="${myconf} --with-gdktarget=quartz" |
357 |
else |
358 |
myconf="${myconf} --with-gdktarget=x11 --with-xinput" |
359 |
fi |
360 |
|
361 |
# Passing --disable-debug is not recommended for production use |
362 |
use debug && myconf="${myconf} --enable-debug=yes" |
363 |
|
364 |
econf ${myconf} |
365 |
} |
366 |
|
367 |
src_test() { |
368 |
unset DBUS_SESSION_BUS_ADDRESS |
369 |
# Exporting HOME fixes tests using XDG directories spec since all defaults |
370 |
# are based on $HOME. It is also backward compatible with functions not |
371 |
# yet ported to this spec. |
372 |
XDG_DATA_HOME="${T}" HOME="${T}" Xemake check || die "tests failed" |
373 |
} |
374 |
|
375 |
src_install() { |
376 |
emake DESTDIR="${D}" install |
377 |
|
378 |
set_gtk2_confdir |
379 |
dodir ${GTK2_CONFDIR} |
380 |
keepdir ${GTK2_CONFDIR} |
381 |
|
382 |
# see bug #133241 |
383 |
echo 'gtk-fallback-icon-theme = "gnome"' > "${T}/gtkrc" |
384 |
insinto /etc/gtk-2.0 |
385 |
doins "${T}"/gtkrc |
386 |
|
387 |
dodoc AUTHORS ChangeLog* HACKING NEWS* README* |
388 |
|
389 |
# add -framework Carbon to the .pc files |
390 |
use aqua && for i in gtk+-2.0.pc gtk+-quartz-2.0.pc gtk+-unix-print-2.0.pc; do |
391 |
sed -i -e "s:Libs\: :Libs\: -framework Carbon :" "${ED%/}"/usr/lib/pkgconfig/$i || die "sed failed" |
392 |
done |
393 |
|
394 |
# dev-util/gtk-builder-convert split off into a separate package, #402905 |
395 |
rm "${ED}"usr/bin/gtk-builder-convert |
396 |
|
397 |
find "${D}" -name '*.la' -exec rm -f {} + |
398 |
} |
399 |
|
400 |
pkg_postinst() { |
401 |
set_gtk2_confdir |
402 |
|
403 |
# gtk.immodules should be in their CHOST directories respectively. |
404 |
gtk-query-immodules-2.0 > "${EROOT%/}${GTK2_CONFDIR}/gtk.immodules" \ |
405 |
|| ewarn "Failed to run gtk-query-immodules-2.0" |
406 |
|
407 |
if [ -e "${EROOT%/}/etc/gtk-2.0/gtk.immodules" ]; then |
408 |
elog "File /etc/gtk-2.0/gtk.immodules has been moved to \$CHOST" |
409 |
elog "aware location. Removing deprecated file." |
410 |
rm -f ${EROOT%/}/etc/gtk-2.0/gtk.immodules |
411 |
fi |
412 |
|
413 |
# pixbufs are now handled by x11-libs/gdk-pixbuf |
414 |
if [ -e "${EROOT%/}${GTK2_CONFDIR}/gdk-pixbuf.loaders" ]; then |
415 |
elog "File ${EROOT%/}${GTK2_CONFDIR}/gdk-pixbuf.loaders is now handled by x11-libs/gdk-pixbuf" |
416 |
elog "Removing deprecated file." |
417 |
rm -f ${EROOT%/}${GTK2_CONFDIR}/gdk-pixbuf.loaders |
418 |
fi |
419 |
|
420 |
# two checks needed since we dropped multilib conditional |
421 |
if [ -e "${EROOT%/}/etc/gtk-2.0/gdk-pixbuf.loaders" ]; then |
422 |
elog "File ${EROOT%/}/etc/gtk-2.0/gdk-pixbuf.loaders is now handled by x11-libs/gdk-pixbuf" |
423 |
elog "Removing deprecated file." |
424 |
rm -f ${EROOT%/}/etc/gtk-2.0/gdk-pixbuf.loaders |
425 |
fi |
426 |
|
427 |
if [ -e "${EROOT%/}"/usr/lib/gtk-2.0/2.[^1]* ]; then |
428 |
elog "You need to rebuild ebuilds that installed into" "${EROOT%/}"/usr/lib/gtk-2.0/2.[^1]* |
429 |
elog "to do that you can use qfile from portage-utils:" |
430 |
elog "emerge -va1 \$(qfile -qC ${EPREFIX}/usr/lib/gtk-2.0/2.[^1]*)" |
431 |
fi |
432 |
|
433 |
if ! has_version "app-text/evince"; then |
434 |
elog "Please install app-text/evince for print preview functionality." |
435 |
elog "Alternatively, check \"gtk-print-preview-command\" documentation and" |
436 |
elog "add it to your gtkrc." |
437 |
fi |
438 |
} |