summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--lang/cython/Makefile2
-rw-r--r--lang/cython/distinfo6
-rw-r--r--lang/cython/files/patch-python31128
-rw-r--r--lang/cython/pkg-descr1
4 files changed, 33 insertions, 4 deletions
diff --git a/lang/cython/Makefile b/lang/cython/Makefile
index eac8fbaa6579..430266661d7e 100644
--- a/lang/cython/Makefile
+++ b/lang/cython/Makefile
@@ -1,7 +1,7 @@
# Created by: Wen Heping <wenhping@gmail.com>
PORTNAME= cython
-PORTVERSION= 0.29.26
+PORTVERSION= 0.29.27
CATEGORIES= lang python
MASTER_SITES= CHEESESHOP
PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX}
diff --git a/lang/cython/distinfo b/lang/cython/distinfo
index 83f2378acac4..173026347df6 100644
--- a/lang/cython/distinfo
+++ b/lang/cython/distinfo
@@ -1,3 +1,3 @@
-TIMESTAMP = 1641045800
-SHA256 (Cython-0.29.26.tar.gz) = af377d543a762867da11fcf6e558f7a4a535ff8693f30cce123fab10c00fa312
-SIZE (Cython-0.29.26.tar.gz) = 2079448
+TIMESTAMP = 1643970992
+SHA256 (Cython-0.29.27.tar.gz) = c6a442504db906dfc13a480e96850cced994ecdc076bcf492c43515b78f70da2
+SIZE (Cython-0.29.27.tar.gz) = 2081166
diff --git a/lang/cython/files/patch-python311 b/lang/cython/files/patch-python311
new file mode 100644
index 000000000000..13761eaf964c
--- /dev/null
+++ b/lang/cython/files/patch-python311
@@ -0,0 +1,28 @@
+Obtained from: https://github.com/cython/cython/commit/bbac8b5476b1b97afcbac69e3079c11223911908
+
+--- Cython/Utility/ModuleSetupCode.c.orig 2022-01-28 17:21:38 UTC
++++ Cython/Utility/ModuleSetupCode.c
+@@ -177,7 +177,10 @@
+ #ifndef CYTHON_UNPACK_METHODS
+ #define CYTHON_UNPACK_METHODS 1
+ #endif
+- #ifndef CYTHON_FAST_THREAD_STATE
++ #if PY_VERSION_HEX >= 0x030B00A4
++ #undef CYTHON_FAST_THREAD_STATE
++ #define CYTHON_FAST_THREAD_STATE 0
++ #elif !defined(CYTHON_FAST_THREAD_STATE)
+ #define CYTHON_FAST_THREAD_STATE 1
+ #endif
+ #ifndef CYTHON_FAST_PYCALL
+@@ -194,7 +197,10 @@
+ #ifndef CYTHON_USE_DICT_VERSIONS
+ #define CYTHON_USE_DICT_VERSIONS (PY_VERSION_HEX >= 0x030600B1)
+ #endif
+- #ifndef CYTHON_USE_EXC_INFO_STACK
++ #if PY_VERSION_HEX >= 0x030B00A4
++ #undef CYTHON_USE_EXC_INFO_STACK
++ #define CYTHON_USE_EXC_INFO_STACK 0
++ #elif !defined(CYTHON_USE_EXC_INFO_STACK)
+ #define CYTHON_USE_EXC_INFO_STACK (PY_VERSION_HEX >= 0x030700A3)
+ #endif
+ #endif
diff --git a/lang/cython/pkg-descr b/lang/cython/pkg-descr
index 8ace83e15851..a898de04eaf7 100644
--- a/lang/cython/pkg-descr
+++ b/lang/cython/pkg-descr
@@ -14,3 +14,4 @@ C libraries, and for fast C modules that speed up the execution of
Python code.
WWW: https://cython.org/
+WWW: https://github.com/cython/cython