git: 80fa80f5a52c - main - devel/py-orjson: fix build on powerpc64*
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Fri, 16 Sep 2022 22:22:45 UTC
The branch main has been updated by pkubaj:
URL: https://cgit.FreeBSD.org/ports/commit/?id=80fa80f5a52c245257e33ff078f5b109f1fbb2b7
commit 80fa80f5a52c245257e33ff078f5b109f1fbb2b7
Author: Piotr Kubaj <pkubaj@FreeBSD.org>
AuthorDate: 2022-09-16 21:02:35 +0000
Commit: Piotr Kubaj <pkubaj@FreeBSD.org>
CommitDate: 2022-09-16 21:02:35 +0000
devel/py-orjson: fix build on powerpc64*
Similar to www/py-adblock.
---
devel/py-orjson/Makefile | 4 ++++
1 file changed, 4 insertions(+)
diff --git a/devel/py-orjson/Makefile b/devel/py-orjson/Makefile
index 7b18d09bfb86..2bcca70eeafc 100644
--- a/devel/py-orjson/Makefile
+++ b/devel/py-orjson/Makefile
@@ -73,6 +73,10 @@ do-build:
# Due to upstream not supplying a setup.py file or other way to install
# using pip command for now...
do-install:
+.if ${ARCH:Mpowerpc64*}
+ @(cd ${INSTALL_WRKSRC}; \
+ ${FIND} . -name "*whl" -exec sh -c 'mv {} `echo {} | sed -E -e "s/powerpc.*/powerpc.whl/"`' \;)
+.endif
@${SETENV} ${MAKE_ENV} pip install \
--isolated \
--root=${STAGEDIR} \