# Copyright 1999-2006 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 # $Header: $ inherit eutils distutils MY_P="PyKDE-${PV/*_pre/snapshot}" MY_P=${MY_P/_/} S=${WORKDIR}/${MY_P} DESCRIPTION="set of Python bindings for the KDE libs" SRC_URI="http://www.riverbankcomputing.com/Downloads/PyKDE3/${MY_P}.tar.gz" HOMEPAGE="http://www.riverbankcomputing.co.uk/pykde/" SLOT="0" LICENSE="GPL-2" KEYWORDS="x86 ~ppc" IUSE="debug doc examples" RDEPEND=">=dev-python/sip-4.3.2 >=dev-python/PyQt-3.15.1 kde-base/kdelibs !kde-base/pykde" src_compile() { cd ${S} distutils_python_version local myconf="-d ${ROOT}/usr/$(get_libdir)/python${PYVER}/site-packages \ -v ${ROOT}/usr/share/sip \ -k $(kde-config --prefix)" use debug && myconf="${myconf} -u" python configure.py ${myconf} emake || die } src_unpack() { unpack ${A} epatch "${FILESDIR}/pykde-3.15.1_pre20060122.patch" } src_install() { einstall DESTDIR=${D} || die find ${D}/usr/share/sip -not -type d -not -iname *.sip -exec rm '{}' \; dodoc AUTHORS ChangeLog COPYING INSTALL 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 }