1 # Copyright 1999-2020 Gentoo Authors
2 # Distributed under the terms of the GNU General Public License v2
5 inherit linux-info toolchain-funcs xdg-utils
7 if [[ ${PV} == 9999 ]]; then
8 EGIT_REPO_URI="https://github.com/phillipberndt/pqiv.git"
11 SRC_URI="https://github.com/phillipberndt/pqiv/archive/${PV}.tar.gz -> ${P}.tar.gz"
15 DESCRIPTION="powerful GTK 3 based command-line image viewer with a minimal UI"
16 HOMEPAGE="https://github.com/phillipberndt/pqiv http://www.pberndt.com/Programme/Linux/pqiv/"
20 IUSE="archive ffmpeg imagemagick kernel_linux pdf postscript webp"
23 >=dev-libs/glib-2.32:2
26 archive? ( app-arch/libarchive:0= )
27 ffmpeg? ( media-video/ffmpeg:0= )
28 imagemagick? ( media-gfx/imagemagick:0= )
29 pdf? ( app-text/poppler:0= )
30 postscript? ( app-text/libspectre:0= )
31 webp? ( media-libs/libwebp:0= )
42 if use kernel_linux; then
43 CONFIG_CHECK="~INOTIFY_USER"
49 local backends="gdkpixbuf"
50 use archive && backends+=",archive,archive_cbx"
51 use ffmpeg && backends+=",libav"
52 use imagemagick && backends+=",wand"
53 use pdf && backends+=",poppler"
54 use postscript && backends+=",spectre"
55 use webp && backends+=",webp"
58 --backends-build=shared \
59 --backends=${backends} \
60 --prefix="${EPREFIX}/usr" \
61 --libdir="${EPREFIX}/usr/$(get_libdir)" \
67 emake VERBOSE=1 CFLAGS="${CFLAGS}"
71 xdg_desktop_database_update
75 xdg_desktop_database_update