commit:     ef0c780588ef69995faeebcfa6419a4d4ae38de1
Author:     Nicolas PARLANT <nicolas.parlant <AT> parhuet <DOT> fr>
AuthorDate: Tue Jul  1 09:42:23 2025 +0000
Commit:     Sam James <sam <AT> gentoo <DOT> org>
CommitDate: Fri Jul  4 20:02:37 2025 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=ef0c7805

media-gfx/gpicview: add 0.3.1

move to lxde GH-repo
update description

deps :
add runtime deps inherit from gtk+
move gettext and intltool in BDEPEND
add optfeature for the support of various formats

use eautoreconf

patches from 0.2.5 are no longer required :
displaying images with gtk3 https://github.com/lxde/gpicview/commit/85f48d7
animated gifs https://github.com/lxde/gpicview/commit/124d207
missing return value https://github.com/lxde/gpicview/commit/f7f8e64

Closes: https://bugs.gentoo.org/925421
Signed-off-by: Nicolas PARLANT <nicolas.parlant <AT> parhuet.fr>
Part-of: https://github.com/gentoo/gentoo/pull/42836
Closes: https://github.com/gentoo/gentoo/pull/42836
Signed-off-by: Sam James <sam <AT> gentoo.org>

 media-gfx/gpicview/Manifest              |  1 +
 media-gfx/gpicview/gpicview-0.3.1.ebuild | 51 ++++++++++++++++++++++++++++++++
 media-gfx/gpicview/metadata.xml          |  3 +-
 3 files changed, 54 insertions(+), 1 deletion(-)

diff --git a/media-gfx/gpicview/Manifest b/media-gfx/gpicview/Manifest
index ba3411072b0e..ae696420337a 100644
--- a/media-gfx/gpicview/Manifest
+++ b/media-gfx/gpicview/Manifest
@@ -1 +1,2 @@
 DIST gpicview-0.2.5.tar.xz 349536 BLAKE2B 
c215e812693a30d55d3e606b9958d308b5d7f564ba0c3fc60e7606c492ec3ddd9997ae63f0865a6bebdf79c0a18e6a8b26a1e2c8d5dd7e2174d211130dbbe817
 SHA512 
afc7e67c7ae1252f9c1816ee46fe69e96ea7be9a60e03406a539f17b2e4f0e4b93a028c6f3f1c455f5433d6d7d78a58dcee2cb0ac91ea53093a21935bf454afd
+DIST gpicview-0.3.1.tar.gz 166302 BLAKE2B 
919321bf1d26ebf4199b5ae6db0cf81c8e9e2de83d885913e3f91ba1895346947b004d47cb4a42e4d7c46f55cd5d98d6e380a68adebd7ceb4b34478f5ec766b5
 SHA512 
15f6a3201067e0eb3b71492072f207e7b95e4c672cea358eca0bb71c404e9fd5e1e7d2fd28eda11965374c192a13b496f58fedea03799ea2b7aa80da66fcd812

diff --git a/media-gfx/gpicview/gpicview-0.3.1.ebuild 
b/media-gfx/gpicview/gpicview-0.3.1.ebuild
new file mode 100644
index 000000000000..4db6b47baa36
--- /dev/null
+++ b/media-gfx/gpicview/gpicview-0.3.1.ebuild
@@ -0,0 +1,51 @@
+# Copyright 1999-2025 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+inherit autotools optfeature xdg
+
+DESCRIPTION="Lightweight image viewer"
+HOMEPAGE="https://github.com/lxde/gpicview";
+SRC_URI="https://github.com/lxde/gpicview/archive/${PV}.tar.gz -> ${P}.tar.gz"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~ppc ~riscv ~x86"
+
+RDEPEND="
+       dev-libs/glib:2
+       media-libs/libjpeg-turbo:=
+       x11-libs/cairo
+       x11-libs/gdk-pixbuf:2
+       x11-libs/gtk+:3[X]
+       x11-libs/libX11
+"
+DEPEND="${RDEPEND}"
+BDEPEND="
+       >=dev-util/intltool-0.40
+       sys-devel/gettext
+       virtual/pkgconfig
+"
+
+# Changelog is not up-to-date
+# NEWS is empty
+DOCS=( AUTHORS )
+
+src_prepare() {
+       default
+
+       eautoreconf
+}
+
+src_configure() {
+       econf --enable-gtk3
+}
+
+pkg_postinst() {
+       xdg_pkg_postinst
+       optfeature "GIF support" gui-libs/gdk-pixbuf[gif]
+       optfeature "JPEG support" gui-libs/gdk-pixbuf[jpeg]
+       optfeature "TIFF support" gui-libs/gdk-pixbuf[tiff]
+       optfeature "WebP support" gui-libs/gdk-pixbuf-loader-webp
+}

diff --git a/media-gfx/gpicview/metadata.xml b/media-gfx/gpicview/metadata.xml
index b9095c9781d0..1cd070b124c1 100644
--- a/media-gfx/gpicview/metadata.xml
+++ b/media-gfx/gpicview/metadata.xml
@@ -3,6 +3,7 @@
 <pkgmetadata>
        <!-- maintainer-needed -->
        <upstream>
-               <remote-id type="sourceforge">lxde</remote-id>
+               <remote-id type="github">lxde/gpicview</remote-id>
+               <remote-id type="sourceforge">lxde</remote-id><!-- old -->
        </upstream>
 </pkgmetadata>

Reply via email to