diff options
author | V3n3RiX <venerix@koprulu.sector> | 2022-12-04 21:03:51 +0000 |
---|---|---|
committer | V3n3RiX <venerix@koprulu.sector> | 2022-12-04 21:03:51 +0000 |
commit | c4d92ab721dfc646b4a58429d965e9446294ce26 (patch) | |
tree | 8c0c331362f99c256c191229ac424b1cc8698005 /gnome-extra/gnome-directory-thumbnailer | |
parent | 5565fb7867ee9faddf046e42a0a3a1a207803938 (diff) |
gentoo auto-resync : 04:12:2022 - 21:03:51
Diffstat (limited to 'gnome-extra/gnome-directory-thumbnailer')
-rw-r--r-- | gnome-extra/gnome-directory-thumbnailer/Manifest | 3 | ||||
-rw-r--r-- | gnome-extra/gnome-directory-thumbnailer/files/0.1.11-Update-for-gnome-desktop-43-API-change.patch | 37 | ||||
-rw-r--r-- | gnome-extra/gnome-directory-thumbnailer/gnome-directory-thumbnailer-0.1.11-r1.ebuild (renamed from gnome-extra/gnome-directory-thumbnailer/gnome-directory-thumbnailer-0.1.11.ebuild) | 12 |
3 files changed, 47 insertions, 5 deletions
diff --git a/gnome-extra/gnome-directory-thumbnailer/Manifest b/gnome-extra/gnome-directory-thumbnailer/Manifest index 463f9ed76ab0..e712ef3753cb 100644 --- a/gnome-extra/gnome-directory-thumbnailer/Manifest +++ b/gnome-extra/gnome-directory-thumbnailer/Manifest @@ -1,3 +1,4 @@ +AUX 0.1.11-Update-for-gnome-desktop-43-API-change.patch 1626 BLAKE2B a2f52749b901218354d7af8ef5cbb2416a3f439720d7aa62f543277a5d690088a7eae9da1c8a73ab894339de57a85dddee39e61de9e03242ac04414605e8a5f4 SHA512 8888c2fac6aea31a91b767abac7795b3981885141e79c321a80b5d92d032b225c5b21fbdc0984e80a789ae6d86eb72e3081a6591489469b389527d5f43f6b5a9 DIST gnome-directory-thumbnailer-0.1.11.tar.xz 278788 BLAKE2B 3e46f3daba581fc6e0e247521a3542207da61e6c8b7912b913ac3637427b8dde802876c1fdda79956b29036dbf08d7247c8452ac2edd7e0f13d6f35e9390692b SHA512 e66ec9855a2de58887425da1ab4f611471cb3f09418d43c24d1b47f4c05180688e37c6670c3c96b53478d7ed3c6a036b669fb129766870bad7fbca90cb726ff8 -EBUILD gnome-directory-thumbnailer-0.1.11.ebuild 493 BLAKE2B 5f27e89c10d2cee065e0506c1d6d00077c0f008f25f3fa8d3a56296b3daab70752dbc645c7eb5188e5889ca21eb315bdfa43750038e3cb3acd5bf5da137fe7b5 SHA512 8d6d4c46dcc1a30a687f8b400476ca95a65a7940b64c55323f570eee43a2fb32135c849ab22d93b3ebfa7dc1f9d06ca80a12ad4afaeb830bcf74258cdd99c420 +EBUILD gnome-directory-thumbnailer-0.1.11-r1.ebuild 575 BLAKE2B 0b8cca184cd574cf10ea6d4e4774c5b2e6cd0a942b2c4d74d6d662e7da4082003ac3d2785123ed809ab8cd5e43dd33eb3ba4bb50a192d2b1ede42074020637fb SHA512 9a2d99d72578196a443cc273048e91c955a6455cd9954df6bb99db409f27de0c1a3471b8af03d41faf238dcfc2edb07464181d2b2c2d265e45067345ff883164 MISC metadata.xml 368 BLAKE2B a44a75fff2612d19669f3c331b3d68c1f4da31313e587df9350fb73637098dc362a085f0aba9f4f1280031a4d90ad6b555f7246adca2ca8e8884398f05191718 SHA512 a67ca519ee1fec3f2c0a5c90d6bcb91fac38fdcd8cc4d81d8e70ff5e6559a781a5f282fc4208d8fd2037f012694863fa3b45f36474db87dca18b29062f19e521 diff --git a/gnome-extra/gnome-directory-thumbnailer/files/0.1.11-Update-for-gnome-desktop-43-API-change.patch b/gnome-extra/gnome-directory-thumbnailer/files/0.1.11-Update-for-gnome-desktop-43-API-change.patch new file mode 100644 index 000000000000..9094c07122d2 --- /dev/null +++ b/gnome-extra/gnome-directory-thumbnailer/files/0.1.11-Update-for-gnome-desktop-43-API-change.patch @@ -0,0 +1,37 @@ +https://bugs.gentoo.org/882471 +https://gitlab.gnome.org/GNOME/gnome-directory-thumbnailer/-/merge_requests/2 + +From 8b39714ff8fd5de6643b5fdcf7fb01da35b82334 Mon Sep 17 00:00:00 2001 +From: Matt Turner <mattst88@gmail.com> +Date: Sun, 4 Dec 2022 14:20:23 -0500 +Subject: [PATCH] Update for gnome-desktop-43 API change + +Fixes: https://gitlab.gnome.org/GNOME/gnome-directory-thumbnailer/-/issues/8 +--- + src/main.c | 4 ++++ + 1 file changed, 4 insertions(+) + +diff --git a/src/main.c b/src/main.c +index 64aa7da..c5c6d34 100644 +--- a/src/main.c ++++ b/src/main.c +@@ -373,12 +373,16 @@ copy_thumbnail_from_file (GnomeDesktopThumbnailFactory *factory, const gchar *fi + g_setenv ("GNOME_DIRECTORY_THUMBNAILER_RECURSION_LIMIT", new_recursion_limit_str, TRUE); + g_free (new_recursion_limit_str); + ++#if defined(GNOME_DESKTOP_PLATFORM_VERSION) && GNOME_DESKTOP_PLATFORM_VERSION >= 43 ++ pixbuf = gnome_desktop_thumbnail_factory_generate_thumbnail (factory, file_uri, file_mime_type, NULL, error); ++#else + pixbuf = gnome_desktop_thumbnail_factory_generate_thumbnail (factory, file_uri, file_mime_type); + if (pixbuf == NULL) { + /* gnome-desktop doesn't set an error so we have to. */ + g_debug ("Error generating thumbnail."); + g_set_error (error, G_FILE_ERROR, G_FILE_ERROR_NOENT, _("Error generating thumbnail for file ‘%s’."), file_uri); + } ++#endif + } else { + g_debug ("Didn’t generate thumbnail due to hitting the recursion limit."); + g_set_error (error, G_FILE_ERROR, G_FILE_ERROR_NOENT, _("Error generating thumbnail for file ‘%s’: recursion limit reached."), file_uri); +-- +2.37.4 + diff --git a/gnome-extra/gnome-directory-thumbnailer/gnome-directory-thumbnailer-0.1.11.ebuild b/gnome-extra/gnome-directory-thumbnailer/gnome-directory-thumbnailer-0.1.11-r1.ebuild index c040bc6b4468..415cfeb9c570 100644 --- a/gnome-extra/gnome-directory-thumbnailer/gnome-directory-thumbnailer-0.1.11.ebuild +++ b/gnome-extra/gnome-directory-thumbnailer/gnome-directory-thumbnailer-0.1.11-r1.ebuild @@ -1,7 +1,7 @@ -# Copyright 1999-2019 Gentoo Authors +# Copyright 1999-2022 Gentoo Authors # Distributed under the terms of the GNU General Public License v2 -EAPI=6 +EAPI=8 inherit gnome2 DESCRIPTION="Thumbnail generator for directories" @@ -9,16 +9,20 @@ HOMEPAGE="https://wiki.gnome.org/Projects/GnomeDirectoryThumbnailer" LICENSE="LGPL-2.1+" SLOT="0" -IUSE="" KEYWORDS="amd64 x86" +PATCHES=( + "${FILESDIR}"/${PV}-Update-for-gnome-desktop-43-API-change.patch +) + RDEPEND=" >=dev-libs/glib-2.35:2 >=x11-libs/gdk-pixbuf-2.36.5:2 >=gnome-base/gnome-desktop-2.2:3= x11-libs/gtk+:3 " -DEPEND="${RDEPEND} +DEPEND="${RDEPEND}" +BDEPEND=" >=dev-util/intltool-0.40 virtual/pkgconfig " |