public inbox for gentoo-commits@lists.gentoo.org
 help / color / mirror / Atom feed
* [gentoo-commits] repo/gentoo:master commit in: gnome-extra/gnome-shell-extension-bing-wallpaper/, ...
@ 2021-06-16  9:21 Pacho Ramos
  0 siblings, 0 replies; 2+ messages in thread
From: Pacho Ramos @ 2021-06-16  9:21 UTC (permalink / raw
  To: gentoo-commits

commit:     770fbeebf64a0cc6b3d03803b46f5b9e4050fb0a
Author:     Pacho Ramos <pacho <AT> gentoo <DOT> org>
AuthorDate: Wed Jun 16 09:20:11 2021 +0000
Commit:     Pacho Ramos <pacho <AT> gentoo <DOT> org>
CommitDate: Wed Jun 16 09:20:11 2021 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=770fbeeb

gnome-extra/gnome-shell-extension-bing-wallpaper: Bump to v34

Package-Manager: Portage-3.0.19, Repoman-3.0.3
Signed-off-by: Pacho Ramos <pacho <AT> gentoo.org>

 .../gnome-shell-extension-bing-wallpaper/Manifest  |  1 +
 ...nsion-bing-wallpaper-34-blur-enable-check.patch | 49 +++++++++++++++++++
 .../gnome-shell-extension-bing-wallpaper-34.ebuild | 55 ++++++++++++++++++++++
 3 files changed, 105 insertions(+)

diff --git a/gnome-extra/gnome-shell-extension-bing-wallpaper/Manifest b/gnome-extra/gnome-shell-extension-bing-wallpaper/Manifest
index 6dd77343231..204a599047f 100644
--- a/gnome-extra/gnome-shell-extension-bing-wallpaper/Manifest
+++ b/gnome-extra/gnome-shell-extension-bing-wallpaper/Manifest
@@ -1,2 +1,3 @@
 DIST gnome-shell-extension-bing-wallpaper-32.tar.gz 4186897 BLAKE2B 2d8d119ef61c426be5e1ad3070fa038fe34f1cedf706a748a9943eaa2ef9bb0ce75a8df99abad38d48fd8f25ae532ae9dd425ca00d7165c06b177580cbed89a3 SHA512 c72473df4b5882ee5964c74fa42d270097526337230e538c1fcfc6e7bee5ab492857ca0f48e019ba7cd3ce6808b22c7751333275dd074b057fa4e09030afb609
 DIST gnome-shell-extension-bing-wallpaper-33.tar.gz 4218373 BLAKE2B e5f7c9845a20eded7dfa56865ce145751b88f92c5c0c89bf305e863aa03e1ea8e305355d34833387a60b26e75aafa4739ddf4a13dac871835d604bade2f8ce5e SHA512 8de4f4a721cd8ca905212a9ebb3e4d26d90832353fca7641eb240ebe12f3fa4cd10acf257823a4a986b18b98216786daf46f3570dd87f2f17e6bfdd6507a687f
+DIST gnome-shell-extension-bing-wallpaper-34.tar.gz 4308799 BLAKE2B 5c14895fbb42fb726e1b6d93924eebfd7b93ccea893075bfd698476579962a88f8e0008d7e935304d56caba1db1f8afc8fee3498f63044e4a9da13f568025e84 SHA512 7e1e26b5494a9e66d74c3d1045827445935d1a0ed20b095cb72b3b06b622ae5fda7980313dcddedf25c5ed3b40717a8e322bc80764f502c5eb7fe7155ec84ca7

diff --git a/gnome-extra/gnome-shell-extension-bing-wallpaper/files/gnome-shell-extension-bing-wallpaper-34-blur-enable-check.patch b/gnome-extra/gnome-shell-extension-bing-wallpaper/files/gnome-shell-extension-bing-wallpaper-34-blur-enable-check.patch
new file mode 100644
index 00000000000..64f72f388de
--- /dev/null
+++ b/gnome-extra/gnome-shell-extension-bing-wallpaper/files/gnome-shell-extension-bing-wallpaper-34-blur-enable-check.patch
@@ -0,0 +1,49 @@
+From d6350119bccb896744e574d0f10e34c1309bc1b1 Mon Sep 17 00:00:00 2001
+From: Michael Carroll <ineffable@gmail.com>
+Date: Wed, 16 Jun 2021 00:11:26 +1000
+Subject: [PATCH] dont reset blur on disable() if never enabled #113
+
+---
+ blur.js | 8 ++++++--
+ 1 file changed, 6 insertions(+), 2 deletions(-)
+
+diff --git a/blur.js b/blur.js
+index 613e301..c16af6f 100644
+--- a/blur.js
++++ b/blur.js
+@@ -27,6 +27,7 @@ var blur_strength = 2;
+ var blur_brightness = 55;
+ var debug = false;
+ 
++let blurEnabled = false;
+ var blurMode = whichVersion();
+ 
+ function log(msg) {
+@@ -63,6 +64,7 @@ var Blur = class Blur {
+         let effect = new Shell.BlurEffect({ brightness: blur_brightness * 0.01, sigma: blur_strength * themeContext.scale_factor / 5 }); // fix me, should this be /5?
+         this._scaleChangedId = themeContext.connect('notify::scale-factor', () => { effect.sigma = blur_strength * themeContext.scale_factor / 5; });
+         widget.add_effect(effect);
++        blurEnabled = true;
+     }
+ 
+     _do_blur_v2(monitorIndex) {
+@@ -74,8 +76,8 @@ var Blur = class Blur {
+                 brightness: blur_brightness * 0.01,
+                 sigma: blur_strength * themeContext.scale_factor,
+             });
+-        } 
+-    
++        }
++        blurEnabled = true;
+     }
+ 
+     set_blur_strength(value) {
+@@ -119,6 +121,8 @@ var Blur = class Blur {
+     }
+ 
+     _disable() {
++        if (blurEnabled == false) // nothing to do, don't clash without other extensions that do the same
++            return;
+         log("_lockscreen_blur_disable() called");
+         if (blurMode == 1) {
+             UnlockDialog.prototype._createBackground = _createBackground;

diff --git a/gnome-extra/gnome-shell-extension-bing-wallpaper/gnome-shell-extension-bing-wallpaper-34.ebuild b/gnome-extra/gnome-shell-extension-bing-wallpaper/gnome-shell-extension-bing-wallpaper-34.ebuild
new file mode 100644
index 00000000000..a1b25a62c8c
--- /dev/null
+++ b/gnome-extra/gnome-shell-extension-bing-wallpaper/gnome-shell-extension-bing-wallpaper-34.ebuild
@@ -0,0 +1,55 @@
+# Copyright 1999-2021 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=7
+inherit gnome2-utils
+
+DESCRIPTION="Changes your wallpaper daily to the bing.com background image"
+HOMEPAGE="https://github.com/neffo/bing-wallpaper-gnome-extension"
+SRC_URI="https://github.com/neffo/bing-wallpaper-gnome-extension/archive/v${PV}.tar.gz -> ${P}.tar.gz"
+
+LICENSE="GPL-3"
+SLOT="0"
+KEYWORDS="~amd64 ~x86"
+IUSE=""
+
+RDEPEND="
+	dev-libs/glib:2
+	app-eselect/eselect-gnome-shell-extensions
+	>=gnome-base/gnome-shell-3.28
+"
+DEPEND=""
+BDEPEND=""
+
+S="${WORKDIR}/bing-wallpaper-gnome-extension-${PV}"
+extension_uuid="BingWallpaper@ineffable-gmail.com"
+
+PATCHES=(
+	# https://github.com/neffo/bing-wallpaper-gnome-extension/issues/113
+	"${FILESDIR}/${P}-blur-enable-check.patch"
+)
+
+src_install() {
+	einstalldocs
+	rm -f README.md LICENSE || die
+	insinto /usr/share/glib-2.0/schemas
+	doins schemas/*.xml
+	rm -rf schemas
+	insinto /usr/share/gnome-shell/extensions/"${extension_uuid}"
+	doins -r *
+}
+
+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
+}


^ permalink raw reply related	[flat|nested] 2+ messages in thread

* [gentoo-commits] repo/gentoo:master commit in: gnome-extra/gnome-shell-extension-bing-wallpaper/, ...
@ 2023-01-24 17:26 Pacho Ramos
  0 siblings, 0 replies; 2+ messages in thread
From: Pacho Ramos @ 2023-01-24 17:26 UTC (permalink / raw
  To: gentoo-commits

commit:     a4462f22aa41ab32c651d63180c653eb9752b5ba
Author:     Pacho Ramos <pacho <AT> gentoo <DOT> org>
AuthorDate: Tue Jan 24 16:35:43 2023 +0000
Commit:     Pacho Ramos <pacho <AT> gentoo <DOT> org>
CommitDate: Tue Jan 24 17:26:30 2023 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=a4462f22

gnome-extra/gnome-shell-extension-bing-wallpaper: add 44

Signed-off-by: Pacho Ramos <pacho <AT> gentoo.org>

 .../gnome-shell-extension-bing-wallpaper/Manifest  |  1 +
 ...extension-bing-wallpaper-44-unlock-screen.patch | 10 ++++
 .../gnome-shell-extension-bing-wallpaper-44.ebuild | 55 ++++++++++++++++++++++
 3 files changed, 66 insertions(+)

diff --git a/gnome-extra/gnome-shell-extension-bing-wallpaper/Manifest b/gnome-extra/gnome-shell-extension-bing-wallpaper/Manifest
index 8ae7ca6bb3ad..255215a82e85 100644
--- a/gnome-extra/gnome-shell-extension-bing-wallpaper/Manifest
+++ b/gnome-extra/gnome-shell-extension-bing-wallpaper/Manifest
@@ -1,2 +1,3 @@
 DIST gnome-shell-extension-bing-wallpaper-41.tar.gz 6811709 BLAKE2B ecde577d2c7a8be1644e8eddf88541a705085139af1c1c0a4e9036cadd88d26c6e07cc30d135c34a5c7289d3b1ecce9a381b439eac0059d19616493793f94795 SHA512 2d48c1c0916bca70ae47ff366690dbaef5337a74fd2d3d5b51e6ba297f3df85b3b2fedc6bdb4065b431aff286ebf0b7105168bead8c1843de5a4a2ef049a8eb5
 DIST gnome-shell-extension-bing-wallpaper-43.tar.gz 6816279 BLAKE2B d73f6247e41762d36095afb2602d768dac4997c911384ee57df2b2d27301395a98f8d00b94b4163d2bce5d2d43c783f181dda5f610eabd446bf9e130d905b85d SHA512 89cef18340f20d7c80764cdaea233479bf419d479349326feaa890847acce3b964e119a63cca29caa061711b7754e5861d19314082b95f394275c40cafe4065f
+DIST gnome-shell-extension-bing-wallpaper-44.tar.gz 6821608 BLAKE2B ddc29bee60cbf457eb853ad8d0caa1c9e0660782d021fda03e4eaf2f2d50ec72cdafe225ebfe57abbb1ac8d506ff409d84c74c629765e176ff35991ef52d04dd SHA512 8402862affeca913aaf67ee771df3152309a23335e99cd6c2fc7c6f0b293f8fa4e593fc2c9a4e1366e340ab956d2ee623780bc02654dbbff46b00b30232a70dc

diff --git a/gnome-extra/gnome-shell-extension-bing-wallpaper/files/gnome-shell-extension-bing-wallpaper-44-unlock-screen.patch b/gnome-extra/gnome-shell-extension-bing-wallpaper/files/gnome-shell-extension-bing-wallpaper-44-unlock-screen.patch
new file mode 100644
index 000000000000..e0792e6b9223
--- /dev/null
+++ b/gnome-extra/gnome-shell-extension-bing-wallpaper/files/gnome-shell-extension-bing-wallpaper-44-unlock-screen.patch
@@ -0,0 +1,10 @@
+--- a/metadata.json.old	2023-01-24 17:24:07.124529927 +0100
++++ b/metadata.json	2023-01-24 17:24:19.852913263 +0100
+@@ -6,5 +6,6 @@
+     "description": "Sync your wallpaper to today's Microsoft Bing image of the day (the image you see when you visit Bing.com).\n\n *Disclaimer*: this extension is unofficial and not affiliated with Bing or Microsoft in any way. Images are protected by copyright and are licensed only for use as wallpapers.\n\nFeatures:\n* UHD resolution wallpapers\n* Automatically fetches current Bing wallpaper of the day and sets as both lock screen and desktop wallpaper (user selectable on GNOME versions that support it)\n* Doesn't poll continuously - only once per day and on startup (schedules a refresh when Bing is due to update)\n * random mode (from previously downloaded wallpapers)\n *NEW: select/cycle wallpaper through previously downloaded images\n* Language support: English (en), German (de), Dutch (nl), Italian (it), Polish (pl), Chinese (zh_CN, zh_TW), French (fr_FR), Portuguese (pt, pt_BR), Ukrainian (uk), Russian (ru_RU), Spanish (es), Korean (ko), Indonesian (id), Catalan (ca), Norwe
 gian Bokmål (nb) & Nynorsk (ni), Swedish (sv), Arabic (ar), Hungarian (hu) and Japanese (ja) - a HUGE thanks to the translators\n\nThis extension was forked from the NASA APOD extension by Elinvention (https://github.com/Elinvention) and inspired by Bing Desktop Wallpaper Changer by Utkarsh Gupta (https://github.com/UtkarshGpta).\n\nAlways restart GNOME after manually updating extensions. Please report bugs to the GitHub page below:",
+     "version": "44",
+     "url": "https://github.com/neffo/bing-wallpaper-gnome-extension",
+-    "gettext-domain": "BingWallpaper"
++    "gettext-domain": "BingWallpaper",
++    "session-modes": ["user", "unlock-dialog"]
+ }

diff --git a/gnome-extra/gnome-shell-extension-bing-wallpaper/gnome-shell-extension-bing-wallpaper-44.ebuild b/gnome-extra/gnome-shell-extension-bing-wallpaper/gnome-shell-extension-bing-wallpaper-44.ebuild
new file mode 100644
index 000000000000..c449d1c4f90f
--- /dev/null
+++ b/gnome-extra/gnome-shell-extension-bing-wallpaper/gnome-shell-extension-bing-wallpaper-44.ebuild
@@ -0,0 +1,55 @@
+# Copyright 1999-2023 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+inherit gnome2-utils
+
+DESCRIPTION="Changes your wallpaper daily to the bing.com background image"
+HOMEPAGE="https://github.com/neffo/bing-wallpaper-gnome-extension"
+SRC_URI="https://github.com/neffo/bing-wallpaper-gnome-extension/archive/v${PV}.tar.gz -> ${P}.tar.gz"
+
+LICENSE="GPL-3"
+SLOT="0"
+KEYWORDS="~amd64 ~x86"
+IUSE=""
+
+RDEPEND="
+	dev-libs/glib:2
+	app-eselect/eselect-gnome-shell-extensions
+	>=gnome-base/gnome-shell-3.36
+"
+DEPEND=""
+BDEPEND=""
+
+S="${WORKDIR}/bing-wallpaper-gnome-extension-${PV}"
+extension_uuid="BingWallpaper@ineffable-gmail.com"
+
+PATCHES=(
+	# https://github.com/neffo/bing-wallpaper-gnome-extension/issues/113
+	"${FILESDIR}/${PN}-44-unlock-screen.patch"
+)
+
+src_install() {
+	einstalldocs
+	rm -f README.md LICENSE || die
+	insinto /usr/share/glib-2.0/schemas
+	doins schemas/*.xml
+	rm -rf schemas
+	insinto /usr/share/gnome-shell/extensions/"${extension_uuid}"
+	doins -r *
+}
+
+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
+}


^ permalink raw reply related	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2023-01-24 17:26 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2021-06-16  9:21 [gentoo-commits] repo/gentoo:master commit in: gnome-extra/gnome-shell-extension-bing-wallpaper/, Pacho Ramos
  -- strict thread matches above, loose matches on Subject: below --
2023-01-24 17:26 Pacho Ramos

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox