Gentoo Archives: gentoo-commits

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