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: Fri, 03 Mar 2023 05:43:46
Message-Id: 1677822218.ebe47f1c16dd8690e633ee62c853a75c17c98ee3.mattst88@gentoo
1 commit: ebe47f1c16dd8690e633ee62c853a75c17c98ee3
2 Author: Matt Turner <mattst88 <AT> gentoo <DOT> org>
3 AuthorDate: Fri Mar 3 00:54:20 2023 +0000
4 Commit: Matt Turner <mattst88 <AT> gentoo <DOT> org>
5 CommitDate: Fri Mar 3 05:43:38 2023 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=ebe47f1c
7
8 x11-libs/gtk+: Version bump to 3.24.37
9
10 Enable tests as well.
11
12 Signed-off-by: Matt Turner <mattst88 <AT> gentoo.org>
13
14 x11-libs/gtk+/Manifest | 1 +
15 x11-libs/gtk+/gtk+-3.24.37.ebuild | 190 ++++++++++++++++++++++++++++++++++++++
16 2 files changed, 191 insertions(+)
17
18 diff --git a/x11-libs/gtk+/Manifest b/x11-libs/gtk+/Manifest
19 index 0fa7a1dacb71..dcffaf3dcbc8 100644
20 --- a/x11-libs/gtk+/Manifest
21 +++ b/x11-libs/gtk+/Manifest
22 @@ -1,3 +1,4 @@
23 DIST gtk+-2.24.33.tar.xz 12661828 BLAKE2B f3488b220aaee54bf36fa77e2112d060152e57938845d240014a7d43a5743b1d4de19cc09c683d9d238fd1967cd67cc3c493f2475e4e481f6709f5cdc652c65c SHA512 71b588797c81f727dfac8dcb1be193f7436f717d30ecf18eae2d3aeb0f445b3be4743400acac16435490db8f564f01032065d3f42d27871317f80c98aef929d5
24 DIST gtk+-3.24.35.tar.xz 17913328 BLAKE2B 3beea3cbda7247357238ad133c951e69d5670d68e06efb4de09fae7141b141f4eb17a8c79661cab928a3db427f7b32b518875d0951254941e76b1a7aab60e34f SHA512 3a1ec35756fe12f5be3cfe33ef332d583690458327572e69bffad8b4095059d2a744a4a53b2fd31bab5da2ca7b41a2a38fbbd8ba541a45fa8cc0d00eae005ade
25 DIST gtk+-3.24.36.tar.xz 12540184 BLAKE2B 3d9346a3fbc78420eb8edcbad42d9885bed69ce46505bc15819691d884f31aa72386fcd38837e042ba9be3cda6cf5203f921c7f6054a7350c46dee6b77fc4cc4 SHA512 76280e847653576e6fd0586d6044ab315f04c3548c211b37612c4ac77f7bbccfcff17459b9d1d3cbddeb74a62a0bcac05f850b89a20d4abc3893c6c387ecb03a
26 +DIST gtk+-3.24.37.tar.xz 12401196 BLAKE2B 1cffcf0066f0f9d42fd01d9cf0dbab2465bf749fe70ebe24a843807c77b696047cbb739fead7f7872833ee562439d96857d02b3037b949babaa3797482104fda SHA512 118521686cb40c5b6ddfcc361be8ff8a16aced2108a24d1f6b7f29d32c235a77774d365b0bd283c9a6873003fca144d67793d12094c74d224a08fc1be341a22f
27
28 diff --git a/x11-libs/gtk+/gtk+-3.24.37.ebuild b/x11-libs/gtk+/gtk+-3.24.37.ebuild
29 new file mode 100644
30 index 000000000000..4ad85c6f286d
31 --- /dev/null
32 +++ b/x11-libs/gtk+/gtk+-3.24.37.ebuild
33 @@ -0,0 +1,190 @@
34 +# Copyright 1999-2023 Gentoo Authors
35 +# Distributed under the terms of the GNU General Public License v2
36 +
37 +EAPI=8
38 +
39 +inherit gnome2 meson-multilib multilib virtualx
40 +
41 +DESCRIPTION="Gimp ToolKit +"
42 +HOMEPAGE="https://www.gtk.org/"
43 +
44 +LICENSE="LGPL-2+"
45 +SLOT="3"
46 +IUSE="aqua broadway cloudproviders colord cups examples gtk-doc +introspection sysprof test vim-syntax wayland +X xinerama"
47 +REQUIRED_USE="
48 + || ( aqua wayland X )
49 + test? ( X )
50 + xinerama? ( X )
51 +"
52 +RESTRICT="!test? ( test )"
53 +
54 +KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~ia64 ~loong ~mips ~ppc ~ppc64 ~riscv ~sparc ~x86 ~amd64-linux ~x86-linux ~ppc-macos ~sparc-solaris ~sparc64-solaris ~x64-solaris ~x86-solaris"
55 +
56 +COMMON_DEPEND="
57 + >=app-accessibility/at-spi2-core-2.46.0[introspection?,${MULTILIB_USEDEP}]
58 + >=dev-libs/fribidi-0.19.7[${MULTILIB_USEDEP}]
59 + >=dev-libs/glib-2.57.2:2[${MULTILIB_USEDEP}]
60 + media-libs/fontconfig[${MULTILIB_USEDEP}]
61 + >=media-libs/harfbuzz-2.2.0:=
62 + >=media-libs/libepoxy-1.4[X(+)?,${MULTILIB_USEDEP}]
63 + virtual/libintl[${MULTILIB_USEDEP}]
64 + >=x11-libs/cairo-1.14[aqua?,glib,svg(+),X?,${MULTILIB_USEDEP}]
65 + >=x11-libs/gdk-pixbuf-2.30:2[introspection?,${MULTILIB_USEDEP}]
66 + >=x11-libs/pango-1.44.0[introspection?,${MULTILIB_USEDEP}]
67 + x11-misc/shared-mime-info
68 +
69 + cloudproviders? ( net-libs/libcloudproviders )
70 + colord? ( >=x11-misc/colord-0.1.9:0=[${MULTILIB_USEDEP}] )
71 + cups? ( >=net-print/cups-2.0[${MULTILIB_USEDEP}] )
72 + introspection? ( >=dev-libs/gobject-introspection-1.39:= )
73 + sysprof? ( >=dev-util/sysprof-capture-3.33.2:3[${MULTILIB_USEDEP}] )
74 + wayland? (
75 + >=dev-libs/wayland-1.14.91[${MULTILIB_USEDEP}]
76 + >=dev-libs/wayland-protocols-1.21
77 + media-libs/mesa[wayland,${MULTILIB_USEDEP}]
78 + >=x11-libs/libxkbcommon-0.2[${MULTILIB_USEDEP}]
79 + )
80 + X? (
81 + media-libs/libglvnd[X(+),${MULTILIB_USEDEP}]
82 + x11-libs/libX11[${MULTILIB_USEDEP}]
83 + x11-libs/libXcomposite[${MULTILIB_USEDEP}]
84 + x11-libs/libXcursor[${MULTILIB_USEDEP}]
85 + x11-libs/libXdamage[${MULTILIB_USEDEP}]
86 + x11-libs/libXext[${MULTILIB_USEDEP}]
87 + x11-libs/libXfixes[${MULTILIB_USEDEP}]
88 + >=x11-libs/libXi-1.8[${MULTILIB_USEDEP}]
89 + >=x11-libs/libXrandr-1.5[${MULTILIB_USEDEP}]
90 + xinerama? ( x11-libs/libXinerama[${MULTILIB_USEDEP}] )
91 + )
92 +"
93 +DEPEND="${COMMON_DEPEND}
94 + test? (
95 + media-fonts/font-cursor-misc
96 + media-fonts/font-misc-misc
97 + )
98 + X? ( x11-base/xorg-proto )
99 +"
100 +RDEPEND="${COMMON_DEPEND}
101 + >=dev-util/gtk-update-icon-cache-3
102 +"
103 +# librsvg for svg icons (PDEPEND to avoid circular dep), bug #547710
104 +PDEPEND="
105 + gnome-base/librsvg[${MULTILIB_USEDEP}]
106 + >=x11-themes/adwaita-icon-theme-3.14
107 + vim-syntax? ( app-vim/gtk-syntax )
108 +"
109 +BDEPEND="
110 + app-text/docbook-xml-dtd:4.1.2
111 + app-text/docbook-xsl-stylesheets
112 + dev-libs/gobject-introspection-common
113 + dev-libs/libxslt
114 + >=dev-util/gdbus-codegen-2.48
115 + dev-util/glib-utils
116 + >=dev-util/gtk-doc-am-1.20
117 + wayland? ( dev-util/wayland-scanner )
118 + >=sys-devel/gettext-0.19.7
119 + virtual/pkgconfig
120 + x11-libs/gdk-pixbuf:2
121 + gtk-doc? (
122 + app-text/docbook-xml-dtd:4.3
123 + >=dev-util/gtk-doc-1.20
124 + )
125 +"
126 +
127 +MULTILIB_CHOST_TOOLS=(
128 + /usr/bin/gtk-query-immodules-3.0$(get_exeext)
129 +)
130 +
131 +PATCHES=(
132 + # gtk-update-icon-cache is installed by dev-util/gtk-update-icon-cache
133 + "${FILESDIR}"/${PN}-3.24.36-update-icon-cache.patch
134 +)
135 +
136 +multilib_src_configure() {
137 + local emesonargs=(
138 + $(meson_use aqua quartz_backend)
139 + $(meson_use broadway broadway_backend)
140 + $(meson_use cloudproviders)
141 + $(meson_use examples demos)
142 + $(meson_use examples)
143 + $(meson_native_use_bool gtk-doc gtk_doc)
144 + $(meson_native_use_bool introspection)
145 + $(meson_use sysprof profiler)
146 + $(meson_use wayland wayland_backend)
147 + $(meson_use X x11_backend)
148 + -Dcolord=$(usex colord yes no)
149 + -Dprint_backends=$(usex cups cups,file,lpr file,lpr)
150 + -Dxinerama=$(usex xinerama yes no)
151 + # Include backend immodules into gtk itself, to avoid problems like
152 + # https://gitlab.gnome.org/GNOME/gnome-shell/issues/109 from a
153 + # user overridden GTK_IM_MODULE envvar
154 + -Dbuiltin_immodules=backend
155 + -Dman=true
156 + $(meson_use test tests)
157 + -Dtracker3=false
158 + )
159 + meson_src_configure
160 +}
161 +
162 +multilib_src_compile() {
163 + meson_src_compile
164 +}
165 +
166 +multilib_src_test() {
167 + virtx meson_src_test
168 +}
169 +
170 +multilib_src_install() {
171 + meson_src_install
172 +}
173 +
174 +multilib_src_install_all() {
175 + insinto /etc/gtk-3.0
176 + doins "${FILESDIR}"/settings.ini
177 + # Skip README.win32.md that would get installed by default
178 + DOCS=( NEWS README.md )
179 + einstalldocs
180 +}
181 +
182 +pkg_preinst() {
183 + gnome2_pkg_preinst
184 +
185 + multilib_pkg_preinst() {
186 + # Make immodules.cache belongs to gtk+ alone
187 + local cache="/usr/$(get_libdir)/gtk-3.0/3.0.0/immodules.cache"
188 +
189 + if [[ -e ${EROOT}${cache} ]]; then
190 + cp "${EROOT}${cache}" "${ED}${cache}" || die
191 + else
192 + touch "${ED}${cache}" || die
193 + fi
194 + }
195 + multilib_parallel_foreach_abi multilib_pkg_preinst
196 +}
197 +
198 +pkg_postinst() {
199 + gnome2_pkg_postinst
200 +
201 + multilib_pkg_postinst() {
202 + gnome2_query_immodules_gtk3 \
203 + || die "Update immodules cache failed (for ${ABI})"
204 + }
205 + multilib_parallel_foreach_abi multilib_pkg_postinst
206 +
207 + if ! has_version "app-text/evince"; then
208 + elog "Please install app-text/evince for print preview functionality."
209 + elog "Alternatively, check \"gtk-print-preview-command\" documentation and"
210 + elog "add it to your settings.ini file."
211 + fi
212 +}
213 +
214 +pkg_postrm() {
215 + gnome2_pkg_postrm
216 +
217 + if [[ -z ${REPLACED_BY_VERSION} ]]; then
218 + multilib_pkg_postrm() {
219 + rm -f "${EROOT}/usr/$(get_libdir)/gtk-3.0/3.0.0/immodules.cache"
220 + }
221 + multilib_foreach_abi multilib_pkg_postrm
222 + fi
223 +}