From 35e3514030b905e16a44074ea4aee6a8e7fef30c Mon Sep 17 00:00:00 2001 From: Matt Turner Date: Sun, 9 May 2021 17:52:12 -0700 Subject: gnome-extra/gnome-shell-extensions: Add patch to fix compatibility Signed-off-by: Matt Turner --- ...owsNavigator-Adjust-to-gnome-shell-change.patch | 43 +++++++++++++ .../gnome-shell-extensions-40.0-r1.ebuild | 71 ++++++++++++++++++++++ .../gnome-shell-extensions-40.0.ebuild | 67 -------------------- 3 files changed, 114 insertions(+), 67 deletions(-) create mode 100644 gnome-extra/gnome-shell-extensions/files/40.0-windowsNavigator-Adjust-to-gnome-shell-change.patch create mode 100644 gnome-extra/gnome-shell-extensions/gnome-shell-extensions-40.0-r1.ebuild delete mode 100644 gnome-extra/gnome-shell-extensions/gnome-shell-extensions-40.0.ebuild (limited to 'gnome-extra') diff --git a/gnome-extra/gnome-shell-extensions/files/40.0-windowsNavigator-Adjust-to-gnome-shell-change.patch b/gnome-extra/gnome-shell-extensions/files/40.0-windowsNavigator-Adjust-to-gnome-shell-change.patch new file mode 100644 index 000000000000..9e335b781aad --- /dev/null +++ b/gnome-extra/gnome-shell-extensions/files/40.0-windowsNavigator-Adjust-to-gnome-shell-change.patch @@ -0,0 +1,43 @@ +From e094dead91389c4a5f602e5bef2747ad5e73e8bd Mon Sep 17 00:00:00 2001 +From: =?UTF-8?q?Florian=20M=C3=BCllner?= +Date: Thu, 8 Apr 2021 16:38:40 +0200 +Subject: [PATCH] windowsNavigator: Adjust to gnome-shell change + +Parts of WindowPreview were moved to C for performance reasons, which +turned a formerly private JS property into a GObject property. + +https://gitlab.gnome.org/GNOME/gnome-shell-extensions/-/issues/302 + +Part-of: +--- + extensions/windowsNavigator/extension.js | 6 +++--- + 1 file changed, 3 insertions(+), 3 deletions(-) + +diff --git a/extensions/windowsNavigator/extension.js b/extensions/windowsNavigator/extension.js +index 0ea9645..bb72d7b 100644 +--- a/extensions/windowsNavigator/extension.js ++++ b/extensions/windowsNavigator/extension.js +@@ -84,17 +84,17 @@ class MyWorkspace extends Workspace.Workspace { + }); + + this._text.add_constraint(new Clutter.BindConstraint({ +- source: this._windowContainer, ++ source: this.windowContainer, + coordinate: Clutter.BindCoordinate.POSITION, + })); + this._text.add_constraint(new Clutter.AlignConstraint({ +- source: this._windowContainer, ++ source: this.windowContainer, + align_axis: Clutter.AlignAxis.X_AXIS, + pivot_point: new Graphene.Point({ x: 0.5, y: -1 }), + factor: this._closeButtonSide === St.Side.LEFT ? 1 : 0, + })); + this._text.add_constraint(new Clutter.AlignConstraint({ +- source: this._windowContainer, ++ source: this.windowContainer, + align_axis: Clutter.AlignAxis.Y_AXIS, + pivot_point: new Graphene.Point({ x: -1, y: 0.5 }), + factor: 0, +-- +2.26.3 + diff --git a/gnome-extra/gnome-shell-extensions/gnome-shell-extensions-40.0-r1.ebuild b/gnome-extra/gnome-shell-extensions/gnome-shell-extensions-40.0-r1.ebuild new file mode 100644 index 000000000000..1d9b5892655f --- /dev/null +++ b/gnome-extra/gnome-shell-extensions/gnome-shell-extensions-40.0-r1.ebuild @@ -0,0 +1,71 @@ +# Copyright 1999-2021 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=7 +inherit gnome.org readme.gentoo-r1 meson xdg + +DESCRIPTION="JavaScript extensions for GNOME Shell" +HOMEPAGE="https://wiki.gnome.org/Projects/GnomeShell/Extensions" + +LICENSE="GPL-2+" +SLOT="0" +KEYWORDS="~amd64 ~x86" + +DEPEND=" + >=dev-libs/glib-2.26:2 + >=gnome-base/libgtop-2.28.3[introspection] + >=app-eselect/eselect-gnome-shell-extensions-20111211 +" +RDEPEND="${DEPEND} + >=dev-libs/gjs-1.29 + dev-libs/gobject-introspection:= + dev-libs/atk[introspection] + gnome-base/gnome-menus:3[introspection] + =gnome-base/gnome-shell-$(ver_cut 1-2)* + media-libs/clutter:1.0[introspection] + net-libs/telepathy-glib[introspection] + x11-libs/gdk-pixbuf:2[introspection] + x11-libs/gtk+:3[introspection] + x11-libs/pango[introspection] + x11-themes/adwaita-icon-theme + >=x11-wm/mutter-3.32[introspection] +" +BDEPEND=" + >=sys-devel/gettext-0.19.8 + virtual/pkgconfig +" + +PATCHES=( + "${FILESDIR}"/${PV}-windowsNavigator-Adjust-to-gnome-shell-change.patch +) + +DISABLE_AUTOFORMATTING="yes" +DOC_CONTENTS="Installed extensions installed are initially disabled by default. +To change the system default and enable some extensions, you can use +# eselect gnome-shell-extensions + +Alternatively, to enable/disable extensions on a per-user basis, +you can use the https://extensions.gnome.org/ web interface, the +gnome-extra/gnome-tweaks GUI, or modify the org.gnome.shell +enabled-extensions gsettings key from the command line or a script." + +src_configure() { + meson_src_configure \ + -Dextension_set=all \ + -Dclassic_mode=true +} + +src_install() { + meson_src_install + readme.gentoo_create_doc +} + +pkg_postinst() { + xdg_pkg_postinst + + ebegin "Updating list of installed extensions" + eselect gnome-shell-extensions update + eend $? + + readme.gentoo_print_elog +} diff --git a/gnome-extra/gnome-shell-extensions/gnome-shell-extensions-40.0.ebuild b/gnome-extra/gnome-shell-extensions/gnome-shell-extensions-40.0.ebuild deleted file mode 100644 index 3c33ad2de500..000000000000 --- a/gnome-extra/gnome-shell-extensions/gnome-shell-extensions-40.0.ebuild +++ /dev/null @@ -1,67 +0,0 @@ -# Copyright 1999-2021 Gentoo Authors -# Distributed under the terms of the GNU General Public License v2 - -EAPI=7 -inherit gnome.org readme.gentoo-r1 meson xdg - -DESCRIPTION="JavaScript extensions for GNOME Shell" -HOMEPAGE="https://wiki.gnome.org/Projects/GnomeShell/Extensions" - -LICENSE="GPL-2+" -SLOT="0" -KEYWORDS="~amd64 ~x86" - -DEPEND=" - >=dev-libs/glib-2.26:2 - >=gnome-base/libgtop-2.28.3[introspection] - >=app-eselect/eselect-gnome-shell-extensions-20111211 -" -RDEPEND="${DEPEND} - >=dev-libs/gjs-1.29 - dev-libs/gobject-introspection:= - dev-libs/atk[introspection] - gnome-base/gnome-menus:3[introspection] - =gnome-base/gnome-shell-$(ver_cut 1-2)* - media-libs/clutter:1.0[introspection] - net-libs/telepathy-glib[introspection] - x11-libs/gdk-pixbuf:2[introspection] - x11-libs/gtk+:3[introspection] - x11-libs/pango[introspection] - x11-themes/adwaita-icon-theme - >=x11-wm/mutter-3.32[introspection] -" -BDEPEND=" - >=sys-devel/gettext-0.19.8 - virtual/pkgconfig -" - -DISABLE_AUTOFORMATTING="yes" -DOC_CONTENTS="Installed extensions installed are initially disabled by default. -To change the system default and enable some extensions, you can use -# eselect gnome-shell-extensions - -Alternatively, to enable/disable extensions on a per-user basis, -you can use the https://extensions.gnome.org/ web interface, the -gnome-extra/gnome-tweaks GUI, or modify the org.gnome.shell -enabled-extensions gsettings key from the command line or a script." - -src_configure() { - meson_src_configure \ - -Dextension_set=all \ - -Dclassic_mode=true -} - -src_install() { - meson_src_install - readme.gentoo_create_doc -} - -pkg_postinst() { - xdg_pkg_postinst - - ebegin "Updating list of installed extensions" - eselect gnome-shell-extensions update - eend $? - - readme.gentoo_print_elog -} -- cgit v1.2.3-65-gdbad