Topicons Gnome 40 compatibility
This commit is contained in:
parent
da181596de
commit
08b764b323
@ -0,0 +1,3 @@
|
||||
AUX gnome-shell-extensions-topicons-plus-gnome-40.patch 1362 BLAKE2B 2675c19e3cd2ee815f1387e2de9bbb8bcfeeb99fbde2a8ed510e3e383633f4142baed3627fa0926f48d7a328394cd4e5e2717730ff62367c623a8caeb6fd50fd SHA512 13276a1a5dfc6628f63148e8cb402140bc1e40009b840873cc2efab4ff65e8143384d663d313d5c056308cd5e09d7d7f16d4959b032dc03bf50546700a99b1f6
|
||||
EBUILD gnome-shell-extensions-topicons-plus-9999.ebuild 1213 BLAKE2B 23c7e676d2779ff2e388d76b52f8bd670fa7c6e0f9e621e65e6a649d49242d9b51dc837bcac8329d44e51dcbb887d75ec7d6d40c04c4f6e9c3eec827ea69d626 SHA512 62e4a02a0284a487b6d2ae4ee493c13f84fa0ab19e4c5714965c84670d8e85031c15e1dd3ef4faeb17294b786fa7662455c825d39a37841fe9c0d027aced8a2a
|
||||
MISC metadata.xml 339 BLAKE2B 2447959005caf5fd3e73add40ea3dbd534fdf7570c9eac45802e20a75f608b6832e17c9a3ba7a735e15d2eb812fe5fccc07a94f49ef8686d3833473c39ff13c2 SHA512 daa6bf05b44ba64d31e32eff4088da410928c6c32666e816426f5ebd27dbe8cfba302e48adebaa8f89cff63019adadb8dcc5d09e1e6bfdda2e58280384ad7d50
|
@ -0,0 +1,51 @@
|
||||
From 98cd17aa324a031e2ee3d344582dfdafd1e4642f Mon Sep 17 00:00:00 2001
|
||||
From: Tiramisu Mokka <kofemann@gmail.com>
|
||||
Date: Fri, 19 Mar 2021 19:00:32 +0100
|
||||
Subject: [PATCH] fix compatibility with gnome40
|
||||
|
||||
---
|
||||
metadata.json | 5 ++---
|
||||
prefs.js | 6 ++----
|
||||
2 files changed, 4 insertions(+), 7 deletions(-)
|
||||
|
||||
diff --git a/metadata.json b/metadata.json
|
||||
index e4c9691..8a07918 100644
|
||||
--- a/metadata.json
|
||||
+++ b/metadata.json
|
||||
@@ -3,11 +3,10 @@
|
||||
"name": "TopIcons Plus",
|
||||
"gettext-domain": "TopIcons-Plus",
|
||||
"shell-version": [
|
||||
- "3.34",
|
||||
- "3.36"
|
||||
+ "40"
|
||||
],
|
||||
"settings-schema": "org.gnome.shell.extensions.topicons",
|
||||
"url": "https://github.com/phocean/TopIcons-plus",
|
||||
"uuid": "TopIcons@phocean.net",
|
||||
- "version": 27
|
||||
+ "version": 28
|
||||
}
|
||||
diff --git a/prefs.js b/prefs.js
|
||||
index bd372d2..f6b1277 100644
|
||||
--- a/prefs.js
|
||||
+++ b/prefs.js
|
||||
@@ -12,7 +12,7 @@ const Gettext = imports.gettext.domain(Me.metadata['gettext-domain']);
|
||||
const _ = Gettext.gettext;
|
||||
|
||||
function init() {
|
||||
- Convenience.initTranslations();
|
||||
+ ExtensionUtils.initTranslations();
|
||||
}
|
||||
|
||||
const TopIconsPlusSettings = new GObject.Class({
|
||||
@@ -180,8 +180,6 @@ const TopIconsPlusSettings = new GObject.Class({
|
||||
});
|
||||
|
||||
function buildPrefsWidget() {
|
||||
- let widget = new TopIconsPlusSettings();
|
||||
- widget.show_all();
|
||||
+ return new TopIconsPlusSettings();
|
||||
|
||||
- return widget;
|
||||
}
|
@ -0,0 +1,45 @@
|
||||
# Copyright 1999-2020 Gentoo Authors
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=7
|
||||
|
||||
MY_PN="TopIcons-plus"
|
||||
|
||||
inherit git-r3
|
||||
DESCRIPTION="Moves legacy tray icons to top panel"
|
||||
HOMEPAGE="https://extensions.gnome.org/extension/1031/topicons/"
|
||||
EGIT_REPO_URI="https://github.com/phocean/${MY_PN}.git"
|
||||
|
||||
LICENSE="GPL-2+"
|
||||
SLOT="0"
|
||||
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.36
|
||||
"
|
||||
BDEPEND=""
|
||||
|
||||
src_prepare() {
|
||||
default
|
||||
eapply "${FILESDIR}/${PN}-gnome-40.patch"
|
||||
}
|
||||
|
||||
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 $?
|
||||
}
|
@ -0,0 +1,11 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
|
||||
<pkgmetadata>
|
||||
<maintainer type="project">
|
||||
<email>gnome@gentoo.org</email>
|
||||
<name>Gentoo GNOME Desktop</name>
|
||||
</maintainer>
|
||||
<upstream>
|
||||
<remote-id type="github">phocean/TopIcons-plus</remote-id>
|
||||
</upstream>
|
||||
</pkgmetadata>
|
Loading…
Reference in New Issue
Block a user