From 67efaff61522aeb024152ab6cddf7c40ffacb530 Mon Sep 17 00:00:00 2001 From: V3n3RiX Date: Thu, 19 Oct 2023 21:52:41 +0100 Subject: gentoo auto-resync : 19:10:2023 - 21:52:41 --- .../Manifest | 2 + ...l-extension-weather-in-the-clock-gnome-45.patch | 76 ++++++++++++++++++++++ ...tension-weather-in-the-clock-20221024-r2.ebuild | 54 +++++++++++++++ 3 files changed, 132 insertions(+) create mode 100644 gnome-extra/gnome-shell-extension-weather-in-the-clock/files/gnome-shell-extension-weather-in-the-clock-gnome-45.patch create mode 100644 gnome-extra/gnome-shell-extension-weather-in-the-clock/gnome-shell-extension-weather-in-the-clock-20221024-r2.ebuild (limited to 'gnome-extra/gnome-shell-extension-weather-in-the-clock') diff --git a/gnome-extra/gnome-shell-extension-weather-in-the-clock/Manifest b/gnome-extra/gnome-shell-extension-weather-in-the-clock/Manifest index f0b0831cd801..d14a866d55d9 100644 --- a/gnome-extra/gnome-shell-extension-weather-in-the-clock/Manifest +++ b/gnome-extra/gnome-shell-extension-weather-in-the-clock/Manifest @@ -1,3 +1,5 @@ +AUX gnome-shell-extension-weather-in-the-clock-gnome-45.patch 3229 BLAKE2B 6978c828b42d1edb1c3d8804ef5e11e9b976ff4fee010b6a47a1946ebfadd4d6f06626262e6b97417955544b86888f9f2cad735b8e2e90a70c1793627274af25 SHA512 f44700e4153d08a0e3177f5092fb8ffa1333da5d50f719448a562952b9982a4002664339cfa3bc49728b3a2d5da31577c19035db9957c259865504a7d36cd21f DIST gnome-shell-extension-weather-in-the-clock-20221024.tar.gz 127100 BLAKE2B daf0feb6730351c35bc0c66e54a39df78095eb284774c1689ffe7918afee329e1ab32a54657635ba6758f25fdee0de6d1ec39e007653925da87b3f967a1c4934 SHA512 7ebc1c7368b6e07e9186a3b2a19ee4aaedb0f897b31ad37d33153d58e961dfb9b6249bac287aa51fb110ad28c4858739b7ebc7a82a1301971f3c95891591a417 EBUILD gnome-shell-extension-weather-in-the-clock-20221024-r1.ebuild 1274 BLAKE2B 56e54ac0a6bc98937f494650b74eaa319f12294db57fc8b8e5220c167e80f579c65d01e457445a75c4288136aacdd0e8184693a2da2a8b912d6e22f0a67e01b9 SHA512 3af2c01f97dfaee1a5101334fbda34ef0d8ff297285c4cdc9e8657589f09e4bb4d7659df501135c24fea4998583ceb83897e3082e938911ed202421d06f84b12 +EBUILD gnome-shell-extension-weather-in-the-clock-20221024-r2.ebuild 1216 BLAKE2B 91eaa43323bdfddd323543271b94ba3e7301bcf67e2e24e9e208adc68c3dc4cfa0027ae48a085346b9354f60b88a3386d9b00b8bf3557701547ae25b3349b0d0 SHA512 0d8d62ebd7ea6de6ad4e56a3490d00bac8dd6b44d47b90672a285fa94d5396a4c3a19cc7f0a1fb496703e38408f0bec97c42df5bce1a1eebc0c7a6ea08db0abc MISC metadata.xml 317 BLAKE2B ed39479ce5dd8dacc6091575826c37509f00e28cd3a59ea7147e09e142d263ce5e3b27e7e74995ba0fd4a7559f9e47b96ab64a39114c079d87e80b9d0fd3d7cf SHA512 a04383c0ba503df6fd72aac11a833baea2a175d449b9f5b64a2b6a709fe52ef46210e37870b77cb36efb4e30506ddb9ebe5d831bd5f209f241bbff59ba3e4fa3 diff --git a/gnome-extra/gnome-shell-extension-weather-in-the-clock/files/gnome-shell-extension-weather-in-the-clock-gnome-45.patch b/gnome-extra/gnome-shell-extension-weather-in-the-clock/files/gnome-shell-extension-weather-in-the-clock-gnome-45.patch new file mode 100644 index 000000000000..37d5968ec29c --- /dev/null +++ b/gnome-extra/gnome-shell-extension-weather-in-the-clock/files/gnome-shell-extension-weather-in-the-clock-gnome-45.patch @@ -0,0 +1,76 @@ +From 42e6018943de5154971871f33599a66f10c17f26 Mon Sep 17 00:00:00 2001 +From: =?UTF-8?q?=D0=9E=D0=BB=D0=B5=D0=B3=20=D0=9C=D0=BE=D1=80=D0=BE=D0=B7?= + =?UTF-8?q?=D0=BE=D0=B2?= +Date: Thu, 12 Oct 2023 23:30:58 +0300 +Subject: [PATCH] Gnome 45 support + +--- + .../extension.js | 37 +++++++++++-------- + .../metadata.json | 2 +- + 2 files changed, 22 insertions(+), 17 deletions(-) + +diff --git a/weatherintheclock@JasonLG1979.github.io/extension.js b/weatherintheclock@JasonLG1979.github.io/extension.js +index 7b097a4..dcb08b9 100644 +--- a/weatherintheclock@JasonLG1979.github.io/extension.js ++++ b/weatherintheclock@JasonLG1979.github.io/extension.js +@@ -18,27 +18,32 @@ + * If this extension breaks your desktop you get to keep all of the pieces... + */ + +-const {Clutter, GLib, GObject, St} = imports.gi; +-const [major, minor] = imports.misc.config.PACKAGE_VERSION.split('.').map(s => Number(s)); ++import Clutter from "gi://Clutter"; ++import GLib from "gi://GLib"; ++import GObject from "gi://GObject"; ++import St from "gi://St"; ++import * as Main from "resource:///org/gnome/shell/ui/main.js"; + + let panelWeather = null; + +-function enable() { +- if (!panelWeather) { +- let statusArea = imports.ui.main.panel.statusArea; +- let dateMenu = statusArea.dateMenu; +- let weather = dateMenu._weatherItem._weatherClient; +- let network = (major < 43) ? statusArea.aggregateMenu._network : statusArea.quickSettings._network; +- let networkIcon = network ? network._primaryIndicator : null; +- panelWeather = new PanelWeather(weather, networkIcon); +- dateMenu.get_first_child().insert_child_above(panelWeather, dateMenu._clockDisplay); ++export default class weatherInTheClock { ++ enable() { ++ if (!panelWeather) { ++ let statusArea = Main.panel.statusArea; ++ let dateMenu = statusArea.dateMenu; ++ let weather = dateMenu._weatherItem._weatherClient; ++ let network = statusArea.quickSettings._network; ++ let networkIcon = network ? network._primaryIndicator : null; ++ panelWeather = new PanelWeather(weather, networkIcon); ++ dateMenu.get_first_child().insert_child_above(panelWeather, dateMenu._clockDisplay); ++ } + } +-} + +-function disable() { +- if (panelWeather) { +- panelWeather.destroy(); +- panelWeather = null; ++ disable() { ++ if (panelWeather) { ++ panelWeather.destroy(); ++ panelWeather = null; ++ } + } + } + +diff --git a/weatherintheclock@JasonLG1979.github.io/metadata.json b/weatherintheclock@JasonLG1979.github.io/metadata.json +index 2566fc3..1151690 100644 +--- a/weatherintheclock@JasonLG1979.github.io/metadata.json ++++ b/weatherintheclock@JasonLG1979.github.io/metadata.json +@@ -3,6 +3,6 @@ + "name": "Weather In The Clock", + "description": "Display the current Weather in the Clock. GNOME Weather is required for this extension to function.", + "original-author": "JasonLG1979@github.io", +-"shell-version": ["3.38", "40", "41", "42", "43"], ++"shell-version": ["45"], + "url": "https://github.com/JasonLG1979/gnome-shell-extension-weather-in-the-clock/" + } diff --git a/gnome-extra/gnome-shell-extension-weather-in-the-clock/gnome-shell-extension-weather-in-the-clock-20221024-r2.ebuild b/gnome-extra/gnome-shell-extension-weather-in-the-clock/gnome-shell-extension-weather-in-the-clock-20221024-r2.ebuild new file mode 100644 index 000000000000..e64658821c7b --- /dev/null +++ b/gnome-extra/gnome-shell-extension-weather-in-the-clock/gnome-shell-extension-weather-in-the-clock-20221024-r2.ebuild @@ -0,0 +1,54 @@ +# Copyright 1999-2023 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 +inherit gnome2-utils + +DESCRIPTION="Display the current weather in the clock" +HOMEPAGE="https://github.com/JasonLG1979/gnome-shell-extension-weather-in-the-clock" +COMMIT="38ba36090961a37260215ae04f4a7e0a1377da95" +SRC_URI="https://github.com/JasonLG1979/gnome-shell-extension-weather-in-the-clock/archive/${COMMIT}.tar.gz -> ${P}.tar.gz" + +LICENSE="GPL-3+" +SLOT="0" +KEYWORDS="~amd64 ~x86" +IUSE="" + +RDEPEND=" + app-eselect/eselect-gnome-shell-extensions + >=gnome-base/gnome-shell-45 + gnome-extra/gnome-weather +" +DEPEND="" +BDEPEND="" + +extension_uuid="weatherintheclock@JasonLG1979.github.io" +S="${WORKDIR}/${PN}-${COMMIT}" + +PATCHES=( + # https://github.com/JasonLG1979/gnome-shell-extension-weather-in-the-clock/pull/32 + "${FILESDIR}/${PN}-gnome-45.patch" +) + +src_compile() { :; } + +src_install() { + einstalldocs + insinto /usr/share/gnome-shell/extensions/ + doins -r "${extension_uuid}" +} + +pkg_preinst() { + gnome2_schemas_savelist +} + +pkg_postinst() { + gnome2_schemas_update + ebegin "Updating list of installed extensions" + eselect gnome-shell-extensions update + eend $? +} + +pkg_postrm() { + gnome2_schemas_update +} -- cgit v1.2.3