Gentoo Archives: gentoo-commits

From: "Pacho Ramos (pacho)" <pacho@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] gentoo-x86 commit in x11-libs/gtk+: gtk+-3.14.6.ebuild gtk+-3.12.2-r2.ebuild ChangeLog
Date: Fri, 02 Jan 2015 11:53:08
Message-Id: 20150102115303.EA8BBEB61@oystercatcher.gentoo.org
1 pacho 15/01/02 11:53:03
2
3 Modified: gtk+-3.14.6.ebuild ChangeLog
4 Added: gtk+-3.12.2-r2.ebuild
5 Log:
6 Include image data in the builtin icon cache (#518352 by Leho Kraav, Rafał Mużyło and more), newer gdbus-codegen needed (#500216 by Vladimir Dolzhenko), unset DISPLAY to make tests work in more environments (#527682 by Gangræna Gorgeous, Mark Wright and Alexander Tsoy).
7
8 (Portage version: 2.2.15/cvs/Linux x86_64, signed Manifest commit with key A188FBD4)
9
10 Revision Changes Path
11 1.4 x11-libs/gtk+/gtk+-3.14.6.ebuild
12
13 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/x11-libs/gtk+/gtk+-3.14.6.ebuild?rev=1.4&view=markup
14 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/x11-libs/gtk+/gtk+-3.14.6.ebuild?rev=1.4&content-type=text/plain
15 diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/x11-libs/gtk+/gtk+-3.14.6.ebuild?r1=1.3&r2=1.4
16
17 Index: gtk+-3.14.6.ebuild
18 ===================================================================
19 RCS file: /var/cvsroot/gentoo-x86/x11-libs/gtk+/gtk+-3.14.6.ebuild,v
20 retrieving revision 1.3
21 retrieving revision 1.4
22 diff -u -r1.3 -r1.4
23 --- gtk+-3.14.6.ebuild 28 Dec 2014 23:10:20 -0000 1.3
24 +++ gtk+-3.14.6.ebuild 2 Jan 2015 11:53:03 -0000 1.4
25 @@ -1,6 +1,6 @@
26 -# Copyright 1999-2014 Gentoo Foundation
27 +# Copyright 1999-2015 Gentoo Foundation
28 # Distributed under the terms of the GNU General Public License v2
29 -# $Header: /var/cvsroot/gentoo-x86/x11-libs/gtk+/gtk+-3.14.6.ebuild,v 1.3 2014/12/28 23:10:20 eva Exp $
30 +# $Header: /var/cvsroot/gentoo-x86/x11-libs/gtk+/gtk+-3.14.6.ebuild,v 1.4 2015/01/02 11:53:03 pacho Exp $
31
32 EAPI="5"
33 GCONF_DEBUG="no"
34 @@ -69,7 +69,7 @@
35 app-text/docbook-xml-dtd:4.1.2
36 dev-libs/libxslt
37 dev-libs/gobject-introspection-common
38 - dev-util/gdbus-codegen
39 + >=dev-util/gdbus-codegen-2.38.2
40 >=dev-util/gtk-doc-am-1.20
41 sys-devel/gettext
42 virtual/pkgconfig[${MULTILIB_USEDEP}]
43 @@ -190,6 +190,7 @@
44 "${EROOT}${GLIB_COMPILE_SCHEMAS}" --allow-any-name "${S}/gtk" || die
45
46 unset DBUS_SESSION_BUS_ADDRESS
47 + unset DISPLAY #527682
48 GSETTINGS_SCHEMA_DIR="${S}/gtk" Xemake check
49 }
50
51
52
53
54 1.753 x11-libs/gtk+/ChangeLog
55
56 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/x11-libs/gtk+/ChangeLog?rev=1.753&view=markup
57 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/x11-libs/gtk+/ChangeLog?rev=1.753&content-type=text/plain
58 diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/x11-libs/gtk+/ChangeLog?r1=1.752&r2=1.753
59
60 Index: ChangeLog
61 ===================================================================
62 RCS file: /var/cvsroot/gentoo-x86/x11-libs/gtk+/ChangeLog,v
63 retrieving revision 1.752
64 retrieving revision 1.753
65 diff -u -r1.752 -r1.753
66 --- ChangeLog 1 Jan 2015 21:14:20 -0000 1.752
67 +++ ChangeLog 2 Jan 2015 11:53:03 -0000 1.753
68 @@ -1,6 +1,16 @@
69 # ChangeLog for x11-libs/gtk+
70 # Copyright 1999-2015 Gentoo Foundation; Distributed under the GPL v2
71 -# $Header: /var/cvsroot/gentoo-x86/x11-libs/gtk+/ChangeLog,v 1.752 2015/01/01 21:14:20 maekke Exp $
72 +# $Header: /var/cvsroot/gentoo-x86/x11-libs/gtk+/ChangeLog,v 1.753 2015/01/02 11:53:03 pacho Exp $
73 +
74 +*gtk+-3.12.2-r2 (02 Jan 2015)
75 +
76 + 02 Jan 2015; Pacho Ramos <pacho@g.o>
77 + +files/gtk+-3.12.2-builtin-icon.patch, +gtk+-3.12.2-r2.ebuild,
78 + gtk+-3.14.6.ebuild:
79 + Include image data in the builtin icon cache (#518352 by Leho Kraav, Rafał
80 + Mużyło and more), newer gdbus-codegen needed (#500216 by Vladimir Dolzhenko),
81 + unset DISPLAY to make tests work in more environments (#527682 by Gangræna
82 + Gorgeous, Mark Wright and Alexander Tsoy).
83
84 01 Jan 2015; Markus Meier <maekke@g.o> gtk+-2.24.25.ebuild:
85 arm stable, bug #529964
86
87
88
89 1.1 x11-libs/gtk+/gtk+-3.12.2-r2.ebuild
90
91 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/x11-libs/gtk+/gtk+-3.12.2-r2.ebuild?rev=1.1&view=markup
92 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/x11-libs/gtk+/gtk+-3.12.2-r2.ebuild?rev=1.1&content-type=text/plain
93
94 Index: gtk+-3.12.2-r2.ebuild
95 ===================================================================
96 # Copyright 1999-2015 Gentoo Foundation
97 # Distributed under the terms of the GNU General Public License v2
98 # $Header: /var/cvsroot/gentoo-x86/x11-libs/gtk+/gtk+-3.12.2-r2.ebuild,v 1.1 2015/01/02 11:53:03 pacho Exp $
99
100 EAPI="5"
101 GCONF_DEBUG="no"
102 GNOME2_LA_PUNT="yes"
103
104 inherit autotools eutils flag-o-matic gnome2 multilib virtualx multilib-minimal
105
106 DESCRIPTION="Gimp ToolKit +"
107 HOMEPAGE="http://www.gtk.org/"
108
109 LICENSE="LGPL-2+"
110 SLOT="3"
111 # NOTE: This gtk+ has multi-gdk-backend support, see:
112 # * http://blogs.gnome.org/kris/2010/12/29/gdk-3-0-on-mac-os-x/
113 # * http://mail.gnome.org/archives/gtk-devel-list/2010-November/msg00099.html
114 # I tried this and got it all compiling, but the end result is unusable as it
115 # horribly mixes up the backends -- grobian
116 IUSE="aqua cloudprint colord cups debug examples +introspection test vim-syntax wayland X xinerama"
117 REQUIRED_USE="
118 || ( aqua wayland X )
119 xinerama? ( X )
120 "
121
122 KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86 ~amd64-fbsd ~x86-fbsd ~x86-freebsd ~x86-interix ~amd64-linux ~arm-linux ~x86-linux ~ppc-macos ~x86-macos ~sparc-solaris ~sparc64-solaris ~x64-solaris ~x86-solaris"
123
124 # FIXME: introspection data is built against system installation of gtk+:3
125 # NOTE: cairo[svg] dep is due to bug 291283 (not patched to avoid eautoreconf)
126 # Use gtk+:2 for gtk-update-icon-cache
127 COMMON_DEPEND="
128 >=dev-libs/atk-2.7.5[introspection?,${MULTILIB_USEDEP}]
129 >=dev-libs/glib-2.39.5:2[${MULTILIB_USEDEP}]
130 media-libs/fontconfig[${MULTILIB_USEDEP}]
131 >=x11-libs/cairo-1.12[aqua?,glib,svg,X?,${MULTILIB_USEDEP}]
132 >=x11-libs/gdk-pixbuf-2.27.1:2[introspection?,X?,${MULTILIB_USEDEP}]
133 >=x11-libs/gtk+-2.24:2[${MULTILIB_USEDEP}]
134 >=x11-libs/pango-1.32.4[introspection?,${MULTILIB_USEDEP}]
135 x11-misc/shared-mime-info
136
137 cloudprint? (
138 >=net-libs/rest-0.7[${MULTILIB_USEDEP}]
139 >=dev-libs/json-glib-1.0[${MULTILIB_USEDEP}] )
140 colord? ( >=x11-misc/colord-0.1.9:0=[${MULTILIB_USEDEP}] )
141 cups? ( >=net-print/cups-1.2[${MULTILIB_USEDEP}] )
142 introspection? ( >=dev-libs/gobject-introspection-1.39 )
143 wayland? (
144 >=dev-libs/wayland-1.3.90[${MULTILIB_USEDEP}]
145 media-libs/mesa[wayland,${MULTILIB_USEDEP}]
146 >=x11-libs/libxkbcommon-0.2[${MULTILIB_USEDEP}]
147 )
148 X? (
149 >=app-accessibility/at-spi2-atk-2.5.3[${MULTILIB_USEDEP}]
150 x11-libs/libXrender[${MULTILIB_USEDEP}]
151 x11-libs/libX11[${MULTILIB_USEDEP}]
152 >=x11-libs/libXi-1.3[${MULTILIB_USEDEP}]
153 x11-libs/libXext[${MULTILIB_USEDEP}]
154 >=x11-libs/libXrandr-1.3[${MULTILIB_USEDEP}]
155 x11-libs/libXcursor[${MULTILIB_USEDEP}]
156 x11-libs/libXfixes[${MULTILIB_USEDEP}]
157 x11-libs/libXcomposite[${MULTILIB_USEDEP}]
158 x11-libs/libXdamage[${MULTILIB_USEDEP}]
159 xinerama? ( x11-libs/libXinerama[${MULTILIB_USEDEP}] )
160 )
161 "
162 DEPEND="${COMMON_DEPEND}
163 app-text/docbook-xsl-stylesheets
164 app-text/docbook-xml-dtd:4.1.2
165 dev-libs/libxslt
166 >=dev-util/gdbus-codegen-2.38.2
167 >=dev-util/gtk-doc-am-1.20
168 sys-devel/gettext
169 virtual/pkgconfig[${MULTILIB_USEDEP}]
170 X? (
171 x11-proto/xextproto[${MULTILIB_USEDEP}]
172 x11-proto/xproto[${MULTILIB_USEDEP}]
173 x11-proto/inputproto[${MULTILIB_USEDEP}]
174 x11-proto/damageproto[${MULTILIB_USEDEP}]
175 xinerama? ( x11-proto/xineramaproto[${MULTILIB_USEDEP}] )
176 )
177 test? (
178 media-fonts/font-misc-misc
179 media-fonts/font-cursor-misc )
180 "
181 # gtk+-3.2.2 breaks Alt key handling in <=x11-libs/vte-0.30.1:2.90
182 # gtk+-3.3.18 breaks scrolling in <=x11-libs/vte-0.31.0:2.90
183 # >=xorg-server-1.11.4 needed for
184 # http://mail.gnome.org/archives/desktop-devel-list/2012-March/msg00024.html
185 RDEPEND="${COMMON_DEPEND}
186 !<gnome-base/gail-1000
187 !<x11-libs/vte-0.31.0:2.90
188 X? ( !<x11-base/xorg-server-1.11.4 )
189 abi_x86_32? (
190 !<=app-emulation/emul-linux-x86-gtklibs-20140508-r3
191 !app-emulation/emul-linux-x86-gtklibs[-abi_x86_32(-)]
192 )
193 "
194 PDEPEND="vim-syntax? ( app-vim/gtk-syntax )"
195
196 MULTILIB_CHOST_TOOLS=(
197 /usr/bin/gtk-query-immodules-3.0
198 )
199
200 strip_builddir() {
201 local rule=$1
202 shift
203 local directory=$1
204 shift
205 sed -e "s/^\(${rule} =.*\)${directory}\(.*\)$/\1\2/" -i $@ \
206 || die "Could not strip director ${directory} from build."
207 }
208
209 src_prepare() {
210 # -O3 and company cause random crashes in applications. Bug #133469
211 replace-flags -O3 -O2
212 strip-flags
213
214 # Build fix on Darwin 10.6; bug #519058
215 epatch "${FILESDIR}/${P}-darwin10.6.patch"
216
217 # Include image data in the builtin icon cache, needs --enable-gtk2-dependency
218 # and, then, upstream reverted this patch lately. Fixed in 3.14.x, bug #518352
219 epatch "${FILESDIR}/${PN}-3.12.2-builtin-icon.patch"
220
221 if ! use test ; then
222 # don't waste time building tests
223 strip_builddir SRC_SUBDIRS testsuite Makefile.am
224 strip_builddir SRC_SUBDIRS testsuite Makefile.in
225 strip_builddir SRC_SUBDIRS tests Makefile.am
226 strip_builddir SRC_SUBDIRS tests Makefile.in
227 fi
228
229 if ! use examples; then
230 # don't waste time building demos
231 strip_builddir SRC_SUBDIRS demos Makefile.am
232 strip_builddir SRC_SUBDIRS demos Makefile.in
233 strip_builddir SRC_SUBDIRS examples Makefile.am
234 strip_builddir SRC_SUBDIRS examples Makefile.in
235 fi
236
237 eautoreconf
238 gnome2_src_prepare
239 }
240
241 multilib_src_configure() {
242 # Passing --disable-debug is not recommended for production use
243 # need libdir here to avoid a double slash in a path that libtool doesn't
244 # grok so well during install (// between $EPREFIX and usr ...)
245 ECONF_SOURCE=${S} \
246 gnome2_src_configure \
247 $(use_enable aqua quartz-backend) \
248 $(use_enable cloudprint) \
249 $(use_enable colord) \
250 $(use_enable cups cups auto) \
251 $(usex debug --enable-debug=yes "") \
252 $(multilib_native_use_enable introspection) \
253 $(use_enable wayland wayland-backend) \
254 $(use_enable X x11-backend) \
255 $(use_enable X xcomposite) \
256 $(use_enable X xdamage) \
257 $(use_enable X xfixes) \
258 $(use_enable X xkb) \
259 $(use_enable X xrandr) \
260 $(use_enable xinerama) \
261 --disable-papi \
262 --enable-man \
263 --enable-gtk2-dependency \
264 --with-xml-catalog="${EPREFIX}"/etc/xml/catalog \
265 --libdir="${EPREFIX}"/usr/$(get_libdir) \
266 CUPS_CONFIG="${EPREFIX}/usr/bin/${CHOST}-cups-config"
267
268 # work-around gtk-doc out-of-source brokedness
269 if multilib_is_native_abi; then
270 local d
271 for d in gdk gtk libgail-util; do
272 ln -s "${S}"/docs/reference/${d}/html docs/reference/${d}/html || die
273 done
274 fi
275 }
276
277 multilib_src_test() {
278 # Tests require a new gnome-themes-standard, but adding it to DEPEND
279 # would result in circular dependencies.
280 # https://bugzilla.gnome.org/show_bug.cgi?id=669562
281 if ! has_version '>=x11-themes/gnome-themes-standard-3.6[gtk]'; then
282 ewarn "Tests will be skipped because >=gnome-themes-standard-3.6[gtk]"
283 ewarn "is not installed. Please re-run tests after installing the"
284 ewarn "required version of gnome-themes-standard."
285 return 0
286 fi
287
288 # FIXME: this should be handled at eclass level
289 "${EROOT}${GLIB_COMPILE_SCHEMAS}" --allow-any-name "${S}/gtk" || die
290
291 unset DBUS_SESSION_BUS_ADDRESS
292 unset DISPLAY #527682
293 GSETTINGS_SCHEMA_DIR="${S}/gtk" Xemake check
294 }
295
296 multilib_src_install() {
297 gnome2_src_install
298
299 # add -framework Carbon to the .pc files
300 if use aqua ; then
301 for i in gtk+-3.0.pc gtk+-quartz-3.0.pc gtk+-unix-print-3.0.pc; do
302 sed -e "s:Libs\: :Libs\: -framework Carbon :" \
303 -i "${ED}"usr/$(get_libdir)/pkgconfig/$i || die "sed failed"
304 done
305 fi
306 }
307
308 multilib_src_install_all() {
309 insinto /etc/gtk-3.0
310 doins "${FILESDIR}"/settings.ini
311
312 dodoc AUTHORS ChangeLog* HACKING NEWS* README*
313 }
314
315 pkg_preinst() {
316 gnome2_pkg_preinst
317
318 multilib_pkg_preinst() {
319 # Make sure loaders.cache belongs to gdk-pixbuf alone
320 local cache="usr/$(get_libdir)/gtk-3.0/3.0.0/immodules.cache"
321
322 if [[ -e ${EROOT}${cache} ]]; then
323 cp "${EROOT}"${cache} "${ED}"/${cache} || die
324 else
325 touch "${ED}"/${cache} || die
326 fi
327 }
328 multilib_parallel_foreach_abi multilib_pkg_preinst
329 }
330
331 pkg_postinst() {
332 gnome2_pkg_postinst
333 gnome2_query_immodules_gtk3
334
335 if ! has_version "app-text/evince"; then
336 elog "Please install app-text/evince for print preview functionality."
337 elog "Alternatively, check \"gtk-print-preview-command\" documentation and"
338 elog "add it to your settings.ini file."
339 fi
340 }
341
342 pkg_postrm() {
343 gnome2_pkg_postrm
344
345 if [[ -z ${REPLACED_BY_VERSIONS} ]]; then
346 multilib_pkg_postrm() {
347 rm -f "${EROOT}"usr/$(get_libdir)/gtk-3.0/3.0.0/immodules.cache
348 }
349 multilib_foreach_abi multilib_pkg_postrm
350 fi
351 }