summaryrefslogtreecommitdiff
path: root/gnome-extra/gnome-shell-extension-weather-in-the-clock
diff options
context:
space:
mode:
authorV3n3RiX <venerix@koprulu.sector>2024-12-03 02:07:18 +0000
committerV3n3RiX <venerix@koprulu.sector>2024-12-03 02:07:18 +0000
commit7f4b508a2da3c371c7e770aa6ab83b0c4237cd1c (patch)
tree81d78cbf05f5daa7d57418d32f44b0149a56a765 /gnome-extra/gnome-shell-extension-weather-in-the-clock
parentd4f65848c7ecabb56e2f93889cbd20078cd347f7 (diff)
gentoo auto-resync : 03:12:2024 - 02:07:18
Diffstat (limited to 'gnome-extra/gnome-shell-extension-weather-in-the-clock')
-rw-r--r--gnome-extra/gnome-shell-extension-weather-in-the-clock/Manifest2
-rw-r--r--gnome-extra/gnome-shell-extension-weather-in-the-clock/files/gnome-shell-extension-weather-in-the-clock-gnome-46.patch76
-rw-r--r--gnome-extra/gnome-shell-extension-weather-in-the-clock/gnome-shell-extension-weather-in-the-clock-20221024-r3.ebuild54
3 files changed, 132 insertions, 0 deletions
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 a49d0ff23367..423b44b5c36c 100644
--- a/gnome-extra/gnome-shell-extension-weather-in-the-clock/Manifest
+++ b/gnome-extra/gnome-shell-extension-weather-in-the-clock/Manifest
@@ -1,5 +1,7 @@
AUX gnome-shell-extension-weather-in-the-clock-gnome-45.patch 3229 BLAKE2B 6978c828b42d1edb1c3d8804ef5e11e9b976ff4fee010b6a47a1946ebfadd4d6f06626262e6b97417955544b86888f9f2cad735b8e2e90a70c1793627274af25 SHA512 f44700e4153d08a0e3177f5092fb8ffa1333da5d50f719448a562952b9982a4002664339cfa3bc49728b3a2d5da31577c19035db9957c259865504a7d36cd21f
+AUX gnome-shell-extension-weather-in-the-clock-gnome-46.patch 3235 BLAKE2B bb5879e49307779e160cc228420ca764a3fc284e1ab266dd77236d90bf71e2709d9b73da27212fd72628e5d71bbf482882fe5a4c19b3cfffe5be61b286a76639 SHA512 f8e5a302537208c62e118a03257292352203fa095fca97ce3e5b6f60c4aa3c4bd2666f079fcdc79c7d179938dc0a9db7d8d7655b178fa9127f45cd6d8313bc0b
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 1214 BLAKE2B 14d8a6a34b618d57b83ec22964ca9aa9c3302886f1be7639ec835a08ba54c1008dd3efd7093b47362f5ae3054a9a55c46c0ce0ac1df81d04c76b0c932634954d SHA512 9494beb08bb740d5ecf6c99d0c8f0bceb5b4a8a9fa1fd5bca900512935609362f1844c2193785850733ad54e1dc5b044612d7da5647e7212eae78a6cd6a1ed4f
+EBUILD gnome-shell-extension-weather-in-the-clock-20221024-r3.ebuild 1216 BLAKE2B 40f9ddb595cbca9eeb134f9f25ea7627c69e0b0d10c74b209fe712b3d8b3ba3ba68d81f147bf5e915eee3d801b62a62337fa7d67773e28421ed6b88b10810237 SHA512 0bba9c9d4512197e91c3cd7fab2db3476550a9af839b9f24ff96ee41a68acc364161c7557c0b4786d73c04660730c3d2ddd57450b56157152dd57a9f3951ff51
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-46.patch b/gnome-extra/gnome-shell-extension-weather-in-the-clock/files/gnome-shell-extension-weather-in-the-clock-gnome-46.patch
new file mode 100644
index 000000000000..ce8ebccfee8e
--- /dev/null
+++ b/gnome-extra/gnome-shell-extension-weather-in-the-clock/files/gnome-shell-extension-weather-in-the-clock-gnome-46.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?= <mopo3ilo@gmail.com>
+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", "46"],
+ "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-r3.ebuild b/gnome-extra/gnome-shell-extension-weather-in-the-clock/gnome-shell-extension-weather-in-the-clock-20221024-r3.ebuild
new file mode 100644
index 000000000000..fec095da6dc4
--- /dev/null
+++ b/gnome-extra/gnome-shell-extension-weather-in-the-clock/gnome-shell-extension-weather-in-the-clock-20221024-r3.ebuild
@@ -0,0 +1,54 @@
+# Copyright 1999-2024 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-46.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
+}