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 3C839138334 for ; Mon, 16 Dec 2019 10:02:55 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 88DE7E087A; Mon, 16 Dec 2019 10:02:54 +0000 (UTC) Received: from smtp.gentoo.org (smtp.gentoo.org [140.211.166.183]) (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 701ECE087A for ; Mon, 16 Dec 2019 10:02:54 +0000 (UTC) Received: from oystercatcher.gentoo.org (unknown [IPv6:2a01:4f8:202:4333:225:90ff:fed9:fc84]) (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 6C9AA34D7F8 for ; Mon, 16 Dec 2019 10:02:53 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id EF4968CD for ; Mon, 16 Dec 2019 10:02:51 +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: <1576490570.26266f08e7936e4e44cf842669345c3c6425b686.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 X-VCS-Directories: media-gfx/imv/ X-VCS-Committer: jer X-VCS-Committer-Name: Jeroen Roovers X-VCS-Revision: 26266f08e7936e4e44cf842669345c3c6425b686 X-VCS-Branch: master Date: Mon, 16 Dec 2019 10:02:51 +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: 14f36815-2792-47b9-9d2d-7b026f04300b X-Archives-Hash: 19be9518ae8b829b244846f82ca85b72 commit: 26266f08e7936e4e44cf842669345c3c6425b686 Author: Jeroen Roovers gentoo org> AuthorDate: Mon Dec 16 09:59:50 2019 +0000 Commit: Jeroen Roovers gentoo org> CommitDate: Mon Dec 16 10:02:50 2019 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=26266f08 media-gfx/imv: Update live ebuild Package-Manager: Portage-2.3.82, Repoman-2.3.20 Signed-off-by: Jeroen Roovers gentoo.org> media-gfx/imv/imv-9999.ebuild | 69 ++++++++++++++++++++++++++++++++++++++----- 1 file changed, 61 insertions(+), 8 deletions(-) diff --git a/media-gfx/imv/imv-9999.ebuild b/media-gfx/imv/imv-9999.ebuild index 275366fe87f..927a92ad359 100644 --- a/media-gfx/imv/imv-9999.ebuild +++ b/media-gfx/imv/imv-9999.ebuild @@ -1,30 +1,83 @@ # Copyright 1999-2019 Gentoo Authors # Distributed under the terms of the GNU General Public License v2 -EAPI=6 - -inherit xdg-utils git-r3 +EAPI=7 +inherit git-r3 toolchain-funcs xdg-utils DESCRIPTION="Minimal image viewer designed for tiling window manager users" HOMEPAGE="https://github.com/eXeC64/imv" -EGIT_REPO_URI="https://github.com/eXeC64/imv.git" +EGIT_REPO_URI="https://github.com/eXeC64/imv" LICENSE="GPL-2+" SLOT="0" KEYWORDS="" -IUSE="test" +IUSE="X +freeimage jpeg png svg test tiff wayland" RESTRICT="!test? ( test )" +REQUIRED_USE=" + || ( X wayland ) +" RDEPEND=" !sys-apps/renameutils media-libs/fontconfig media-libs/libsdl2 media-libs/sdl2-ttf - media-libs/freeimage + X? ( + x11-libs/pango + x11-libs/libX11 + ) + freeimage? ( media-libs/freeimage ) + jpeg? ( media-libs/libjpeg-turbo ) + png? ( media-libs/libpng ) + svg? ( gnome-base/librsvg ) + tiff? ( media-libs/tiff ) + wayland? ( dev-libs/wayland ) +" +BDEPEND=" + app-text/asciidoc + test? ( dev-util/cmocka ) " +DEPEND=" + ${RDEPEND} +" + +src_prepare() { + default + sed -i -e 's|pkg-config|$(PKG_CONFIG)|g' Makefile || die +} -DEPEND="${RDEPEND} - test? ( dev-util/cmocka )" +src_configure() { + tc-export PKG_CONFIG + local WINDOWS + if use X; then + if ! use wayland; then + WINDOWS=x11 + else + WINDOWS=all + fi + else + if use wayland; then + WINDOWS=wayland + fi + fi + + BACKENDS=( + BACKEND_FREEIMAGE=$(usex freeimage) + BACKEND_JPEG=$(usex jpeg) + BACKEND_LIBPNG=$(usex png) + BACKEND_LIBRSVG=$(usex svg) + BACKEND_LIBTIFF=$(usex tiff) + WINDOWS=${WINDOWS} + ) +} + +src_compile() { + emake ${BACKENDS[@]} +} + +src_install() { + emake ${BACKENDS[@]} DESTDIR="${D}" install +} pkg_postinst() { xdg_desktop_database_update