diff options
author | V3n3RiX <venerix@redcorelinux.org> | 2020-04-12 03:41:30 +0100 |
---|---|---|
committer | V3n3RiX <venerix@redcorelinux.org> | 2020-04-12 03:41:30 +0100 |
commit | 623ee73d661e5ed8475cb264511f683407d87365 (patch) | |
tree | 993eb27c93ec7a2d2d19550300d888fc1fed9e69 /gnome-extra/gnome-shell-extensions-topicons-plus | |
parent | ceeeb463cc1eef97fd62eaee8bf2196ba04bc384 (diff) |
gentoo Easter resync : 12.04.2020
Diffstat (limited to 'gnome-extra/gnome-shell-extensions-topicons-plus')
3 files changed, 94 insertions, 0 deletions
diff --git a/gnome-extra/gnome-shell-extensions-topicons-plus/Manifest b/gnome-extra/gnome-shell-extensions-topicons-plus/Manifest index db87b85a30d3..bd4b68cb6f2c 100644 --- a/gnome-extra/gnome-shell-extensions-topicons-plus/Manifest +++ b/gnome-extra/gnome-shell-extensions-topicons-plus/Manifest @@ -1,4 +1,7 @@ AUX gnome-shell-extensions-topicons-plus-22-exit-stacktrace.patch 2645 BLAKE2B 3a24202c8bcb07b3ae6c6b6dccbd734d729da2f81d26bf08d5d4b5b20f7c77be0b4e958bc2e4be5b374e4f22479af85d16560c039b54328fd08138246ac58889 SHA512 4e6557e9afabedfd9ecad7383478a00dda38cd043c69023900080b194ffe7f47a0b8d64c6edda74b12339cd3f2f54d549df088493d94fa68da20f1e89e65ab5d +AUX restore-3.22-compat.patch 1800 BLAKE2B 0289a7849eb57f614945b19872427d56a087378c760630277c37df194c07fbb00c3348fff8b076ff1c88fb62b71168649f3d94d531d8cd5f63a97a90d3322d91 SHA512 b78647b692bf8bef9a5e8c9efad253b23a3d52e4a9abc8b2d53dfc0f6de4c6a76b8223df2c43bba109ab490de244e1ca6be0aeb8804ad28458c072a399e8f5bf DIST gnome-shell-extensions-topicons-plus-22.tar.gz 2757811 BLAKE2B 8bfe719d4a0e4d58db9b21d354e841ea69b88d82c69ba6aa4ebc8db65acde9330553487d0a0d3b623d5a6a2a18ff67e6ad4e45133c6e7b8a77e07bd90c589e63 SHA512 f0589bd8ed6697d616772ab374e9aa80779512d38c50f82c375820c02c06ef26a50b2a8c78c4e5fab5dc8588ed5fdcf0b7e73e7868af0855545528e741aa280d +DIST gnome-shell-extensions-topicons-plus-22_p20190929.tar.gz 2759460 BLAKE2B 2eb001f472395ade58503a860d3ea8248bb8aeb36b4d6f13f65e1074694aecc02f814d18d449206e1055984177896ac787fd925b4cf2680f226ffaace042cc5d SHA512 47cb156f7a61780a53311855d716c4e4f539832080fc011db634b472b5a8aa0e9fad5b6f44bf2da30665cd97b850725822ee9fb9ed9da014388cf4adeee60fbe EBUILD gnome-shell-extensions-topicons-plus-22-r1.ebuild 1471 BLAKE2B ae60e6e306d0f3762181305f7f49e8bdc6552b7402cc73348008916ee42b9675ff53c199346aff51b7ab43a08013c1b53a5ba7a2d9f2b3b16cab853f1e8c2f07 SHA512 9720ce22068caa723a892b9e82604ee093c01f2848149e3d701d234dc76e20385b3b54ee0a68e05413a5f548a8ae54767abaed51f860fc8c237085251b309b2c +EBUILD gnome-shell-extensions-topicons-plus-22_p20190929.ebuild 1490 BLAKE2B 304e24e037375396e39c8389bf1ce421b5343cb89ddbf6734aa4d4b3f6438e0708acfe15ef265d19246a6afd934075c0b7f9d431c9711faea0d5bdfea5581c3c SHA512 2d971db6415fadbb92484f11de572da2fcc630ced470bc7e0dd41bdba43a6bed53e22cb6f011f92c556bfa1fadd446d269ae83c6ba954f4b0874f6df1778ef64 MISC metadata.xml 339 BLAKE2B 0fff96ce59c258cfb52c0616844df2bad11bf14fa283831d608ab862d2ac4fc26af0c4445d906d174290f0abee98149f12b24c85de79adfe2b959c17f14c3b42 SHA512 6bd54fe410561f215eba59872c742b9a11016cede62ddaf0aa8f899bf2c2abffde29cb63c9b819486a750be66b3dadd72257f6e26dcd87798aece31e0a752b40 diff --git a/gnome-extra/gnome-shell-extensions-topicons-plus/files/restore-3.22-compat.patch b/gnome-extra/gnome-shell-extensions-topicons-plus/files/restore-3.22-compat.patch new file mode 100644 index 000000000000..9d3104a7da5a --- /dev/null +++ b/gnome-extra/gnome-shell-extensions-topicons-plus/files/restore-3.22-compat.patch @@ -0,0 +1,42 @@ +From 0a357137c27d3e1f2f236a1e76e7b38f6e39d846 Mon Sep 17 00:00:00 2001 +From: "Robin A. Meade" <robin.a.meade@gmail.com> +Date: Thu, 31 Oct 2019 16:08:24 -1000 +Subject: [PATCH] Fix TopIcons no longer working with gnome-shell < 3.33.90 + +This fixes the following error: +gnome-shell: JS ERROR: TypeError: Main.extensionManager is undefined +onTrayIconAdded@/usr/share/gnome-shell/extensions/TopIcons@phocean.net/extension.js:85:1 + +Related: +https://github.com/phocean/TopIcons-plus/commit/43f991d1533e8d4002bd25ae6afd8a1568c39b36#diff-06f1274e40de25abda72d812b1cce86a +https://bugzilla.redhat.com/show_bug.cgi?id=1767544 +--- + extension.js | 15 ++++++++++++--- + 1 file changed, 12 insertions(+), 3 deletions(-) + +diff --git a/extension.js b/extension.js +index 191fa5c..116a60b 100644 +--- a/extension.js ++++ b/extension.js +@@ -82,9 +82,18 @@ function onTrayIconAdded(o, icon, role, delay=1000) { + // loop through the array and hide the extension if extension X is enabled and corresponding application is running + let iconWmClass = icon.wm_class ? icon.wm_class.toLowerCase() : ''; + for (let [wmClass, uuid] of blacklist) { +- if (Main.extensionManager.lookup(uuid) && +- iconWmClass === wmClass) +- return; ++ if (Main.extensionManager === undefined) { ++ // For gnome-shell < 3.33.90 ++ if (ExtensionUtils.extensions[uuid] !== undefined && ++ ExtensionUtils.extensions[uuid].state === 1 && ++ iconWmClass === wmClass) ++ return; ++ } else { ++ // For gnome-shell >= 3.33.90 ++ if (Main.extensionManager.lookup(uuid) && ++ iconWmClass === wmClass) ++ return; ++ } + } + + let iconContainer = new St.Button({child: icon, visible: false}); diff --git a/gnome-extra/gnome-shell-extensions-topicons-plus/gnome-shell-extensions-topicons-plus-22_p20190929.ebuild b/gnome-extra/gnome-shell-extensions-topicons-plus/gnome-shell-extensions-topicons-plus-22_p20190929.ebuild new file mode 100644 index 000000000000..31bf7980e4fe --- /dev/null +++ b/gnome-extra/gnome-shell-extensions-topicons-plus/gnome-shell-extensions-topicons-plus-22_p20190929.ebuild @@ -0,0 +1,49 @@ +# Copyright 1999-2020 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=7 + +COMMIT_HASH="ad2dd1ad48ad9a5899e14a9e0873244a3e15b82e" +DESCRIPTION="Moves legacy tray icons to top panel" +HOMEPAGE="https://extensions.gnome.org/extension/1031/topicons/" +SRC_URI="https://github.com/phocean/TopIcons-plus/archive/${COMMIT_HASH}.tar.gz -> ${P}.tar.gz" +S="${WORKDIR}/TopIcons-plus-${COMMIT_HASH}" + +LICENSE="GPL-2+" +SLOT="0" +KEYWORDS="~amd64 ~x86" +IUSE="" + +# glib for glib-compile-schemas at build time, needed at runtime anyways +DEPEND=" + dev-libs/glib:2 +" +RDEPEND="${DEPEND} + app-eselect/eselect-gnome-shell-extensions + >=gnome-base/gnome-shell-3.16 +" +BDEPEND="" + +PATCHES=( + "${FILESDIR}"/restore-3.22-compat.patch # https://github.com/phocean/TopIcons-plus/pull/136 +) + +#src_compile() { + # It redoes this with "make install" later due to a dumb Makefile, so don't bother + #make build +#} + +src_install() { + # TODO: Figure out if we can get the schemas to standard location, in a way that works properly runtime too + make install INSTALL_PATH="${ED}/usr/share/gnome-shell/extensions/" + rm "${ED}/usr/share/gnome-shell/extensions/TopIcons@phocean.net/README.md" || die + # Assuming it needs only compiled gettext catalogs at runtime + rm "${ED}/usr/share/gnome-shell/extensions/TopIcons@phocean.net/locale"/*/LC_MESSAGES/*.po || die + dodoc README.md +} + +pkg_postinst() { + ebegin "Updating list of installed extensions" + eselect gnome-shell-extensions update + eend $? +} |