# Copyright 1999-2008 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 # $Header: /var/cvsroot/gentoo-x86/media-plugins/kipi-plugins/kipi-plugins-0.1.4-r2.ebuild,v 1.2 2008/06/29 19:53:21 keytoaster Exp $ inherit kde eutils MY_P=${P/_/-} S=${WORKDIR}/${MY_P} DESCRIPTION="Plugins for the KDE Image Plugin Interface (libkipi)." HOMEPAGE="http://www.kipi-plugins.org/" SRC_URI="mirror://sourceforge/kipi/${MY_P}.tar.bz2" SLOT="0" LICENSE="GPL-2" KEYWORDS="~amd64 ~ppc ~sparc ~x86" IUSE="opengl gphoto2 ipod" DEPEND=">=media-libs/libkipi-0.1.5 >=media-libs/libkexiv2-0.1.5 >=media-libs/libkdcraw-0.1.1 gphoto2? ( >=media-libs/libgphoto2-2.3.1 ) >=media-libs/imlib2-1.1.0 >=media-gfx/imagemagick-6.2.4 >=media-video/mjpegtools-1.6.0 opengl? ( virtual/opengl ) >=media-libs/tiff-3.5 >=dev-libs/libxslt-1.1 ipod? ( >=media-libs/libgpod-0.4.2 )" RDEPEND="${DEPEND} media-sound/vorbis-tools virtual/mpg123" need-kde 3.5 pkg_setup(){ if ! built_with_use media-libs/imlib2 X ; then eerror "X support is required in media-libs/imlib2 in order to be able" eerror "to compile media-plugins/kipi-plugins. Please, re-emerge" eerror "media-libs/imlib2 with the 'X' USE flag enabled." die fi if ! built_with_use x11-libs/qt:3 opengl ; then eerror "OpenGL support is required in x11-libs/qt in order to be able" eerror "to compile media-plugins/kipi-plugins. Please, re-emerge" eerror "x11-libs/qt with the 'opengl' USE flag enabled." die fi } src_unpack() { kde_src_unpack # Fixes an automagic dependency on libgpod. cf bug 191195. epatch "${FILESDIR}/${P}-ipod-191195.patch" # remove configure script to trigger its rebuild during kde_src_compile rm -f "${S}"/configure # Set default for the -S option for images2mpeg to work correctly, bug #208133 epatch "${FILESDIR}/${PN}-default_chroma_opt.patch" } src_compile() { myconf="$(use_with opengl) $(use_with gphoto2) $(use_with ipod libgpod)" kde_src_compile all }