]> Netolish git repositories - gentoo-repo.git/commitdiff
Bump new version 5.4
authorJiří Netolický <netolish@netolish.cz>
Thu, 25 Jun 2026 09:31:42 +0000 (11:31 +0200)
committerJiří Netolický <netolish@netolish.cz>
Fri, 26 Jun 2026 16:03:58 +0000 (18:03 +0200)
gui-apps/swayimg/swayimg-5.4.ebuild [new file with mode: 0644]

diff --git a/gui-apps/swayimg/swayimg-5.4.ebuild b/gui-apps/swayimg/swayimg-5.4.ebuild
new file mode 100644 (file)
index 0000000..98b7046
--- /dev/null
@@ -0,0 +1,69 @@
+
+EAPI=8
+
+inherit meson xdg-utils
+#
+DESCRIPTION="Image viewer for Sway/Wayland"
+
+HOMEPAGE="https://github.com/artemsen/swayimg"
+
+SRC_URI="https://github.com/artemsen/swayimg/archive/refs/tags/v${PV}.tar.gz -> ${P}.tar.gz"
+
+LICENSE="MIT"
+
+SLOT="0"
+
+KEYWORDS="~amd64"
+
+IUSE="wayland avif gif heif jpeg jpegxl openexr png raw sixel svg tiff webp"
+
+RDEPEND="
+    avif? ( media-libs/libavif:= )
+       heif? ( media-libs/libheif:= )
+       jpeg? ( media-libs/libjpeg-turbo:= )
+       jpegxl? ( media-libs/libjxl:= )
+       openexr? ( media-libs/openexr:= )
+       raw? ( media-libs/libraw:= )
+       png? ( media-libs/libpng:= )
+       sixel? ( media-libs/libsixel:= )
+       svg? ( gnome-base/librsvg:= )
+       tiff? ( media-libs/tiff:= )
+       webp? ( media-libs/libwebp:= )
+"
+
+DEPEND="${RDEPEND}"
+
+src_configure() {
+       sed -i "s/'doc' \/ 'swayimg'/'doc' \/ 'swayimg-${PV}'/" meson.build
+       local emesonargs=(
+               $(meson_feature avif)
+               $(meson_feature gif)
+               $(meson_feature heif)
+               $(meson_feature jpeg)
+               $(meson_feature png)
+               $(meson_feature raw)
+               $(meson_feature svg)
+               $(meson_feature tiff)
+               $(meson_feature webp)
+               $(meson_feature sixel)
+       )
+       meson_src_configure
+}
+
+src_compile() {
+       meson_src_compile
+}
+
+src_install() {
+       meson_install
+}
+
+pkg_postinst() {
+       xdg_icon_cache_update
+       xdg_desktop_database_update
+}
+
+pkg_postrm() {
+       xdg_icon_cache_update
+       xdg_desktop_database_update
+}