blob: 320a4c150465ccb5744eb2dc9391c9ed4b8d61fd (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
|
PORTNAME= http-parser
DISTVERSION= 0.9.0
PORTREVISION= 1
CATEGORIES= www
MASTER_SITES= PYPI
PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX}
MAINTAINER= rm@FreeBSD.org
COMMENT= HTTP request/response parser for python in C
WWW= https://github.com/benoitc/http-parser/
LICENSE= MIT
LICENSE_FILE= ${WRKSRC}/LICENSE
USES= python
USE_PYTHON= autoplist cython distutils
post-configure:
cython-${PYTHON_VER} ${WRKSRC}/http_parser/parser.pyx
post-install:
${STRIP_CMD} ${STAGEDIR}${PYTHONPREFIX_SITELIBDIR}/http_parser/parser*.so
.include <bsd.port.pre.mk>
.if ${PYTHON_REL} > 31200
EXTRA_PATCHES+= ${FILESDIR}/extra-patch-python312
.endif
.include <bsd.port.post.mk>
|