1 |
nirbheek 11/11/16 23:44:46 |
2 |
|
3 |
Modified: ChangeLog |
4 |
Added: gtk+-3.2.2-r1.ebuild |
5 |
Log: |
6 |
Fix abort when icon widgets on gtktoolbuttons aren't GtkMisc, needed by gnome-boxes |
7 |
|
8 |
(Portage version: 2.2.0_alpha74/cvs/Linux x86_64) |
9 |
|
10 |
Revision Changes Path |
11 |
1.551 x11-libs/gtk+/ChangeLog |
12 |
|
13 |
file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/x11-libs/gtk+/ChangeLog?rev=1.551&view=markup |
14 |
plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/x11-libs/gtk+/ChangeLog?rev=1.551&content-type=text/plain |
15 |
diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/x11-libs/gtk+/ChangeLog?r1=1.550&r2=1.551 |
16 |
|
17 |
Index: ChangeLog |
18 |
=================================================================== |
19 |
RCS file: /var/cvsroot/gentoo-x86/x11-libs/gtk+/ChangeLog,v |
20 |
retrieving revision 1.550 |
21 |
retrieving revision 1.551 |
22 |
diff -u -r1.550 -r1.551 |
23 |
--- ChangeLog 16 Nov 2011 21:54:12 -0000 1.550 |
24 |
+++ ChangeLog 16 Nov 2011 23:44:46 -0000 1.551 |
25 |
@@ -1,6 +1,13 @@ |
26 |
# ChangeLog for x11-libs/gtk+ |
27 |
# Copyright 1999-2011 Gentoo Foundation; Distributed under the GPL v2 |
28 |
-# $Header: /var/cvsroot/gentoo-x86/x11-libs/gtk+/ChangeLog,v 1.550 2011/11/16 21:54:12 tetromino Exp $ |
29 |
+# $Header: /var/cvsroot/gentoo-x86/x11-libs/gtk+/ChangeLog,v 1.551 2011/11/16 23:44:46 nirbheek Exp $ |
30 |
+ |
31 |
+*gtk+-3.2.2-r1 (16 Nov 2011) |
32 |
+ |
33 |
+ 16 Nov 2011; Nirbheek Chauhan <nirbheek@g.o> +gtk+-3.2.2-r1.ebuild, |
34 |
+ +files/gtk+-3.2.2-toolbutton-icon-widget-GtkMisc.patch: |
35 |
+ Fix abort when icon widgets on gtktoolbuttons aren't GtkMisc, needed by |
36 |
+ gnome-boxes |
37 |
|
38 |
*gtk+-2.24.8 (16 Nov 2011) |
39 |
|
40 |
|
41 |
|
42 |
|
43 |
1.1 x11-libs/gtk+/gtk+-3.2.2-r1.ebuild |
44 |
|
45 |
file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/x11-libs/gtk+/gtk+-3.2.2-r1.ebuild?rev=1.1&view=markup |
46 |
plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/x11-libs/gtk+/gtk+-3.2.2-r1.ebuild?rev=1.1&content-type=text/plain |
47 |
|
48 |
Index: gtk+-3.2.2-r1.ebuild |
49 |
=================================================================== |
50 |
# Copyright 1999-2011 Gentoo Foundation |
51 |
# Distributed under the terms of the GNU General Public License v2 |
52 |
# $Header: /var/cvsroot/gentoo-x86/x11-libs/gtk+/gtk+-3.2.2-r1.ebuild,v 1.1 2011/11/16 23:44:46 nirbheek Exp $ |
53 |
|
54 |
EAPI="4" |
55 |
|
56 |
inherit eutils flag-o-matic gnome.org gnome2-utils libtool virtualx |
57 |
|
58 |
DESCRIPTION="Gimp ToolKit +" |
59 |
HOMEPAGE="http://www.gtk.org/" |
60 |
|
61 |
LICENSE="LGPL-2" |
62 |
SLOT="3" |
63 |
# NOTE: This gtk+ has multi-gdk-backend support, see: |
64 |
# * http://blogs.gnome.org/kris/2010/12/29/gdk-3-0-on-mac-os-x/ |
65 |
# * http://mail.gnome.org/archives/gtk-devel-list/2010-November/msg00099.html |
66 |
# I tried this and got it all compiling, but the end result is unusable as it |
67 |
# horribly mixes up the backends -- grobian |
68 |
IUSE="aqua colord cups debug doc examples +introspection packagekit test vim-syntax xinerama" |
69 |
KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~mips ~ppc ~ppc64 ~sh ~sparc ~x86 ~x86-fbsd ~x86-freebsd ~x86-interix ~amd64-linux ~x86-linux ~ppc-macos ~x86-macos ~sparc-solaris ~sparc64-solaris ~x64-solaris ~x86-solaris" |
70 |
|
71 |
# FIXME: introspection data is built against system installation of gtk+:3 |
72 |
# NOTE: cairo[svg] dep is due to bug 291283 (not patched to avoid eautoreconf) |
73 |
# Use gtk+:2 for gtk-update-icon-cache and gtk-builder-convert |
74 |
# >=x11-libs/gtk+-2.24:2 is needed for bug 359555 |
75 |
COMMON_DEPEND="!aqua? ( |
76 |
x11-libs/libXrender |
77 |
x11-libs/libX11 |
78 |
x11-libs/libXi |
79 |
x11-libs/libXt |
80 |
x11-libs/libXext |
81 |
>=x11-libs/libXrandr-1.3 |
82 |
x11-libs/libXcursor |
83 |
x11-libs/libXfixes |
84 |
x11-libs/libXcomposite |
85 |
x11-libs/libXdamage |
86 |
>=x11-libs/cairo-1.10.0[X,glib,svg] |
87 |
>=x11-libs/gdk-pixbuf-2.23.5:2[X,introspection?] |
88 |
) |
89 |
aqua? ( |
90 |
>=x11-libs/cairo-1.10.0[aqua,glib,svg] |
91 |
>=x11-libs/gdk-pixbuf-2.23.5:2[introspection?] |
92 |
) |
93 |
xinerama? ( x11-libs/libXinerama ) |
94 |
>=dev-libs/glib-2.29.14 |
95 |
>=x11-libs/pango-1.29.0[introspection?] |
96 |
>=dev-libs/atk-2.1.5[introspection?] |
97 |
>=x11-libs/gtk+-2.24:2 |
98 |
media-libs/fontconfig |
99 |
x11-misc/shared-mime-info |
100 |
colord? ( >=x11-misc/colord-0.1.9 ) |
101 |
cups? ( net-print/cups ) |
102 |
introspection? ( >=dev-libs/gobject-introspection-0.10.1 )" |
103 |
DEPEND="${COMMON_DEPEND} |
104 |
>=dev-util/pkgconfig-0.9 |
105 |
!aqua? ( |
106 |
x11-proto/xextproto |
107 |
x11-proto/xproto |
108 |
x11-proto/inputproto |
109 |
x11-proto/damageproto |
110 |
) |
111 |
xinerama? ( x11-proto/xineramaproto ) |
112 |
>=dev-util/gtk-doc-am-1.11 |
113 |
doc? ( |
114 |
>=dev-util/gtk-doc-1.11 |
115 |
~app-text/docbook-xml-dtd-4.1.2 ) |
116 |
test? ( |
117 |
media-fonts/font-misc-misc |
118 |
media-fonts/font-cursor-misc )" |
119 |
# gtk+-3.2.2 breaks Alt key handling in <=x11-libs/vte-0.30.1:2.90 |
120 |
RDEPEND="${COMMON_DEPEND} |
121 |
!<gnome-base/gail-1000 |
122 |
!<x11-libs/vte-0.30.1-r1:2.90 |
123 |
packagekit? ( app-admin/packagekit-base )" |
124 |
PDEPEND="vim-syntax? ( app-vim/gtk-syntax )" |
125 |
|
126 |
strip_builddir() { |
127 |
local rule=$1 |
128 |
shift |
129 |
local directory=$1 |
130 |
shift |
131 |
sed -e "s/^\(${rule} =.*\)${directory}\(.*\)$/\1\2/" -i $@ \ |
132 |
|| die "Could not strip director ${directory} from build." |
133 |
} |
134 |
|
135 |
src_prepare() { |
136 |
# -O3 and company cause random crashes in applications. Bug #133469 |
137 |
replace-flags -O3 -O2 |
138 |
strip-flags |
139 |
|
140 |
# Fix invalid aborts, taken from git, will probably go into next release |
141 |
epatch "${FILESDIR}/${P}-toolbutton-icon-widget-GtkMisc.patch" |
142 |
|
143 |
# Non-working test in gentoo's env |
144 |
sed 's:\(g_test_add_func ("/ui-tests/keys-events.*\):/*\1*/:g' \ |
145 |
-i gtk/tests/testing.c || die "sed 1 failed" |
146 |
sed '\%/recent-manager/add%,/recent_manager_purge/ d' \ |
147 |
-i gtk/tests/recentmanager.c || die "sed 2 failed" |
148 |
|
149 |
# Missing file, required for tests; https://bugzilla.gnome.org/show_bug.cgi?id=662024 |
150 |
cp "${FILESDIR}/${PN}-3.2.1-selector.errors" \ |
151 |
tests/css/parser/selector.errors || die "cp failed" |
152 |
|
153 |
# FIXME: multiple reftests fail when run from portage (but succeed when |
154 |
# run from a manual compile in a temp directory) |
155 |
sed -e 's:\(SUBDIRS.*\)reftests:\1:' \ |
156 |
-i tests/Makefile.* || die "sed 3 failed" |
157 |
|
158 |
# Test results depend on the list of mounted filesystems! |
159 |
rm -v tests/a11y/pickers.{ui,txt} || die "rm failed" |
160 |
|
161 |
# Failing treeview scrolling tests; bug #384855, |
162 |
# https://bugzilla.gnome.org/show_bug.cgi?id=660931 |
163 |
epatch "${FILESDIR}/${PN}-3.2.1-failing-tests.patch" |
164 |
|
165 |
if ! use test; then |
166 |
# don't waste time building tests |
167 |
strip_builddir SRC_SUBDIRS tests Makefile.am |
168 |
strip_builddir SRC_SUBDIRS tests Makefile.in |
169 |
fi |
170 |
|
171 |
if ! use examples; then |
172 |
# don't waste time building demos |
173 |
strip_builddir SRC_SUBDIRS demos Makefile.am |
174 |
strip_builddir SRC_SUBDIRS demos Makefile.in |
175 |
fi |
176 |
} |
177 |
|
178 |
src_configure() { |
179 |
# png always on to display icons (foser) |
180 |
local myconf="$(use_enable doc gtk-doc) |
181 |
$(use_enable xinerama) |
182 |
$(use_enable packagekit) |
183 |
$(use_enable cups cups auto) |
184 |
$(use_enable colord) |
185 |
$(use_enable introspection) |
186 |
--disable-papi |
187 |
--enable-gtk2-dependency" |
188 |
|
189 |
# XXX: Maybe with multi-backend we should enable x11 all the time? |
190 |
if use aqua; then |
191 |
myconf="${myconf} --enable-quartz-backend --disable-xinput" |
192 |
else |
193 |
myconf="${myconf} --enable-x11-backend --enable-xinput" |
194 |
fi |
195 |
|
196 |
# Passing --disable-debug is not recommended for production use |
197 |
use debug && myconf="${myconf} --enable-debug=yes" |
198 |
|
199 |
# need libdir here to avoid a double slash in a path that libtool doesn't |
200 |
# grok so well during install (// between $EPREFIX and usr ...) |
201 |
econf --libdir="${EPREFIX}/usr/$(get_libdir)" ${myconf} |
202 |
} |
203 |
|
204 |
src_test() { |
205 |
unset DBUS_SESSION_BUS_ADDRESS |
206 |
# Exporting HOME fixes tests using XDG directories spec since all defaults |
207 |
# are based on $HOME. It is also backward compatible with functions not |
208 |
# yet ported to this spec. |
209 |
XDG_DATA_HOME="${T}" HOME="${T}" Xemake check || die "tests failed" |
210 |
} |
211 |
|
212 |
src_install() { |
213 |
emake DESTDIR="${D}" install |
214 |
|
215 |
insinto /etc/gtk-3.0 |
216 |
doins "${FILESDIR}"/settings.ini |
217 |
|
218 |
dodoc AUTHORS ChangeLog* HACKING NEWS* README* |
219 |
|
220 |
# Remove unneeded *.la files |
221 |
find "${D}" -name '*.la' -exec rm -f {} + |
222 |
|
223 |
# add -framework Carbon to the .pc files |
224 |
use aqua && for i in gtk+-3.0.pc gtk+-quartz-3.0.pc gtk+-unix-print-3.0.pc; do |
225 |
sed -i -e "s:Libs\: :Libs\: -framework Carbon :" "${ED}"usr/$(get_libdir)/pkgconfig/$i || die "sed failed" |
226 |
done |
227 |
} |
228 |
|
229 |
pkg_preinst() { |
230 |
gnome2_schemas_savelist |
231 |
} |
232 |
|
233 |
pkg_postinst() { |
234 |
gnome2_schemas_update |
235 |
|
236 |
local GTK3_MODDIR="${EROOT}usr/$(get_libdir)/gtk-3.0/3.0.0" |
237 |
gtk-query-immodules-3.0 > "${GTK3_MODDIR}/immodules.cache" \ |
238 |
|| ewarn "Failed to run gtk-query-immodules-3.0" |
239 |
|
240 |
if ! has_version "app-text/evince"; then |
241 |
elog "Please install app-text/evince for print preview functionality." |
242 |
elog "Alternatively, check \"gtk-print-preview-command\" documentation and" |
243 |
elog "add it to your settings.ini file." |
244 |
fi |
245 |
} |
246 |
|
247 |
pkg_postrm() { |
248 |
gnome2_schemas_update --uninstall |
249 |
} |