1 # Copyright 1999-2015 Gentoo Foundation
2 # Distributed under the terms of the GNU General Public License v2
6 inherit autotools eutils fdo-mime gnome2-utils toolchain-funcs
8 DESCRIPTION="RAW Image format viewer and GIMP plugin"
9 HOMEPAGE="http://ufraw.sourceforge.net/"
10 SRC_URI="mirror://sourceforge/${PN}/${P}.tar.gz"
14 KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86 ~amd64-fbsd ~x86-freebsd ~amd64-linux ~x86-linux ~x64-solaris ~x86-solaris"
15 IUSE="contrast fits gimp gnome gtk openmp timezone"
17 REQUIRED_USE="gimp? ( gtk )"
21 >=media-gfx/exiv2-0.11:0=
23 >=media-libs/lensfun-0.2.5:=
27 fits? ( sci-libs/cfitsio:0= )
28 gnome? ( >=gnome-base/gconf-2 )
29 gtk? ( >=x11-libs/gtk+-2.6:2
30 >=media-gfx/gtkimageview-1.5 )
31 gimp? ( >=media-gfx/gimp-2 )
37 epatch "${FILESDIR}"/${PN}-0.17-cfitsio-automagic.patch
43 $(use_enable contrast) \
44 $(use_with fits cfitsio) \
46 $(use_enable gnome mime) \
48 $(use_enable openmp) \
49 $(use_enable timezone dst-correction)
53 emake AR="$(tc-getAR)"
57 emake DESTDIR="${D}" schemasdir=/etc/gconf/schemas install
69 fdo-mime_mime_database_update
70 fdo-mime_desktop_database_update
77 fdo-mime_desktop_database_update
78 fdo-mime_mime_database_update