diff options
author | Wulf Krueger <philantrop@gentoo.org> | 2007-10-29 07:39:00 +0000 |
---|---|---|
committer | Wulf Krueger <philantrop@gentoo.org> | 2007-10-29 07:39:00 +0000 |
commit | 439dadc2930c460b0491789667553a2ef053de57 (patch) | |
tree | 4c59ab04141301fdabb49668f4b2798edcc30a42 /kde-base/pykde | |
parent | Fix for recent glib that changes the type of the gtype typedef (diff) | |
download | gentoo-2-439dadc2930c460b0491789667553a2ef053de57.tar.gz gentoo-2-439dadc2930c460b0491789667553a2ef053de57.tar.bz2 gentoo-2-439dadc2930c460b0491789667553a2ef053de57.zip |
Added a patch for Python 2.5 compatibility and some other fixes.
(Portage version: 2.1.3.15)
Diffstat (limited to 'kde-base/pykde')
-rw-r--r-- | kde-base/pykde/ChangeLog | 6 | ||||
-rw-r--r-- | kde-base/pykde/files/pykde-3.5.8-python-2.5-compat.diff | 223 | ||||
-rw-r--r-- | kde-base/pykde/pykde-3.5.8.ebuild | 22 |
3 files changed, 245 insertions, 6 deletions
diff --git a/kde-base/pykde/ChangeLog b/kde-base/pykde/ChangeLog index 2c31a993b811..0b2cdbcac3b8 100644 --- a/kde-base/pykde/ChangeLog +++ b/kde-base/pykde/ChangeLog @@ -1,6 +1,10 @@ # ChangeLog for kde-base/pykde # Copyright 1999-2007 Gentoo Foundation; Distributed under the GPL v2 -# $Header: /var/cvsroot/gentoo-x86/kde-base/pykde/ChangeLog,v 1.33 2007/10/27 14:11:11 philantrop Exp $ +# $Header: /var/cvsroot/gentoo-x86/kde-base/pykde/ChangeLog,v 1.34 2007/10/29 07:38:59 philantrop Exp $ + + 29 Oct 2007; Wulf C. Krueger <philantrop@gentoo.org> + +files/pykde-3.5.8-python-2.5-compat.diff, pykde-3.5.8.ebuild: + Added a patch for Python 2.5 compatibility and some other fixes. 27 Oct 2007; Wulf C. Krueger <philantrop@gentoo.org> pykde-3.5.8.ebuild: Removed the obsolete patch. Makes bug 196900 a duplicate of bug 164027. diff --git a/kde-base/pykde/files/pykde-3.5.8-python-2.5-compat.diff b/kde-base/pykde/files/pykde-3.5.8-python-2.5-compat.diff new file mode 100644 index 000000000000..0bac32549609 --- /dev/null +++ b/kde-base/pykde/files/pykde-3.5.8-python-2.5-compat.diff @@ -0,0 +1,223 @@ +Nur in PyKDE-3.16.0.py25: dcop. +diff -ru PyKDE-3.16.0/sip/kdecore/bytearray.sip PyKDE-3.16.0.py25/sip/kdecore/bytearray.sip +--- PyKDE-3.16.0/sip/kdecore/bytearray.sip 2006-09-22 07:53:14.000000000 +0200 ++++ PyKDE-3.16.0.py25/sip/kdecore/bytearray.sip 2006-12-23 15:42:13.000000000 +0100 +@@ -633,7 +633,7 @@ + QMap<QCString,DCOPRef> *cppmap = new QMap<QCString,DCOPRef>; + + PyObject *aelem, *belem; +- int pos = 0; ++ SIP_SSIZE_T pos = 0; + QCString *acpp; + DCOPRef *bcpp; + +@@ -717,7 +717,7 @@ + QMap<QString,DCOPRef> *cppmap = new QMap<QString,DCOPRef>; + + PyObject *aelem, *belem; +- int pos = 0; ++ SIP_SSIZE_T pos = 0; + QString *acpp; + DCOPRef *bcpp; + +diff -ru PyKDE-3.16.0/sip/kdecore/kaccel.sip PyKDE-3.16.0.py25/sip/kdecore/kaccel.sip +--- PyKDE-3.16.0/sip/kdecore/kaccel.sip 2006-09-22 05:11:16.000000000 +0200 ++++ PyKDE-3.16.0.py25/sip/kdecore/kaccel.sip 2006-12-23 15:42:22.000000000 +0100 +@@ -209,7 +209,7 @@ + QMap<int,QString> *map = new QMap<int,QString>; + + PyObject *key, *value; +- int pos = 0; ++ SIP_SSIZE_T pos = 0; + int iKey; + QString *sData; + +diff -ru PyKDE-3.16.0/sip/kdecore/kcompletion.sip PyKDE-3.16.0.py25/sip/kdecore/kcompletion.sip +--- PyKDE-3.16.0/sip/kdecore/kcompletion.sip 2006-09-22 05:11:16.000000000 +0200 ++++ PyKDE-3.16.0.py25/sip/kdecore/kcompletion.sip 2006-12-23 15:42:31.000000000 +0100 +@@ -201,7 +201,7 @@ + QMap<KCompletionBase::KeyBindingType,KShortcut> *kbmap = new QMap<KCompletionBase::KeyBindingType,KShortcut>; + + PyObject *key, *value; +- int pos = 0; ++ SIP_SSIZE_T pos = 0; + KShortcut *cValue; + int iserr; + +diff -ru PyKDE-3.16.0/sip/kdecore/kconfigdata.sip PyKDE-3.16.0.py25/sip/kdecore/kconfigdata.sip +--- PyKDE-3.16.0/sip/kdecore/kconfigdata.sip 2006-09-22 05:11:16.000000000 +0200 ++++ PyKDE-3.16.0.py25/sip/kdecore/kconfigdata.sip 2006-12-23 15:42:39.000000000 +0100 +@@ -146,7 +146,7 @@ + KEntryMap *cppmap = new KEntryMap; + + PyObject *aelem, *belem; +- int pos = 0; ++ SIP_SSIZE_T pos = 0; + KEntryKey *acpp; + KEntry *bcpp; + +diff -ru PyKDE-3.16.0/sip/kdecore/kconfig.sip PyKDE-3.16.0.py25/sip/kdecore/kconfig.sip +--- PyKDE-3.16.0/sip/kdecore/kconfig.sip 2006-09-22 05:11:16.000000000 +0200 ++++ PyKDE-3.16.0.py25/sip/kdecore/kconfig.sip 2006-12-23 15:42:45.000000000 +0100 +@@ -158,7 +158,7 @@ + QMap<QString,QString> *cppmap = new QMap<QString,QString>; + + PyObject *aelem, *belem; +- int pos = 0; ++ SIP_SSIZE_T pos = 0; + QString *acpp; + QString *bcpp; + +diff -ru PyKDE-3.16.0/sip/kdecore/kmacroexpander.sip PyKDE-3.16.0.py25/sip/kdecore/kmacroexpander.sip +--- PyKDE-3.16.0/sip/kdecore/kmacroexpander.sip 2006-09-22 05:11:16.000000000 +0200 ++++ PyKDE-3.16.0.py25/sip/kdecore/kmacroexpander.sip 2006-12-23 15:42:57.000000000 +0100 +@@ -169,7 +169,7 @@ + QMap<QChar,QString> *map = new QMap<QChar,QString>; + + PyObject *key, *value; +- int pos = 0; ++ SIP_SSIZE_T pos = 0; + QChar *cKey; + QString *sData; + +@@ -251,7 +251,7 @@ + QMap<QString, QStringList> *map = new QMap<QString, QStringList>; + + PyObject *key, *value; +- int pos = 0; ++ SIP_SSIZE_T pos = 0; + QString *sKey; + QStringList *slData; + +@@ -334,7 +334,7 @@ + QMap<QChar,QStringList> *map = new QMap<QChar,QStringList>; + + PyObject *key, *value; +- int pos = 0; ++ SIP_SSIZE_T pos = 0; + QChar *cKey; + QStringList *slData; + +diff -ru PyKDE-3.16.0/sip/kdecore/ktimezones.sip PyKDE-3.16.0.py25/sip/kdecore/ktimezones.sip +--- PyKDE-3.16.0/sip/kdecore/ktimezones.sip 2006-09-22 05:11:16.000000000 +0200 ++++ PyKDE-3.16.0.py25/sip/kdecore/ktimezones.sip 2006-12-23 15:43:04.000000000 +0100 +@@ -240,7 +240,7 @@ + QMap<QString, KTimezone*> *cppmap = new QMap<QString, KTimezone*>; + + PyObject *aelem, *belem; +- int pos = 0; ++ SIP_SSIZE_T pos = 0; + QString *acpp; + KTimezone *bcpp; + +diff -ru PyKDE-3.16.0/sip/kdecore/kurl.sip PyKDE-3.16.0.py25/sip/kdecore/kurl.sip +--- PyKDE-3.16.0/sip/kdecore/kurl.sip 2006-09-22 05:11:16.000000000 +0200 ++++ PyKDE-3.16.0.py25/sip/kdecore/kurl.sip 2006-12-23 15:43:18.000000000 +0100 +@@ -248,7 +248,7 @@ + %MethodCode + //takes range | (a Python slice) | urlList | (KURL.List) + +- int len, start, stop, step, slicelength; ++ SIP_SSIZE_T len, start, stop, step, slicelength; + + len = sipCpp -> count(); + +@@ -291,7 +291,7 @@ + void __delitem__ (SIP_PYSLICE); + %MethodCode + //takes range | (a Python slice) +- int len, start, stop, step, slicelength; ++ SIP_SSIZE_T len, start, stop, step, slicelength; + + len = sipCpp -> count(); + if (sipConvertFromSliceObject(a0,len,&start,&stop,&step,&slicelength) < 0) +@@ -322,7 +322,7 @@ + %MethodCode + //returns (KURL.List) + //takes range | (a Python slice) +- int len, start, stop, step, slicelength; ++ SIP_SSIZE_T len, start, stop, step, slicelength; + + len = sipCpp -> count(); + +diff -ru PyKDE-3.16.0/sip/kdeui/kkeydialog.sip PyKDE-3.16.0.py25/sip/kdeui/kkeydialog.sip +--- PyKDE-3.16.0/sip/kdeui/kkeydialog.sip 2006-09-22 05:11:15.000000000 +0200 ++++ PyKDE-3.16.0.py25/sip/kdeui/kkeydialog.sip 2006-12-23 15:43:23.000000000 +0100 +@@ -231,7 +231,7 @@ + QDict<int>* qdict = new QDict<int>; + + PyObject *key, *value; +- int pos = 0; ++ SIP_SSIZE_T pos = 0; + QString *a0; + int a1; + +diff -ru PyKDE-3.16.0/sip/kio/authinfo.sip PyKDE-3.16.0.py25/sip/kio/authinfo.sip +--- PyKDE-3.16.0/sip/kio/authinfo.sip 2006-09-22 05:11:14.000000000 +0200 ++++ PyKDE-3.16.0.py25/sip/kio/authinfo.sip 2006-12-23 15:43:28.000000000 +0100 +@@ -176,7 +176,7 @@ + QMap<QString, QStringList> *map = new QMap<QString, QStringList>; + + PyObject *key, *value; +- int pos = 0; ++ SIP_SSIZE_T pos = 0; + QString *sKey; + QStringList *sData; + +diff -ru PyKDE-3.16.0/sip/kio/global.sip PyKDE-3.16.0.py25/sip/kio/global.sip +--- PyKDE-3.16.0/sip/kio/global.sip 2006-09-22 05:11:14.000000000 +0200 ++++ PyKDE-3.16.0.py25/sip/kio/global.sip 2006-12-23 15:43:33.000000000 +0100 +@@ -702,7 +702,7 @@ + QMap<QString,QString> *cppmap = new QMap<QString,QString>; + + PyObject *aelem, *belem; +- int pos = 0; ++ SIP_SSIZE_T pos = 0; + QString *acpp; + QString *bcpp; + +diff -ru PyKDE-3.16.0/sip/kio/kservicetype.sip PyKDE-3.16.0.py25/sip/kio/kservicetype.sip +--- PyKDE-3.16.0/sip/kio/kservicetype.sip 2006-09-22 05:11:14.000000000 +0200 ++++ PyKDE-3.16.0.py25/sip/kio/kservicetype.sip 2006-12-23 15:43:44.000000000 +0100 +@@ -183,7 +183,7 @@ + QMap<QString,QVariant::Type> *cppmap = new QMap<QString,QVariant::Type>; + + PyObject *aelem, *belem; +- int pos = 0; ++ SIP_SSIZE_T pos = 0; + QString *acpp; + QVariant::Type bcpp; + +diff -ru PyKDE-3.16.0/sip/kmdi/kmdichildfrm.sip PyKDE-3.16.0.py25/sip/kmdi/kmdichildfrm.sip +--- PyKDE-3.16.0/sip/kmdi/kmdichildfrm.sip 2006-09-22 05:11:14.000000000 +0200 ++++ PyKDE-3.16.0.py25/sip/kmdi/kmdichildfrm.sip 2006-12-23 15:39:49.000000000 +0100 +@@ -245,7 +245,7 @@ + QDict<QWidget::FocusPolicy>* qdict = new QDict<QWidget::FocusPolicy>; + + PyObject *key, *value; +- int pos = 0; ++ SIP_SSIZE_T pos = 0; + QString *a0; + QWidget::FocusPolicy a1; + +diff -ru PyKDE-3.16.0/sip/kparts/browserextension.sip PyKDE-3.16.0.py25/sip/kparts/browserextension.sip +--- PyKDE-3.16.0/sip/kparts/browserextension.sip 2006-09-22 05:11:15.000000000 +0200 ++++ PyKDE-3.16.0.py25/sip/kparts/browserextension.sip 2006-12-23 15:33:51.000000000 +0100 +@@ -419,7 +419,7 @@ + QMap<QCString,QCString> *cppmap = new QMap<QCString,QCString>; + + PyObject *aelem, *belem; +- int pos = 0; ++ SIP_SSIZE_T pos = 0; + QCString *acpp; + QCString *bcpp; + +@@ -503,7 +503,7 @@ + QMap<QCString,int> *cppmap = new QMap<QCString,int>; + + PyObject *aelem, *belem; +- int pos = 0; ++ SIP_SSIZE_T pos = 0; + QCString *acpp; + int bcpp; + diff --git a/kde-base/pykde/pykde-3.5.8.ebuild b/kde-base/pykde/pykde-3.5.8.ebuild index 406eea536b6c..5b234a1e725c 100644 --- a/kde-base/pykde/pykde-3.5.8.ebuild +++ b/kde-base/pykde/pykde-3.5.8.ebuild @@ -1,6 +1,6 @@ # 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.8.ebuild,v 1.2 2007/10/27 14:11:11 philantrop Exp $ +# $Header: /var/cvsroot/gentoo-x86/kde-base/pykde/pykde-3.5.8.ebuild,v 1.3 2007/10/29 07:38:59 philantrop Exp $ KMNAME=kdebindings KMMODULE=python @@ -17,14 +17,19 @@ 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 - kde-base/kdelibs - !dev-python/pykde" +DEPEND=">=dev-python/sip-4.6 + >=dev-python/PyQt-3.17.2 + kde-base/kdelibs + || ( kde-base/kdebase kde-base/konsole ) + !dev-python/pykde" src_unpack() { kde-meta_src_unpack cd "${S}/python/pykde" + epatch "${FILESDIR}/${P}-python-2.5-compat.diff" + + mkdir -p kparts + ln -s "${PREFIX}"/$(get_libdir)/kde3/libkonsolepart* ./kparts/ } src_compile() { @@ -44,6 +49,13 @@ src_compile() { 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 + make DESTDIR="${D}" install || die find "${D}/usr/share/sip" -not -type d -not -iname *.sip -exec rm '{}' \; |