mirror of
https://github.com/gentoo-mirror/guru.git
synced 2025-04-10 12:08:43 -04:00
media-gfx/swayimg: drop 3.7
Signed-off-by: Nicolas PARLANT <nicolas.parlant@parhuet.fr>
This commit is contained in:
parent
73214bf819
commit
500e3c4ebe
@ -1,3 +1,2 @@
|
||||
DIST swayimg-3.7.tar.gz 754482 BLAKE2B 028ddd5f8348d7323ed8acf8ea2839466bfc599b433b7528292af23eb8cb250afd3f381f9634de806f64967e1a7a1cb7ee5044145dfeb6ad4bac09204cef00ec SHA512 bbd58c6600faeab456550f539ef1989b6163ad048641d76c8c1b68ac9bfafa077bdb46581cc5ceae17d179255072cf27ebc0d012fd3e55005e110d6d0856298a
|
||||
DIST swayimg-3.8.tar.gz 754719 BLAKE2B c41b22912499db8bbc0de5b778280d84826b4cfc974d036a8ba7c6bc2a1b54ed87667c7ae11eb4c9ddccc56f753a0ce1256d0c4516e2a3cd72f28a40551759a3 SHA512 3075eb4f48d11708ff0610a7551c38a0b09d65210c56b267410e688f595711ee5357d27a48ce4a8c3e0fe9a4204881f30363579e5686f0979ce59d0277185303
|
||||
DIST swayimg-3.9.tar.gz 756909 BLAKE2B 09dccc87a07ef154db792a441d5e8265b0d04432f70c2510eb64df8d0f971aa2b012915e2520c52336eb111ef60d333b7fdf24b8b578ea54e93de4ba27e74c2d SHA512 66d97c6695eb030d1013f28bc4fdbb210d26fe602f178fe32e20084f84d8b8e1934012d93e6239234dadbcb2715e61762eadb2350fb6725788b8e70acbea0b11
|
||||
|
@ -1,25 +0,0 @@
|
||||
https://bugs.gentoo.org/948480
|
||||
https://github.com/artemsen/swayimg/pull/243
|
||||
Fix build without libpng.
|
||||
--- a/src/thumbnail.c
|
||||
+++ b/src/thumbnail.c
|
||||
@@ -378,7 +378,9 @@ const struct thumbnail* thumbnail_get(size_t index)
|
||||
|
||||
void thumbnail_remove(size_t index)
|
||||
{
|
||||
+#ifdef THUMBNAIL_PSTORE
|
||||
pstore_reset(false);
|
||||
+#endif // THUMBNAIL_PSTORE
|
||||
|
||||
list_for_each(ctx.thumbs, struct thumbnail, it) {
|
||||
if (it->image->index == index) {
|
||||
@@ -392,7 +394,9 @@ void thumbnail_remove(size_t index)
|
||||
|
||||
void thumbnail_clear(size_t min_id, size_t max_id)
|
||||
{
|
||||
+#ifdef THUMBNAIL_PSTORE
|
||||
pstore_reset(false);
|
||||
+#endif // THUMBNAIL_PSTORE
|
||||
|
||||
if (min_id == IMGLIST_INVALID && max_id == IMGLIST_INVALID) {
|
||||
list_for_each(ctx.thumbs, struct thumbnail, it) {
|
@ -1,77 +0,0 @@
|
||||
# Copyright 2023-2025 Gentoo Authors
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=8
|
||||
|
||||
inherit meson xdg
|
||||
|
||||
DESCRIPTION="A lightweight image viewer for Wayland display servers"
|
||||
HOMEPAGE="https://github.com/artemsen/swayimg"
|
||||
SRC_URI="https://github.com/artemsen/${PN}/archive/refs/tags/v${PV}.tar.gz -> ${P}.tar.gz"
|
||||
|
||||
LICENSE="MIT"
|
||||
SLOT="0"
|
||||
KEYWORDS="~amd64"
|
||||
IUSE="avif bash-completion exif exr gif heif jpeg jpegxl png sixel svg test tiff webp X"
|
||||
RESTRICT="!test? ( test )"
|
||||
|
||||
RDEPEND="
|
||||
dev-libs/json-c:=
|
||||
dev-libs/wayland
|
||||
media-libs/fontconfig
|
||||
media-libs/freetype
|
||||
x11-libs/libxkbcommon
|
||||
avif? ( media-libs/libavif:= )
|
||||
bash-completion? ( app-shells/bash-completion )
|
||||
exif? ( media-libs/libexif )
|
||||
exr? ( media-libs/openexr:= )
|
||||
gif? ( media-libs/giflib:= )
|
||||
heif? ( media-libs/libheif:= )
|
||||
jpeg? ( media-libs/libjpeg-turbo:= )
|
||||
jpegxl? ( media-libs/libjxl:= )
|
||||
png? ( media-libs/libpng:= )
|
||||
sixel? ( media-libs/libsixel )
|
||||
svg? (
|
||||
dev-libs/glib:2
|
||||
gnome-base/librsvg:2
|
||||
x11-libs/cairo[X=]
|
||||
)
|
||||
tiff? ( media-libs/tiff:= )
|
||||
webp? ( media-libs/libwebp:= )"
|
||||
DEPEND="${RDEPEND}
|
||||
dev-libs/wayland-protocols
|
||||
svg? ( X? ( x11-base/xorg-proto ) )
|
||||
"
|
||||
BDEPEND="
|
||||
dev-util/wayland-scanner
|
||||
test? ( dev-cpp/gtest )
|
||||
"
|
||||
|
||||
PATCHES=(
|
||||
# bug #948480
|
||||
"${FILESDIR}/${P}-fix-build-without-libpng.patch"
|
||||
)
|
||||
|
||||
src_configure() {
|
||||
local emesonargs=(
|
||||
$(meson_feature avif)
|
||||
$(meson_feature exif)
|
||||
$(meson_feature exr)
|
||||
$(meson_feature gif)
|
||||
$(meson_feature heif)
|
||||
$(meson_feature jpeg)
|
||||
$(meson_feature jpegxl jxl)
|
||||
$(meson_feature png)
|
||||
$(meson_feature sixel)
|
||||
$(meson_feature svg)
|
||||
$(meson_feature test tests)
|
||||
$(meson_feature tiff)
|
||||
$(meson_feature webp)
|
||||
$(meson_feature bash-completion bash)
|
||||
-Dversion=${PV}
|
||||
-Ddesktop=true
|
||||
-Dman=true
|
||||
-Dzsh=enabled
|
||||
)
|
||||
meson_src_configure
|
||||
}
|
Loading…
x
Reference in New Issue
Block a user