1 |
commit: a9126f9468d094a472cb8aeedd0dd311aacff057 |
2 |
Author: Mart Raudsepp <leio <AT> gentoo <DOT> org> |
3 |
AuthorDate: Wed Sep 26 22:09:33 2018 +0000 |
4 |
Commit: Mart Raudsepp <leio <AT> gentoo <DOT> org> |
5 |
CommitDate: Wed Sep 26 22:09:33 2018 +0000 |
6 |
URL: https://gitweb.gentoo.org/proj/gnome.git/commit/?id=a9126f94 |
7 |
|
8 |
gnome-base/gnome-shell: add patchset with upstream gnome-3-26 branch fixes |
9 |
|
10 |
.. and translation updates |
11 |
|
12 |
.../gnome-shell/gnome-shell-3.26.2-r4.ebuild | 186 +++++++++++++++++++++ |
13 |
1 file changed, 186 insertions(+) |
14 |
|
15 |
diff --git a/gnome-base/gnome-shell/gnome-shell-3.26.2-r4.ebuild b/gnome-base/gnome-shell/gnome-shell-3.26.2-r4.ebuild |
16 |
new file mode 100644 |
17 |
index 00000000..91f301b9 |
18 |
--- /dev/null |
19 |
+++ b/gnome-base/gnome-shell/gnome-shell-3.26.2-r4.ebuild |
20 |
@@ -0,0 +1,186 @@ |
21 |
+# Copyright 1999-2018 Gentoo Foundation |
22 |
+# Distributed under the terms of the GNU General Public License v2 |
23 |
+ |
24 |
+EAPI=6 |
25 |
+PYTHON_COMPAT=( python3_{4,5,6} ) |
26 |
+ |
27 |
+inherit gnome.org gnome2-utils meson pax-utils python-single-r1 virtualx xdg |
28 |
+ |
29 |
+DESCRIPTION="Provides core UI functions for the GNOME 3 desktop" |
30 |
+HOMEPAGE="https://wiki.gnome.org/Projects/GnomeShell" |
31 |
+SRC_URI+=" https://dev.gentoo.org/~leio/distfiles/${P}-patchset.tar.xz" |
32 |
+ |
33 |
+LICENSE="GPL-2+ LGPL-2+" |
34 |
+SLOT="0" |
35 |
+IUSE="+bluetooth +browser-extension elogind +ibus +networkmanager nsplugin systemd telepathy" |
36 |
+REQUIRED_USE="${PYTHON_REQUIRED_USE} |
37 |
+ ?? ( elogind systemd )" |
38 |
+ |
39 |
+KEYWORDS="~amd64 ~ia64 ~ppc ~ppc64 ~x86" |
40 |
+ |
41 |
+# libXfixes-5.0 needed for pointer barriers and #include <X11/extensions/Xfixes.h> |
42 |
+# FIXME: |
43 |
+# * gstreamer support is currently automagic |
44 |
+COMMON_DEPEND=" |
45 |
+ >=dev-libs/libcroco-0.6.8:0.6 |
46 |
+ >=gnome-extra/evolution-data-server-3.17.2:= |
47 |
+ >=app-crypt/gcr-3.7.5[introspection] |
48 |
+ >=gnome-base/gnome-desktop-3.7.90:3=[introspection] |
49 |
+ >=dev-libs/glib-2.53.0:2 |
50 |
+ >=dev-libs/gobject-introspection-1.49.1:= |
51 |
+ >=dev-libs/gjs-1.47.0 |
52 |
+ >=x11-libs/gtk+-3.15.0:3[introspection] |
53 |
+ nsplugin? ( >=dev-libs/json-glib-0.13.2 ) |
54 |
+ >=x11-wm/mutter-3.24.0:0/1[introspection] |
55 |
+ >=sys-auth/polkit-0.100[introspection] |
56 |
+ >=gnome-base/gsettings-desktop-schemas-3.21.3 |
57 |
+ >=x11-libs/startup-notification-0.11 |
58 |
+ bluetooth? ( >=net-wireless/gnome-bluetooth-3.9[introspection] ) |
59 |
+ >=media-libs/gstreamer-0.11.92:1.0 |
60 |
+ networkmanager? ( |
61 |
+ >=gnome-extra/nm-applet-0.9.8[introspection] |
62 |
+ >=net-misc/networkmanager-0.9.8:=[introspection] |
63 |
+ >=app-crypt/libsecret-0.18 |
64 |
+ dev-libs/dbus-glib ) |
65 |
+ systemd? ( >=sys-apps/systemd-31 ) |
66 |
+ elogind? ( >=sys-auth/elogind-237 ) |
67 |
+ |
68 |
+ >=app-accessibility/at-spi2-atk-2.5.3 |
69 |
+ media-libs/libcanberra[gtk3] |
70 |
+ x11-libs/gdk-pixbuf:2[introspection] |
71 |
+ dev-libs/libxml2:2 |
72 |
+ >=net-libs/libsoup-2.40:2.4[introspection] |
73 |
+ x11-libs/libX11 |
74 |
+ |
75 |
+ >=media-sound/pulseaudio-2[glib] |
76 |
+ >=dev-libs/atk-2[introspection] |
77 |
+ dev-libs/libical:= |
78 |
+ >=x11-libs/libXfixes-5.0 |
79 |
+ |
80 |
+ ${PYTHON_DEPS} |
81 |
+ dev-python/pygobject:3[${PYTHON_USEDEP}] |
82 |
+ media-libs/mesa |
83 |
+" |
84 |
+# Runtime-only deps are probably incomplete and approximate. |
85 |
+# Introspection deps generated using: |
86 |
+# grep -roe "imports.gi.*" gnome-shell-* | cut -f2 -d: | sort | uniq |
87 |
+# Each block: |
88 |
+# 1. Introspection stuff needed via imports.gi.* |
89 |
+# 2. gnome-session needed for shutdown/reboot/inhibitors/etc |
90 |
+# 3. Control shell settings |
91 |
+# 4. logind interface needed for suspending support |
92 |
+# 5. xdg-utils needed for xdg-open, used by extension tool |
93 |
+# 6. adwaita-icon-theme needed for various icons & arrows (3.26 for new video-joined-displays-symbolic and co icons; review for 3.28+) |
94 |
+# 7. mobile-broadband-provider-info, timezone-data for shell-mobile-providers.c # TODO: Review |
95 |
+# 8. IBus is needed for nls integration |
96 |
+# 9. Optional telepathy chat integration |
97 |
+# 10. TODO: semi-optional webkit-gtk[introspection] for captive portal helper |
98 |
+RDEPEND="${COMMON_DEPEND} |
99 |
+ >=sys-apps/accountsservice-0.6.14[introspection] |
100 |
+ app-accessibility/at-spi2-core:2[introspection] |
101 |
+ >=app-accessibility/caribou-0.4.8 |
102 |
+ app-misc/geoclue[introspection] |
103 |
+ >=dev-libs/libgweather-3.26:2[introspection] |
104 |
+ >=sys-power/upower-0.99:=[introspection] |
105 |
+ x11-libs/pango[introspection] |
106 |
+ gnome-base/librsvg:2[introspection] |
107 |
+ |
108 |
+ >=gnome-base/gnome-session-2.91.91 |
109 |
+ >=gnome-base/gnome-settings-daemon-3.8.3 |
110 |
+ |
111 |
+ x11-misc/xdg-utils |
112 |
+ |
113 |
+ >=x11-themes/adwaita-icon-theme-3.26 |
114 |
+ |
115 |
+ networkmanager? ( |
116 |
+ net-misc/mobile-broadband-provider-info |
117 |
+ sys-libs/timezone-data ) |
118 |
+ ibus? ( >=app-i18n/ibus-1.4.99[dconf(+),gtk,introspection] ) |
119 |
+ telepathy? ( |
120 |
+ >=net-im/telepathy-logger-0.2.4[introspection] |
121 |
+ >=net-libs/telepathy-glib-0.19[introspection] ) |
122 |
+" |
123 |
+# avoid circular dependency, see bug #546134 |
124 |
+PDEPEND=" |
125 |
+ >=gnome-base/gdm-3.5[introspection] |
126 |
+ >=gnome-base/gnome-control-center-3.26[bluetooth(+)?,networkmanager(+)?] |
127 |
+ browser-extension? ( gnome-extra/chrome-gnome-shell ) |
128 |
+" |
129 |
+DEPEND="${COMMON_DEPEND} |
130 |
+ dev-libs/libxslt |
131 |
+ >=dev-util/gdbus-codegen-2.45.3 |
132 |
+ dev-util/glib-utils |
133 |
+ >=sys-devel/gettext-0.19.6 |
134 |
+ virtual/pkgconfig |
135 |
+" #gtk-doc? ( >=dev-util/gtk-doc-1.17 ) |
136 |
+ |
137 |
+PATCHES=( |
138 |
+ # Patches from gnome-3-26 branch on top of 3.26.2 |
139 |
+ "${WORKDIR}"/patches/ |
140 |
+ # Change favorites defaults, bug #479918 |
141 |
+ "${FILESDIR}"/${PN}-3.22.0-defaults.patch |
142 |
+ # Fix automagic gnome-bluetooth dep, bug #398145 |
143 |
+ "${FILESDIR}"/3.26-optional-bluetooth.patch |
144 |
+) |
145 |
+ |
146 |
+src_prepare() { |
147 |
+ xdg_src_prepare |
148 |
+ # We want nsplugins in /usr/$(get_libdir)/nsbrowser/plugins not .../mozilla/plugins |
149 |
+ sed -e 's/mozilla/nsbrowser/' -i meson.build || die |
150 |
+ # Hack in correct python shebang |
151 |
+ sed -e "s:python\.path():'/usr/bin/env ${EPYTHON}':" -i src/meson.build || die |
152 |
+} |
153 |
+ |
154 |
+src_configure() { |
155 |
+ local emesonargs=( |
156 |
+ $(meson_use nsplugin enable-browser-plugin) |
157 |
+ #$(meson_use gtk-doc enable-documentation) # fails in gtkdoc-scangobj call with gtk-doc-1.25 (perl regex parenthesis issue); probably needs newer python-based gtk-doc to work |
158 |
+ -Denable-man=true |
159 |
+ -Denable-bluetooth=$(usex bluetooth yes no) |
160 |
+ -Denable-networkmanager=$(usex networkmanager yes no) |
161 |
+ -Denable-systemd=$(usex systemd yes no) # this controls journald integration only as of 3.26.2 (structured logging and having gnome-shell launched apps use its own identifier instead of gnome-session) |
162 |
+ # suspend support is runtime optional via /run/systemd/seats presence and org.freedesktop.login1.Manager dbus interface; elogind should provide what's necessary |
163 |
+ ) |
164 |
+ meson_src_configure |
165 |
+} |
166 |
+ |
167 |
+src_install() { |
168 |
+ meson_src_install |
169 |
+ |
170 |
+ # Required for gnome-shell on hardened/PaX, bug #398941; FIXME: Is this still relevant? |
171 |
+ pax-mark m "${ED}usr/bin/gnome-shell"{,-extension-prefs} |
172 |
+} |
173 |
+ |
174 |
+src_test() { |
175 |
+ virtx meson_src_test |
176 |
+} |
177 |
+ |
178 |
+pkg_postinst() { |
179 |
+ xdg_pkg_postinst |
180 |
+ gnome2_schemas_update |
181 |
+ |
182 |
+ if ! has_version 'media-libs/gst-plugins-good:1.0' || \ |
183 |
+ ! has_version 'media-plugins/gst-plugins-vpx:1.0'; then |
184 |
+ ewarn "To make use of GNOME Shell's built-in screen recording utility," |
185 |
+ ewarn "you need to either install media-libs/gst-plugins-good:1.0" |
186 |
+ ewarn "and media-plugins/gst-plugins-vpx:1.0, or use dconf-editor to change" |
187 |
+ ewarn "apps.gnome-shell.recorder/pipeline to what you want to use." |
188 |
+ fi |
189 |
+ |
190 |
+ if ! has_version "media-libs/mesa[llvm]"; then |
191 |
+ elog "llvmpipe is used as fallback when no 3D acceleration" |
192 |
+ elog "is available. You will need to enable llvm USE for" |
193 |
+ elog "media-libs/mesa if you do not have hardware 3D setup." |
194 |
+ fi |
195 |
+ |
196 |
+ # https://bugs.gentoo.org/show_bug.cgi?id=563084 |
197 |
+ if has_version "x11-drivers/nvidia-drivers[-kms]"; then |
198 |
+ ewarn "You will need to enable kms support in x11-drivers/nvidia-drivers," |
199 |
+ ewarn "otherwise Gnome will fail to start" |
200 |
+ fi |
201 |
+} |
202 |
+ |
203 |
+pkg_postrm() { |
204 |
+ xdg_pkg_postrm |
205 |
+ gnome2_schemas_update |
206 |
+} |