From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by finch.gentoo.org (Postfix) with ESMTPS id CA0FC13835A for ; Sun, 16 Aug 2020 18:01:53 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id B4101E085B; Sun, 16 Aug 2020 18:01:52 +0000 (UTC) Received: from smtp.gentoo.org (dev.gentoo.org [IPv6:2001:470:ea4a:1:5054:ff:fec7:86e4]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id 8E30CE085B for ; Sun, 16 Aug 2020 18:01:52 +0000 (UTC) Received: from oystercatcher.gentoo.org (oystercatcher.gentoo.org [148.251.78.52]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id 4414334F038 for ; Sun, 16 Aug 2020 18:01:51 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id ADA7D2D1 for ; Sun, 16 Aug 2020 18:01:49 +0000 (UTC) From: "Jeroen Roovers" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Jeroen Roovers" Message-ID: <1597600904.b3953d9995275aad3f34d2c389aade2ab61b9b7c.jer@gentoo> Subject: [gentoo-commits] repo/gentoo:master commit in: media-gfx/imv/ X-VCS-Repository: repo/gentoo X-VCS-Files: media-gfx/imv/imv-9999.ebuild media-gfx/imv/metadata.xml X-VCS-Directories: media-gfx/imv/ X-VCS-Committer: jer X-VCS-Committer-Name: Jeroen Roovers X-VCS-Revision: b3953d9995275aad3f34d2c389aade2ab61b9b7c X-VCS-Branch: master Date: Sun, 16 Aug 2020 18:01:49 +0000 (UTC) Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-commits@lists.gentoo.org X-Auto-Response-Suppress: DR, RN, NRN, OOF, AutoReply X-Archives-Salt: 7a99b300-2d2b-4d03-8446-a615f214807b X-Archives-Hash: f8dfe1c607ae16aa4861e7eb28e381c2 commit: b3953d9995275aad3f34d2c389aade2ab61b9b7c Author: Jeroen Roovers gentoo org> AuthorDate: Sun Aug 16 18:00:19 2020 +0000 Commit: Jeroen Roovers gentoo org> CommitDate: Sun Aug 16 18:01:44 2020 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=b3953d99 media-gfx/imv: Add USE=heif, use meson.eclass Package-Manager: Portage-3.0.2, Repoman-2.3.23 Bug: https://bugs.gentoo.org/show_bug.cgi?id=710344 Closes: https://bugs.gentoo.org/713682 Signed-off-by: Jeroen Roovers gentoo.org> media-gfx/imv/imv-9999.ebuild | 61 ++++++++++++++++++++----------------------- media-gfx/imv/metadata.xml | 1 + 2 files changed, 29 insertions(+), 33 deletions(-) diff --git a/media-gfx/imv/imv-9999.ebuild b/media-gfx/imv/imv-9999.ebuild index 986d27dd325..65f50d9221c 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() { diff --git a/media-gfx/imv/metadata.xml b/media-gfx/imv/metadata.xml index 39258bf23da..e61730462a7 100644 --- a/media-gfx/imv/metadata.xml +++ b/media-gfx/imv/metadata.xml @@ -4,6 +4,7 @@ jer@gentoo.org Use media-libs/freeimage as image library +Use media-libs/libheif as image library Use media-libs/libnsgif as image library