git: 5fb9bd4bca52 - main - x11/boomer: attempt to unbreak the port in the build-as-user mode

From: Alexey Dokuchaev <danfe_at_FreeBSD.org>
Date: Wed, 29 Jan 2025 07:48:34 UTC
The branch main has been updated by danfe:

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

commit 5fb9bd4bca5201a1be8f06154a7f8312ecf39411
Author:     Alexey Dokuchaev <danfe@FreeBSD.org>
AuthorDate: 2025-01-29 07:47:20 +0000
Commit:     Alexey Dokuchaev <danfe@FreeBSD.org>
CommitDate: 2025-01-29 07:47:20 +0000

    x11/boomer: attempt to unbreak the port in the build-as-user mode
    
    Build artifacts are created under ~/.cache/nim/$projectname(_r|_d)
    by default and this naturally fails because nobody's home directory
    is /nonexistent.  Use ${WRKDIR}/.nimcache instead which definitely
    exists and is writable.
    
    Nagged by:      pkg-fallout
---
 x11/boomer/Makefile | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/x11/boomer/Makefile b/x11/boomer/Makefile
index 71177839b396..e49a88ae7d05 100644
--- a/x11/boomer/Makefile
+++ b/x11/boomer/Makefile
@@ -32,7 +32,8 @@ post-patch:
 
 do-build:
 	cd ${BUILD_WRKSRC} && nimble build --nim=${LOCALBASE}/nim/bin/nim \
-	--localdeps --offline --reject --verbose -d:release -d:nimDebugDlOpen
+	--nimcache:${WRKDIR}/.nimcache --localdeps --offline --reject \
+	--verbose -d:release -d:nimDebugDlOpen
 
 do-install:
 	${INSTALL_PROGRAM} ${INSTALL_WRKSRC}/${PORTNAME} \