# Copyright 1999-2004 Gentoo Technologies, Inc. # Distributed under the terms of the GNU General Public License v2 # $Header: $ inherit eutils distutils MY_P=PyKDE-${PV/_/} S=${WORKDIR}/${MY_P} DESCRIPTION="set of Python bindings for the KDE libs" SRC_URI="http://www.river-bank.demon.co.uk/download/PyKDE2/${MY_P}.tar.gz" HOMEPAGE="http://www.riverbankcomputing.co.uk/pykde/" SLOT="0" LICENSE="GPL-2" KEYWORDS="~x86" IUSE="debug doc kjs" DEPEND="virtual/glibc sys-devel/libtool virtual/python >=dev-python/sip-3.10.1 >=dev-python/PyQt-3.11 <=kde-base/kdelibs-3.2.2" src_unpack() { unpack ${A} cd ${S}/sip/kdecore epatch ${FILESDIR}/kmacroexpander.sip.diff } src_compile() { cd ${S} distutils_python_version local myconf="-d ${D}usr/lib/python${PYVER}/site-packages \ -v ${D}usr/share/sip \ -c" use debug && myconf="${myconf} -r -u" use kjs && myconf="${myconf} -m" python configure.py ${myconf} make || die } src_install() { make DESTDIR=${D} install || die use kjs || rm -rf sip/kjs find ./ -iname *.sip -exec cp -p {} ${D}usr/share/sip/.{} \; dodoc AUTHORS BUGS ChangeLog COPYING DETAILS INSTALL NEWS README THANKS use doc && ( cp -r examples ${D}/usr/share/doc/${PF} cp -r templates ${D}/usr/share/doc/${PF} ) }