# Copyright 1999-2009 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 # $Header: $ EAPI=2 # ebuild for darktable by jo hanika (hanatos@gmail.com) inherit eutils autotools DESCRIPTION="Utility to organize and develop raw images" HOMEPAGE="http://darktable.sf.net/" SRC_URI="http://switch.dl.sourceforge.net/project/${PN}/${PN}/${PV}/${P}.tar.gz" LICENSE="GPL-3" SLOT="0" KEYWORDS="~amd64 ~x86" IUSE="gegl gnome gnome-keyring lensfun openmp" DEPEND=">=x11-libs/gtk+-2.18.0 >=gnome-base/libglade-2.6.3 >=dev-db/sqlite-3.6.11 >=x11-libs/cairo-1.8.6 gegl? ( >=media-libs/gegl-0.0.22 ) >=media-libs/lcms-1.17 >=media-libs/jpeg-6b-r8 >=media-libs/openexr-1.6 >=media-gfx/exiv2-0.18.1 >=media-libs/libpng-1.2.38 >=media-libs/libgphoto2-2.4.5 >=net-misc/curl-7.18 >=dev-libs/dbus-glib-0.80 >=dev-util/intltool-0.40.5 lensfun? ( >=media-libs/lensfun-0.2.4 ) gnome? ( >=gnome-base/gconf-2.26.0 ) gnome-keyring? ( >=gnome-base/gnome-keyring-2.28.0 ) >=media-libs/tiff-3.9.2" RDEPEND="${DEPEND}" src_configure() { eautoreconf econf $(use_enable gegl) $(use_enable gnome gconf) $(use_enable gnome-keyring gkeyring) $(use_enable lensfun) $(use_enable openmp) } src_install() { emake DESTDIR="${D}" install || die "emake install failed." dodoc README TODO } #pkg_postinst() { # export GCONF_CONFIG_SOURCE=xml::/etc/gconf/gconf.xml.defaults # einfo "Installing darktable GConf schemas" # ${ROOT}/usr/bin/gconftool-2 --makefile-install-rule ${S}/darktable.schemas 1>/dev/null #} #pkg_postrm() { # export GCONF_CONFIG_SOURCE=xml::/etc/gconf/gconf.xml.defaults # einfo "Uninstalling darktable GConf schemas" # ${ROOT}/usr/bin/gconftool-2 --makefile-uninstall-rule darktable.schemas 1>/dev/null #}