diff options
author | Ionen Wolkens <ionen@gentoo.org> | 2024-02-20 18:03:33 -0500 |
---|---|---|
committer | Ionen Wolkens <ionen@gentoo.org> | 2024-02-20 18:20:55 -0500 |
commit | 7316b165cdd3a49a8781f21a5fe7dd893ebc0302 (patch) | |
tree | d295b32077f94058a489ed92febde82df0c93cd7 /media-gfx/imv | |
parent | mail-filter/rspamd: sync live (diff) | |
download | gentoo-7316b165cdd3a49a8781f21a5fe7dd893ebc0302.tar.gz gentoo-7316b165cdd3a49a8781f21a5fe7dd893ebc0302.tar.bz2 gentoo-7316b165cdd3a49a8781f21a5fe7dd893ebc0302.zip |
media-gfx/imv: add 4.5.0
Signed-off-by: Ionen Wolkens <ionen@gentoo.org>
Diffstat (limited to 'media-gfx/imv')
-rw-r--r-- | media-gfx/imv/Manifest | 1 | ||||
-rw-r--r-- | media-gfx/imv/imv-4.5.0.ebuild | 88 |
2 files changed, 89 insertions, 0 deletions
diff --git a/media-gfx/imv/Manifest b/media-gfx/imv/Manifest index e0446825429c..34f402d633b0 100644 --- a/media-gfx/imv/Manifest +++ b/media-gfx/imv/Manifest @@ -1 +1,2 @@ DIST imv-4.4.0.tar.gz 80360 BLAKE2B c598bb270ed57562f1c1b9a56f42676a7c8390c976ed74405228da572b000a85bf69e51f1bbfa6d554a481debc092995fe5222ba1e8b0b029b72395a8b8f329b SHA512 ddc0740022183a5467a0815ca623d2204b26449fee14b00c3468d06dbba3b5c3314b04a582bbac6075205f8d58cc24f157e283ce1ce3d34ecf0a9bdc497ab7f1 +DIST imv-4.5.0.tar.gz 82559 BLAKE2B 100174071049ee711a868832ea297cc7fd43450145db9e71a631afb97d7d77574f37501b749734f47b3f2699d159ed05e5159fd9060c6f0a5de18b92708d9e9c SHA512 5a192e1721b4752ba98de23e4a709904f43cce6954d1bc4a8feb5fb4921b46d497915fb7b2885cf87a65983fe2727c856d6c0c8b0cca2906e4b069e4a4f9c417 diff --git a/media-gfx/imv/imv-4.5.0.ebuild b/media-gfx/imv/imv-4.5.0.ebuild new file mode 100644 index 000000000000..51d558ef4fe1 --- /dev/null +++ b/media-gfx/imv/imv-4.5.0.ebuild @@ -0,0 +1,88 @@ +# Copyright 1999-2024 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +inherit meson xdg + +DESCRIPTION="Minimal image viewer designed for tiling window manager users" +HOMEPAGE="https://sr.ht/~exec64/imv/" +SRC_URI="https://git.sr.ht/~exec64/imv/archive/v${PV}.tar.gz -> ${P}.tar.gz" +S=${WORKDIR}/${PN}-v${PV} + +LICENSE="MIT" +SLOT="0" +KEYWORDS="~amd64 ~arm64 ~x86" +IUSE="+X +freeimage gif heif icu jpeg jpegxl png svg test tiff wayland" +REQUIRED_USE="|| ( X wayland )" +RESTRICT="!test? ( test )" + +# bug #922496 wrt nsgif, kept for now but USE can be masked if old nsgif +# removal is wanted (freeimage still allows non-animated gif display) +RDEPEND=" + dev-libs/glib:2 + dev-libs/inih + media-libs/libglvnd[X?] + x11-libs/cairo + x11-libs/libxkbcommon[X?] + x11-libs/pango + X? ( + x11-libs/libX11 + x11-libs/libxcb:= + ) + freeimage? ( media-libs/freeimage ) + gif? ( <media-libs/libnsgif-1:= ) + heif? ( media-libs/libheif:= ) + icu? ( dev-libs/icu:= ) + !icu? ( >=dev-libs/libgrapheme-2:= ) + jpeg? ( media-libs/libjpeg-turbo:= ) + jpegxl? ( media-libs/libjxl:= ) + png? ( media-libs/libpng:= ) + svg? ( >=gnome-base/librsvg-2.44:2 ) + tiff? ( media-libs/tiff:= ) + wayland? ( dev-libs/wayland ) + !sys-apps/renameutils +" +DEPEND=" + ${RDEPEND} + X? ( x11-base/xorg-proto ) + test? ( dev-util/cmocka ) +" +BDEPEND=" + app-text/asciidoc + wayland? ( dev-util/wayland-scanner ) +" + +PATCHES=( + "${FILESDIR}"/${PN}-4.3.1_p20211221-animated-gif.patch +) + +src_prepare() { + default + + # if wayland-only, don't automagic on libGL and force libOpenGL + if use !X; then + sed -i "/dependency('gl'/{s/'gl'/'opengl'/;s/false/true/}" meson.build || die + fi + + # glu isn't used by anything + sed -i "/dependency('glu')/d" meson.build || die +} + +src_configure() { + local emesonargs=( + $(meson_feature freeimage) + $(meson_feature gif libnsgif) + $(meson_feature heif libheif) + $(meson_feature jpeg libjpeg) + $(meson_feature jpegxl libjxl) + $(meson_feature png libpng) + $(meson_feature svg librsvg) + $(meson_feature test) + $(meson_feature tiff libtiff) + -Dunicode=$(usex icu{,} grapheme) + -Dwindows=$(usex X $(usex wayland all x11) wayland) + ) + + meson_src_configure +} |