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@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@gentoo.org>
This commit is contained in:
Nicolas PARLANT 2025-07-01 11:42:23 +02:00 committed by Sam James
parent d905b33fc3
commit ef0c780588
No known key found for this signature in database
GPG Key ID: 738409F520DF9190
3 changed files with 54 additions and 1 deletions

View File

@ -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

View File

@ -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
}

View File

@ -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>