ports/www/py-http-parser/Makefile
Kai Knoblich 903b912a3b www/py-http-parser: Fix packaging with Python 3.8+
* Apply the same fix as in 9cb5898561 by
  stripping libraries by wildcard paths.

* Also use PYTHONPREFIX_SITELIBDIR instead PYTHON_SITELIBDIR to make
  the port PREFIX safe while I'm here.

PR:		253815
Approved by:	python (with hat)
2021-04-19 16:53:15 +02:00

19 lines
415 B
Makefile

PORTNAME= http-parser
DISTVERSION= 0.9.0
CATEGORIES= www
MASTER_SITES= CHEESESHOP
PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX}
MAINTAINER= rm@FreeBSD.org
COMMENT= HTTP request/response parser for python in C
LICENSE= MIT
LICENSE_FILE= ${WRKSRC}/LICENSE
USES= python:3.6+
USE_PYTHON= autoplist distutils
post-install:
${STRIP_CMD} ${STAGEDIR}${PYTHONPREFIX_SITELIBDIR}/http_parser/parser*.so
.include <bsd.port.mk>