git: b4f67e369711 - main - devel/py-frozenlist: Fix build with Python 3.11
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Fri, 25 Mar 2022 17:20:22 UTC
The branch main has been updated by sunpoet:
URL: https://cgit.FreeBSD.org/ports/commit/?id=b4f67e369711c403ecd104ef4b286745aec1d198
commit b4f67e369711c403ecd104ef4b286745aec1d198
Author: Po-Chuan Hsieh <sunpoet@FreeBSD.org>
AuthorDate: 2022-03-25 17:18:59 +0000
Commit: Po-Chuan Hsieh <sunpoet@FreeBSD.org>
CommitDate: 2022-03-25 17:19:24 +0000
devel/py-frozenlist: Fix build with Python 3.11
---
devel/py-frozenlist/Makefile | 5 ++++-
1 file changed, 4 insertions(+), 1 deletion(-)
diff --git a/devel/py-frozenlist/Makefile b/devel/py-frozenlist/Makefile
index 202bdd48c7c4..cbec97351181 100644
--- a/devel/py-frozenlist/Makefile
+++ b/devel/py-frozenlist/Makefile
@@ -11,7 +11,10 @@ LICENSE= APACHE20
LICENSE_FILE= ${WRKSRC}/LICENSE
USES= gettext-runtime python:3.7+
-USE_PYTHON= autoplist distutils
+USE_PYTHON= autoplist cython distutils
+
+pre-configure:
+ @cd ${WRKSRC} && ${RM} frozenlist/_frozenlist.c && cython-${PYTHON_VER} -3 -I frozenlist -o frozenlist/_frozenlist.c frozenlist/_frozenlist.pyx
post-install:
${FIND} ${STAGEDIR}${PYTHON_SITELIBDIR} -name '*.so' -exec ${STRIP_CMD} {} +