Gentoo Archives: gentoo-commits

From: "Alexandre Rostovtsev (tetromino)" <tetromino@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] gentoo-x86 commit in x11-libs/gtk+: ChangeLog gtk+-3.2.3.ebuild gtk+-3.2.2.ebuild gtk+-3.2.1.ebuild
Date: Wed, 28 Dec 2011 04:54:25
Message-Id: 20111228045415.E00882004B@flycatcher.gentoo.org
1 tetromino 11/12/28 04:54:15
2
3 Modified: ChangeLog
4 Added: gtk+-3.2.3.ebuild
5 Removed: gtk+-3.2.2.ebuild gtk+-3.2.1.ebuild
6 Log:
7 Version bump with assorted bugfixes. Drop old.
8
9 (Portage version: 2.2.0_alpha83/cvs/Linux x86_64)
10
11 Revision Changes Path
12 1.556 x11-libs/gtk+/ChangeLog
13
14 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/x11-libs/gtk+/ChangeLog?rev=1.556&view=markup
15 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/x11-libs/gtk+/ChangeLog?rev=1.556&content-type=text/plain
16 diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/x11-libs/gtk+/ChangeLog?r1=1.555&r2=1.556
17
18 Index: ChangeLog
19 ===================================================================
20 RCS file: /var/cvsroot/gentoo-x86/x11-libs/gtk+/ChangeLog,v
21 retrieving revision 1.555
22 retrieving revision 1.556
23 diff -u -r1.555 -r1.556
24 --- ChangeLog 20 Dec 2011 21:36:51 -0000 1.555
25 +++ ChangeLog 28 Dec 2011 04:54:15 -0000 1.556
26 @@ -1,6 +1,12 @@
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.555 2011/12/20 21:36:51 jer Exp $
30 +# $Header: /var/cvsroot/gentoo-x86/x11-libs/gtk+/ChangeLog,v 1.556 2011/12/28 04:54:15 tetromino Exp $
31 +
32 +*gtk+-3.2.3 (28 Dec 2011)
33 +
34 + 28 Dec 2011; Alexandre Rostovtsev <tetromino@g.o> -gtk+-3.2.1.ebuild,
35 + -gtk+-3.2.2.ebuild, +gtk+-3.2.3.ebuild:
36 + Version bump with assorted bugfixes. Drop old.
37
38 20 Dec 2011; Jeroen Roovers <jer@g.o> gtk+-2.24.8-r1.ebuild:
39 Stable for HPPA (bug #393007).
40
41
42
43 1.1 x11-libs/gtk+/gtk+-3.2.3.ebuild
44
45 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/x11-libs/gtk+/gtk+-3.2.3.ebuild?rev=1.1&view=markup
46 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/x11-libs/gtk+/gtk+-3.2.3.ebuild?rev=1.1&content-type=text/plain
47
48 Index: gtk+-3.2.3.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.3.ebuild,v 1.1 2011/12/28 04:54:15 tetromino 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 # Non-working test in gentoo's env
141 sed 's:\(g_test_add_func ("/ui-tests/keys-events.*\):/*\1*/:g' \
142 -i gtk/tests/testing.c || die "sed 1 failed"
143 sed '\%/recent-manager/add%,/recent_manager_purge/ d' \
144 -i gtk/tests/recentmanager.c || die "sed 2 failed"
145
146 # Missing file, required for tests; https://bugzilla.gnome.org/show_bug.cgi?id=662024
147 cp "${FILESDIR}/${PN}-3.2.1-selector.errors" \
148 tests/css/parser/selector.errors || die "cp failed"
149
150 # FIXME: multiple reftests fail when run from portage (but succeed when
151 # run from a manual compile in a temp directory)
152 sed -e 's:\(SUBDIRS.*\)reftests:\1:' \
153 -i tests/Makefile.* || die "sed 3 failed"
154
155 # Test results depend on the list of mounted filesystems!
156 rm -v tests/a11y/pickers.{ui,txt} || die "rm failed"
157
158 # Failing treeview scrolling tests; bug #384855,
159 # https://bugzilla.gnome.org/show_bug.cgi?id=660931
160 epatch "${FILESDIR}/${PN}-3.2.1-failing-tests.patch"
161
162 if ! use test; then
163 # don't waste time building tests
164 strip_builddir SRC_SUBDIRS tests Makefile.am
165 strip_builddir SRC_SUBDIRS tests Makefile.in
166 fi
167
168 if ! use examples; then
169 # don't waste time building demos
170 strip_builddir SRC_SUBDIRS demos Makefile.am
171 strip_builddir SRC_SUBDIRS demos Makefile.in
172 fi
173 }
174
175 src_configure() {
176 # png always on to display icons (foser)
177 local myconf="$(use_enable doc gtk-doc)
178 $(use_enable xinerama)
179 $(use_enable packagekit)
180 $(use_enable cups cups auto)
181 $(use_enable colord)
182 $(use_enable introspection)
183 --disable-papi
184 --enable-gtk2-dependency"
185
186 # XXX: Maybe with multi-backend we should enable x11 all the time?
187 if use aqua; then
188 myconf="${myconf} --enable-quartz-backend --disable-xinput"
189 else
190 myconf="${myconf} --enable-x11-backend --enable-xinput"
191 fi
192
193 # Passing --disable-debug is not recommended for production use
194 use debug && myconf="${myconf} --enable-debug=yes"
195
196 # need libdir here to avoid a double slash in a path that libtool doesn't
197 # grok so well during install (// between $EPREFIX and usr ...)
198 econf --libdir="${EPREFIX}/usr/$(get_libdir)" ${myconf}
199 }
200
201 src_test() {
202 unset DBUS_SESSION_BUS_ADDRESS
203 # Exporting HOME fixes tests using XDG directories spec since all defaults
204 # are based on $HOME. It is also backward compatible with functions not
205 # yet ported to this spec.
206 XDG_DATA_HOME="${T}" HOME="${T}" Xemake check || die "tests failed"
207 }
208
209 src_install() {
210 emake DESTDIR="${D}" install
211
212 insinto /etc/gtk-3.0
213 doins "${FILESDIR}"/settings.ini
214
215 dodoc AUTHORS ChangeLog* HACKING NEWS* README*
216
217 # Remove unneeded *.la files
218 find "${D}" -name '*.la' -exec rm -f {} +
219
220 # add -framework Carbon to the .pc files
221 use aqua && for i in gtk+-3.0.pc gtk+-quartz-3.0.pc gtk+-unix-print-3.0.pc; do
222 sed -i -e "s:Libs\: :Libs\: -framework Carbon :" "${ED}"usr/$(get_libdir)/pkgconfig/$i || die "sed failed"
223 done
224 }
225
226 pkg_preinst() {
227 gnome2_schemas_savelist
228 }
229
230 pkg_postinst() {
231 gnome2_schemas_update
232
233 local GTK3_MODDIR="${EROOT}usr/$(get_libdir)/gtk-3.0/3.0.0"
234 gtk-query-immodules-3.0 > "${GTK3_MODDIR}/immodules.cache" \
235 || ewarn "Failed to run gtk-query-immodules-3.0"
236
237 if ! has_version "app-text/evince"; then
238 elog "Please install app-text/evince for print preview functionality."
239 elog "Alternatively, check \"gtk-print-preview-command\" documentation and"
240 elog "add it to your settings.ini file."
241 fi
242 }
243
244 pkg_postrm() {
245 gnome2_schemas_update
246 }