<pre style='margin:0'>
Christopher Nielsen (mascguy) pushed a commit to branch master
in repository macports-ports.
</pre>
<p><a href="https://github.com/macports/macports-ports/commit/aeb3a7950270e047869cd8403866fff5c455819a">https://github.com/macports/macports-ports/commit/aeb3a7950270e047869cd8403866fff5c455819a</a></p>
<pre style="white-space: pre; background: #F8F8F8"><span style='display:block; white-space:pre;color:#808000;'>commit aeb3a7950270e047869cd8403866fff5c455819a
</span>Author: Kirill A. Korinsky <kirill@korins.ky>
AuthorDate: Sat Apr 29 21:39:09 2023 +0200
<span style='display:block; white-space:pre;color:#404040;'> py-shiboken: add py311
</span>---
python/py-shiboken/Portfile | 13 ++++++++++---
python/py-shiboken/files/patch-py311-compatibility.diff | 13 +++++++++++++
2 files changed, 23 insertions(+), 3 deletions(-)
<span style='display:block; white-space:pre;color:#808080;'>diff --git a/python/py-shiboken/Portfile b/python/py-shiboken/Portfile
</span><span style='display:block; white-space:pre;color:#808080;'>index 378b394ae9e..a0068fe7d33 100644
</span><span style='display:block; white-space:pre;background:#e0e0ff;'>--- a/python/py-shiboken/Portfile
</span><span style='display:block; white-space:pre;background:#e0e0ff;'>+++ b/python/py-shiboken/Portfile
</span><span style='display:block; white-space:pre;background:#e0e0e0;'>@@ -1,15 +1,13 @@
</span> # -*- coding: utf-8; mode: tcl; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- vim: fenc=utf-8:ft=tcl:et:sw=4:ts=4:sts=4
PortSystem 1.0
<span style='display:block; white-space:pre;background:#ffe0e0;'>-PortGroup cmake 1.1
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-PortGroup qt4 1.0
</span> PortGroup python 1.0
PortGroup github 1.0
github.setup pyside Shiboken 1.2.4
name py-shiboken
revision 2
<span style='display:block; white-space:pre;background:#ffe0e0;'>-python.versions 27 35 36 37 38 39 310
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+python.versions 27 35 36 37 38 39 310 311
</span> categories-append devel
maintainers nomaintainer
license LGPL
<span style='display:block; white-space:pre;background:#e0e0e0;'>@@ -25,6 +23,9 @@ checksums rmd160 efcfb5820bb85360e1c8c045ae2cfdea8d6e81f3 \
</span> size 1039570
if {${name} ne ${subport}} {
<span style='display:block; white-space:pre;background:#e0ffe0;'>+ PortGroup cmake 1.1
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ PortGroup qt4 1.0
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span> pre-patch {
reinplace "s|3.2 3.1 3.0|${python.branch}|g" ${worksrcpath}/cmake/Modules/FindPython3Libs.cmake
reinplace "s|NAMES python3.2mu python3.2m python3.2u python3.2 python3.1 python3.0 python3|NAMES python${python.branch}|g" ${worksrcpath}/cmake/Modules/FindPython3Interp.cmake
<span style='display:block; white-space:pre;background:#e0e0e0;'>@@ -34,6 +35,11 @@ if {${name} ne ${subport}} {
</span> patch-cmakepkgconfig.diff \
patch-tpprint-py3.patch
<span style='display:block; white-space:pre;background:#e0ffe0;'>+ if {${python.version} >= 311} {
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ patchfiles-append \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ patch-py311-compatibility.diff
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ }
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span> depends_lib-append port:python${python.version} \
port:libxslt \
port:sparsehash
<span style='display:block; white-space:pre;background:#e0e0e0;'>@@ -56,6 +62,7 @@ if {${name} ne ${subport}} {
</span> }
build.target all
destroot.cmd make
<span style='display:block; white-space:pre;background:#e0ffe0;'>+ destroot.target install
</span> destroot.destdir DESTDIR=${destroot}
post-destroot {
move ${destroot}${prefix}/bin/shiboken ${destroot}${prefix}/bin/shiboken-${python.branch}
<span style='display:block; white-space:pre;color:#808080;'>diff --git a/python/py-shiboken/files/patch-py311-compatibility.diff b/python/py-shiboken/files/patch-py311-compatibility.diff
</span>new file mode 100644
<span style='display:block; white-space:pre;color:#808080;'>index 00000000000..37c563bf32b
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>--- /dev/null
</span><span style='display:block; white-space:pre;background:#e0e0ff;'>+++ b/python/py-shiboken/files/patch-py311-compatibility.diff
</span><span style='display:block; white-space:pre;background:#e0e0e0;'>@@ -0,0 +1,13 @@
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+diff --git libshiboken/sbkenum.cpp libshiboken/sbkenum.cpp
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+index df3a5349..e464e3f7 100644
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+--- libshiboken/sbkenum.cpp
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++++ libshiboken/sbkenum.cpp
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+@@ -527,7 +527,7 @@ PyTypeObject* newTypeWithName(const char* name, const char* cppName)
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ {
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ PyTypeObject* type = reinterpret_cast<PyTypeObject*>(new SbkEnumType);
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ ::memset(type, 0, sizeof(SbkEnumType));
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+- Py_TYPE(type) = &SbkEnumType_Type;
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++ Py_SET_TYPE(type, &SbkEnumType_Type);
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ type->tp_basicsize = sizeof(SbkEnumObject);
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ type->tp_print = &SbkEnumObject_print;
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ type->tp_repr = &SbkEnumObject_repr;
</span></pre><pre style='margin:0'>
</pre>