git: ce811fc78d3d - 2024Q4 - devel/ruff: Fix build on i386

From: Yuri Victorovich <yuri_at_FreeBSD.org>
Date: Sun, 10 Nov 2024 06:06:07 UTC
The branch 2024Q4 has been updated by yuri:

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

commit ce811fc78d3d034e4b858df887e4ea37cbb53c75
Author:     Yuri Victorovich <yuri@FreeBSD.org>
AuthorDate: 2024-11-10 06:05:07 +0000
Commit:     Yuri Victorovich <yuri@FreeBSD.org>
CommitDate: 2024-11-10 06:05:56 +0000

    devel/ruff: Fix build on i386
    
    Reported by:    fallout
---
 devel/ruff/Makefile | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/devel/ruff/Makefile b/devel/ruff/Makefile
index 539c4c408883..b2c5e56f480d 100644
--- a/devel/ruff/Makefile
+++ b/devel/ruff/Makefile
@@ -17,6 +17,8 @@ USES=		cargo
 USE_GITHUB=	yes
 GH_ACCOUNT=	astral-sh
 
+RUSTFLAGS=	${ARCH:S/i386/YES/:C/^[a-z].*//:S/YES/-C target-feature=+sse,+sse2/} # add sse sse2 target-features only on i386
+
 #CARGO_BUILD_ARGS=	--package=file://${WRKSRC}/crates/ruff_cli
 CARGO_INSTALL_PATH=	crates/ruff_cli