git: a19d67508e63 - main - devel/root: Fix build/run depends in Makefile

From: Robert Clausecker <fuz_at_FreeBSD.org>
Date: Fri, 27 Oct 2023 06:34:11 UTC
The branch main has been updated by fuz:

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

commit a19d67508e63f959c27d1b13a27aca88f136e10e
Author:     Erik Jensen <erik@tenku.dk>
AuthorDate: 2023-10-25 06:55:45 +0000
Commit:     Robert Clausecker <fuz@FreeBSD.org>
CommitDate: 2023-10-27 06:32:59 +0000

    devel/root: Fix build/run depends in Makefile
    
    Turn bash and nlohmann-json into run-time dependencies,
    as well as build-time dependencies.
    
    PR:             274696
    MFH:            2023Q4
---
 devel/root/Makefile | 6 ++++--
 1 file changed, 4 insertions(+), 2 deletions(-)

diff --git a/devel/root/Makefile b/devel/root/Makefile
index 14f01c1b1da4..4ea696cb7d3d 100644
--- a/devel/root/Makefile
+++ b/devel/root/Makefile
@@ -11,8 +11,9 @@ WWW=		https://root.cern/
 LICENSE=	LGPL21
 LICENSE_FILE=	${WRKSRC}/LGPL2_1.txt
 
-BUILD_DEPENDS=	bash:shells/bash \
-		nlohmann-json>=3:devel/nlohmann-json
+BUILD_AND_RUN_DEPENDS=	bash:shells/bash \
+			nlohmann-json>=3:devel/nlohmann-json
+BUILD_DEPENDS=	${BUILD_AND_RUN_DEPENDS}
 LIB_DEPENDS=	libcfitsio.so:astro/cfitsio \
 		libcurl.so:ftp/curl \
 		libfftw3.so:math/fftw3 \
@@ -29,6 +30,7 @@ LIB_DEPENDS=	libcfitsio.so:astro/cfitsio \
 		libXrdCl.so:databases/xrootd \
 		libxxhash.so:devel/xxhash \
 		libzstd.so:archivers/zstd
+RUN_DEPENDS=	${BUILD_AND_RUN_DEPENDS}
 
 USES=		cmake compiler:c++17-lang desktop-file-utils \
 		gettext-runtime gnome iconv jpeg shebangfix ssl