Gentoo Archives: gentoo-commits

From: Matt Turner <mattst88@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: gnome-base/gnome-shell/
Date: Fri, 30 Sep 2022 16:41:52
Message-Id: 1664556099.ca38c9d508d2a02f2c815600f664d0e17daf4fe5.mattst88@gentoo
1 commit: ca38c9d508d2a02f2c815600f664d0e17daf4fe5
2 Author: brahmajit das <listout <AT> protonmail <DOT> com>
3 AuthorDate: Thu Sep 29 17:48:14 2022 +0000
4 Commit: Matt Turner <mattst88 <AT> gentoo <DOT> org>
5 CommitDate: Fri Sep 30 16:41:39 2022 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=ca38c9d5
7
8 gnome-base/gnome-shell: Version bump to 42.5
9
10 Closes: https://bugs.gentoo.org/816135
11 Signed-off-by: brahmajit das <listout <AT> protonmail.com>
12 Signed-off-by: Matt Turner <mattst88 <AT> gentoo.org>
13
14 gnome-base/gnome-shell/Manifest | 1 +
15 gnome-base/gnome-shell/gnome-shell-42.5.ebuild | 208 +++++++++++++++++++++++++
16 2 files changed, 209 insertions(+)
17
18 diff --git a/gnome-base/gnome-shell/Manifest b/gnome-base/gnome-shell/Manifest
19 index 6ac1a42bead8..be3ce1ad9c77 100644
20 --- a/gnome-base/gnome-shell/Manifest
21 +++ b/gnome-base/gnome-shell/Manifest
22 @@ -1,2 +1,3 @@
23 DIST gnome-shell-42.3.1.tar.xz 1927696 BLAKE2B f0f0e19dea02ccd1bb271af189d9a9e2bb3ebf47da2d68f4852de7a9dddb1c0db96f5371e0c6c421556ab8e242294115e041a433d68c79e6ef6607b1e7e85ff1 SHA512 f548a2aa1e0b56396efdcd7839091bdb8f44a605eddbf4411a5066f99adc38bf10b1a5eb984262bb44e04e96dce715d1481e807200d9ea9fdc91d111defb2fae
24 DIST gnome-shell-42.4.tar.xz 1928776 BLAKE2B cd986668683a8c57b69ca6b84351d6988d5dde5b96c780ea79109db3f3cd0d032883019dd07bf6e4ea678a549fe95ea99b29e9f9b6efc8d4231fcd4cd2fa3159 SHA512 f06f390cdb55b5b5871bbd35dfc3b0057fbc79d4dcb2334b34bfa198ec46a1880de99097e42ed9052b3183266dd017457f6a9a07fc3c517277551295478cb340
25 +DIST gnome-shell-42.5.tar.xz 1930668 BLAKE2B 0442ef92588e9891082c024d1e3b4ddb105a01ef5b7913ac8f1d2cac1af1c2ae8efd18184c511c554e41d8c0540c8712b7ef39ba1a9cac8c6c9336bb7b4cb320 SHA512 575559b99161b7045b04fc100cde719bbca83d90f78b673acc2189f3bb5104fd14f40da7d19611b154976f1c006e0dc2ff8cc124dc816da765c933fdda0624d9
26
27 diff --git a/gnome-base/gnome-shell/gnome-shell-42.5.ebuild b/gnome-base/gnome-shell/gnome-shell-42.5.ebuild
28 new file mode 100644
29 index 000000000000..5201ecde6cd8
30 --- /dev/null
31 +++ b/gnome-base/gnome-shell/gnome-shell-42.5.ebuild
32 @@ -0,0 +1,208 @@
33 +# Copyright 1999-2022 Gentoo Authors
34 +# Distributed under the terms of the GNU General Public License v2
35 +
36 +EAPI=8
37 +PYTHON_COMPAT=( python3_{8..11} )
38 +
39 +inherit gnome.org gnome2-utils meson python-single-r1 virtualx xdg
40 +
41 +DESCRIPTION="Provides core UI functions for the GNOME desktop"
42 +HOMEPAGE="https://wiki.gnome.org/Projects/GnomeShell https://gitlab.gnome.org/GNOME/gnome-shell"
43 +
44 +LICENSE="GPL-2+ LGPL-2+"
45 +SLOT="0"
46 +IUSE="+bluetooth +browser-extension elogind gtk-doc +ibus +networkmanager systemd telepathy test"
47 +REQUIRED_USE="${PYTHON_REQUIRED_USE}
48 + ?? ( elogind systemd )"
49 +RESTRICT="!test? ( test )"
50 +
51 +KEYWORDS="~amd64 ~arm ~arm64 ~ppc64 ~riscv ~x86"
52 +
53 +# libXfixes-5.0 needed for pointer barriers and #include <X11/extensions/Xfixes.h>
54 +# FIXME:
55 +# * gstreamer/pipewire support is currently automagic
56 +DEPEND="
57 + >=gnome-extra/evolution-data-server-3.33.1:=
58 + >=app-crypt/gcr-3.7.5:=[introspection]
59 + >=dev-libs/glib-2.68:2
60 + >=dev-libs/gobject-introspection-1.49.1:=
61 + >=dev-libs/gjs-1.71.1[cairo]
62 + >=x11-libs/gtk+-3.15.0:3[introspection]
63 + >=x11-wm/mutter-42.0:0/10[introspection,test?]
64 + >=sys-auth/polkit-0.120_p20220509[introspection]
65 + >=gnome-base/gsettings-desktop-schemas-42_beta[introspection]
66 + >=x11-libs/startup-notification-0.11
67 + >=app-i18n/ibus-1.5.19
68 + >=gnome-base/gnome-desktop-3.35.90:3=[introspection]
69 + bluetooth? ( net-wireless/gnome-bluetooth:3=[introspection] )
70 + >=media-libs/gstreamer-0.11.92:1.0
71 + media-libs/gst-plugins-base:1.0
72 + >=media-video/pipewire-0.3.0:=
73 + networkmanager? (
74 + >=net-misc/networkmanager-1.10.4[introspection]
75 + net-libs/libnma[introspection]
76 + >=app-crypt/libsecret-0.18
77 + dev-libs/dbus-glib
78 + )
79 + systemd? (
80 + >=sys-apps/systemd-242:=
81 + >=gnome-base/gnome-desktop-3.34.2:3=[systemd]
82 + )
83 + elogind? ( >=sys-auth/elogind-237 )
84 +
85 + app-arch/gnome-autoar
86 + dev-libs/json-glib
87 +
88 + >=app-accessibility/at-spi2-atk-2.5.3:2
89 + x11-libs/gdk-pixbuf:2[introspection]
90 + dev-libs/libxml2:2
91 + x11-libs/libX11
92 +
93 + >=media-libs/libpulse-2[glib]
94 + >=dev-libs/atk-2[introspection]
95 + dev-libs/libical:=
96 + >=x11-libs/libXfixes-5.0
97 +
98 + gui-libs/gtk:4[introspection]
99 +
100 + ${PYTHON_DEPS}
101 + $(python_gen_cond_dep '
102 + dev-python/pygobject:3[${PYTHON_USEDEP}]
103 + ')
104 + media-libs/mesa[X(+)]
105 +"
106 +# Runtime-only deps are probably incomplete and approximate.
107 +# Introspection deps generated from inspection of the output of:
108 +# for i in `rg -INUo 'const(?s).*imports.gi' |cut -d= -f1 |cut -c7- |sort -u`; do echo $i ;done |cut -d, -f1 |sort -u
109 +# or
110 +# rg -INUo 'const(?s).*imports.gi' |cut -d= -f1 |cut -c7- | sed -e 's:[{}]::g' | awk '{$1=$1; print}' | awk -F',' '{$1=$1;print}' | tr ' ' '\n' | sort -u | sed -e 's/://g'
111 +# These will give a lot of unnecessary things due to greedy matching (TODO), and `(?s).*?` doesn't seem to work as desired.
112 +# Compare with `grep -rhI 'imports.gi.versions' |sort -u` for any SLOT requirements
113 +# Each block:
114 +# 1. Introspection stuff needed via imports.gi (those that build time check may be listed above already)
115 +# 2. gnome-session needed for shutdown/reboot/inhibitors/etc
116 +# 3. Control shell settings
117 +# 4. xdg-utils needed for xdg-open, used by extension tool
118 +# 5. adwaita-icon-theme needed for various icons & arrows (3.26 for new video-joined-displays-symbolic and co icons; review for 3.28+)
119 +# 6. mobile-broadband-provider-info, timezone-data for shell-mobile-providers.c # TODO: Review
120 +# 7. IBus is needed for nls integration
121 +# 8. Optional telepathy chat integration
122 +# 9. Cantarell font used in gnome-shell global CSS (if removing this for some reason, make sure it's pulled in somehow for non-meta users still too)
123 +# 10. xdg-desktop-portal-gtk for various integration, e.g. #764632
124 +# 11. TODO: semi-optional webkit-gtk[introspection] for captive portal helper
125 +RDEPEND="${DEPEND}
126 + >=sys-apps/accountsservice-0.6.14[introspection]
127 + app-accessibility/at-spi2-core:2[introspection]
128 + app-misc/geoclue[introspection]
129 + media-libs/graphene[introspection]
130 + >=dev-libs/libgweather-4.0.0:4[introspection]
131 + x11-libs/pango[introspection]
132 + net-libs/libsoup:2.4[introspection]
133 + >=sys-power/upower-0.99:=[introspection]
134 + gnome-base/librsvg:2[introspection]
135 +
136 + >=gnome-base/gnome-session-2.91.91
137 + >=gnome-base/gnome-settings-daemon-3.8.3
138 +
139 + x11-misc/xdg-utils
140 +
141 + >=x11-themes/adwaita-icon-theme-3.26
142 +
143 + networkmanager? (
144 + net-misc/mobile-broadband-provider-info
145 + sys-libs/timezone-data
146 + )
147 + ibus? ( >=app-i18n/ibus-1.5.26[gtk3,gtk4,introspection] )
148 + telepathy? (
149 + >=net-im/telepathy-logger-0.2.4[introspection]
150 + >=net-libs/telepathy-glib-0.19[introspection]
151 + )
152 + media-fonts/cantarell
153 +
154 + sys-apps/xdg-desktop-portal-gnome
155 +"
156 +# avoid circular dependency, see bug #546134
157 +PDEPEND="
158 + >=gnome-base/gdm-3.5[introspection(+)]
159 + >=gnome-base/gnome-control-center-3.26[bluetooth(+)?,networkmanager(+)?]
160 + browser-extension? ( gnome-extra/gnome-browser-connector )
161 +"
162 +BDEPEND="
163 + dev-libs/libxslt
164 + >=dev-util/gdbus-codegen-2.45.3
165 + dev-util/glib-utils
166 + gtk-doc? ( >=dev-util/gtk-doc-1.17
167 + app-text/docbook-xml-dtd:4.5 )
168 + >=sys-devel/gettext-0.19.8
169 + virtual/pkgconfig
170 +"
171 +# These are not needed from tarballs, unless stylesheets or manpage get patched with patchset:
172 +# dev-lang/sassc
173 +# app-text/asciidoc
174 +
175 +PATCHES=(
176 + # Fix automagic gnome-bluetooth dep, bug #398145
177 + "${FILESDIR}"/42.0-optional-bluetooth.patch
178 + # Change favorites defaults, bug #479918
179 + "${FILESDIR}"/40.0-defaults.patch
180 +)
181 +
182 +src_prepare() {
183 + default
184 + xdg_environment_reset
185 + # Hack in correct python shebang
186 + sed -e "s:python\.full_path():'/usr/bin/env ${EPYTHON}':" -i src/meson.build || die
187 +}
188 +
189 +src_configure() {
190 + local emesonargs=(
191 + $(meson_use bluetooth)
192 + -Dextensions_tool=true
193 + -Dextensions_app=true
194 + $(meson_use gtk-doc gtk_doc)
195 + -Dman=true
196 + $(meson_use test tests)
197 + $(meson_use networkmanager)
198 + $(meson_use systemd) # this controls journald integration and desktop file user services related property only as of 3.34.4
199 + # (structured logging and having gnome-shell launched apps use its own identifier instead of gnome-session)
200 + # suspend support is runtime optional via /run/systemd/seats presence and org.freedesktop.login1.Manager dbus interface; elogind should provide what's necessary
201 + -Dsoup2=true # libslot SLOT needs to match with what libgweather is using
202 + )
203 + meson_src_configure
204 +}
205 +
206 +src_test() {
207 + gnome2_environment_reset # Avoid dconf that looks at XDG_DATA_DIRS, which can sandbox fail if flatpak is installed
208 + virtx meson_src_test
209 +}
210 +
211 +pkg_postinst() {
212 + xdg_pkg_postinst
213 + gnome2_schemas_update
214 +
215 + if ! has_version 'media-libs/gst-plugins-good:1.0' || \
216 + ! has_version 'media-plugins/gst-plugins-vpx:1.0'; then
217 + ewarn "To make use of GNOME Shell's built-in screen recording utility,"
218 + ewarn "you need to either install media-libs/gst-plugins-good:1.0"
219 + ewarn "and media-plugins/gst-plugins-vpx:1.0, or use dconf-editor to change"
220 + ewarn "apps.gnome-shell.recorder/pipeline to what you want to use."
221 + fi
222 +
223 + if ! has_version "media-libs/mesa[llvm]"; then
224 + elog "llvmpipe is used as fallback when no 3D acceleration"
225 + elog "is available. You will need to enable llvm USE for"
226 + elog "media-libs/mesa if you do not have hardware 3D setup."
227 + fi
228 +
229 + # https://bugs.gentoo.org/show_bug.cgi?id=563084
230 + # TODO: Is this still the case after various fixed in 3.28 for detecting non-working KMS for wayland (to fall back to X)?
231 + if has_version "x11-drivers/nvidia-drivers[-kms]"; then
232 + ewarn "You will need to enable kms support in x11-drivers/nvidia-drivers,"
233 + ewarn "otherwise Gnome will fail to start"
234 + fi
235 +}
236 +
237 +pkg_postrm() {
238 + xdg_pkg_postrm
239 + gnome2_schemas_update
240 +}