git: 903b912a3ba3 - main - www/py-http-parser: Fix packaging with Python 3.8+

Kai Knoblich kai at FreeBSD.org
Mon Apr 19 14:56:38 UTC 2021


The branch main has been updated by kai:

URL: https://cgit.FreeBSD.org/ports/commit/?id=903b912a3ba39337ea0a60d71c62ee90f0d72e3c

commit 903b912a3ba39337ea0a60d71c62ee90f0d72e3c
Author:     Kai Knoblich <kai at FreeBSD.org>
AuthorDate: 2021-04-19 14:50:22 +0000
Commit:     Kai Knoblich <kai at FreeBSD.org>
CommitDate: 2021-04-19 14:53:15 +0000

    www/py-http-parser: Fix packaging with Python 3.8+
    
    * Apply the same fix as in 9cb5898561b302d952fec8e2fac66a945a2c4915 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)
---
 www/py-http-parser/Makefile | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/www/py-http-parser/Makefile b/www/py-http-parser/Makefile
index bd735bd5ab42..1193bffc4730 100644
--- a/www/py-http-parser/Makefile
+++ b/www/py-http-parser/Makefile
@@ -14,6 +14,6 @@ USES=		python:3.6+
 USE_PYTHON=	autoplist distutils
 
 post-install:
-	${STRIP_CMD} ${STAGEDIR}${PYTHON_SITELIBDIR}/http_parser/parser.so
+	${STRIP_CMD} ${STAGEDIR}${PYTHONPREFIX_SITELIBDIR}/http_parser/parser*.so
 
 .include <bsd.port.mk>


More information about the dev-commits-ports-all mailing list