# Copyright 1999-2014 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 # $Header: /var/cvsroot/gentoo-x86/media-plugins/gimp-lensfun/gimp-lensfun-0.2.3.ebuild,v 1.1 2014/05/30 13:15:03 swift Exp $ EAPI="5" inherit eutils toolchain-funcs MY_PN="focusblur" DESCRIPTION="Lensfun plugin for GIMP" HOMEPAGE="http://registry.gimp.org/node/1444" SRC_URI="http://registry.gimp.org/files/${P#gimp-}.tar.bz2 -> ${P}.tar.bz2" LICENSE="GPL-3" SLOT="0" KEYWORDS="~amd64 ~x86" IUSE="fftw threads" RDEPEND="media-gfx/gimp fftw? ( sci-libs/fftw:3.0 )" DEPEND="${RDEPEND} virtual/pkgconfig" S=${WORKDIR}/${MY_PN}-${PV} src_prepare() { epatch "${FILESDIR}"/${P}-glib-include.patch } src_configure() { econf \ $(use_with fftw fftw3) \ $(use_enable threads mp) \ LIBS=-lm } src_install() { exeinto $(gimptool-2.0 --gimpplugindir)/plug-ins doexe src/${MY_PN} }