# Copyright 1999-2008 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 # $Header: /var/cvsroot/gentoo-x86/kde-base/pykde/pykde-3.5.9.ebuild,v 1.2 2008/07/25 19:28:17 carlo Exp $ KMNAME=kdebindings KMMODULE=python KM_MAKEFILESREV=1 EAPI="1" inherit kde-meta distutils DESCRIPTION="PyKDE is a set of Python bindings for kdelibs." SLOT="0" LICENSE="GPL-2" KEYWORDS="~amd64 ~ppc ~ppc64 ~x86" IUSE="debug doc examples" DEPEND="~dev-python/sip-4.6 ~dev-python/PyQt-3.17.2 kde-base/kdelibs:3.5 || ( kde-base/konsole:3.5 kde-base/kdebase:3.5 ) !dev-python/pykde" RDEPEND="${DEPEND}" src_unpack() { kde-meta_src_unpack cd "${S}/python/pykde" epatch "${FILESDIR}/${PN}-3.5.8-python-2.5-compat.diff" mkdir -p kparts ln -s "${PREFIX}"/$(get_libdir)/kde3/libkonsolepart* ./kparts/ } src_compile() { cd "${S}/python/pykde" distutils_python_version local myconf="-d /usr/$(get_libdir)/python${PYVER}/site-packages \ -v /usr/share/sip \ -k $(kde-config --prefix)" use debug && myconf="${myconf} -u" myconf="${myconf} -i" python configure.py ${myconf} || die "configure failed" emake || die "emake failed" } src_install() { cd "${S}/python/pykde" dodir "${PREFIX}"/$(get_libdir) sed -i -e "s:/lib/:/$(get_libdir)/:g" Makefile for X in dcop kdecore kdefx kdeui kio kresources kabc kutils kfile kparts khtml kspell kdeprint kmdi ; do sed -i -e '/strip $(DESTDIR).*/d' ${X}/Makefile done emake DESTDIR="${D}" install || die "emake install failed" find "${D}/usr/share/sip" -not -type d -not -iname *.sip -delete dodoc AUTHORS ChangeLog NEWS README THANKS use doc && dohtml -r doc/* if use examples ; then cp -r examples "${D}/usr/share/doc/${PF}" cp -r templates "${D}/usr/share/doc/${PF}" fi }