From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits)) (No client certificate requested) by finch.gentoo.org (Postfix) with ESMTPS id 0735715802F for ; Thu, 23 Feb 2023 22:31:54 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 2A38BE07D1; Thu, 23 Feb 2023 22:31:53 +0000 (UTC) Received: from smtp.gentoo.org (mail.gentoo.org [IPv6:2001:470:ea4a:1:5054:ff:fec7:86e4]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id EB2EDE07D1 for ; Thu, 23 Feb 2023 22:31:52 +0000 (UTC) Received: from oystercatcher.gentoo.org (oystercatcher.gentoo.org [148.251.78.52]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits)) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id 35744340CC7 for ; Thu, 23 Feb 2023 22:31:52 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id 9697675 for ; Thu, 23 Feb 2023 22:31:50 +0000 (UTC) From: "Piotr Karbowski" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Piotr Karbowski" Message-ID: <1677191504.0ae4067e5df5b00d1d950f082d5ff6c3c92f5ea3.slashbeast@gentoo> Subject: [gentoo-commits] repo/gentoo:master commit in: media-gfx/gpicview/, media-gfx/gpicview/files/ X-VCS-Repository: repo/gentoo X-VCS-Files: media-gfx/gpicview/files/gpicview-fix-animated-gifs.patch media-gfx/gpicview/files/gpicview-main_win_open-dummy-return.patch media-gfx/gpicview/gpicview-0.2.5-r3.ebuild X-VCS-Directories: media-gfx/gpicview/ media-gfx/gpicview/files/ X-VCS-Committer: slashbeast X-VCS-Committer-Name: Piotr Karbowski X-VCS-Revision: 0ae4067e5df5b00d1d950f082d5ff6c3c92f5ea3 X-VCS-Branch: master Date: Thu, 23 Feb 2023 22:31:50 +0000 (UTC) Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-commits@lists.gentoo.org X-Auto-Response-Suppress: DR, RN, NRN, OOF, AutoReply X-Archives-Salt: 6cc972f7-a70b-487f-8eb5-982e2d58d8cf X-Archives-Hash: a809c6f3fa51383421b347da72db686f commit: 0ae4067e5df5b00d1d950f082d5ff6c3c92f5ea3 Author: Piotr Karbowski gentoo org> AuthorDate: Thu Feb 23 22:25:44 2023 +0000 Commit: Piotr Karbowski gentoo org> CommitDate: Thu Feb 23 22:31:44 2023 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=0ae4067e media-gfx/gpicview: 0.2.5-r3 revbump; gif and clang fixes; EAPI bump; jpeg dep bump. Closes: https://bugs.gentoo.org/889256 Closes: https://bugs.gentoo.org/830898 Closes: https://bugs.gentoo.org/699528 Signed-off-by: Piotr Karbowski gentoo.org> .../files/gpicview-fix-animated-gifs.patch | 13 +++++++++ .../gpicview-main_win_open-dummy-return.patch | 13 +++++++++ media-gfx/gpicview/gpicview-0.2.5-r3.ebuild | 31 ++++++++++++++++++++++ 3 files changed, 57 insertions(+) diff --git a/media-gfx/gpicview/files/gpicview-fix-animated-gifs.patch b/media-gfx/gpicview/files/gpicview-fix-animated-gifs.patch new file mode 100644 index 000000000000..88867fbe31ad --- /dev/null +++ b/media-gfx/gpicview/files/gpicview-fix-animated-gifs.patch @@ -0,0 +1,13 @@ +diff --git a/src/image-view.c b/src/image-view.c +index b367f2a..1368620 100644 +--- a/src/image-view.c ++++ b/src/image-view.c +@@ -343,7 +343,7 @@ void image_view_clear( ImageView* iv ) + + void image_view_set_pixbuf( ImageView* iv, GdkPixbuf* pixbuf ) + { +- if( pixbuf != iv->pix ) ++ + { + image_view_clear( iv ); + if( G_LIKELY(pixbuf) ) diff --git a/media-gfx/gpicview/files/gpicview-main_win_open-dummy-return.patch b/media-gfx/gpicview/files/gpicview-main_win_open-dummy-return.patch new file mode 100644 index 000000000000..0f4e3bde251c --- /dev/null +++ b/media-gfx/gpicview/files/gpicview-main_win_open-dummy-return.patch @@ -0,0 +1,13 @@ +diff --git a/src/main-win.c b/src/main-win.c +index 32f6433..bf5feba 100644 +--- a/src/main-win.c ++++ b/src/main-win.c +@@ -378,7 +378,7 @@ gboolean main_win_open( MainWin* mw, const char* file_path, ZoomMode zoom ) + image_list_sort_by_name( mw->img_list, GTK_SORT_DESCENDING ); + if (image_list_get_first(mw->img_list)) + main_win_open(mw, image_list_get_current_file_path(mw->img_list), zoom); +- return; ++ return 1; + } + + diff --git a/media-gfx/gpicview/gpicview-0.2.5-r3.ebuild b/media-gfx/gpicview/gpicview-0.2.5-r3.ebuild new file mode 100644 index 000000000000..36eaa0fd8f83 --- /dev/null +++ b/media-gfx/gpicview/gpicview-0.2.5-r3.ebuild @@ -0,0 +1,31 @@ +# Copyright 1999-2023 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +inherit xdg + +DESCRIPTION="A Simple and Fast Image Viewer for X" +HOMEPAGE="http://lxde.sourceforge.net/gpicview" +SRC_URI="mirror://sourceforge/lxde/${P}.tar.xz" + +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~ppc ~riscv ~x86" + +RDEPEND="media-libs/libjpeg-turbo + x11-libs/gtk+:3[X]" +DEPEND="${RDEPEND} + >=dev-util/intltool-0.40 + sys-devel/gettext + virtual/pkgconfig" + +PATCHES=( + "${FILESDIR}/Fix-displaying-images-with-GTK3.patch" + "${FILESDIR}/${PN}-main_win_open-dummy-return.patch" + "${FILESDIR}/${PN}-fix-animated-gifs.patch" +) + +src_configure() { + econf --enable-gtk3 +}