aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRuslan Makhmatkhanov <rm@FreeBSD.org>2024-06-04 11:59:09 +0000
committerRuslan Makhmatkhanov <rm@FreeBSD.org>2024-06-04 11:59:09 +0000
commit1f6d7b612001bd3e07087d4821eae91436cbddc2 (patch)
tree9d69eb654195ac1252567111b050bf0bc4962156
parent91e7916b1c0954e949a0482cfda80ad5ff57767b (diff)
www/py-http-parser: fix build with python3.11
make it recreate the source with newer cython PR: 275494 Approved by: portmgr (blanket approval)
-rw-r--r--www/py-http-parser/Makefile5
1 files changed, 4 insertions, 1 deletions
diff --git a/www/py-http-parser/Makefile b/www/py-http-parser/Makefile
index 93ea29f19358..b619329a105a 100644
--- a/www/py-http-parser/Makefile
+++ b/www/py-http-parser/Makefile
@@ -12,7 +12,10 @@ LICENSE= MIT
LICENSE_FILE= ${WRKSRC}/LICENSE
USES= python
-USE_PYTHON= autoplist distutils
+USE_PYTHON= autoplist cython distutils
+
+post-patch:
+ cython-${PYTHON_VER} ${WRKSRC}/http_parser/parser.pyx
post-install:
${STRIP_CMD} ${STAGEDIR}${PYTHONPREFIX_SITELIBDIR}/http_parser/parser*.so