git: 16c40c81d3d6 - main - cad/verilator: Add binutils as runtime dependency to use the same 'ar' as during build

From: Yuri Victorovich <yuri_at_FreeBSD.org>
Date: Mon, 22 May 2023 02:05:07 UTC
The branch main has been updated by yuri:

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

commit 16c40c81d3d6aad8e7dc730b53ba8729da9306f4
Author:     Yuri Victorovich <yuri@FreeBSD.org>
AuthorDate: 2023-05-22 02:03:52 +0000
Commit:     Yuri Victorovich <yuri@FreeBSD.org>
CommitDate: 2023-05-22 02:04:59 +0000

    cad/verilator: Add binutils as runtime dependency to use the same 'ar' as during build
---
 cad/verilator/Makefile | 8 +++-----
 1 file changed, 3 insertions(+), 5 deletions(-)

diff --git a/cad/verilator/Makefile b/cad/verilator/Makefile
index bed4ffa8eda1..b3b3ba6a1115 100644
--- a/cad/verilator/Makefile
+++ b/cad/verilator/Makefile
@@ -1,7 +1,7 @@
 PORTNAME=	verilator
 DISTVERSIONPREFIX=	v
 DISTVERSION=	5.010
-PORTREVISION=	1
+PORTREVISION=	2
 CATEGORIES=	cad
 
 MAINTAINER=	yuri@FreeBSD.org
@@ -18,7 +18,8 @@ BUILD_DEPENDS=	autoconf>0:devel/autoconf \
 		${LOCALBASE}/bin/ar:devel/binutils \
 		help2man:misc/help2man
 LIB_DEPENDS=	libsystemc.so:devel/systemc
-RUN_DEPENDS=	gmake:devel/gmake # verilator runs gmake for the --hierarchical option when the 'gmake' method is chosen
+RUN_DEPENDS=	${LOCALBASE}/bin/ar:devel/binutils \
+		gmake:devel/gmake # verilator runs gmake for the --hierarchical option when the 'gmake' method is chosen
 
 USES=		bison compiler:c++14-lang gmake localbase:ldflags pathfix perl5 python:build,run,test shebangfix tar:tgz
 USE_GITHUB=	yes
@@ -62,9 +63,6 @@ pre-configure:
 post-build:
 	@${STRIP_CMD} ${WRKSRC}/bin/verilator_bin
 
-post-install: # workaround for https://github.com/verilator/verilator/issues/4213: share/verilator/include/verilated.mk contains non-existent AR=/usr/local/bin/ar
-	@${REINPLACE_CMD} -i '' -e 's|^AR = .*|AR = /usr/bin/ar|' ${STAGEDIR}${PREFIX}/share/verilator/include/verilated.mk
-
 post-install-INSTALL_DBG_EXECUTABLES-off:
 	@${STRIP_CMD} ${STAGEDIR}${PREFIX}/bin/verilator_bin
 	@${RM} ${STAGEDIR}${PREFIX}/bin/verilator_bin_dbg ${STAGEDIR}${PREFIX}/bin/verilator_coverage_bin_dbg