Gentoo Archives: gentoo-commits

From: Matt Turner <mattst88@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: x11-libs/gtk+/
Date: Mon, 31 May 2021 02:00:20
Message-Id: 1622426307.3fdfdfc56addeaf8e66a836b6440711cedf2cf97.mattst88@gentoo
1 commit: 3fdfdfc56addeaf8e66a836b6440711cedf2cf97
2 Author: Matt Turner <mattst88 <AT> gentoo <DOT> org>
3 AuthorDate: Mon May 31 00:03:38 2021 +0000
4 Commit: Matt Turner <mattst88 <AT> gentoo <DOT> org>
5 CommitDate: Mon May 31 01:58:27 2021 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=3fdfdfc5
7
8 x11-libs/gtk+: Drop old versions
9
10 Signed-off-by: Matt Turner <mattst88 <AT> gentoo.org>
11
12 x11-libs/gtk+/Manifest | 4 -
13 x11-libs/gtk+/gtk+-2.24.32-r1.ebuild | 308 -----------------------------------
14 x11-libs/gtk+/gtk+-3.24.26.ebuild | 254 -----------------------------
15 x11-libs/gtk+/gtk+-3.24.28.ebuild | 254 -----------------------------
16 4 files changed, 820 deletions(-)
17
18 diff --git a/x11-libs/gtk+/Manifest b/x11-libs/gtk+/Manifest
19 index 95dc8f878f0..c0d90bc5689 100644
20 --- a/x11-libs/gtk+/Manifest
21 +++ b/x11-libs/gtk+/Manifest
22 @@ -1,6 +1,2 @@
23 -DIST gtk+-2.24.32-patchset-r1.tar.xz 13364 BLAKE2B 15e5429b11cc4ccef1bf44105c790b5325e833ab12f393fe718c06470b90f3e4004bea4b51076a725f4bb10bcfd0c48b7063d9b9b021919ad0367d1b981be980 SHA512 1a15dce7578a914585981426d2e5d1cc45866866a70c3f443d1867ab1c0c28fb279bde6c3117b28eec2758a62c1b54bb6fb1b382ad6e9a7cf0114b13f2afd858
24 -DIST gtk+-2.24.32.tar.xz 12620860 BLAKE2B 03f4c0a8be98473f62bc8c86859937969c4169960a5f93d37ff6dcde00413215fa6c7125b15781bf50d67b40aa0056cb71b83fb50acb2c3467b5deb3c8d938f0 SHA512 8e8fd9ae32f1d6fb544da260f00599f0f05090d910d767b06ef086ab4f1f8373a29bb0da9767761c9b5f4cfd51b5c45d0fa5d39b0428c839ddf0a579df806696
25 DIST gtk+-2.24.33.tar.xz 12661828 BLAKE2B f3488b220aaee54bf36fa77e2112d060152e57938845d240014a7d43a5743b1d4de19cc09c683d9d238fd1967cd67cc3c493f2475e4e481f6709f5cdc652c65c SHA512 71b588797c81f727dfac8dcb1be193f7436f717d30ecf18eae2d3aeb0f445b3be4743400acac16435490db8f564f01032065d3f42d27871317f80c98aef929d5
26 -DIST gtk+-3.24.26.tar.xz 21404732 BLAKE2B 8260b684b4d508af6b9a5060e47847254ae6bf647ae1dfa131bdbb35f2eaeb3f45ba749e9ad6e1920c05dab660d78424e38d974070928c56e91fc422a62d87db SHA512 d3023e9cd0c1f0de384266c4bd4549a7006ff475de82617de16378617a4a669645ad355cbabfe2ff43b19dddfbba7b9413ec98c14ed0f5ee3a61466b3d6eff76
27 -DIST gtk+-3.24.28.tar.xz 22783312 BLAKE2B b0a8dd5619feacf44880bb1ef168fce5431802c401fbb31408a4a4a9822755ca76cc309eb0f271e98cce63ad7f5cbec4d0d6c947a631843bfbe509a81836778b SHA512 65856ae06e4a863c56b3718c0cc3d0ca9f61a62a02ddef30904432300cd455851efee3fa1e5661659eaacbdfca45650ee7c8a2d4eca004ad2936c1e26c720c15
28 DIST gtk+-3.24.29.tar.xz 21396876 BLAKE2B 1675e54b185d813965a6279fa80a62784fc6216408710fad0b07a3300eb08301c80779e6e3a6b1109ce29bacca4e7ff4710b670a68ec0c6ffa68e44cfb07ccc5 SHA512 00f71024686c2d11d5c0cdd683365c35fe4d28b5eaad4937e79690777500788818faa5bd0c483e54ba8ce734aa6411388a39e398dc638cfcf0ec0e542aae6c2b
29
30 diff --git a/x11-libs/gtk+/gtk+-2.24.32-r1.ebuild b/x11-libs/gtk+/gtk+-2.24.32-r1.ebuild
31 deleted file mode 100644
32 index 314ce203961..00000000000
33 --- a/x11-libs/gtk+/gtk+-2.24.32-r1.ebuild
34 +++ /dev/null
35 @@ -1,308 +0,0 @@
36 -# Copyright 1999-2021 Gentoo Authors
37 -# Distributed under the terms of the GNU General Public License v2
38 -
39 -EAPI=7
40 -GNOME2_EAUTORECONF="yes"
41 -
42 -inherit flag-o-matic gnome2 multilib multilib-minimal readme.gentoo-r1 virtualx
43 -
44 -DESCRIPTION="Gimp ToolKit +"
45 -HOMEPAGE="https://www.gtk.org/"
46 -SRC_URI+=" https://dev.gentoo.org/~leio/distfiles/${P}-patchset-r1.tar.xz"
47 -
48 -LICENSE="LGPL-2+"
49 -SLOT="2"
50 -IUSE="aqua cups examples +introspection test vim-syntax xinerama"
51 -REQUIRED_USE="
52 - xinerama? ( !aqua )
53 -"
54 -
55 -KEYWORDS="~alpha amd64 arm arm64 ~hppa ~ia64 ~mips ppc ppc64 ~s390 sparc x86 ~amd64-linux ~x86-linux ~ppc-macos ~x64-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=768663#c1
59 -RESTRICT="test"
60 -
61 -COMMON_DEPEND="
62 - >=dev-libs/atk-2.10.0[introspection?,${MULTILIB_USEDEP}]
63 - >=dev-libs/glib-2.34.3:2[${MULTILIB_USEDEP}]
64 - >=media-libs/fontconfig-2.10.92[${MULTILIB_USEDEP}]
65 - virtual/libintl[${MULTILIB_USEDEP}]
66 - >=x11-libs/cairo-1.12.14-r4:=[aqua?,svg,${MULTILIB_USEDEP}]
67 - >=x11-libs/gdk-pixbuf-2.30.7:2[introspection?,${MULTILIB_USEDEP}]
68 - >=x11-libs/pango-1.36.3[introspection?,${MULTILIB_USEDEP}]
69 - x11-misc/shared-mime-info
70 -
71 - cups? ( >=net-print/cups-1.7.1-r2:=[${MULTILIB_USEDEP}] )
72 - introspection? ( >=dev-libs/gobject-introspection-0.9.3:= )
73 - !aqua? (
74 - >=x11-libs/cairo-1.12.14-r4:=[aqua?,svg,X,${MULTILIB_USEDEP}]
75 - >=x11-libs/libX11-1.6.2[${MULTILIB_USEDEP}]
76 - >=x11-libs/libXcomposite-0.4.4-r1[${MULTILIB_USEDEP}]
77 - >=x11-libs/libXcursor-1.1.14[${MULTILIB_USEDEP}]
78 - >=x11-libs/libXdamage-1.1.4-r1[${MULTILIB_USEDEP}]
79 - >=x11-libs/libXext-1.3.2[${MULTILIB_USEDEP}]
80 - >=x11-libs/libXfixes-5.0.1[${MULTILIB_USEDEP}]
81 - >=x11-libs/libXi-1.7.2[${MULTILIB_USEDEP}]
82 - >=x11-libs/libXrandr-1.5[${MULTILIB_USEDEP}]
83 - >=x11-libs/libXrender-0.9.8[${MULTILIB_USEDEP}]
84 - xinerama? ( >=x11-libs/libXinerama-1.1.3[${MULTILIB_USEDEP}] )
85 - )
86 -"
87 -DEPEND="${COMMON_DEPEND}
88 - !aqua? ( x11-base/xorg-proto )
89 - test? (
90 - media-fonts/font-cursor-misc
91 - media-fonts/font-misc-misc
92 - x11-themes/hicolor-icon-theme
93 - )
94 -"
95 -
96 -# gtk+-2.24.8 breaks Alt key handling in <=x11-libs/vte-0.28.2:0
97 -# Add blocker against old gtk-builder-convert to be sure we maintain both
98 -# in sync.
99 -RDEPEND="${COMMON_DEPEND}
100 - >=dev-util/gtk-update-icon-cache-2
101 - >=x11-themes/adwaita-icon-theme-3.14
102 - x11-themes/gnome-themes-standard
103 - !<dev-util/gtk-builder-convert-${PV}
104 -"
105 -# librsvg for svg icons (PDEPEND to avoid circular dep), bug #547710
106 -PDEPEND="
107 - gnome-base/librsvg[${MULTILIB_USEDEP}]
108 - x11-themes/gtk-engines-adwaita
109 - vim-syntax? ( app-vim/gtk-syntax )
110 -"
111 -# docbook-4.1.2 and xsl required for man pages
112 -# docbook-4.3 required for gtk-doc
113 -BDEPEND="
114 - app-text/docbook-xml-dtd:4.1.2
115 - app-text/docbook-xml-dtd:4.3
116 - app-text/docbook-xsl-stylesheets
117 - dev-libs/gobject-introspection-common
118 - dev-libs/libxslt
119 - dev-util/glib-utils
120 - >=dev-util/gtk-doc-am-1.20
121 - >=sys-devel/gettext-0.18.3
122 - virtual/pkgconfig
123 - examples? ( x11-libs/gdk-pixbuf )
124 -"
125 -
126 -DISABLE_AUTOFORMATTING="yes"
127 -DOC_CONTENTS="To make the gtk2 file chooser use 'current directory' mode by default,
128 -edit ~/.config/gtk-2.0/gtkfilechooser.ini to contain the following:
129 -[Filechooser Settings]
130 -StartupMode=cwd"
131 -
132 -MULTILIB_CHOST_TOOLS=(
133 - /usr/bin/gtk-query-immodules-2.0$(get_exeext)
134 -)
135 -
136 -PATCHES=(
137 - # Fix tests running when building out of sources, bug #510596, upstream bug #730319
138 - "${FILESDIR}"/${PN}-2.24.24-out-of-source.patch
139 - # Rely on split gtk-update-icon-cache package, bug #528810
140 - "${FILESDIR}"/${PN}-2.24.31-update-icon-cache.patch # requires eautoreconf
141 - # Upstream gtk-2-24 branch up to 2018-09-08 state, bug #650536 safety
142 - "${WORKDIR}"/patches/ # requires eautoreconf
143 -)
144 -
145 -strip_builddir() {
146 - local rule=$1
147 - shift
148 - local directory=$1
149 - shift
150 - sed -e "s/^\(${rule} =.*\)${directory}\(.*\)$/\1\2/" -i $@ \
151 - || die "Could not strip director ${directory} from build."
152 -}
153 -
154 -set_gtk2_confdir() {
155 - # An arch specific config directory is used on multilib systems
156 - GTK2_CONFDIR="/etc/gtk-2.0/${CHOST}"
157 -}
158 -
159 -src_prepare() {
160 - # Various glib marshaller churn could break build against a different glib version, force regeneration
161 - rm -v gdk/gdkmarshalers.{c,h} gtk/gtkmarshal.{c,h} gtk/gtkmarshalers.{c,h} \
162 - perf/marshalers.{c,h} gtk/gtkaliasdef.c gtk/gtkalias.h || die
163 -
164 - # Stop trying to build unmaintained docs, bug #349754, upstream bug #623150
165 - strip_builddir SUBDIRS tutorial docs/Makefile.{am,in}
166 - strip_builddir SUBDIRS faq docs/Makefile.{am,in}
167 -
168 - # -O3 and company cause random crashes in applications, bug #133469
169 - replace-flags -O3 -O2
170 - strip-flags
171 -
172 - if ! use test ; then
173 - # don't waste time building tests
174 - strip_builddir SRC_SUBDIRS tests Makefile.{am,in}
175 - strip_builddir SUBDIRS tests gdk/Makefile.{am,in} gtk/Makefile.{am,in}
176 - else
177 - # Non-working test in gentoo's env
178 - sed 's:\(g_test_add_func ("/ui-tests/keys-events.*\):/*\1*/:g' \
179 - -i gtk/tests/testing.c || die "sed 1 failed"
180 -
181 - # Cannot work because glib is too clever to find real user's home
182 - # gentoo bug #285687, upstream bug #639832
183 - # XXX: /!\ Pay extra attention to second sed when bumping /!\
184 - sed '/TEST_PROGS.*recentmanager/d' -i gtk/tests/Makefile.am \
185 - || die "failed to disable recentmanager test (1)"
186 - sed '/^TEST_PROGS =/,+3 s/recentmanager//' -i gtk/tests/Makefile.in \
187 - || die "failed to disable recentmanager test (2)"
188 - sed 's:\({ "GtkFileChooserButton".*},\):/*\1*/:g' -i gtk/tests/object.c \
189 - || die "failed to disable recentmanager test (3)"
190 -
191 - # https://bugzilla.gnome.org/show_bug.cgi?id=617473
192 - sed -i -e 's:pltcheck.sh:$(NULL):g' \
193 - gtk/Makefile.am || die
194 -
195 - # UI tests require immodules already installed; bug #413185
196 - if ! has_version 'x11-libs/gtk+:2'; then
197 - ewarn "Disabling UI tests because this is the first install of"
198 - ewarn "gtk+:2 on this machine. Please re-run the tests after ${P}"
199 - ewarn "has been installed."
200 - sed '/g_test_add_func.*ui-tests/ d' \
201 - -i gtk/tests/testing.c || die "sed 2 failed"
202 - fi
203 - fi
204 -
205 - if ! use examples; then
206 - # don't waste time building demos
207 - strip_builddir SRC_SUBDIRS demos Makefile.{am,in}
208 - fi
209 -
210 - gnome2_src_prepare
211 -}
212 -
213 -multilib_src_configure() {
214 - [[ ${ABI} == ppc64 ]] && append-flags -mminimal-toc
215 -
216 - ECONF_SOURCE=${S} \
217 - gnome2_src_configure \
218 - $(usex aqua --with-gdktarget=quartz --with-gdktarget=x11) \
219 - $(usex aqua "" --with-xinput) \
220 - $(use_enable cups cups auto) \
221 - $(multilib_native_use_enable introspection) \
222 - $(use_enable xinerama) \
223 - --disable-papi \
224 - --enable-man \
225 - --with-xml-catalog="${EPREFIX}"/etc/xml/catalog \
226 - CUPS_CONFIG="${EPREFIX}/usr/bin/${CHOST}-cups-config"
227 -
228 - # work-around gtk-doc out-of-source brokedness
229 - if multilib_is_native_abi; then
230 - local d
231 - for d in gdk gtk libgail-util; do
232 - ln -s "${S}"/docs/reference/${d}/html docs/reference/${d}/html || die
233 - done
234 - fi
235 -}
236 -
237 -multilib_src_test() {
238 - virtx emake check
239 -}
240 -
241 -multilib_src_install() {
242 - gnome2_src_install
243 -}
244 -
245 -multilib_src_install_all() {
246 - # see bug #133241
247 - # Also set more default variables in sync with gtk3 and other distributions
248 - insinto /usr/share/gtk-2.0
249 - newins - gtkrc <<- 'EOF'
250 - gtk-fallback-icon-theme = "gnome"
251 - gtk-theme-name = "Adwaita"
252 - gtk-icon-theme-name = "Adwaita"
253 - gtk-cursor-theme-name = "Adwaita"
254 - EOF
255 -
256 - einstalldocs
257 -
258 - # dev-util/gtk-builder-convert split off into a separate package, #402905
259 - rm "${ED}"/usr/bin/gtk-builder-convert || die
260 - rm "${ED}"/usr/share/man/man1/gtk-builder-convert.* || die
261 -
262 - readme.gentoo_create_doc
263 -}
264 -
265 -pkg_preinst() {
266 - gnome2_pkg_preinst
267 -
268 - multilib_pkg_preinst() {
269 - # Make immodules.cache belongs to gtk+ alone
270 - local cache="/usr/$(get_libdir)/gtk-2.0/2.10.0/immodules.cache"
271 -
272 - if [[ -e "${EROOT}${cache}" ]]; then
273 - cp "${EROOT}${cache}" "${ED}${cache}" || die
274 - else
275 - touch "${ED}${cache}" || die
276 - fi
277 - }
278 - multilib_parallel_foreach_abi multilib_pkg_preinst
279 -}
280 -
281 -pkg_postinst() {
282 - gnome2_pkg_postinst
283 -
284 - multilib_pkg_postinst() {
285 - gnome2_query_immodules_gtk2 \
286 - || die "Update immodules cache failed (for ${ABI})"
287 - }
288 - multilib_parallel_foreach_abi multilib_pkg_postinst
289 -
290 - set_gtk2_confdir
291 -
292 - if [ -e "${EROOT}/etc/gtk-2.0/gtk.immodules" ]; then
293 - elog "File /etc/gtk-2.0/gtk.immodules has been moved to \$CHOST"
294 - elog "aware location. Removing deprecated file."
295 - rm -f "${EROOT}/etc/gtk-2.0/gtk.immodules"
296 - fi
297 -
298 - if [ -e "${EROOT}${GTK2_CONFDIR}/gtk.immodules" ]; then
299 - elog "File /etc/gtk-2.0/gtk.immodules has been moved to"
300 - elog "${EROOT}/usr/$(get_libdir)/gtk-2.0/2.10.0/immodules.cache"
301 - elog "Removing deprecated file."
302 - rm -f "${EROOT}${GTK2_CONFDIR}/gtk.immodules"
303 - fi
304 -
305 - # pixbufs are now handled by x11-libs/gdk-pixbuf
306 - if [ -e "${EROOT}${GTK2_CONFDIR}/gdk-pixbuf.loaders" ]; then
307 - elog "File ${EROOT}${GTK2_CONFDIR}/gdk-pixbuf.loaders is now handled by x11-libs/gdk-pixbuf"
308 - elog "Removing deprecated file."
309 - rm -f "${EROOT}${GTK2_CONFDIR}/gdk-pixbuf.loaders"
310 - fi
311 -
312 - # two checks needed since we dropped multilib conditional
313 - if [ -e "${EROOT}/etc/gtk-2.0/gdk-pixbuf.loaders" ]; then
314 - elog "File ${EROOT}/etc/gtk-2.0/gdk-pixbuf.loaders is now handled by x11-libs/gdk-pixbuf"
315 - elog "Removing deprecated file."
316 - rm -f "${EROOT}/etc/gtk-2.0/gdk-pixbuf.loaders"
317 - fi
318 -
319 - if [ -e "${EROOT}"/usr/lib/gtk-2.0/2.[^1]* ]; then
320 - elog "You need to rebuild ebuilds that installed into" "${EROOT}"/usr/lib/gtk-2.0/2.[^1]*
321 - elog "to do that you can use qfile from portage-utils:"
322 - elog "emerge -va1 \$(qfile -qC ${EPREFIX}/usr/lib/gtk-2.0/2.[^1]*)"
323 - fi
324 -
325 - if ! has_version "app-text/evince"; then
326 - elog "Please install app-text/evince for print preview functionality."
327 - elog "Alternatively, check \"gtk-print-preview-command\" documentation and"
328 - elog "add it to your gtkrc."
329 - fi
330 -
331 - readme.gentoo_print_elog
332 -}
333 -
334 -pkg_postrm() {
335 - gnome2_pkg_postrm
336 -
337 - if [[ -z ${REPLACED_BY_VERSION} ]]; then
338 - multilib_pkg_postrm() {
339 - rm -f "${EROOT}/usr/$(get_libdir)/gtk-2.0/2.10.0/immodules.cache"
340 - }
341 - multilib_foreach_abi multilib_pkg_postrm
342 - fi
343 -}
344
345 diff --git a/x11-libs/gtk+/gtk+-3.24.26.ebuild b/x11-libs/gtk+/gtk+-3.24.26.ebuild
346 deleted file mode 100644
347 index 38265afc5a0..00000000000
348 --- a/x11-libs/gtk+/gtk+-3.24.26.ebuild
349 +++ /dev/null
350 @@ -1,254 +0,0 @@
351 -# Copyright 1999-2021 Gentoo Authors
352 -# Distributed under the terms of the GNU General Public License v2
353 -
354 -EAPI=7
355 -GNOME2_EAUTORECONF="yes"
356 -
357 -inherit gnome2 multilib multilib-minimal virtualx
358 -
359 -DESCRIPTION="Gimp ToolKit +"
360 -HOMEPAGE="https://www.gtk.org/"
361 -
362 -LICENSE="LGPL-2+"
363 -SLOT="3"
364 -IUSE="aqua broadway cloudprint colord cups examples gtk-doc +introspection sysprof test vim-syntax wayland +X xinerama"
365 -REQUIRED_USE="
366 - || ( aqua wayland X )
367 - xinerama? ( X )
368 -"
369 -
370 -KEYWORDS="~alpha amd64 arm arm64 ~hppa ~ia64 ~mips ppc ppc64 ~s390 sparc x86 ~amd64-linux ~x86-linux ~ppc-macos ~sparc-solaris ~sparc64-solaris ~x64-solaris ~x86-solaris"
371 -
372 -# Upstream wants us to do their job:
373 -# https://bugzilla.gnome.org/show_bug.cgi?id=768662#c1
374 -RESTRICT="test"
375 -
376 -# FIXME: introspection data is built against system installation of gtk+:3,
377 -# bug #????
378 -COMMON_DEPEND="
379 - >=dev-libs/atk-2.32.0[introspection?,${MULTILIB_USEDEP}]
380 - >=dev-libs/fribidi-0.19.7[${MULTILIB_USEDEP}]
381 - >=dev-libs/glib-2.57.2:2[${MULTILIB_USEDEP}]
382 - media-libs/fontconfig[${MULTILIB_USEDEP}]
383 - >=media-libs/harfbuzz-0.9:=
384 - >=media-libs/libepoxy-1.4[X(+)?,${MULTILIB_USEDEP}]
385 - virtual/libintl[${MULTILIB_USEDEP}]
386 - >=x11-libs/cairo-1.14[aqua?,glib,svg,X?,${MULTILIB_USEDEP}]
387 - >=x11-libs/gdk-pixbuf-2.30:2[introspection?,${MULTILIB_USEDEP}]
388 - >=x11-libs/pango-1.41.0[introspection?,${MULTILIB_USEDEP}]
389 - x11-misc/shared-mime-info
390 -
391 - cloudprint? (
392 - >=dev-libs/json-glib-1.0[${MULTILIB_USEDEP}]
393 - >=net-libs/rest-0.7[${MULTILIB_USEDEP}]
394 - )
395 - colord? ( >=x11-misc/colord-0.1.9:0=[${MULTILIB_USEDEP}] )
396 - cups? ( >=net-print/cups-2.0[${MULTILIB_USEDEP}] )
397 - introspection? ( >=dev-libs/gobject-introspection-1.39:= )
398 - sysprof? ( >=dev-util/sysprof-capture-3.33.2:3[${MULTILIB_USEDEP}] )
399 - wayland? (
400 - >=dev-libs/wayland-1.14.91[${MULTILIB_USEDEP}]
401 - >=dev-libs/wayland-protocols-1.17
402 - media-libs/mesa[wayland,${MULTILIB_USEDEP}]
403 - >=x11-libs/libxkbcommon-0.2[${MULTILIB_USEDEP}]
404 - )
405 - X? (
406 - >=app-accessibility/at-spi2-atk-2.15.1[${MULTILIB_USEDEP}]
407 - media-libs/mesa[X(+),${MULTILIB_USEDEP}]
408 - x11-libs/libX11[${MULTILIB_USEDEP}]
409 - x11-libs/libXcomposite[${MULTILIB_USEDEP}]
410 - x11-libs/libXcursor[${MULTILIB_USEDEP}]
411 - x11-libs/libXdamage[${MULTILIB_USEDEP}]
412 - x11-libs/libXext[${MULTILIB_USEDEP}]
413 - x11-libs/libXfixes[${MULTILIB_USEDEP}]
414 - >=x11-libs/libXi-1.3[${MULTILIB_USEDEP}]
415 - >=x11-libs/libXrandr-1.5[${MULTILIB_USEDEP}]
416 - xinerama? ( x11-libs/libXinerama[${MULTILIB_USEDEP}] )
417 - )
418 -"
419 -DEPEND="${COMMON_DEPEND}
420 - test? (
421 - media-fonts/font-cursor-misc
422 - media-fonts/font-misc-misc
423 - )
424 - X? ( x11-base/xorg-proto )
425 -"
426 -# gtk+-3.2.2 breaks Alt key handling in <=x11-libs/vte-0.30.1:2.90
427 -# gtk+-3.3.18 breaks scrolling in <=x11-libs/vte-0.31.0:2.90
428 -RDEPEND="${COMMON_DEPEND}
429 - >=dev-util/gtk-update-icon-cache-3
430 - !<gnome-base/gail-1000
431 - !<x11-libs/vte-0.31.0:2.90
432 -"
433 -# librsvg for svg icons (PDEPEND to avoid circular dep), bug #547710
434 -PDEPEND="
435 - gnome-base/librsvg[${MULTILIB_USEDEP}]
436 - >=x11-themes/adwaita-icon-theme-3.14
437 - vim-syntax? ( app-vim/gtk-syntax )
438 -"
439 -BDEPEND="
440 - app-text/docbook-xml-dtd:4.1.2
441 - app-text/docbook-xsl-stylesheets
442 - dev-libs/gobject-introspection-common
443 - dev-libs/libxslt
444 - >=dev-util/gdbus-codegen-2.48
445 - dev-util/glib-utils
446 - >=dev-util/gtk-doc-am-1.20
447 - wayland? ( dev-util/wayland-scanner )
448 - >=sys-devel/gettext-0.19.7
449 - virtual/pkgconfig
450 - gtk-doc? (
451 - app-text/docbook-xml-dtd:4.3
452 - >=dev-util/gtk-doc-1.20
453 - )
454 -"
455 -
456 -MULTILIB_CHOST_TOOLS=(
457 - /usr/bin/gtk-query-immodules-3.0$(get_exeext)
458 -)
459 -
460 -PATCHES=(
461 - # gtk-update-icon-cache is installed by dev-util/gtk-update-icon-cache
462 - "${FILESDIR}"/${PN}-3.24.25-update-icon-cache.patch
463 -
464 - # Fix broken autotools logic
465 - "${FILESDIR}"/${PN}-3.22.20-libcloudproviders-automagic.patch
466 -)
467 -
468 -strip_builddir() {
469 - local rule=$1
470 - shift
471 - local directory=$1
472 - shift
473 - sed -e "s/^\(${rule} =.*\)${directory}\(.*\)$/\1\2/" -i $@ \
474 - || die "Could not strip director ${directory} from build."
475 -}
476 -
477 -src_prepare() {
478 - if ! use test ; then
479 - # don't waste time building tests
480 - strip_builddir SRC_SUBDIRS testsuite Makefile.{am,in}
481 -
482 - # the tests dir needs to be build now because since commit
483 - # 7ff3c6df80185e165e3bf6aa31bd014d1f8bf224 tests/gtkgears.o needs to be there
484 - # strip_builddir SRC_SUBDIRS tests Makefile.{am,in}
485 - fi
486 -
487 - if ! use examples; then
488 - # don't waste time building demos
489 - strip_builddir SRC_SUBDIRS demos Makefile.{am,in}
490 - strip_builddir SRC_SUBDIRS examples Makefile.{am,in}
491 - fi
492 -
493 - gnome2_src_prepare
494 -}
495 -
496 -multilib_src_configure() {
497 - local myconf=(
498 - $(use_enable aqua quartz-backend)
499 - $(use_enable broadway broadway-backend)
500 - $(use_enable cloudprint)
501 - $(use_enable colord)
502 - $(use_enable cups cups auto)
503 - $(multilib_native_use_enable gtk-doc)
504 - $(multilib_native_use_enable introspection)
505 - $(use_enable sysprof profiler)
506 - $(use_enable wayland wayland-backend)
507 - $(use_enable X x11-backend)
508 - $(use_enable X xcomposite)
509 - $(use_enable X xdamage)
510 - $(use_enable X xfixes)
511 - $(use_enable X xkb)
512 - $(use_enable X xrandr)
513 - $(use_enable xinerama)
514 - # cloudprovider is not packaged in Gentoo yet
515 - --disable-cloudproviders
516 - --disable-papi
517 - --enable-man
518 - --with-xml-catalog="${EPREFIX}"/etc/xml/catalog
519 - # need libdir here to avoid a double slash in a path that libtool doesn't
520 - # grok so well during install (// between $EPREFIX and usr ...)
521 - # TODO: Is this still the case?
522 - --libdir="${EPREFIX}"/usr/$(get_libdir)
523 - CUPS_CONFIG="${EPREFIX}/usr/bin/${CHOST}-cups-config"
524 - )
525 -
526 - if use wayland; then
527 - myconf+=(
528 - # Include wayland immodule into gtk itself, to avoid problems like
529 - # https://gitlab.gnome.org/GNOME/gnome-shell/issues/109 from a
530 - # user overridden GTK_IM_MODULE envvar
531 - --with-included-immodules=wayland
532 - )
533 - fi;
534 -
535 - ECONF_SOURCE=${S} gnome2_src_configure "${myconf[@]}"
536 -
537 - # work-around gtk-doc out-of-source brokedness
538 - if multilib_is_native_abi; then
539 - local d
540 - for d in gdk gtk libgail-util; do
541 - ln -s "${S}"/docs/reference/${d}/html docs/reference/${d}/html || die
542 - done
543 - fi
544 -}
545 -
546 -multilib_src_test() {
547 - "${EROOT}${GLIB_COMPILE_SCHEMAS}" --allow-any-name "${S}/gtk" || die
548 - GSETTINGS_SCHEMA_DIR="${S}/gtk" virtx emake check
549 -}
550 -
551 -multilib_src_install() {
552 - gnome2_src_install
553 -}
554 -
555 -multilib_src_install_all() {
556 - insinto /etc/gtk-3.0
557 - doins "${FILESDIR}"/settings.ini
558 - # Skip README.{in,commits,win32} that would get installed by default
559 - DOCS=( AUTHORS ChangeLog NEWS README )
560 - einstalldocs
561 -}
562 -
563 -pkg_preinst() {
564 - gnome2_pkg_preinst
565 -
566 - multilib_pkg_preinst() {
567 - # Make immodules.cache belongs to gtk+ alone
568 - local cache="/usr/$(get_libdir)/gtk-3.0/3.0.0/immodules.cache"
569 -
570 - if [[ -e ${EROOT}${cache} ]]; then
571 - cp "${EROOT}${cache}" "${ED}${cache}" || die
572 - else
573 - touch "${ED}${cache}" || die
574 - fi
575 - }
576 - multilib_parallel_foreach_abi multilib_pkg_preinst
577 -}
578 -
579 -pkg_postinst() {
580 - gnome2_pkg_postinst
581 -
582 - multilib_pkg_postinst() {
583 - gnome2_query_immodules_gtk3 \
584 - || die "Update immodules cache failed (for ${ABI})"
585 - }
586 - multilib_parallel_foreach_abi multilib_pkg_postinst
587 -
588 - if ! has_version "app-text/evince"; then
589 - elog "Please install app-text/evince for print preview functionality."
590 - elog "Alternatively, check \"gtk-print-preview-command\" documentation and"
591 - elog "add it to your settings.ini file."
592 - fi
593 -}
594 -
595 -pkg_postrm() {
596 - gnome2_pkg_postrm
597 -
598 - if [[ -z ${REPLACED_BY_VERSION} ]]; then
599 - multilib_pkg_postrm() {
600 - rm -f "${EROOT}/usr/$(get_libdir)/gtk-3.0/3.0.0/immodules.cache"
601 - }
602 - multilib_foreach_abi multilib_pkg_postrm
603 - fi
604 -}
605
606 diff --git a/x11-libs/gtk+/gtk+-3.24.28.ebuild b/x11-libs/gtk+/gtk+-3.24.28.ebuild
607 deleted file mode 100644
608 index 54b60dc29ad..00000000000
609 --- a/x11-libs/gtk+/gtk+-3.24.28.ebuild
610 +++ /dev/null
611 @@ -1,254 +0,0 @@
612 -# Copyright 1999-2021 Gentoo Authors
613 -# Distributed under the terms of the GNU General Public License v2
614 -
615 -EAPI=7
616 -GNOME2_EAUTORECONF="yes"
617 -
618 -inherit gnome2 multilib multilib-minimal virtualx
619 -
620 -DESCRIPTION="Gimp ToolKit +"
621 -HOMEPAGE="https://www.gtk.org/"
622 -
623 -LICENSE="LGPL-2+"
624 -SLOT="3"
625 -IUSE="aqua broadway cloudprint colord cups examples gtk-doc +introspection sysprof test vim-syntax wayland +X xinerama"
626 -REQUIRED_USE="
627 - || ( aqua wayland X )
628 - xinerama? ( X )
629 -"
630 -
631 -KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~mips ~ppc ~ppc64 ~s390 ~sparc ~x86 ~amd64-linux ~x86-linux ~ppc-macos ~sparc-solaris ~sparc64-solaris ~x64-solaris ~x86-solaris"
632 -
633 -# Upstream wants us to do their job:
634 -# https://bugzilla.gnome.org/show_bug.cgi?id=768662#c1
635 -RESTRICT="test"
636 -
637 -# FIXME: introspection data is built against system installation of gtk+:3,
638 -# bug #????
639 -COMMON_DEPEND="
640 - >=dev-libs/atk-2.32.0[introspection?,${MULTILIB_USEDEP}]
641 - >=dev-libs/fribidi-0.19.7[${MULTILIB_USEDEP}]
642 - >=dev-libs/glib-2.57.2:2[${MULTILIB_USEDEP}]
643 - media-libs/fontconfig[${MULTILIB_USEDEP}]
644 - >=media-libs/harfbuzz-0.9:=
645 - >=media-libs/libepoxy-1.4[X(+)?,${MULTILIB_USEDEP}]
646 - virtual/libintl[${MULTILIB_USEDEP}]
647 - >=x11-libs/cairo-1.14[aqua?,glib,svg,X?,${MULTILIB_USEDEP}]
648 - >=x11-libs/gdk-pixbuf-2.30:2[introspection?,${MULTILIB_USEDEP}]
649 - >=x11-libs/pango-1.41.0[introspection?,${MULTILIB_USEDEP}]
650 - x11-misc/shared-mime-info
651 -
652 - cloudprint? (
653 - >=dev-libs/json-glib-1.0[${MULTILIB_USEDEP}]
654 - >=net-libs/rest-0.7[${MULTILIB_USEDEP}]
655 - )
656 - colord? ( >=x11-misc/colord-0.1.9:0=[${MULTILIB_USEDEP}] )
657 - cups? ( >=net-print/cups-2.0[${MULTILIB_USEDEP}] )
658 - introspection? ( >=dev-libs/gobject-introspection-1.39:= )
659 - sysprof? ( >=dev-util/sysprof-capture-3.33.2:3[${MULTILIB_USEDEP}] )
660 - wayland? (
661 - >=dev-libs/wayland-1.14.91[${MULTILIB_USEDEP}]
662 - >=dev-libs/wayland-protocols-1.17
663 - media-libs/mesa[wayland,${MULTILIB_USEDEP}]
664 - >=x11-libs/libxkbcommon-0.2[${MULTILIB_USEDEP}]
665 - )
666 - X? (
667 - >=app-accessibility/at-spi2-atk-2.15.1[${MULTILIB_USEDEP}]
668 - media-libs/mesa[X(+),${MULTILIB_USEDEP}]
669 - x11-libs/libX11[${MULTILIB_USEDEP}]
670 - x11-libs/libXcomposite[${MULTILIB_USEDEP}]
671 - x11-libs/libXcursor[${MULTILIB_USEDEP}]
672 - x11-libs/libXdamage[${MULTILIB_USEDEP}]
673 - x11-libs/libXext[${MULTILIB_USEDEP}]
674 - x11-libs/libXfixes[${MULTILIB_USEDEP}]
675 - >=x11-libs/libXi-1.3[${MULTILIB_USEDEP}]
676 - >=x11-libs/libXrandr-1.5[${MULTILIB_USEDEP}]
677 - xinerama? ( x11-libs/libXinerama[${MULTILIB_USEDEP}] )
678 - )
679 -"
680 -DEPEND="${COMMON_DEPEND}
681 - test? (
682 - media-fonts/font-cursor-misc
683 - media-fonts/font-misc-misc
684 - )
685 - X? ( x11-base/xorg-proto )
686 -"
687 -# gtk+-3.2.2 breaks Alt key handling in <=x11-libs/vte-0.30.1:2.90
688 -# gtk+-3.3.18 breaks scrolling in <=x11-libs/vte-0.31.0:2.90
689 -RDEPEND="${COMMON_DEPEND}
690 - >=dev-util/gtk-update-icon-cache-3
691 - !<x11-libs/vte-0.31.0:2.90
692 -"
693 -# librsvg for svg icons (PDEPEND to avoid circular dep), bug #547710
694 -PDEPEND="
695 - gnome-base/librsvg[${MULTILIB_USEDEP}]
696 - >=x11-themes/adwaita-icon-theme-3.14
697 - vim-syntax? ( app-vim/gtk-syntax )
698 -"
699 -BDEPEND="
700 - app-text/docbook-xml-dtd:4.1.2
701 - app-text/docbook-xsl-stylesheets
702 - dev-libs/gobject-introspection-common
703 - dev-libs/libxslt
704 - >=dev-util/gdbus-codegen-2.48
705 - dev-util/glib-utils
706 - >=dev-util/gtk-doc-am-1.20
707 - wayland? ( dev-util/wayland-scanner )
708 - >=sys-devel/gettext-0.19.7
709 - virtual/pkgconfig
710 - x11-libs/gdk-pixbuf:2
711 - gtk-doc? (
712 - app-text/docbook-xml-dtd:4.3
713 - >=dev-util/gtk-doc-1.20
714 - )
715 -"
716 -
717 -MULTILIB_CHOST_TOOLS=(
718 - /usr/bin/gtk-query-immodules-3.0$(get_exeext)
719 -)
720 -
721 -PATCHES=(
722 - # gtk-update-icon-cache is installed by dev-util/gtk-update-icon-cache
723 - "${FILESDIR}"/${PN}-3.24.25-update-icon-cache.patch
724 -
725 - # Fix broken autotools logic
726 - "${FILESDIR}"/${PN}-3.22.20-libcloudproviders-automagic.patch
727 -)
728 -
729 -strip_builddir() {
730 - local rule=$1
731 - shift
732 - local directory=$1
733 - shift
734 - sed -e "s/^\(${rule} =.*\)${directory}\(.*\)$/\1\2/" -i $@ \
735 - || die "Could not strip director ${directory} from build."
736 -}
737 -
738 -src_prepare() {
739 - if ! use test ; then
740 - # don't waste time building tests
741 - strip_builddir SRC_SUBDIRS testsuite Makefile.{am,in}
742 -
743 - # the tests dir needs to be build now because since commit
744 - # 7ff3c6df80185e165e3bf6aa31bd014d1f8bf224 tests/gtkgears.o needs to be there
745 - # strip_builddir SRC_SUBDIRS tests Makefile.{am,in}
746 - fi
747 -
748 - if ! use examples; then
749 - # don't waste time building demos
750 - strip_builddir SRC_SUBDIRS demos Makefile.{am,in}
751 - strip_builddir SRC_SUBDIRS examples Makefile.{am,in}
752 - fi
753 -
754 - gnome2_src_prepare
755 -}
756 -
757 -multilib_src_configure() {
758 - local myconf=(
759 - $(use_enable aqua quartz-backend)
760 - $(use_enable broadway broadway-backend)
761 - $(use_enable cloudprint)
762 - $(use_enable colord)
763 - $(use_enable cups cups auto)
764 - $(multilib_native_use_enable gtk-doc)
765 - $(multilib_native_use_enable introspection)
766 - $(use_enable sysprof profiler)
767 - $(use_enable wayland wayland-backend)
768 - $(use_enable X x11-backend)
769 - $(use_enable X xcomposite)
770 - $(use_enable X xdamage)
771 - $(use_enable X xfixes)
772 - $(use_enable X xkb)
773 - $(use_enable X xrandr)
774 - $(use_enable xinerama)
775 - # cloudprovider is not packaged in Gentoo yet
776 - --disable-cloudproviders
777 - --disable-papi
778 - --enable-man
779 - --with-xml-catalog="${EPREFIX}"/etc/xml/catalog
780 - # need libdir here to avoid a double slash in a path that libtool doesn't
781 - # grok so well during install (// between $EPREFIX and usr ...)
782 - # TODO: Is this still the case?
783 - --libdir="${EPREFIX}"/usr/$(get_libdir)
784 - CUPS_CONFIG="${EPREFIX}/usr/bin/${CHOST}-cups-config"
785 - )
786 -
787 - if use wayland; then
788 - myconf+=(
789 - # Include wayland immodule into gtk itself, to avoid problems like
790 - # https://gitlab.gnome.org/GNOME/gnome-shell/issues/109 from a
791 - # user overridden GTK_IM_MODULE envvar
792 - --with-included-immodules=wayland
793 - )
794 - fi;
795 -
796 - ECONF_SOURCE=${S} gnome2_src_configure "${myconf[@]}"
797 -
798 - # work-around gtk-doc out-of-source brokedness
799 - if multilib_is_native_abi; then
800 - local d
801 - for d in gdk gtk libgail-util; do
802 - ln -s "${S}"/docs/reference/${d}/html docs/reference/${d}/html || die
803 - done
804 - fi
805 -}
806 -
807 -multilib_src_test() {
808 - "${EROOT}${GLIB_COMPILE_SCHEMAS}" --allow-any-name "${S}/gtk" || die
809 - GSETTINGS_SCHEMA_DIR="${S}/gtk" virtx emake check
810 -}
811 -
812 -multilib_src_install() {
813 - gnome2_src_install
814 -}
815 -
816 -multilib_src_install_all() {
817 - insinto /etc/gtk-3.0
818 - doins "${FILESDIR}"/settings.ini
819 - # Skip README.{in,commits,win32} that would get installed by default
820 - DOCS=( AUTHORS ChangeLog NEWS README )
821 - einstalldocs
822 -}
823 -
824 -pkg_preinst() {
825 - gnome2_pkg_preinst
826 -
827 - multilib_pkg_preinst() {
828 - # Make immodules.cache belongs to gtk+ alone
829 - local cache="/usr/$(get_libdir)/gtk-3.0/3.0.0/immodules.cache"
830 -
831 - if [[ -e ${EROOT}${cache} ]]; then
832 - cp "${EROOT}${cache}" "${ED}${cache}" || die
833 - else
834 - touch "${ED}${cache}" || die
835 - fi
836 - }
837 - multilib_parallel_foreach_abi multilib_pkg_preinst
838 -}
839 -
840 -pkg_postinst() {
841 - gnome2_pkg_postinst
842 -
843 - multilib_pkg_postinst() {
844 - gnome2_query_immodules_gtk3 \
845 - || die "Update immodules cache failed (for ${ABI})"
846 - }
847 - multilib_parallel_foreach_abi multilib_pkg_postinst
848 -
849 - if ! has_version "app-text/evince"; then
850 - elog "Please install app-text/evince for print preview functionality."
851 - elog "Alternatively, check \"gtk-print-preview-command\" documentation and"
852 - elog "add it to your settings.ini file."
853 - fi
854 -}
855 -
856 -pkg_postrm() {
857 - gnome2_pkg_postrm
858 -
859 - if [[ -z ${REPLACED_BY_VERSION} ]]; then
860 - multilib_pkg_postrm() {
861 - rm -f "${EROOT}/usr/$(get_libdir)/gtk-3.0/3.0.0/immodules.cache"
862 - }
863 - multilib_foreach_abi multilib_pkg_postrm
864 - fi
865 -}