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