Gentoo Archives: gentoo-commits

From: Mart Raudsepp <leio@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: x11-libs/gtk+/
Date: Mon, 21 Jan 2019 21:17:05
Message-Id: 1548105180.49a0288d4f98b11b07ed4892143d60f1f9746b5e.leio@gentoo
1 commit: 49a0288d4f98b11b07ed4892143d60f1f9746b5e
2 Author: Mart Raudsepp <leio <AT> gentoo <DOT> org>
3 AuthorDate: Mon Jan 21 21:12:32 2019 +0000
4 Commit: Mart Raudsepp <leio <AT> gentoo <DOT> org>
5 CommitDate: Mon Jan 21 21:13:00 2019 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=49a0288d
7
8 x11-libs/gtk+: bump to 3.24.4
9
10 Includes all our 3.24.3-r1 patchset, plus CSS fixes to spinbuttons
11
12 Package-Manager: Portage-2.3.52, Repoman-2.3.12
13 Signed-off-by: Mart Raudsepp <leio <AT> gentoo.org>
14
15 x11-libs/gtk+/Manifest | 1 +
16 x11-libs/gtk+/gtk+-3.24.4.ebuild | 229 +++++++++++++++++++++++++++++++++++++++
17 2 files changed, 230 insertions(+)
18
19 diff --git a/x11-libs/gtk+/Manifest b/x11-libs/gtk+/Manifest
20 index dca7aa91cd7..9a989ca82ce 100644
21 --- a/x11-libs/gtk+/Manifest
22 +++ b/x11-libs/gtk+/Manifest
23 @@ -3,3 +3,4 @@ DIST gtk+-2.24.32.tar.xz 12620860 BLAKE2B 03f4c0a8be98473f62bc8c86859937969c4169
24 DIST gtk+-3.24.1.tar.xz 19307612 BLAKE2B f09b7cb252898b7290a3806f8fb579b706fc0ecd021817e34e71b101a7d222604b395c850c559f3ff0c38e0848abdffc483efe65f086357532be85db872028e7 SHA512 13ddb1099a2a0eb44ea53fa4be5054a403e1b27468a33862646ba111577b7bb72b9bbe4f6aea15889c2a2bee1238023bc23524b901cf2dbb3adf0e126eb6ea5d
25 DIST gtk+-3.24.3-patchset-20190119.tar.xz 18032 BLAKE2B 2597fcac94f365fab4b02d73318ed4d65522befe1daf0e1a72578b4ead00cfc83da2215965a8afe869b4cc011eb173b0a5db0768903b6b793a1ec9848cadf325 SHA512 9fbd73936931e2e529146d74711a5243a5e67e49de2d63d9f4a64c1f0825cbdd50ae2683869e4616f5fd8a4267ac5bf68d3cd21a06589a9d3f14ce82e3573521
26 DIST gtk+-3.24.3.tar.xz 21099144 BLAKE2B d0493a720b310ebba3b64b643ccf3880ed1611418127a6997d885638b46f1f44e3a0b01651319d0fe476906a53fbee0f84ca1ba142aaa634a01841ce9c7e7efc SHA512 72a69d71f2e16a1dd169cc74d568da47131bd5d77994bcdd3b427ec1cd37c5daf0841a6e4824b125d860bc1c4f07c9835a3b2e74d951666253d3e4edbed0e5fc
27 +DIST gtk+-3.24.4.tar.xz 21102236 BLAKE2B 1ef6445d582217a54538549fd63c59dd1e7f14832b33a41e971d2dd184a8887876d1eb599cb9fcbd590ec1a16ca29f0be92bc96344b1e7d2fdf88456d63c9a7f SHA512 d1cce6d0d7f1c5ef0f4e8988b88372a32b9d8a2924da4cfc46a80ede91cf8a2aacdcd87eec122dfab1369b36fc849d875832ac11d79426cf6884e1730e5d4dd1
28
29 diff --git a/x11-libs/gtk+/gtk+-3.24.4.ebuild b/x11-libs/gtk+/gtk+-3.24.4.ebuild
30 new file mode 100644
31 index 00000000000..6d73439415d
32 --- /dev/null
33 +++ b/x11-libs/gtk+/gtk+-3.24.4.ebuild
34 @@ -0,0 +1,229 @@
35 +# Copyright 1999-2019 Gentoo Authors
36 +# Distributed under the terms of the GNU General Public License v2
37 +
38 +EAPI=6
39 +GNOME2_LA_PUNT="yes"
40 +GNOME2_EAUTORECONF="yes"
41 +
42 +inherit flag-o-matic gnome2 multilib virtualx multilib-minimal
43 +
44 +DESCRIPTION="Gimp ToolKit +"
45 +HOMEPAGE="https://www.gtk.org/"
46 +
47 +LICENSE="LGPL-2+"
48 +SLOT="3"
49 +IUSE="aqua broadway cloudprint colord cups examples gtk-doc +introspection test vim-syntax wayland +X xinerama"
50 +REQUIRED_USE="
51 + || ( aqua wayland X )
52 + xinerama? ( X )
53 +"
54 +
55 +KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86 ~amd64-fbsd ~x86-fbsd ~amd64-linux ~x86-linux ~ppc-macos ~x86-macos ~sparc-solaris ~sparc64-solaris ~x64-solaris ~x86-solaris"
56 +
57 +# Upstream wants us to do their job:
58 +# https://bugzilla.gnome.org/show_bug.cgi?id=768662#c1
59 +RESTRICT="test"
60 +
61 +# FIXME: introspection data is built against system installation of gtk+:3,
62 +# bug #????
63 +COMMON_DEPEND="
64 + >=dev-libs/atk-2.15[introspection?,${MULTILIB_USEDEP}]
65 + >=dev-libs/glib-2.53.4:2[${MULTILIB_USEDEP}]
66 + media-libs/fontconfig[${MULTILIB_USEDEP}]
67 + >=media-libs/libepoxy-1.4[X(+)?,${MULTILIB_USEDEP}]
68 + >=x11-libs/cairo-1.14[aqua?,glib,svg,X?,${MULTILIB_USEDEP}]
69 + >=x11-libs/gdk-pixbuf-2.30:2[introspection?,${MULTILIB_USEDEP}]
70 + >=x11-libs/pango-1.41.0[introspection?,${MULTILIB_USEDEP}]
71 + >=media-libs/harfbuzz-0.9:=
72 + x11-misc/shared-mime-info
73 +
74 + cloudprint? (
75 + >=net-libs/rest-0.7[${MULTILIB_USEDEP}]
76 + >=dev-libs/json-glib-1.0[${MULTILIB_USEDEP}] )
77 + colord? ( >=x11-misc/colord-0.1.9:0=[${MULTILIB_USEDEP}] )
78 + cups? ( >=net-print/cups-1.2[${MULTILIB_USEDEP}] )
79 + introspection? ( >=dev-libs/gobject-introspection-1.39:= )
80 + wayland? (
81 + >=dev-libs/wayland-1.9.91[${MULTILIB_USEDEP}]
82 + >=dev-libs/wayland-protocols-1.12
83 + media-libs/mesa[wayland,${MULTILIB_USEDEP}]
84 + >=x11-libs/libxkbcommon-0.2[${MULTILIB_USEDEP}]
85 + )
86 + X? (
87 + >=app-accessibility/at-spi2-atk-2.5.3[${MULTILIB_USEDEP}]
88 + x11-libs/libX11[${MULTILIB_USEDEP}]
89 + >=x11-libs/libXi-1.3[${MULTILIB_USEDEP}]
90 + x11-libs/libXext[${MULTILIB_USEDEP}]
91 + >=x11-libs/libXrandr-1.5[${MULTILIB_USEDEP}]
92 + x11-libs/libXcursor[${MULTILIB_USEDEP}]
93 + x11-libs/libXfixes[${MULTILIB_USEDEP}]
94 + x11-libs/libXcomposite[${MULTILIB_USEDEP}]
95 + x11-libs/libXdamage[${MULTILIB_USEDEP}]
96 + xinerama? ( x11-libs/libXinerama[${MULTILIB_USEDEP}] )
97 + )
98 +"
99 +DEPEND="${COMMON_DEPEND}
100 + app-text/docbook-xsl-stylesheets
101 + app-text/docbook-xml-dtd:4.1.2
102 + dev-libs/libxslt
103 + dev-libs/gobject-introspection-common
104 + >=dev-util/gdbus-codegen-2.48
105 + dev-util/glib-utils
106 + >=dev-util/gtk-doc-am-1.20
107 + gtk-doc? ( >=dev-util/gtk-doc-1.20 )
108 + >=sys-devel/gettext-0.19.7[${MULTILIB_USEDEP}]
109 + virtual/pkgconfig[${MULTILIB_USEDEP}]
110 + X? ( x11-base/xorg-proto )
111 + test? (
112 + media-fonts/font-misc-misc
113 + media-fonts/font-cursor-misc )
114 +"
115 +# gtk+-3.2.2 breaks Alt key handling in <=x11-libs/vte-0.30.1:2.90
116 +# gtk+-3.3.18 breaks scrolling in <=x11-libs/vte-0.31.0:2.90
117 +RDEPEND="${COMMON_DEPEND}
118 + >=dev-util/gtk-update-icon-cache-3
119 + !<gnome-base/gail-1000
120 + !<x11-libs/vte-0.31.0:2.90
121 +"
122 +# librsvg for svg icons (PDEPEND to avoid circular dep), bug #547710
123 +PDEPEND="
124 + gnome-base/librsvg[${MULTILIB_USEDEP}]
125 + >=x11-themes/adwaita-icon-theme-3.14
126 + vim-syntax? ( app-vim/gtk-syntax )
127 +"
128 +
129 +MULTILIB_CHOST_TOOLS=(
130 + /usr/bin/gtk-query-immodules-3.0$(get_exeext)
131 +)
132 +
133 +strip_builddir() {
134 + local rule=$1
135 + shift
136 + local directory=$1
137 + shift
138 + sed -e "s/^\(${rule} =.*\)${directory}\(.*\)$/\1\2/" -i $@ \
139 + || die "Could not strip director ${directory} from build."
140 +}
141 +
142 +src_prepare() {
143 + if ! use test ; then
144 + # don't waste time building tests
145 + strip_builddir SRC_SUBDIRS testsuite Makefile.{am,in}
146 +
147 + # the tests dir needs to be build now because since commit
148 + # 7ff3c6df80185e165e3bf6aa31bd014d1f8bf224 tests/gtkgears.o needs to be there
149 + # strip_builddir SRC_SUBDIRS tests Makefile.{am,in}
150 + fi
151 +
152 + if ! use examples; then
153 + # don't waste time building demos
154 + strip_builddir SRC_SUBDIRS demos Makefile.{am,in}
155 + strip_builddir SRC_SUBDIRS examples Makefile.{am,in}
156 + fi
157 +
158 + # gtk-update-icon-cache is installed by dev-util/gtk-update-icon-cache
159 + eapply "${FILESDIR}"/${PN}-3.22.2-update-icon-cache.patch
160 +
161 + # Fix broken autotools logic
162 + eapply "${FILESDIR}"/${PN}-3.22.20-libcloudproviders-automagic.patch
163 +
164 + gnome2_src_prepare
165 +}
166 +
167 +multilib_src_configure() {
168 + # need libdir here to avoid a double slash in a path that libtool doesn't
169 + # grok so well during install (// between $EPREFIX and usr ...)
170 + # cloudprovider is not packaged in Gentoo
171 + ECONF_SOURCE=${S} \
172 + gnome2_src_configure \
173 + $(use_enable aqua quartz-backend) \
174 + $(use_enable broadway broadway-backend) \
175 + $(use_enable cloudprint) \
176 + $(use_enable colord) \
177 + $(use_enable cups cups auto) \
178 + $(multilib_native_use_enable gtk-doc) \
179 + $(multilib_native_use_enable introspection) \
180 + $(use_enable wayland wayland-backend) \
181 + $(use_enable X x11-backend) \
182 + $(use_enable X xcomposite) \
183 + $(use_enable X xdamage) \
184 + $(use_enable X xfixes) \
185 + $(use_enable X xkb) \
186 + $(use_enable X xrandr) \
187 + $(use_enable xinerama) \
188 + --disable-cloudproviders \
189 + --disable-mir-backend \
190 + --disable-papi \
191 + --enable-man \
192 + --with-xml-catalog="${EPREFIX}"/etc/xml/catalog \
193 + --libdir="${EPREFIX}"/usr/$(get_libdir) \
194 + CUPS_CONFIG="${EPREFIX}/usr/bin/${CHOST}-cups-config"
195 +
196 + # work-around gtk-doc out-of-source brokedness
197 + if multilib_is_native_abi; then
198 + local d
199 + for d in gdk gtk libgail-util; do
200 + ln -s "${S}"/docs/reference/${d}/html docs/reference/${d}/html || die
201 + done
202 + fi
203 +}
204 +
205 +multilib_src_test() {
206 + "${EROOT}${GLIB_COMPILE_SCHEMAS}" --allow-any-name "${S}/gtk" || die
207 + GSETTINGS_SCHEMA_DIR="${S}/gtk" virtx emake check
208 +}
209 +
210 +multilib_src_install() {
211 + gnome2_src_install
212 +}
213 +
214 +multilib_src_install_all() {
215 + insinto /etc/gtk-3.0
216 + doins "${FILESDIR}"/settings.ini
217 + # Skip README.{in,commits,win32} and useless ChangeLog that would get installed by default
218 + DOCS=( AUTHORS NEWS README )
219 + einstalldocs
220 +}
221 +
222 +pkg_preinst() {
223 + gnome2_pkg_preinst
224 +
225 + multilib_pkg_preinst() {
226 + # Make immodules.cache belongs to gtk+ alone
227 + local cache="usr/$(get_libdir)/gtk-3.0/3.0.0/immodules.cache"
228 +
229 + if [[ -e ${EROOT}${cache} ]]; then
230 + cp "${EROOT}"${cache} "${ED}"/${cache} || die
231 + else
232 + touch "${ED}"/${cache} || die
233 + fi
234 + }
235 + multilib_parallel_foreach_abi multilib_pkg_preinst
236 +}
237 +
238 +pkg_postinst() {
239 + gnome2_pkg_postinst
240 +
241 + multilib_pkg_postinst() {
242 + gnome2_query_immodules_gtk3 \
243 + || die "Update immodules cache failed (for ${ABI})"
244 + }
245 + multilib_parallel_foreach_abi multilib_pkg_postinst
246 +
247 + if ! has_version "app-text/evince"; then
248 + elog "Please install app-text/evince for print preview functionality."
249 + elog "Alternatively, check \"gtk-print-preview-command\" documentation and"
250 + elog "add it to your settings.ini file."
251 + fi
252 +}
253 +
254 +pkg_postrm() {
255 + gnome2_pkg_postrm
256 +
257 + if [[ -z ${REPLACED_BY_VERSION} ]]; then
258 + multilib_pkg_postrm() {
259 + rm -f "${EROOT}"usr/$(get_libdir)/gtk-3.0/3.0.0/immodules.cache
260 + }
261 + multilib_foreach_abi multilib_pkg_postrm
262 + fi
263 +}