From 3cf7c3ef441822c889356fd1812ebf2944a59851 Mon Sep 17 00:00:00 2001 From: V3n3RiX Date: Tue, 25 Aug 2020 10:45:55 +0100 Subject: gentoo resync : 25.08.2020 --- media-gfx/imv/imv-9999.ebuild | 61 ++++++++++++++++++++----------------------- 1 file changed, 28 insertions(+), 33 deletions(-) (limited to 'media-gfx/imv/imv-9999.ebuild') diff --git a/media-gfx/imv/imv-9999.ebuild b/media-gfx/imv/imv-9999.ebuild index 986d27dd3255..65f50d9221c2 100644 --- a/media-gfx/imv/imv-9999.ebuild +++ b/media-gfx/imv/imv-9999.ebuild @@ -2,16 +2,16 @@ # Distributed under the terms of the GNU General Public License v2 EAPI=7 -inherit git-r3 toolchain-funcs xdg-utils +inherit git-r3 meson xdg-utils DESCRIPTION="Minimal image viewer designed for tiling window manager users" +LICENSE="MIT-with-advertising" HOMEPAGE="https://github.com/eXeC64/imv" EGIT_REPO_URI="https://github.com/eXeC64/imv" -LICENSE="MIT-with-advertising" -SLOT="0" KEYWORDS="" -IUSE="X +freeimage jpeg libnsgif png +svg test tiff wayland" +SLOT="0" +IUSE="X +freeimage +png jpeg svg gif heif test tiff wayland" RESTRICT="!test? ( test )" REQUIRED_USE=" || ( X wayland ) @@ -27,15 +27,18 @@ RDEPEND=" virtual/glu x11-libs/libX11 x11-libs/libxcb - x11-libs/libxkbcommon + x11-libs/libxkbcommon[X] x11-libs/pango ) - freeimage? ( media-libs/freeimage ) - jpeg? ( media-libs/libjpeg-turbo ) - libnsgif? ( media-libs/libnsgif ) - png? ( media-libs/libpng ) - svg? ( gnome-base/librsvg ) - tiff? ( media-libs/tiff ) + freeimage? ( media-libs/freeimage[png?,jpeg?,tiff?] ) + !freeimage? ( + jpeg? ( media-libs/libjpeg-turbo ) + png? ( media-libs/libpng ) + tiff? ( media-libs/tiff ) + ) + gif? ( media-libs/libnsgif ) + heif? ( media-libs/libheif ) + svg? ( >=gnome-base/librsvg-2.44 ) wayland? ( dev-libs/wayland ) " BDEPEND=" @@ -46,13 +49,7 @@ DEPEND=" ${RDEPEND} " -src_prepare() { - default - sed -i -e 's|pkg-config|$(PKG_CONFIG)|g' Makefile || die -} - src_configure() { - tc-export PKG_CONFIG local WINDOWS if use X; then if ! use wayland; then @@ -66,23 +63,21 @@ src_configure() { fi fi - BACKENDS=( - BACKEND_FREEIMAGE=$(usex freeimage) - BACKEND_JPEG=$(usex jpeg) - BACKEND_LIBNSGIF=$(usex libnsgif) - BACKEND_LIBPNG=$(usex png) - BACKEND_LIBRSVG=$(usex svg) - BACKEND_LIBTIFF=$(usex tiff) - WINDOWS=${WINDOWS} - ) -} - -src_compile() { - emake ${BACKENDS[@]} -} + if ! use test; then + sed -i -e '/^dep_cmocka/,/^endforeach$/d' meson.build || die + fi -src_install() { - emake ${BACKENDS[@]} DESTDIR="${D}" install + local emesonargs=( + $(meson_feature freeimage) + $(meson_feature gif libnsgif) + $(meson_feature heif libheif) + $(meson_feature svg librsvg) + $(usex freeimage -Dlibjpeg=disabled -Dlibjpeg=enabled) + $(usex freeimage -Dlibpng=disabled -Dlibjpeg=enabled) + $(usex freeimage -Dlibtiff=disabled -Dlibjpeg=enabled) + -Dwindows=$WINDOWS + ) + meson_src_configure } pkg_postinst() { -- cgit v1.2.3