diff --git a/devel/py-unicodedata2/Makefile b/devel/py-unicodedata2/Makefile index 0854dfb89019..5c373556c00a 100644 --- a/devel/py-unicodedata2/Makefile +++ b/devel/py-unicodedata2/Makefile @@ -1,22 +1,22 @@ # Created by: Po-Chuan Hsieh PORTNAME= unicodedata2 PORTVERSION= 13.0.0.post2 PORTREVISION= 1 CATEGORIES= devel python MASTER_SITES= CHEESESHOP PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX} MAINTAINER= sunpoet@FreeBSD.org COMMENT= Unicodedata backport and updates LICENSE= APACHE20 LICENSE_FILE= ${WRKSRC}/LICENSE -USES= python:3.6-3.9 +USES= python:3.6+ USE_PYTHON= autoplist concurrent distutils post-install: ${FIND} ${STAGEDIR}${PYTHON_SITELIBDIR} -name '*.so' -exec ${STRIP_CMD} {} + .include diff --git a/devel/py-unicodedata2/files/patch-unicodedata2-py3-unicodedata.c b/devel/py-unicodedata2/files/patch-unicodedata2-py3-unicodedata.c new file mode 100644 index 000000000000..1b540f0c3b85 --- /dev/null +++ b/devel/py-unicodedata2/files/patch-unicodedata2-py3-unicodedata.c @@ -0,0 +1,15 @@ +--- unicodedata2/py3/unicodedata.c.orig 2020-03-20 18:40:50 UTC ++++ unicodedata2/py3/unicodedata.c +@@ -16,7 +16,12 @@ + #define PY_SSIZE_T_CLEAN + + #include "Python.h" ++#if PY_MINOR_VERSION < 10 + #include "ucnhash.h" ++#else ++#define Py_BUILD_CORE ++#include "internal/pycore_ucnhash.h" ++#endif + #include "structmember.h" + #include "unicodectype.h" +