Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 4 Jun 2024 12:00:07 GMT
From:      Ruslan Makhmatkhanov <rm@FreeBSD.org>
To:        ports-committers@FreeBSD.org, dev-commits-ports-all@FreeBSD.org, dev-commits-ports-main@FreeBSD.org
Subject:   git: 1f6d7b612001 - main - www/py-http-parser: fix build with python3.11
Message-ID:  <202406041200.454C07fF050399@gitrepo.freebsd.org>

next in thread | raw e-mail | index | archive | help
The branch main has been updated by rm:

URL: https://cgit.FreeBSD.org/ports/commit/?id=1f6d7b612001bd3e07087d4821eae91436cbddc2

commit 1f6d7b612001bd3e07087d4821eae91436cbddc2
Author:     Ruslan Makhmatkhanov <rm@FreeBSD.org>
AuthorDate: 2024-06-04 11:59:09 +0000
Commit:     Ruslan Makhmatkhanov <rm@FreeBSD.org>
CommitDate: 2024-06-04 11:59:09 +0000

    www/py-http-parser: fix build with python3.11
    
    make it recreate the source with newer cython
    
    PR:             275494
    Approved by:    portmgr (blanket approval)
---
 www/py-http-parser/Makefile | 5 ++++-
 1 file changed, 4 insertions(+), 1 deletion(-)

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



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?202406041200.454C07fF050399>