summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJeroen Roovers <jer@gentoo.org>2020-01-05 13:50:28 +0100
committerJeroen Roovers <jer@gentoo.org>2020-01-05 14:01:36 +0100
commitbd980c1eabe3303cc1cfaf5651c4a4cdf0200cec (patch)
tree1bac3a048409a439ebb733b3a9628b89619bb8a8
parentmedia-gfx/imv: Set IUSE=+svg as per upstream default (diff)
downloadgentoo-bd980c1eabe3303cc1cfaf5651c4a4cdf0200cec.tar.gz
gentoo-bd980c1eabe3303cc1cfaf5651c4a4cdf0200cec.tar.bz2
gentoo-bd980c1eabe3303cc1cfaf5651c4a4cdf0200cec.zip
media-gfx/imv: Version 4.1.0
Package-Manager: Portage-2.3.84, Repoman-2.3.20 Signed-off-by: Jeroen Roovers <jer@gentoo.org>
-rw-r--r--media-gfx/imv/Manifest1
-rw-r--r--media-gfx/imv/imv-4.1.0.ebuild90
-rw-r--r--media-gfx/imv/metadata.xml7
3 files changed, 95 insertions, 3 deletions
diff --git a/media-gfx/imv/Manifest b/media-gfx/imv/Manifest
index d83dce4bc3a..00c3c5a3e09 100644
--- a/media-gfx/imv/Manifest
+++ b/media-gfx/imv/Manifest
@@ -1,2 +1,3 @@
DIST imv-2.1.3.tar.gz 27664 BLAKE2B f873863d897161675b4cfbcc3c4136eebd0176317f30d656dd4c7a92615c926d1a0410d6c80283bb3a25055f3a9b710fa0763ffb86ff63ed1dd919ad3f0dfe8c SHA512 0ecdaad9b4518c2107a14969cf9348542c2ef88707be7b2b5eed435915292687d63e4ebd29cb42297cbc3dfee408ec29fd019ad6ae4f0cd789753aad84aa8128
DIST imv-4.0.1.tar.gz 74982 BLAKE2B 5ff7f093307fdf6114e56f0e5d5a47a4320607eea12daa9a9c89c679f558b4d31f206f7eb03a8b0435a3f05974949029ebfc6e1b1fe4d7d2859bbd722ecb6366 SHA512 f946346638d4314956e86f0e7dfa38baf0ebbb80970f1738749e6c7b80642c2315256738b94ab04d45784c0930edadfc7cc339d2bcfd6eb80fd2e1e98b2d9b28
+DIST imv-4.1.0.tar.gz 77341 BLAKE2B d6735feba4d3e958db70eddea72bbbeb60731cf550680320448ba226ba74eb467617ad295f9094995e0bf31c99473f067ff41f16689ce21fb87d7a9fd2e0946a SHA512 92d7551bda55185b29724e90230dac608a82f4a45cd3cb9c7a5d261f65eede6dcdde78f5c16eecfc1242533ec8e155204189fab3cacf31ddc088707af5131b2a
diff --git a/media-gfx/imv/imv-4.1.0.ebuild b/media-gfx/imv/imv-4.1.0.ebuild
new file mode 100644
index 00000000000..3775566aaf5
--- /dev/null
+++ b/media-gfx/imv/imv-4.1.0.ebuild
@@ -0,0 +1,90 @@
+# Copyright 1999-2020 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=7
+inherit toolchain-funcs xdg-utils
+
+DESCRIPTION="Minimal image viewer designed for tiling window manager users"
+HOMEPAGE="https://github.com/eXeC64/imv"
+SRC_URI="https://github.com/eXeC64/${PN}/archive/v${PV}.tar.gz -> ${P}.tar.gz"
+
+LICENSE="MIT-with-advertising"
+SLOT="0"
+KEYWORDS="~amd64 ~x86"
+IUSE="X +freeimage jpeg libnsgif 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
+ X? (
+ x11-libs/pango
+ x11-libs/libX11
+ )
+ 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 )
+ 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
+}
+
+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_LIBNSGIF=$(usex libnsgif)
+ 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
+}
+
+pkg_postrm() {
+ xdg_desktop_database_update
+}
diff --git a/media-gfx/imv/metadata.xml b/media-gfx/imv/metadata.xml
index 4d23e1202de..39258bf23da 100644
--- a/media-gfx/imv/metadata.xml
+++ b/media-gfx/imv/metadata.xml
@@ -4,8 +4,9 @@
<maintainer type='person'><email>jer@gentoo.org</email></maintainer>
<use>
<flag name='freeimage'>Use <pkg>media-libs/freeimage</pkg> as image library</flag>
+<flag name='libnsgif'>Use <pkg>media-libs/libnsgif</pkg> as image library</flag>
</use>
- <upstream>
- <remote-id type="github">eXeC64/imv</remote-id>
- </upstream>
+<upstream>
+<remote-id type="github">eXeC64/imv</remote-id>
+</upstream>
</pkgmetadata>