summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTomas Chvatal <scarabeus@gentoo.org>2010-08-10 13:35:09 +0000
committerTomas Chvatal <scarabeus@gentoo.org>2010-08-10 13:35:09 +0000
commitd16befdcc55256cd4b07e60e6e3f30e921d7d54c (patch)
tree7a5aa727d7ff379affb6fb215b6905cefed65056 /kde-base/pykde4
parentDrop unused patch. (diff)
downloadgentoo-2-d16befdcc55256cd4b07e60e6e3f30e921d7d54c.tar.gz
gentoo-2-d16befdcc55256cd4b07e60e6e3f30e921d7d54c.tar.bz2
gentoo-2-d16befdcc55256cd4b07e60e6e3f30e921d7d54c.zip
Drop unused patch.
(Portage version: 2.2_rc67/cvs/Linux x86_64)
Diffstat (limited to 'kde-base/pykde4')
-rw-r--r--kde-base/pykde4/ChangeLog7
-rw-r--r--kde-base/pykde4/files/pykde4-4.3.4-typedefs.sip.patch385
-rw-r--r--kde-base/pykde4/files/pykde4-4.3.5-fix-pykdeuic4.patch11
3 files changed, 6 insertions, 397 deletions
diff --git a/kde-base/pykde4/ChangeLog b/kde-base/pykde4/ChangeLog
index 216207b13c53..db666afd281c 100644
--- a/kde-base/pykde4/ChangeLog
+++ b/kde-base/pykde4/ChangeLog
@@ -1,6 +1,11 @@
# ChangeLog for kde-base/pykde4
# Copyright 1999-2010 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/kde-base/pykde4/ChangeLog,v 1.84 2010/08/09 17:34:07 scarabeus Exp $
+# $Header: /var/cvsroot/gentoo-x86/kde-base/pykde4/ChangeLog,v 1.85 2010/08/10 13:35:09 scarabeus Exp $
+
+ 10 Aug 2010; Tomáš Chvátal <scarabeus@gentoo.org>
+ -files/pykde4-4.3.4-typedefs.sip.patch,
+ -files/pykde4-4.3.5-fix-pykdeuic4.patch:
+ Drop unused patch.
09 Aug 2010; Tomáš Chvátal <scarabeus@gentoo.org> pykde4-4.4.5.ebuild,
metadata.xml:
diff --git a/kde-base/pykde4/files/pykde4-4.3.4-typedefs.sip.patch b/kde-base/pykde4/files/pykde4-4.3.4-typedefs.sip.patch
deleted file mode 100644
index 1245cadfb28f..000000000000
--- a/kde-base/pykde4/files/pykde4-4.3.4-typedefs.sip.patch
+++ /dev/null
@@ -1,385 +0,0 @@
---- trunk/KDE/kdebindings/python/pykde4/sip/kdecore/typedefs.sip 2009/10/11 11:55:17 1033861
-+++ trunk/KDE/kdebindings/python/pykde4/sip/kdecore/typedefs.sip 2010/01/16 10:06:39 1075490
-@@ -215,6 +215,122 @@
- %End
- };
-
-+template <TYPE1,int>
-+%MappedType QMap<TYPE1,int>
-+{
-+%TypeHeaderCode
-+#include <qmap.h>
-+%End
-+
-+%ConvertFromTypeCode
-+ // Create the dictionary.
-+ PyObject *d = PyDict_New();
-+
-+ if (!d)
-+ return NULL;
-+
-+ // Set the dictionary elements.
-+ QMap<TYPE1, int>::const_iterator i = sipCpp->constBegin();
-+
-+ while (i != sipCpp->constEnd())
-+ {
-+ TYPE1 *t1 = new TYPE1(i.key());
-+ int t2 = i.value();
-+
-+ PyObject *t1obj = sipConvertFromNewType(t1, sipType_TYPE1, sipTransferObj);
-+#if PY_MAJOR_VERSION >= 3
-+ PyObject *t2obj = PyLong_FromLong(t2);
-+#else
-+ PyObject *t2obj = PyInt_FromLong(t2);
-+#endif
-+
-+ if (t1obj == NULL || t2obj == NULL || PyDict_SetItem(d, t1obj, t2obj) < 0)
-+ {
-+ Py_DECREF(d);
-+
-+ if (t1obj) {
-+ Py_DECREF(t1obj);
-+ } else {
-+ delete t1;
-+ }
-+
-+ if (t2obj) {
-+ Py_DECREF(t2obj);
-+ }
-+ return NULL;
-+ }
-+
-+ Py_DECREF(t1obj);
-+ Py_DECREF(t2obj);
-+
-+ ++i;
-+ }
-+
-+ return d;
-+%End
-+
-+%ConvertToTypeCode
-+ PyObject *t1obj;
-+ PyObject *t2obj;
-+ SIP_SSIZE_T i = 0;
-+
-+ // Check the type if that is all that is required.
-+ if (sipIsErr == NULL)
-+ {
-+ if (!PyDict_Check(sipPy))
-+ return 0;
-+
-+ while (PyDict_Next(sipPy, &i, &t1obj, &t2obj))
-+ {
-+ if (!sipCanConvertToType(t1obj, sipType_TYPE1, SIP_NOT_NONE))
-+ return 0;
-+
-+#if PY_MAJOR_VERSION >= 3
-+ if (!PyNumber_Check(t2obj))
-+#else
-+ if (!PyInt_Check(t2obj))
-+#endif
-+ return 0;
-+ }
-+
-+ return 1;
-+ }
-+
-+ QMap<TYPE1, int> *qm = new QMap<TYPE1, int>;
-+
-+ i = 0;
-+ while (PyDict_Next(sipPy, &i, &t1obj, &t2obj))
-+ {
-+ int state1;
-+
-+ TYPE1 *t1 = reinterpret_cast<TYPE1 *>(sipConvertToType(t1obj, sipType_TYPE1, sipTransferObj, SIP_NOT_NONE, &state1, sipIsErr));
-+
-+#if PY_MAJOR_VERSION >= 3
-+ int t2 = PyLong_AsLong (t2obj);
-+#else
-+ int t2 = PyInt_AS_LONG (t2obj);
-+#endif
-+
-+ if (*sipIsErr)
-+ {
-+ sipReleaseType(t1, sipType_TYPE1, state1);
-+
-+ delete qm;
-+ return 0;
-+ }
-+
-+ qm->insert(*t1, t2);
-+
-+ sipReleaseType(t1, sipType_TYPE1, state1);
-+ }
-+
-+ *sipCppPtr = qm;
-+
-+ return sipGetState(sipTransferObj);
-+%End
-+};
-+
-+
- class KShared;
-
- template <TYPE>
-@@ -239,10 +355,10 @@
-
- %ConvertToTypeCode
- // Convert a Python instance to a Ptr on the heap.
--
-- if (sipIsErr == NULL)
-- return PyInstance_Check(sipPy);
--
-+ if (sipIsErr == NULL) {
-+ return 1;
-+ }
-+
- int iserr = 0;
- TYPE *cpp = (TYPE *)sipForceConvertToType(sipPy, sipType_TYPE, NULL, 0, NULL, &iserr);
-
-@@ -466,91 +582,6 @@
- %End
- };
-
--
--template <TYPE*>
--%MappedType QSet<TYPE*>
--{
--%TypeHeaderCode
--#include <qset.h>
--%End
--
--%ConvertFromTypeCode
-- // Create the list.
-- PyObject *l;
--
-- if ((l = PyList_New(sipCpp->size())) == NULL)
-- return NULL;
--
-- // Set the list elements.
-- QSet<TYPE*> set = *sipCpp;
-- int i = 0;
-- foreach ((TYPE *)value, set)
-- {
-- PyObject *obj = sipConvertFromNewType(value, sipType_TYPE, sipTransferObj);
-- if (obj == NULL || PyList_SET_ITEM (l, i, obj) < 0)
-- {
-- Py_DECREF(l);
--
-- if (obj)
-- Py_DECREF(obj);
--
-- return NULL;
-- }
--
-- Py_DECREF(obj);
-- i++;
-- }
--
-- return l;
--%End
--
--%ConvertToTypeCode
-- // Check the type if that is all that is required.
-- if (sipIsErr == NULL)
-- {
-- if (!PyList_Check(sipPy))
-- return 0;
-- }
--
-- // Check the type if that is all that is required.
-- if (sipIsErr == NULL)
-- {
-- if (!PyList_Check(sipPy))
-- return 0;
--
-- for (int i = 0; i < PyList_GET_SIZE(sipPy); ++i)
-- if (!sipCanConvertToType(PyList_GET_ITEM (sipPy, i), sipType_TYPE, SIP_NOT_NONE))
-- return 0;
-- }
--
-- QSet<TYPE*> *qs = new QSet<TYPE*>;
--
-- for (int i = 0; i < PyList_GET_SIZE(sipPy); ++i)
-- {
-- int state;
--
-- TYPE *t = reinterpret_cast<TYPE *>(sipConvertToType(PyList_GET_ITEM (l, i), sipType_TYPE, sipTransferObj, SIP_NOT_NONE, &state, sipIsErr));
--
-- if (*sipIsErr)
-- {
-- sipReleaseType(t, sipType_TYPE, state);
--
-- delete qs;
-- return 0;
-- }
--
-- *qs << t;
--
-- sipReleaseType(t, sipType_TYPE, state);
-- }
--
-- *sipCppPtr = qs;
--
-- return sipGetState(sipTransferObj);
--%End
--};
--
--
- template <TYPE>
- %MappedType QSet<TYPE>
- {
-@@ -716,12 +747,14 @@
- return NULL;
-
- // Set the list elements.
-- for (int i = 0; i < sipCpp->size(); ++i)
-- {
-+ for (int i = 0; i < sipCpp->size(); ++i) {
- PyObject *pobj;
-
-- if ((pobj = PyInt_FromLong(sipCpp->value(i))) == NULL)
-- {
-+#if PY_MAJOR_VERSION >= 3
-+ if ((pobj = PyLong_FromLong(sipCpp->value(i))) == NULL) {
-+#else
-+ if ((pobj = PyInt_FromLong(sipCpp->value(i))) == NULL) {
-+#endif
- Py_DECREF(l);
-
- return NULL;
-@@ -740,9 +773,14 @@
-
- QList<uint> *ql = new QList<uint>;
-
-- for (int i = 0; i < PyList_GET_SIZE(sipPy); ++i)
-+ for (int i = 0; i < PyList_GET_SIZE(sipPy); ++i) {
-+#if PY_MAJOR_VERSION >= 3
-+ ql->append(PyLong_AsLong(PyList_GET_ITEM(sipPy, i)));
-+#else
- ql->append(PyInt_AsLong(PyList_GET_ITEM(sipPy, i)));
--
-+#endif
-+ }
-+
- *sipCppPtr = ql;
-
- return sipGetState(sipTransferObj);
-@@ -824,3 +862,116 @@
- %End
- };
-
-+%MappedType QHash<int,int>
-+{
-+%TypeHeaderCode
-+#include <qhash.h>
-+%End
-+
-+%ConvertFromTypeCode
-+ // Create the dictionary.
-+ PyObject *d = PyDict_New();
-+
-+ if (!d)
-+ return NULL;
-+
-+ // Set the dictionary elements.
-+ QHash<int, int>::const_iterator i = sipCpp->constBegin();
-+
-+ while (i != sipCpp->constEnd())
-+ {
-+ int t1 = i.key();
-+ int t2 = i.value();
-+
-+#if PY_MAJOR_VERSION >= 3
-+ PyObject *t1obj = PyLong_FromLong ((long)t1);
-+ PyObject *t2obj = PyLong_FromLong ((long)t2);
-+#else
-+ PyObject *t1obj = PyInt_FromLong ((long)t1);
-+ PyObject *t2obj = PyInt_FromLong ((long)t2);
-+#endif
-+
-+ if (PyDict_SetItem(d, t1obj, t2obj) < 0)
-+ {
-+ Py_DECREF(d);
-+
-+ if (t1obj)
-+ Py_DECREF(t1obj);
-+
-+ if (t2obj)
-+ Py_DECREF(t2obj);
-+
-+ return NULL;
-+ }
-+
-+ Py_DECREF(t1obj);
-+ Py_DECREF(t2obj);
-+
-+ ++i;
-+ }
-+
-+ return d;
-+%End
-+
-+%ConvertToTypeCode
-+ PyObject *t1obj, *t2obj;
-+ SIP_SSIZE_T i = 0;
-+
-+ // Check the type if that is all that is required.
-+ if (sipIsErr == NULL)
-+ {
-+ if (!PyDict_Check(sipPy))
-+ return 0;
-+
-+ while (PyDict_Next(sipPy, &i, &t1obj, &t2obj))
-+ {
-+#if PY_MAJOR_VERSION >= 3
-+ if (!PyNumber_Check (t1obj))
-+#else
-+ if (!PyInt_Check (t1obj))
-+#endif
-+ return 0;
-+
-+#if PY_MAJOR_VERSION >= 3
-+ if (!PyNumber_Check (t2obj))
-+#else
-+ if (!PyInt_Check (t2obj))
-+#endif
-+ return 0;
-+ }
-+
-+ return 1;
-+ }
-+
-+ QHash<int, int> *qm = new QHash<int, int>;
-+
-+ while (PyDict_Next(sipPy, &i, &t1obj, &t2obj))
-+ {
-+ int state2;
-+
-+#if PY_MAJOR_VERSION >= 3
-+ int t1 = PyLong_AsLong (t1obj);
-+#else
-+ int t1 = PyInt_AS_LONG (t1obj);
-+#endif
-+
-+#if PY_MAJOR_VERSION >= 3
-+ int t2 = PyLong_AsLong (t2obj);
-+#else
-+ int t2 = PyInt_AS_LONG (t2obj);
-+#endif
-+
-+ if (*sipIsErr)
-+ {
-+ delete qm;
-+ return 0;
-+ }
-+
-+ qm->insert(t1, t2);
-+ }
-+
-+ *sipCppPtr = qm;
-+
-+ return sipGetState(sipTransferObj);
-+%End
-+};
diff --git a/kde-base/pykde4/files/pykde4-4.3.5-fix-pykdeuic4.patch b/kde-base/pykde4/files/pykde4-4.3.5-fix-pykdeuic4.patch
deleted file mode 100644
index 0117b01daa80..000000000000
--- a/kde-base/pykde4/files/pykde4-4.3.5-fix-pykdeuic4.patch
+++ /dev/null
@@ -1,11 +0,0 @@
---- trunk/KDE/kdebindings/python/pykde4/tools/pykdeuic4/pykdeuic4.py 2009/12/21 19:21:54 1064783
-+++ trunk/KDE/kdebindings/python/pykde4/tools/pykdeuic4/pykdeuic4.py 2009/12/21 19:22:32 1064784
-@@ -39,7 +39,7 @@
- def __init__(self,string):
- original_i18n_string.__init__(self,string)
- def __str__(self):
-- return "kdecore.i18n(\"%s\")" % (self.escape(self.string),)
-+ return "kdecore.i18n(\"%s\")" % (qtproxies.escape(self.string),)
- qtproxies.i18n_string = kde_i18n_string
-
- def kdeFilter():