diff options
author | Pacho Ramos <pacho@gentoo.org> | 2021-06-16 11:20:11 +0200 |
---|---|---|
committer | Pacho Ramos <pacho@gentoo.org> | 2021-06-16 11:20:11 +0200 |
commit | 770fbeebf64a0cc6b3d03803b46f5b9e4050fb0a (patch) | |
tree | b96f379e1a2beedd95f19256cacf6e55455ada8b /gnome-extra | |
parent | dev-db/hsqldb: switched 1.8.1.3-r3 to the latest tomcat-servlet-api (diff) | |
download | gentoo-770fbeebf64a0cc6b3d03803b46f5b9e4050fb0a.tar.gz gentoo-770fbeebf64a0cc6b3d03803b46f5b9e4050fb0a.tar.bz2 gentoo-770fbeebf64a0cc6b3d03803b46f5b9e4050fb0a.zip |
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@gentoo.org>
Diffstat (limited to 'gnome-extra')
3 files changed, 105 insertions, 0 deletions
diff --git a/gnome-extra/gnome-shell-extension-bing-wallpaper/Manifest b/gnome-extra/gnome-shell-extension-bing-wallpaper/Manifest index 6dd77343231f..204a599047f7 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 000000000000..64f72f388dec --- /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 000000000000..a1b25a62c8c3 --- /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 +} |