1 |
pacho 13/02/25 18:42:21 |
2 |
|
3 |
Modified: ChangeLog |
4 |
Added: emul-linux-x86-gtklibs-20130224.ebuild |
5 |
Removed: emul-linux-x86-gtklibs-20121028.ebuild |
6 |
Log: |
7 |
Version bump, drop old |
8 |
|
9 |
(Portage version: 2.1.11.52/cvs/Linux x86_64, RepoMan options: --force, signed Manifest commit with key A188FBD4) |
10 |
|
11 |
Revision Changes Path |
12 |
1.109 app-emulation/emul-linux-x86-gtklibs/ChangeLog |
13 |
|
14 |
file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/app-emulation/emul-linux-x86-gtklibs/ChangeLog?rev=1.109&view=markup |
15 |
plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/app-emulation/emul-linux-x86-gtklibs/ChangeLog?rev=1.109&content-type=text/plain |
16 |
diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/app-emulation/emul-linux-x86-gtklibs/ChangeLog?r1=1.108&r2=1.109 |
17 |
|
18 |
Index: ChangeLog |
19 |
=================================================================== |
20 |
RCS file: /var/cvsroot/gentoo-x86/app-emulation/emul-linux-x86-gtklibs/ChangeLog,v |
21 |
retrieving revision 1.108 |
22 |
retrieving revision 1.109 |
23 |
diff -u -r1.108 -r1.109 |
24 |
--- ChangeLog 25 Dec 2012 19:03:45 -0000 1.108 |
25 |
+++ ChangeLog 25 Feb 2013 18:42:21 -0000 1.109 |
26 |
@@ -1,6 +1,13 @@ |
27 |
# ChangeLog for app-emulation/emul-linux-x86-gtklibs |
28 |
-# Copyright 1999-2012 Gentoo Foundation; Distributed under the GPL v2 |
29 |
-# $Header: /var/cvsroot/gentoo-x86/app-emulation/emul-linux-x86-gtklibs/ChangeLog,v 1.108 2012/12/25 19:03:45 pacho Exp $ |
30 |
+# Copyright 1999-2013 Gentoo Foundation; Distributed under the GPL v2 |
31 |
+# $Header: /var/cvsroot/gentoo-x86/app-emulation/emul-linux-x86-gtklibs/ChangeLog,v 1.109 2013/02/25 18:42:21 pacho Exp $ |
32 |
+ |
33 |
+*emul-linux-x86-gtklibs-20130224 (25 Feb 2013) |
34 |
+ |
35 |
+ 25 Feb 2013; Pacho Ramos <pacho@g.o> |
36 |
+ +emul-linux-x86-gtklibs-20130224.ebuild, |
37 |
+ -emul-linux-x86-gtklibs-20121028.ebuild: |
38 |
+ Version bump, drop old |
39 |
|
40 |
25 Dec 2012; Pacho Ramos <pacho@g.o> |
41 |
emul-linux-x86-gtklibs-20121202.ebuild: |
42 |
|
43 |
|
44 |
|
45 |
1.1 app-emulation/emul-linux-x86-gtklibs/emul-linux-x86-gtklibs-20130224.ebuild |
46 |
|
47 |
file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/app-emulation/emul-linux-x86-gtklibs/emul-linux-x86-gtklibs-20130224.ebuild?rev=1.1&view=markup |
48 |
plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/app-emulation/emul-linux-x86-gtklibs/emul-linux-x86-gtklibs-20130224.ebuild?rev=1.1&content-type=text/plain |
49 |
|
50 |
Index: emul-linux-x86-gtklibs-20130224.ebuild |
51 |
=================================================================== |
52 |
# Copyright 1999-2013 Gentoo Foundation |
53 |
# Distributed under the terms of the GNU General Public License v2 |
54 |
# $Header: /var/cvsroot/gentoo-x86/app-emulation/emul-linux-x86-gtklibs/emul-linux-x86-gtklibs-20130224.ebuild,v 1.1 2013/02/25 18:42:21 pacho Exp $ |
55 |
|
56 |
EAPI=5 |
57 |
inherit emul-linux-x86 |
58 |
|
59 |
LICENSE="GPL-2 LGPL-2 FTL LGPL-2.1 LGPL-3 MPL-1.1 MIT" |
60 |
KEYWORDS="-* ~amd64" |
61 |
|
62 |
DEPEND="" |
63 |
RDEPEND="~app-emulation/emul-linux-x86-baselibs-${PV} |
64 |
~app-emulation/emul-linux-x86-xlibs-${PV} |
65 |
~app-emulation/emul-linux-x86-opengl-${PV}" |
66 |
# RDEPEND on opengl stuff needed due cairo, bug #410213 |
67 |
|
68 |
my_gdk_pixbuf_query_loaders() { |
69 |
# causes segfault if set |
70 |
unset __GL_NO_DSO_FINALIZER |
71 |
|
72 |
local tmp_file=$(mktemp --suffix=tmp.XXXXXXXXXXgdk_pixbuf_queryloaders) |
73 |
if [ -z "${tmp_file}" ]; then |
74 |
ewarn "Cannot create temporary file" |
75 |
return 1 |
76 |
fi |
77 |
|
78 |
if gdk-pixbuf-query-loaders32 > "${tmp_file}"; then |
79 |
cat "${tmp_file}" > "${ROOT}usr/lib32/gdk-pixbuf-2.0/2.10.0/loaders.cache" |
80 |
else |
81 |
ewarn "Warning, gdk-pixbuf-query-loaders32 failed." |
82 |
fi |
83 |
rm "${tmp_file}" |
84 |
} |
85 |
|
86 |
my_pango_querymodules() { |
87 |
PANGO_CONFDIR="/etc/pango/i686-pc-linux-gnu" |
88 |
einfo "Generating pango modules listing..." |
89 |
|
90 |
mkdir -p "${PANGO_CONFDIR}" |
91 |
local pango_conf="${PANGO_CONFDIR}/pango.modules" |
92 |
local tmp_file=$(mktemp -t tmp.XXXXXXXXXXpango_querymodules) |
93 |
if [ -z "${tmp_file}" ]; then |
94 |
ewarn "Cannot create temporary file" |
95 |
return 1 |
96 |
fi |
97 |
|
98 |
if pango-querymodules32 > "${tmp_file}"; then |
99 |
cat "${tmp_file}" > "${pango_conf}" |
100 |
else |
101 |
ewarn "Cannot update pango.modules, file generation failed" |
102 |
fi |
103 |
rm "${tmp_file}" |
104 |
} |
105 |
|
106 |
my_gtk_query_immodules() { |
107 |
GTK2_CONFDIR="/etc/gtk-2.0/i686-pc-linux-gnu" |
108 |
einfo "Generating gtk+ immodules/gdk-pixbuf loaders listing..." |
109 |
|
110 |
mkdir -p "${GTK2_CONFDIR}" |
111 |
local gtk_conf="${ROOT}${GTK2_CONFDIR}/gtk.immodules" |
112 |
local tmp_file=$(mktemp -t tmp.XXXXXXXXXXgtk_query_immodules) |
113 |
if [ -z "${tmp_file}" ]; then |
114 |
ewarn "Cannot create temporary file" |
115 |
return 1 |
116 |
fi |
117 |
|
118 |
if gtk-query-immodules-2.0-32 > "${tmp_file}"; then |
119 |
cat "${tmp_file}" > "${gtk_conf}" |
120 |
else |
121 |
ewarn "Cannot update gtk.immodules, file generation failed" |
122 |
fi |
123 |
rm "${tmp_file}" |
124 |
} |
125 |
|
126 |
src_prepare() { |
127 |
query_tools="${S}/usr/bin/gtk-query-immodules-2.0|${S}/usr/bin/gdk-pixbuf-query-loaders|${S}/usr/bin/pango-querymodules" |
128 |
ALLOWED="(${S}/etc/env.d|${S}/etc/gtk-2.0|${S}/etc/pango/i686-pc-linux-gnu|${query_tools})" |
129 |
emul-linux-x86_src_prepare |
130 |
|
131 |
# these tools generate an index in /etc/{pango,gtk-2.0}/${CHOST} |
132 |
mv -f "${S}/usr/bin/pango-querymodules"{,32} || die |
133 |
mv -f "${S}/usr/bin/gtk-query-immodules-2.0"{,-32} || die |
134 |
mv -f "${S}/usr/bin/gdk-pixbuf-query-loaders"{,32} || die |
135 |
} |
136 |
|
137 |
pkg_preinst() { |
138 |
#bug 169058 |
139 |
for l in "${ROOT}/usr/lib32/{pango,gtk-2.0}" ; do |
140 |
[[ -L ${l} ]] && rm -f ${l} |
141 |
done |
142 |
} |
143 |
|
144 |
pkg_postinst() { |
145 |
my_pango_querymodules |
146 |
my_gtk_query_immodules |
147 |
my_gdk_pixbuf_query_loaders |
148 |
|
149 |
# gdk-pixbuf.loaders should be in their CHOST directories respectively. |
150 |
if [[ -e "${ROOT}/etc/gtk-2.0/gdk-pixbuf.loaders" ]] ; then |
151 |
ewarn |
152 |
ewarn "File /etc/gtk-2.0/gdk-pixbuf.loaders shouldn't be present on" |
153 |
ewarn "multilib systems, please remove it by hand." |
154 |
ewarn |
155 |
fi |
156 |
} |