diff options
author | makc <makc@FreeBSD.org> | 2010-12-03 04:03:47 +0800 |
---|---|---|
committer | makc <makc@FreeBSD.org> | 2010-12-03 04:03:47 +0800 |
commit | 69937aa61dbc9d3dcafc2a6e0fa364cf8ab57ef3 (patch) | |
tree | 56cd7a0ba78d0507f254406f97de40e16121c8a6 /devel/kdebindings4-python-pykde4 | |
parent | b415439f61ca7e8f035bf5f21e9f8f12d97a6a39 (diff) | |
download | freebsd-ports-gnome-69937aa61dbc9d3dcafc2a6e0fa364cf8ab57ef3.tar.gz freebsd-ports-gnome-69937aa61dbc9d3dcafc2a6e0fa364cf8ab57ef3.tar.zst freebsd-ports-gnome-69937aa61dbc9d3dcafc2a6e0fa364cf8ab57ef3.zip |
Fix build with updated devel/py-sip
Diffstat (limited to 'devel/kdebindings4-python-pykde4')
-rw-r--r-- | devel/kdebindings4-python-pykde4/Makefile | 2 | ||||
-rw-r--r-- | devel/kdebindings4-python-pykde4/files/patch-1170602 | 64 |
2 files changed, 66 insertions, 0 deletions
diff --git a/devel/kdebindings4-python-pykde4/Makefile b/devel/kdebindings4-python-pykde4/Makefile index 11daca4f00da..45c51ecc5824 100644 --- a/devel/kdebindings4-python-pykde4/Makefile +++ b/devel/kdebindings4-python-pykde4/Makefile @@ -7,6 +7,7 @@ PORTNAME= kdebindings PORTVERSION= ${KDE4_VERSION} +PORTREVISION= 1 CATEGORIES= devel kde python PKGNAMESUFFIX= -kde @@ -42,6 +43,7 @@ post-patch: ${REINPLACE_CMD} -e '/dlopen("kpythonpluginfactory.so"/s,RTLD_NOLOAD |,,' \ ${PATCH_WRKSRC}/python/pykde4/kpythonpluginfactory/kpythonpluginfactory.cpp .endif + ${FIND} -d ${PATCH_WRKSRC}/python/pykde4/sip -name "*.orig" -delete pre-configure: ${REINPLACE_CMD} -e 's,$${SIP_DEFAULT_SIP_DIR},${PREFIX}/${SIPDIR_REL},g' \ diff --git a/devel/kdebindings4-python-pykde4/files/patch-1170602 b/devel/kdebindings4-python-pykde4/files/patch-1170602 new file mode 100644 index 000000000000..cd1b3c0e3272 --- /dev/null +++ b/devel/kdebindings4-python-pykde4/files/patch-1170602 @@ -0,0 +1,64 @@ +--- ./python/pykde4/sip/kdecore/typedefs.sip 2010/09/01 15:28:36 1170601 ++++ ./python/pykde4/sip/kdecore/typedefs.sip 2010/09/01 15:31:50 1170602 +@@ -733,61 +733,6 @@ + }; + + +-%MappedType QList<uint> +-{ +-%TypeHeaderCode +-#include <qlist.h> +-%End +- +-%ConvertFromTypeCode +- // Create the list. +- PyObject *l; +- +- if ((l = PyList_New(sipCpp->size())) == NULL) +- return NULL; +- +- // Set the list elements. +- for (int i = 0; i < sipCpp->size(); ++i) { +- PyObject *pobj; +- +-#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; +- } +- +- PyList_SET_ITEM(l, i, pobj); +- } +- +- return l; +-%End +- +-%ConvertToTypeCode +- // Check the type if that is all that is required. +- if (sipIsErr == NULL) +- return PyList_Check(sipPy); +- +- QList<uint> *ql = new QList<uint>; +- +- 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); +-%End +-}; +- +- + template <TYPE*> + %MappedType QStack<TYPE*> + { |