diff --git a/lang/cython/Makefile b/lang/cython/Makefile index eac8fbaa6579..430266661d7e 100644 --- a/lang/cython/Makefile +++ b/lang/cython/Makefile @@ -1,25 +1,25 @@ # Created by: Wen Heping PORTNAME= cython -PORTVERSION= 0.29.26 +PORTVERSION= 0.29.27 CATEGORIES= lang python MASTER_SITES= CHEESESHOP PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX} DISTNAME= Cython-${PORTVERSION} MAINTAINER= sunpoet@FreeBSD.org COMMENT= Compiler for Writing C Extensions for the Python Language LICENSE= APACHE20 LICENSE_FILE= ${WRKSRC}/LICENSE.txt USES= compiler:c11 python:2.7+ USE_PYTHON= allflavors autoplist concurrent distutils # bin/cygdb bin/cython bin/cythonize CONFLICTS_INSTALL= py*-cython-devel post-install: ${FIND} ${STAGEDIR}${PYTHONPREFIX_SITELIBDIR}/Cython -name '*.so' -exec ${STRIP_CMD} {} + .include 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 @@ -1,16 +1,17 @@ The Cython language makes writing C extensions for the Python language as easy as Python itself. Cython is a source code translator based on the well-known Pyrex, but supports more cutting edge functionality and optimizations. The Cython language is very close to the Python language (and most Python code is also valid Cython code), but Cython additionally supports calling C functions and declaring C types on variables and class attributes. This allows the compiler to generate very efficient C code from Cython code. This makes Cython the ideal language for writing glue code for external 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