1 # Copyright 1999-2015 Gentoo Foundation
2 # Distributed under the terms of the GNU General Public License v2
6 inherit autotools base eutils
8 DESCRIPTION="A lightweight GTK image viewer forked from GQview"
9 HOMEPAGE="http://www.geeqie.org"
10 # Grab from tag snapshot: http://www.geeqie.org/cgi-bin/gitweb.cgi?p=geeqie.git
11 SRC_URI="https://dev.gentoo.org/~voyageur/distfiles/${P}.tar.gz"
15 KEYWORDS="amd64 ~ppc x86"
16 IUSE="doc exif jpeg lcms lirc lua tiff xmp"
18 RDEPEND="x11-libs/gtk+:2
20 doc? ( app-text/gnome-doc-utils )
21 jpeg? ( virtual/jpeg:0 )
22 lcms? ( media-libs/lcms:2 )
23 lirc? ( app-misc/lirc )
24 lua? ( >=dev-lang/lua-5.1:= )
25 xmp? ( >=media-gfx/exiv2-0.17:=[xmp] )
26 !xmp? ( exif? ( >=media-gfx/exiv2-0.17 ) )
27 tiff? ( media-libs/tiff:0 )"
33 S=${WORKDIR}/${PN}-${PN}
36 "${FILESDIR}"/${P}-fix-lcms2-integration.patch
37 "${FILESDIR}"/${P}-fix_version.patch
49 # Force disable experimental stuff
50 local myconf="--disable-dependency-tracking
51 --with-readmedir=/usr/share/doc/${PF}
61 if use exif || use xmp; then
62 myconf="${myconf} --enable-exiv2"
64 myconf="${myconf} --disable-exiv2"
71 emake DESTDIR="${D}" install
72 rm -f "${D}/usr/share/doc/${MY_P}/COPYING"
76 elog "Some plugins may require additional packages"
77 elog "- Image rotate plugin: media-gfx/fbida (JPEG), media-gfx/imagemagick (TIFF/PNG)"
78 elog "- RAW images plugin: media-gfx/ufraw"