1 |
tetromino 11/11/17 03:15:34 |
2 |
|
3 |
Modified: ChangeLog |
4 |
Added: gtk+-2.24.8-r1.ebuild |
5 |
Removed: gtk+-2.24.8.ebuild |
6 |
Log: |
7 |
Add upstream patch to prevent segfault in gtk_icon_view_layout_single_row, drop broken version. Thanks to Rafał Mużyło (galtgendo) for reporting. |
8 |
|
9 |
(Portage version: 2.2.0_alpha74/cvs/Linux x86_64) |
10 |
|
11 |
Revision Changes Path |
12 |
1.552 x11-libs/gtk+/ChangeLog |
13 |
|
14 |
file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/x11-libs/gtk+/ChangeLog?rev=1.552&view=markup |
15 |
plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/x11-libs/gtk+/ChangeLog?rev=1.552&content-type=text/plain |
16 |
diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/x11-libs/gtk+/ChangeLog?r1=1.551&r2=1.552 |
17 |
|
18 |
Index: ChangeLog |
19 |
=================================================================== |
20 |
RCS file: /var/cvsroot/gentoo-x86/x11-libs/gtk+/ChangeLog,v |
21 |
retrieving revision 1.551 |
22 |
retrieving revision 1.552 |
23 |
diff -u -r1.551 -r1.552 |
24 |
--- ChangeLog 16 Nov 2011 23:44:46 -0000 1.551 |
25 |
+++ ChangeLog 17 Nov 2011 03:15:34 -0000 1.552 |
26 |
@@ -1,6 +1,13 @@ |
27 |
# ChangeLog for x11-libs/gtk+ |
28 |
# Copyright 1999-2011 Gentoo Foundation; Distributed under the GPL v2 |
29 |
-# $Header: /var/cvsroot/gentoo-x86/x11-libs/gtk+/ChangeLog,v 1.551 2011/11/16 23:44:46 nirbheek Exp $ |
30 |
+# $Header: /var/cvsroot/gentoo-x86/x11-libs/gtk+/ChangeLog,v 1.552 2011/11/17 03:15:34 tetromino Exp $ |
31 |
+ |
32 |
+*gtk+-2.24.8-r1 (17 Nov 2011) |
33 |
+ |
34 |
+ 17 Nov 2011; Alexandre Rostovtsev <tetromino@g.o> -gtk+-2.24.8.ebuild, |
35 |
+ +gtk+-2.24.8-r1.ebuild, +files/gtk+-2.24.8-iconview-layout.patch: |
36 |
+ Add upstream patch to prevent segfault in gtk_icon_view_layout_single_row, |
37 |
+ drop broken version. Thanks to Rafał Mużyło (galtgendo) for reporting. |
38 |
|
39 |
*gtk+-3.2.2-r1 (16 Nov 2011) |
40 |
|
41 |
|
42 |
|
43 |
|
44 |
1.1 x11-libs/gtk+/gtk+-2.24.8-r1.ebuild |
45 |
|
46 |
file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/x11-libs/gtk+/gtk+-2.24.8-r1.ebuild?rev=1.1&view=markup |
47 |
plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/x11-libs/gtk+/gtk+-2.24.8-r1.ebuild?rev=1.1&content-type=text/plain |
48 |
|
49 |
Index: gtk+-2.24.8-r1.ebuild |
50 |
=================================================================== |
51 |
# Copyright 1999-2011 Gentoo Foundation |
52 |
# Distributed under the terms of the GNU General Public License v2 |
53 |
# $Header: /var/cvsroot/gentoo-x86/x11-libs/gtk+/gtk+-2.24.8-r1.ebuild,v 1.1 2011/11/17 03:15:34 tetromino Exp $ |
54 |
|
55 |
EAPI="4" |
56 |
PYTHON_DEPEND="2:2.4" |
57 |
|
58 |
inherit eutils flag-o-matic gnome.org libtool python virtualx autotools |
59 |
|
60 |
DESCRIPTION="Gimp ToolKit +" |
61 |
HOMEPAGE="http://www.gtk.org/" |
62 |
SRC_URI="${SRC_URI} mirror://gentoo/introspection.m4.bz2" |
63 |
|
64 |
LICENSE="LGPL-2" |
65 |
SLOT="2" |
66 |
KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~mips ~ppc ~ppc64 ~sh ~sparc ~x86 ~x86-fbsd ~x86-freebsd ~x86-interix ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos ~sparc-solaris ~sparc64-solaris ~x64-solaris ~x86-solaris" |
67 |
IUSE="aqua cups debug doc examples +introspection test vim-syntax xinerama" |
68 |
|
69 |
# NOTE: cairo[svg] dep is due to bug 291283 (not patched to avoid eautoreconf) |
70 |
COMMON_DEPEND="!aqua? ( |
71 |
x11-libs/libXrender |
72 |
x11-libs/libX11 |
73 |
x11-libs/libXi |
74 |
x11-libs/libXt |
75 |
x11-libs/libXext |
76 |
>=x11-libs/libXrandr-1.3 |
77 |
x11-libs/libXcursor |
78 |
x11-libs/libXfixes |
79 |
x11-libs/libXcomposite |
80 |
x11-libs/libXdamage |
81 |
>=x11-libs/cairo-1.6[X,svg] |
82 |
x11-libs/gdk-pixbuf:2[X,introspection?] |
83 |
) |
84 |
aqua? ( |
85 |
>=x11-libs/cairo-1.6[aqua,svg] |
86 |
x11-libs/gdk-pixbuf:2[introspection?] |
87 |
) |
88 |
xinerama? ( x11-libs/libXinerama ) |
89 |
>=dev-libs/glib-2.27.3:2 |
90 |
>=x11-libs/pango-1.20[introspection?] |
91 |
>=dev-libs/atk-1.29.2[introspection?] |
92 |
media-libs/fontconfig |
93 |
x11-misc/shared-mime-info |
94 |
cups? ( net-print/cups ) |
95 |
introspection? ( >=dev-libs/gobject-introspection-0.9.3 ) |
96 |
!<gnome-base/gail-1000" |
97 |
DEPEND="${COMMON_DEPEND} |
98 |
>=dev-util/pkgconfig-0.9 |
99 |
!aqua? ( |
100 |
x11-proto/xextproto |
101 |
x11-proto/xproto |
102 |
x11-proto/inputproto |
103 |
x11-proto/damageproto |
104 |
) |
105 |
xinerama? ( x11-proto/xineramaproto ) |
106 |
>=dev-util/gtk-doc-am-1.11 |
107 |
doc? ( |
108 |
>=dev-util/gtk-doc-1.11 |
109 |
~app-text/docbook-xml-dtd-4.1.2 ) |
110 |
test? ( |
111 |
media-fonts/font-misc-misc |
112 |
media-fonts/font-cursor-misc )" |
113 |
# gtk+-2.24.8 breaks Alt key handling in <=x11-libs/vte-0.28.2:0 |
114 |
# Remove blocker after >=vte-0.28.2-r201:0 is stable |
115 |
RDEPEND="${COMMON_DEPEND} |
116 |
!<x11-libs/vte-0.28.2-r201:0" |
117 |
PDEPEND="vim-syntax? ( app-vim/gtk-syntax )" |
118 |
|
119 |
strip_builddir() { |
120 |
local rule=$1 |
121 |
shift |
122 |
local directory=$1 |
123 |
shift |
124 |
sed -e "s/^\(${rule} =.*\)${directory}\(.*\)$/\1\2/" -i $@ \ |
125 |
|| die "Could not strip director ${directory} from build." |
126 |
} |
127 |
|
128 |
set_gtk2_confdir() { |
129 |
# An arch specific config directory is used on multilib systems |
130 |
GTK2_CONFDIR="/etc/gtk-2.0/${CHOST}" |
131 |
} |
132 |
|
133 |
src_prepare() { |
134 |
# use an arch-specific config directory so that 32bit and 64bit versions |
135 |
# dont clash on multilib systems |
136 |
epatch "${FILESDIR}/${PN}-2.21.3-multilib.patch" |
137 |
|
138 |
# Don't break inclusion of gtkclist.h, upstream bug 536767 |
139 |
epatch "${FILESDIR}/${PN}-2.14.3-limit-gtksignal-includes.patch" |
140 |
|
141 |
# Create symlinks to old icons until apps are ported, bug #339319 |
142 |
epatch "${FILESDIR}/${PN}-2.24.4-old-icons.patch" |
143 |
|
144 |
# fix building with gir #372953, upstream bug #642085 |
145 |
epatch "${FILESDIR}"/${PN}-2.24.7-darwin-quartz-introspection.patch |
146 |
|
147 |
# Upstream patch to fix iconview crash, will be in next release |
148 |
epatch "${FILESDIR}/${P}-iconview-layout.patch" |
149 |
|
150 |
# Stop trying to build unmaintained docs, bug #349754 |
151 |
strip_builddir SUBDIRS tutorial docs/Makefile.am docs/Makefile.in |
152 |
strip_builddir SUBDIRS faq docs/Makefile.am docs/Makefile.in |
153 |
|
154 |
# -O3 and company cause random crashes in applications. Bug #133469 |
155 |
replace-flags -O3 -O2 |
156 |
strip-flags |
157 |
|
158 |
use ppc64 && append-flags -mminimal-toc |
159 |
|
160 |
if ! use test; then |
161 |
# don't waste time building tests |
162 |
strip_builddir SRC_SUBDIRS tests Makefile.am Makefile.in |
163 |
else |
164 |
# Non-working test in gentoo's env |
165 |
sed 's:\(g_test_add_func ("/ui-tests/keys-events.*\):/*\1*/:g' \ |
166 |
-i gtk/tests/testing.c || die "sed 1 failed" |
167 |
|
168 |
# Cannot work because glib is too clever to find real user's home |
169 |
# gentoo bug #285687, upstream bug #639832 |
170 |
# XXX: /!\ Pay extra attention to second sed when bumping /!\ |
171 |
sed '/TEST_PROGS.*recentmanager/d' -i gtk/tests/Makefile.am \ |
172 |
|| die "failed to disable recentmanager test (1)" |
173 |
sed '/^TEST_PROGS =/,+3 s/recentmanager//' -i gtk/tests/Makefile.in \ |
174 |
|| die "failed to disable recentmanager test (2)" |
175 |
sed 's:\({ "GtkFileChooserButton".*},\):/*\1*/:g' -i gtk/tests/object.c \ |
176 |
|| die "failed to disable recentmanager test (3)" |
177 |
|
178 |
# Skip tests known to fail |
179 |
# https://bugzilla.gnome.org/show_bug.cgi?id=646609 |
180 |
sed -e '/g_test_add_func.*test_text_access/s:^://:' \ |
181 |
-i "${S}/gtk/tests/testing.c" || die |
182 |
|
183 |
# https://bugzilla.gnome.org/show_bug.cgi?id=617473 |
184 |
sed -i -e 's:pltcheck.sh:$(NULL):g' \ |
185 |
gtk/Makefile.am || die |
186 |
fi |
187 |
|
188 |
if ! use examples; then |
189 |
# don't waste time building demos |
190 |
strip_builddir SRC_SUBDIRS demos Makefile.am Makefile.in |
191 |
fi |
192 |
|
193 |
# http://bugs.gentoo.org/show_bug.cgi?id=371907 |
194 |
mkdir -p "${S}/m4" || die |
195 |
mv "${WORKDIR}/introspection.m4" "${S}/m4macros" || die |
196 |
AT_M4DIR=m4macros eautoreconf |
197 |
# Use elibtoolize in place of eautoreconf when it will be dropped |
198 |
#elibtoolize |
199 |
} |
200 |
|
201 |
src_configure() { |
202 |
local myconf="$(use_enable doc gtk-doc) |
203 |
$(use_enable xinerama) |
204 |
$(use_enable cups cups auto) |
205 |
$(use_enable introspection) |
206 |
--disable-papi" |
207 |
if use aqua; then |
208 |
myconf="${myconf} --with-gdktarget=quartz" |
209 |
else |
210 |
myconf="${myconf} --with-gdktarget=x11 --with-xinput" |
211 |
fi |
212 |
|
213 |
# Passing --disable-debug is not recommended for production use |
214 |
use debug && myconf="${myconf} --enable-debug=yes" |
215 |
|
216 |
econf ${myconf} |
217 |
} |
218 |
|
219 |
src_test() { |
220 |
unset DBUS_SESSION_BUS_ADDRESS |
221 |
# Exporting HOME fixes tests using XDG directories spec since all defaults |
222 |
# are based on $HOME. It is also backward compatible with functions not |
223 |
# yet ported to this spec. |
224 |
XDG_DATA_HOME="${T}" HOME="${T}" Xemake check || die "tests failed" |
225 |
} |
226 |
|
227 |
src_install() { |
228 |
emake DESTDIR="${D}" install |
229 |
|
230 |
set_gtk2_confdir |
231 |
dodir ${GTK2_CONFDIR} |
232 |
keepdir ${GTK2_CONFDIR} |
233 |
|
234 |
# see bug #133241 |
235 |
echo 'gtk-fallback-icon-theme = "gnome"' > "${T}/gtkrc" |
236 |
insinto /etc/gtk-2.0 |
237 |
doins "${T}"/gtkrc |
238 |
|
239 |
# Enable xft in environment as suggested by <utx@g.o> |
240 |
echo "GDK_USE_XFT=1" > "${T}"/50gtk2 |
241 |
doenvd "${T}"/50gtk2 |
242 |
|
243 |
dodoc AUTHORS ChangeLog* HACKING NEWS* README* |
244 |
|
245 |
# add -framework Carbon to the .pc files |
246 |
use aqua && for i in gtk+-2.0.pc gtk+-quartz-2.0.pc gtk+-unix-print-2.0.pc; do |
247 |
sed -i -e "s:Libs\: :Libs\: -framework Carbon :" "${ED%/}"/usr/lib/pkgconfig/$i || die "sed failed" |
248 |
done |
249 |
|
250 |
python_convert_shebangs 2 "${ED}"usr/bin/gtk-builder-convert |
251 |
|
252 |
find "${D}" -name '*.la' -exec rm -f {} + |
253 |
} |
254 |
|
255 |
pkg_postinst() { |
256 |
set_gtk2_confdir |
257 |
|
258 |
# gtk.immodules should be in their CHOST directories respectively. |
259 |
gtk-query-immodules-2.0 > "${EROOT%/}${GTK2_CONFDIR}/gtk.immodules" \ |
260 |
|| ewarn "Failed to run gtk-query-immodules-2.0" |
261 |
|
262 |
if [ -e "${EROOT%/}/etc/gtk-2.0/gtk.immodules" ]; then |
263 |
elog "File /etc/gtk-2.0/gtk.immodules has been moved to \$CHOST" |
264 |
elog "aware location. Removing deprecated file." |
265 |
rm -f ${EROOT%/}/etc/gtk-2.0/gtk.immodules |
266 |
fi |
267 |
|
268 |
# pixbufs are now handled by x11-libs/gdk-pixbuf |
269 |
if [ -e "${EROOT%/}${GTK2_CONFDIR}/gdk-pixbuf.loaders" ]; then |
270 |
elog "File ${EROOT%/}${GTK2_CONFDIR}/gdk-pixbuf.loaders is now handled by x11-libs/gdk-pixbuf" |
271 |
elog "Removing deprecated file." |
272 |
rm -f ${EROOT%/}${GTK2_CONFDIR}/gdk-pixbuf.loaders |
273 |
fi |
274 |
|
275 |
# two checks needed since we dropped multilib conditional |
276 |
if [ -e "${EROOT%/}/etc/gtk-2.0/gdk-pixbuf.loaders" ]; then |
277 |
elog "File ${EROOT%/}/etc/gtk-2.0/gdk-pixbuf.loaders is now handled by x11-libs/gdk-pixbuf" |
278 |
elog "Removing deprecated file." |
279 |
rm -f ${EROOT%/}/etc/gtk-2.0/gdk-pixbuf.loaders |
280 |
fi |
281 |
|
282 |
if [ -e "${EROOT%/}"/usr/lib/gtk-2.0/2.[^1]* ]; then |
283 |
elog "You need to rebuild ebuilds that installed into" "${EROOT%/}"/usr/lib/gtk-2.0/2.[^1]* |
284 |
elog "to do that you can use qfile from portage-utils:" |
285 |
elog "emerge -va1 \$(qfile -qC ${EPREFIX}/usr/lib/gtk-2.0/2.[^1]*)" |
286 |
fi |
287 |
|
288 |
if ! has_version "app-text/evince"; then |
289 |
elog "Please install app-text/evince for print preview functionality." |
290 |
elog "Alternatively, check \"gtk-print-preview-command\" documentation and" |
291 |
elog "add it to your gtkrc." |
292 |
fi |
293 |
} |