git: ec1ace3109cb - main - archivers/xarchiver: archivers/rar[i386] is available only for i386/amd64 arches (+)

From: Dima Panov <fluffy_at_FreeBSD.org>
Date: Fri, 03 Jul 2026 10:38:17 UTC
The branch main has been updated by fluffy:

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

commit ec1ace3109cb2f5c7180082175be320bc81a82b4
Author:     Dima Panov <fluffy@FreeBSD.org>
AuthorDate: 2026-07-03 10:37:45 +0000
Commit:     Dima Panov <fluffy@FreeBSD.org>
CommitDate: 2026-07-03 10:37:45 +0000

    archivers/xarchiver: archivers/rar[i386] is available only for i386/amd64 arches (+)
    
    Define correct dependencies on rar only on supported arches
    
    Approved by: portmgr blanket
---
 archivers/xarchiver/Makefile | 6 ++++--
 1 file changed, 4 insertions(+), 2 deletions(-)

diff --git a/archivers/xarchiver/Makefile b/archivers/xarchiver/Makefile
index 335895607ea3..2f8da55bd6eb 100644
--- a/archivers/xarchiver/Makefile
+++ b/archivers/xarchiver/Makefile
@@ -39,8 +39,10 @@ RAR_DESC=	RAR compression support
 
 ARJ_RUN_DEPENDS=	arj:archivers/arj
 LZO_RUN_DEPENDS=	lzop:archivers/lzop
-RAR_RUN_DEPENDS=	rar:archivers/rar \
-			unrar:archivers/unrar
+RAR_RUN_DEPENDS=	unrar:archivers/unrar \
+			${RAR_RUN_DEPENDS_${ARCH}}
+RAR_RUN_DEPENDS_amd64=	rar:archivers/rar
+RAR_RUN_DEPENDS_i386=	rar:archivers/rar-i386
 
 DOCS_BUILD_DEPENDS=	xsltproc:textproc/libxslt
 DOCS_CONFIGURE_ENABLE=	doc