Gentoo Archives: gentoo-dev

From: Alex Xu <alex_y_xu@×××××.ca>
To: gentoo-dev@l.g.o
Subject: Re: [gentoo-dev] [PATCH] gnome2-utils.eclass add support for gdk-pixbuf cache update
Date: Mon, 09 Sep 2013 23:31:32
Message-Id: 522E5A48.4000300@yahoo.ca
In Reply to: Re: [gentoo-dev] [PATCH] gnome2-utils.eclass add support for gdk-pixbuf cache update by Gilles Dartiguelongue
1 On 09/09/13 08:29 PM, Gilles Dartiguelongue wrote:
2 >
3 > Index: gdk-pixbuf-2.28.2.ebuild
4 > ===================================================================
5 > RCS file: /var/cvsroot/gentoo-x86/x11-libs/gdk-pixbuf/gdk-pixbuf-2.28.2.ebuild,v
6 > retrieving revision 1.3
7 > diff -u -B -r1.3 gdk-pixbuf-2.28.2.ebuild
8 > --- gdk-pixbuf-2.28.2.ebuild 3 Sep 2013 21:59:11 -0000 1.3
9 > +++ gdk-pixbuf-2.28.2.ebuild 9 Sep 2013 22:28:20 -0000
10 > @@ -67,6 +67,15 @@
11 >  
12 >  pkg_preinst() {
13 >  gnome2_gdk_pixbuf_savelist
14 > +
15 > + # Make sure loaders.cache belongs to gdk-pixbuf alone
16 > + local cache="usr/$(get_libdir)/${PN}-2.0/2.10.0/loaders.cache"
17 > +
18 > + if [[ -e ${ROOT}${cache} ]]; then
19 > + cp "${ROOT}"${cache} "${D}"/${cache} || die
20 > + else
21 > + touch "${D}"/${cache} || die
22 > + fi
23 >  }
24 >  
25 >  pkg_postinst() {
26
27 Index: gdk-pixbuf-2.28.2.ebuild
28 ===================================================================
29 RCS file:
30 /var/cvsroot/gentoo-x86/x11-libs/gdk-pixbuf/gdk-pixbuf-2.28.2.ebuild,v
31 retrieving revision 1.3
32 diff -u -B -r1.3 gdk-pixbuf-2.28.2.ebuild
33 --- gdk-pixbuf-2.28.2.ebuild 3 Sep 2013 21:59:11 -0000 1.3
34 +++ gdk-pixbuf-2.28.2.ebuild 9 Sep 2013 22:28:20 -0000
35 @@ -67,6 +67,15 @@
36
37 pkg_preinst() {
38 gnome2_gdk_pixbuf_savelist
39 +
40 + # Make sure loaders.cache belongs to gdk-pixbuf alone
41 + local cache="usr/$(get_libdir)/${PN}-2.0/2.10.0/loaders.cache"
42 +
43 + if [[ -e ${ROOT}${cache} ]]; then
44 + cp "${ROOT}"${cache} "${D}"/${cache} || die
45 + else
46 + touch "${D}"/${cache} || die
47 + fi
48 }
49
50 pkg_postinst() {

Attachments

File name MIME type
signature.asc application/pgp-signature

Replies