summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPacho Ramos <pacho@gentoo.org>2024-11-08 20:07:24 +0100
committerPacho Ramos <pacho@gentoo.org>2024-11-08 20:44:28 +0100
commit72dd6e16f4965a4523fd2124b354495ca37cf21f (patch)
tree32cb4921c145faea61fe6ea37e99294e7622da12 /gnome-extra
parentapp-emacs/kaolin-themes: bump to 1.7.1 (diff)
downloadgentoo-72dd6e16f4965a4523fd2124b354495ca37cf21f.tar.gz
gentoo-72dd6e16f4965a4523fd2124b354495ca37cf21f.tar.bz2
gentoo-72dd6e16f4965a4523fd2124b354495ca37cf21f.zip
gnome-extra/gnome-shell-extension-bing-wallpaper: Workaround image is null bug
Signed-off-by: Pacho Ramos <pacho@gentoo.org>
Diffstat (limited to 'gnome-extra')
-rw-r--r--gnome-extra/gnome-shell-extension-bing-wallpaper/files/gnome-shell-extension-bing-wallpaper-50-image-null.patch11
-rw-r--r--gnome-extra/gnome-shell-extension-bing-wallpaper/gnome-shell-extension-bing-wallpaper-50-r1.ebuild55
2 files changed, 66 insertions, 0 deletions
diff --git a/gnome-extra/gnome-shell-extension-bing-wallpaper/files/gnome-shell-extension-bing-wallpaper-50-image-null.patch b/gnome-extra/gnome-shell-extension-bing-wallpaper/files/gnome-shell-extension-bing-wallpaper-50-image-null.patch
new file mode 100644
index 000000000000..799a9857be54
--- /dev/null
+++ b/gnome-extra/gnome-shell-extension-bing-wallpaper/files/gnome-shell-extension-bing-wallpaper-50-image-null.patch
@@ -0,0 +1,11 @@
+--- a/extension.js~ 2024-09-29 12:56:01.000000000 +0200
++++ b/extension.js 2024-11-08 20:05:25.870775558 +0100
+@@ -927,7 +927,7 @@
+
+ if (image)
+ this.imageIndex = Utils.imageIndex(imageList, image.urlbase);
+- log('_selectImage: ' + this.selected_image + ' = ' + (image && image.urlbase) ? image.urlbase : 'not found');
++ // log('_selectImage: ' + this.selected_image + ' = ' + (image && image.urlbase) ? image.urlbase : 'not found');
+ }
+ }
+
diff --git a/gnome-extra/gnome-shell-extension-bing-wallpaper/gnome-shell-extension-bing-wallpaper-50-r1.ebuild b/gnome-extra/gnome-shell-extension-bing-wallpaper/gnome-shell-extension-bing-wallpaper-50-r1.ebuild
new file mode 100644
index 000000000000..c2c0a9edf1b8
--- /dev/null
+++ b/gnome-extra/gnome-shell-extension-bing-wallpaper/gnome-shell-extension-bing-wallpaper-50-r1.ebuild
@@ -0,0 +1,55 @@
+# Copyright 1999-2024 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+inherit gnome2-utils
+
+DESCRIPTION="Change 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"
+S="${WORKDIR}/bing-wallpaper-gnome-extension-${PV}"
+
+LICENSE="GPL-3"
+SLOT="0"
+KEYWORDS="~amd64 ~x86"
+
+RDEPEND="
+ dev-libs/glib:2
+ app-eselect/eselect-gnome-shell-extensions
+ >=gnome-base/gnome-shell-45
+ net-libs/libsoup:3.0
+"
+
+extension_uuid="BingWallpaper@ineffable-gmail.com"
+
+PATCHES=(
+ # https://github.com/neffo/bing-wallpaper-gnome-extension/issues/113
+ "${FILESDIR}/${PN}-44-unlock-screen.patch"
+ # https://github.com/neffo/bing-wallpaper-gnome-extension/issues/246
+ "${FILESDIR}/${PN}-50-image-null.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
+}