1 # Copyright 1999-2019 Gentoo Authors
2 # Distributed under the terms of the GNU General Public License v2
6 inherit desktop xdg-utils gnome2-utils savedconfig toolchain-funcs
8 if [[ ${PV} == "9999" ]] ; then
9 EGIT_REPO_URI="https://github.com/muennich/sxiv.git"
12 SRC_URI="https://github.com/muennich/sxiv/archive/v${PV}.tar.gz -> ${P}.tar.gz"
13 KEYWORDS="amd64 ~ppc64 x86"
16 DESCRIPTION="Simple (or small or suckless) X Image Viewer"
17 HOMEPAGE="https://github.com/muennich/sxiv/"
21 IUSE="exif gif +jpeg +png"
24 exif? ( media-libs/libexif )
25 gif? ( media-libs/giflib:0= )
26 media-libs/imlib2[X,gif?,jpeg?,png?]
32 PATCHES=( "${FILESDIR}"/${P}-makefile.patch )
35 restore_config config.h
40 emake V=1 CC="$(tc-getCC)" HAVE_LIBEXIF=$(usex exif 1 0) HAVE_GIFLIB=$(usex gif 1 0)
44 emake DESTDIR="${ED}" PREFIX=/usr install
45 emake -C icon DESTDIR="${ED}" PREFIX=/usr install
57 xdg_desktop_database_update
58 gnome2_icon_cache_update
62 xdg_desktop_database_update
63 gnome2_icon_cache_update