git: 16c042a85113 - main - devel/py-maturin: fix build on powerpc*

From: Piotr Kubaj <pkubaj_at_FreeBSD.org>
Date: Sun, 10 Oct 2021 18:33:48 UTC
The branch main has been updated by pkubaj:

URL: https://cgit.FreeBSD.org/ports/commit/?id=16c042a851131f28185f397261a0c9169f95475e

commit 16c042a851131f28185f397261a0c9169f95475e
Author:     Piotr Kubaj <pkubaj@FreeBSD.org>
AuthorDate: 2021-10-10 18:14:38 +0000
Commit:     Piotr Kubaj <pkubaj@FreeBSD.org>
CommitDate: 2021-10-10 18:14:38 +0000

    devel/py-maturin: fix build on powerpc*
    
    Since ring crate is unavailable on powerpc*, this port fails to build.
    Add parameters from setup.py to CARGO_BUILD_ARGS:
                if platform.machine() in ("ppc64le", "ppc64", "powerpc"):
                    cargo_args.extend(
                        ["--no-default-features", "--features=upload,log,human-panic"]
                    )
---
 devel/py-maturin/Makefile | 7 +++++++
 1 file changed, 7 insertions(+)

diff --git a/devel/py-maturin/Makefile b/devel/py-maturin/Makefile
index d8964ecdec01..31f7cf765dcd 100644
--- a/devel/py-maturin/Makefile
+++ b/devel/py-maturin/Makefile
@@ -253,6 +253,13 @@ CARGO_INSTALL=	no
 CARGO_TARGET_DIR=	${WRKSRC}/target
 MAKE_ENV=	${CARGO_ENV}
 
+.include <bsd.port.options.mk>
+
+.if ${ARCH:Mpowerpc*}
+CARGO_BUILD_ARGS=	--no-default-features \
+			--features=upload,log,human-panic
+.endif
+
 # The binary is usually built via setup.py which uses different compiler flags.
 # That line is patched out there to use the compiler flags from the Ports
 # framework instead.  The setup.py is processed in the "do-build" target to