mirror of
https://github.com/gentoo-mirror/guru.git
synced 2026-10-12 17:51:11 -04:00
media-gfx/swayimg: add 5.6
release with support for lua5.3/lua5.4 and video storyboard (ffmpeg) Signed-off-by: Nicolas PARLANT <nicolas.parlant@parhuet.fr>
This commit is contained in:
4 files changed
+156
No files matched your search
@@ -1,3 +1,4 @@
|
||||
DIST swayimg-4.7.tar.gz 793940 BLAKE2B 854690eb0769830e5833db6ce83729adb0b08cdae46b833ef00e0be6fb18d7b196bd4cd76d506df72fec8ca0304247dd4655bbb5e10a41a8da4f2215d0faa1d1 SHA512 77384dc33702594a95f0e961b0677a695071e89a98bffdbc008331ddb143b228295dd0107733d3ddd44499cd5a32e6d61d94efe4ae9d9d45999be12fa9364b6e
|
||||
DIST swayimg-5.4.tar.gz 1002027 BLAKE2B 6ab787d32e2bc469880e73bc6bf8ed89d6d4151b43091eaeee6d7d95aaf31b2f3e529a21e5d7190097abc14a289dd7351ea104ec440b5e542906dadb0deffb14 SHA512 7a69c17d57c1f2a8e7ae2c19cb134d5194182a9dd403d5520d5d8fc133ba14a6aef04493e01526dfbcbdc27697a77eb1940baf7355c384075bd547fb1af7d571
|
||||
DIST swayimg-5.5.tar.gz 1004837 BLAKE2B e3c2b760033830a51f973f2ee70c8dec60f487c998c6900322540c3783e06398794acda7a310d047796666587f147c1a2fdeeb941844880d28534003474e307d SHA512 824d973d5381027164d42afab33b8c2bb8babe843e28a5d468206dc0dc33c59d152f67fee54bd8406f4a9296770591aee7d9639b1a1251c030da0c6ce7ab32e6
|
||||
DIST swayimg-5.6.tar.gz 1016512 BLAKE2B f0595a69b550bd211590e63e58769f191c5165c789302280086a79383cef8dad7b0399dd5df85b370088ac4c5025fe8f1e7c2b90596a664e1b0188bd41c5ba0c SHA512 b835c23571b8ab4b3e3e641657e89d167c751937309350ef193726b575eb43cee079d1d4b70437c554244b0931281e0f7cba088dedb2a95fb9ab4ad4e945f757
|
||||
@@ -0,0 +1,12 @@
|
||||
PR merged https://github.com/artemsen/swayimg/pull/570.patch
|
||||
xkb: Add missing header for libcxx-23
|
||||
--- a/src/xkb.cpp
|
||||
+++ b/src/xkb.cpp
|
||||
@@ -8,6 +8,7 @@
|
||||
#include <unistd.h>
|
||||
|
||||
#include <cassert>
|
||||
+#include <cstdlib>
|
||||
#include <tuple>
|
||||
|
||||
Xkb::Xkb()
|
||||
@@ -13,6 +13,7 @@
|
||||
<flag name="drm">Enable support for Direct Rendering Manager (DRM UI)</flag>
|
||||
<flag name="exr">Enable support for EXR image format</flag>
|
||||
<flag name="sixel">Enable support for Sixel image format</flag>
|
||||
<flag name="ffmpeg">Enable support for video storyboard using <pkg>media-video/ffmpeg</pkg></flag>
|
||||
<flag name="wayland">Enable Wayland UI and some compositors (Sway and Hyprland only)</flag>
|
||||
</use>
|
||||
</pkgmetadata>
|
||||
@@ -0,0 +1,142 @@
|
||||
# Copyright 2023-2025 Gentoo Authors
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=8
|
||||
|
||||
LUA_COMPAT=( lua5-{3..4} luajit )
|
||||
inherit eapi9-ver lua-single meson xdg
|
||||
|
||||
DESCRIPTION="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 drm exif ffmpeg gif heif jpeg jpeg2k jpegxl png raw sixel svg test tiff +wayland webp X"
|
||||
REQUIRED_USE="
|
||||
${LUA_REQUIRED_USE}
|
||||
|| ( drm wayland )
|
||||
"
|
||||
RESTRICT="!test? ( test )"
|
||||
|
||||
# disable exr until #966735 is fixed
|
||||
# exr? ( >=media-libs/openexr-3.4:= )
|
||||
# $(meson_feature exr)
|
||||
RDEPEND="
|
||||
${LUA_DEPS}
|
||||
media-libs/fontconfig
|
||||
media-libs/freetype
|
||||
x11-libs/libxkbcommon
|
||||
avif? ( >=media-libs/libavif-1.0:= )
|
||||
bash-completion? ( app-shells/bash-completion )
|
||||
drm? ( x11-libs/libdrm )
|
||||
exif? ( media-gfx/exiv2:= )
|
||||
ffmpeg? ( >=media-video/ffmpeg-6.1:= )
|
||||
gif? ( media-libs/giflib:= )
|
||||
heif? ( media-libs/libheif:= )
|
||||
jpeg? ( media-libs/libjpeg-turbo:= )
|
||||
jpeg2k? ( media-libs/openjpeg:= )
|
||||
jpegxl? ( media-libs/libjxl:= )
|
||||
png? ( media-libs/libpng:= )
|
||||
raw? ( media-libs/libraw:= )
|
||||
sixel? ( media-libs/libsixel )
|
||||
svg? (
|
||||
dev-libs/glib:2
|
||||
>=gnome-base/librsvg-2.46:2
|
||||
x11-libs/cairo[X=]
|
||||
)
|
||||
tiff? ( media-libs/tiff:= )
|
||||
wayland? ( dev-libs/wayland )
|
||||
webp? ( media-libs/libwebp:= )
|
||||
"
|
||||
DEPEND="
|
||||
${RDEPEND}
|
||||
svg? ( X? ( x11-base/xorg-proto ) )
|
||||
test? ( dev-cpp/gtest )
|
||||
wayland? ( >=dev-libs/wayland-protocols-1.35 )
|
||||
"
|
||||
BDEPEND="
|
||||
wayland? ( dev-util/wayland-scanner )
|
||||
"
|
||||
|
||||
PATCHES=(
|
||||
"${FILESDIR}"/${PN}-5.1-precompiled_doc.patch
|
||||
|
||||
# merged
|
||||
"${FILESDIR}"/${P}-missing_include.patch
|
||||
)
|
||||
|
||||
DOCS=( CONFIG.md README.md USAGE.md )
|
||||
|
||||
src_prepare() {
|
||||
default
|
||||
|
||||
if use test; then
|
||||
if ! use ffmpeg; then
|
||||
sed -e '/video = {.*$/,/^ },$/d' \
|
||||
-i extra/example.lua || die
|
||||
fi
|
||||
if ! use raw; then
|
||||
sed -e '/raw = {.*$/,/^ },$/d' \
|
||||
-i extra/example.lua || die
|
||||
fi
|
||||
fi
|
||||
}
|
||||
|
||||
src_configure() {
|
||||
local emesonargs=(
|
||||
$(meson_feature avif)
|
||||
$(meson_feature drm)
|
||||
$(meson_feature exif)
|
||||
$(meson_feature ffmpeg video)
|
||||
$(meson_feature gif)
|
||||
$(meson_feature heif)
|
||||
$(meson_feature jpeg)
|
||||
$(meson_feature jpeg2k jp2)
|
||||
$(meson_feature jpegxl jxl)
|
||||
$(meson_feature png)
|
||||
$(meson_feature raw)
|
||||
$(meson_feature sixel)
|
||||
$(meson_feature svg)
|
||||
$(meson_feature test tests)
|
||||
$(meson_feature tiff)
|
||||
$(meson_feature wayland)
|
||||
$(meson_feature wayland compositor)
|
||||
$(meson_feature webp)
|
||||
$(meson_feature bash-completion bash)
|
||||
-Dliblua=lua
|
||||
-Dversion=${PV}
|
||||
-Ddesktop=true
|
||||
-Ddoc=false
|
||||
-Dlicense=false
|
||||
-Dluameta=true
|
||||
-Dman=true
|
||||
-Dzsh=enabled
|
||||
)
|
||||
meson_src_configure
|
||||
}
|
||||
|
||||
src_test() {
|
||||
local skip_tests=()
|
||||
# Set LC_COLLATE=en_US.utf8 if available for ImageListTest.SortAlphaUnicode
|
||||
if locale -a | grep -iq "en_US.utf8"; then
|
||||
local -x LC_COLLATE="en_US.utf8"
|
||||
else
|
||||
skip_tests+=( ImageListTest.SortAlphaUnicode )
|
||||
fi
|
||||
|
||||
local -x GTEST_FILTER=$(echo -$(IFS=:; echo "${skip_tests[*]}"))
|
||||
meson_src_test
|
||||
}
|
||||
|
||||
pkg_postinst() {
|
||||
xdg_pkg_postinst
|
||||
|
||||
if ver_replacing -lt 5.0; then
|
||||
elog "The Swayimg configuration file is now a Lua script."
|
||||
elog "${EROOT}/usr/share/swayimg/swayimg.lua contains a description of Lua bindings."
|
||||
elog "${EROOT}/usr/share/swayimg/example.lua contains a detailed example."
|
||||
elog "The new user config file is ~/.config/swayimg/init.lua"
|
||||
fi
|
||||
}
|
||||
Reference in new issue
Block a user