aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFilip Kobierski <fkobi@pm.me>2024-08-27 17:35:52 +0200
committerFilip Kobierski <fkobi@pm.me>2024-08-27 17:35:52 +0200
commit5fa3eae310621fbb98d338603c371c7f1bc41c36 (patch)
treef6f81b64465af4e0413b308610455050b14e4d61 /media-gfx
parentsys-apps/dnf5: fix build for >=dev-cpp/toml11-4 (diff)
downloadguru-5fa3eae310621fbb98d338603c371c7f1bc41c36.tar.gz
guru-5fa3eae310621fbb98d338603c371c7f1bc41c36.tar.bz2
guru-5fa3eae310621fbb98d338603c371c7f1bc41c36.zip
media-gfx/swayimg: add 3.2
Signed-off-by: Filip Kobierski <fkobi@pm.me>
Diffstat (limited to 'media-gfx')
-rw-r--r--media-gfx/swayimg/Manifest1
-rw-r--r--media-gfx/swayimg/swayimg-3.2.ebuild64
2 files changed, 65 insertions, 0 deletions
diff --git a/media-gfx/swayimg/Manifest b/media-gfx/swayimg/Manifest
index 1f427d4d7..716ad9fdd 100644
--- a/media-gfx/swayimg/Manifest
+++ b/media-gfx/swayimg/Manifest
@@ -1 +1,2 @@
DIST swayimg-2.2.tar.gz 313340 BLAKE2B 51c7bb01df02469a9b089cf9b83bcade78247e0c8d60031ce5a540a184f87b00fd7cce2732d0d99f256f1023a6d3ed4a79eb2e5dcc6f9e1097ee209048616491 SHA512 d7923c8bcb09c4a271dec41374df02e936d847f268d5e8e7dc9e50ebb639fc52592bc5a602e8df702bd536320c90e3277c699ebfa63d33327706c4350466e681
+DIST swayimg-3.2.tar.gz 665154 BLAKE2B 6ece41b6f57190babb7236acdfc74b4855bc67b8e32916af8c8c34e482ba427d77a6fb242995457ef44bf7757cb381252a480cb0ef24dfc8916558448e17454e SHA512 9355e4b66e602b9cd6aabce834bdfd138952e8605fb60b7a78aef39fa1a6bf2ae83a04d745e7f8e133b3f94cdcd7361cf6faff55865ed8d243f62ba7e683b893
diff --git a/media-gfx/swayimg/swayimg-3.2.ebuild b/media-gfx/swayimg/swayimg-3.2.ebuild
new file mode 100644
index 000000000..cbd1ce764
--- /dev/null
+++ b/media-gfx/swayimg/swayimg-3.2.ebuild
@@ -0,0 +1,64 @@
+
+# Copyright 2023-2024 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 exif exr gif heif jpeg jpegxl png svg tiff webp bash-completion"
+
+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:= )
+ svg? (
+ dev-libs/glib:2
+ gnome-base/librsvg:2
+ x11-libs/cairo
+ )
+ tiff? ( media-libs/tiff:= )
+ webp? ( media-libs/libwebp:= )"
+DEPEND="${RDEPEND}
+ dev-libs/wayland-protocols"
+BDEPEND="dev-util/wayland-scanner"
+
+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 svg)
+ $(meson_feature tiff)
+ $(meson_feature webp)
+ $(meson_feature bash-completion bash)
+ -Dversion=${PV}
+ -Ddesktop=true
+ -Dman=true
+ -Dzsh=enabled
+ )
+ meson_src_configure
+}