summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDiego Elio Pettenò <flameeyes@gentoo.org>2007-01-16 22:00:59 +0000
committerDiego Elio Pettenò <flameeyes@gentoo.org>2007-01-16 22:00:59 +0000
commitbc1944e221bae852fd7b6d28de2be50ff5aa6cdc (patch)
treeeb181f77f5455c168de6ec7c4f6a52d68d304113 /kde-base/pykde/pykde-3.5.6.ebuild
parentBump to 3.5.6 (prerelease). (diff)
downloadgentoo-2-bc1944e221bae852fd7b6d28de2be50ff5aa6cdc.tar.gz
gentoo-2-bc1944e221bae852fd7b6d28de2be50ff5aa6cdc.tar.bz2
gentoo-2-bc1944e221bae852fd7b6d28de2be50ff5aa6cdc.zip
Bump to 3.5.6 (prerelease).
(Portage version: 2.1.2)
Diffstat (limited to 'kde-base/pykde/pykde-3.5.6.ebuild')
-rw-r--r--kde-base/pykde/pykde-3.5.6.ebuild59
1 files changed, 59 insertions, 0 deletions
diff --git a/kde-base/pykde/pykde-3.5.6.ebuild b/kde-base/pykde/pykde-3.5.6.ebuild
new file mode 100644
index 000000000000..ed4aa62b651a
--- /dev/null
+++ b/kde-base/pykde/pykde-3.5.6.ebuild
@@ -0,0 +1,59 @@
+# Copyright 1999-2007 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/kde-base/pykde/pykde-3.5.6.ebuild,v 1.1 2007/01/16 22:00:59 flameeyes Exp $
+
+KMNAME=kdebindings
+KMMODULE=python
+KM_MAKEFILESREV=1
+MAXKDEVER=$PV
+KM_DEPRANGE="$PV $MAXKDEVER"
+
+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.2.1
+ =dev-python/PyQt-3.14.1-r2
+ kde-base/kdelibs
+ !dev-python/pykde"
+
+src_unpack() {
+ kde-meta_src_unpack
+ cd ${S}/python/pykde
+ epatch "${FILESDIR}/configure.py.diff"
+ epatch "${FILESDIR}/pykde-3.5.5-python-2.5-compat.diff"
+}
+
+src_compile() {
+ cd ${S}/python/pykde
+ distutils_python_version
+
+ local myconf="-d ${ROOT}/usr/$(get_libdir)/python${PYVER}/site-packages \
+ -v ${ROOT}/usr/share/sip \
+ -k $(kde-config --prefix) \
+ -t ${S}/python/pykde"
+
+ use debug && myconf="${myconf} -u"
+ myconf="${myconf} -i"
+
+ python configure.py ${myconf} || die "configure failed"
+ emake || die
+}
+
+src_install() {
+ cd ${S}/python/pykde
+ make DESTDIR=${D} install || die
+ find ${D}/usr/share/sip -not -type d -not -iname *.sip -exec rm '{}' \;
+
+ 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
+}