git: 1d94ca7241af - main - cad/nvc: Update 1.17.1 => 1.18.0

From: Älven <alven_at_FreeBSD.org>
Date: Sat, 04 Oct 2025 15:05:00 UTC
The branch main has been updated by alven:

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

commit 1d94ca7241afa4f3308bd2f45b795a11f7ce6a3b
Author:     Älven <alven@FreeBSD.org>
AuthorDate: 2025-10-04 00:06:50 +0000
Commit:     Älven <alven@FreeBSD.org>
CommitDate: 2025-10-04 15:04:49 +0000

    cad/nvc: Update 1.17.1 => 1.18.0
    
    Changelogs:
    * https://www.nickg.me.uk/nvc/news.html#version-1.18.0---2025-09-28
    
    * Switch MASTER_SITES to upstream official site, add WWW for it
    * Mark ONLY_FOR_ARCHS=  aarch64 amd64 as the only supported by
      upstream for now:
    
      https://github.com/nickg/nvc/blob/14f8f7c4a1733fc39b35799e8ae0328e91d1ae0f/src/jit/jit-code.c#L854
    
    * Remove workarounds for issues closed in upstream
    * Pet portclippy(1) and portfmt(1)
    
    Approved by:    yuri@ (maintainer, Mentor)
    
    Differential Revision: https://reviews.freebsd.org/D52900
---
 cad/nvc/Makefile | 49 +++++++++++++++++++------------------------------
 cad/nvc/distinfo |  6 +++---
 2 files changed, 22 insertions(+), 33 deletions(-)

diff --git a/cad/nvc/Makefile b/cad/nvc/Makefile
index 7d698892ceee..beac46c9805d 100644
--- a/cad/nvc/Makefile
+++ b/cad/nvc/Makefile
@@ -1,62 +1,51 @@
 PORTNAME=	nvc
-DISTVERSIONPREFIX=	r
-DISTVERSION=	1.17.1
+DISTVERSION=	1.18.0
 CATEGORIES=	cad
+MASTER_SITES=	https://www.nickg.me.uk/files/
 
 MAINTAINER=	yuri@FreeBSD.org
 COMMENT=	VHDL compiler and simulator
-WWW=		https://github.com/nickg/nvc
+WWW=		https://www.nickg.me.uk/nvc/ \
+		https://github.com/nickg/nvc
 
 LICENSE=	GPLv3
 LICENSE_FILE=	${WRKSRC}/COPYING
 
-BROKEN_armv7=	compilation fails: no member named '_gregs' in 'mcontext_t'; did you mean '__gregs', see https://github.com/nickg/nvc/issues/534
-BROKEN_i386=	compilation fails: static assertion failed due to requirement 'sizeof(jit_ir_t) == 40': Static assertion failed, see https://github.com/nickg/nvc/issues/1133
-BROKEN_FreeBSD_14_i386=	clang creashes, see https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=265826
+ONLY_FOR_ARCHS=	aarch64 amd64
+# /wrkdirs/usr/ports/cad/nvc/work/nvc-1.18.0/src/jit/jit-code.c:858:42: error: use of undeclared identifier 'veneer'
+#  858 |                        veneer, ARRAY_LEN(veneer));
+#      |
+# https://github.com/nickg/nvc/blob/14f8f7c4a1733fc39b35799e8ae0328e91d1ae0f/src/jit/jit-code.c#L854
+ONLY_FOR_ARCHS_REASON=	compilation fails: jit-code.c:858:42: error: use of undeclared identifier 'veneer'
 
 BUILD_DEPENDS=	llvm-config${LLVM_VERSION}:devel/llvm${LLVM_VERSION}
-LIB_DEPENDS=	libelf.so:devel/libelf \
-		libffi.so:devel/libffi \
+LIB_DEPENDS=	libffi.so:devel/libffi \
 		libzstd.so:archivers/zstd
-RUN_DEPENDS=	llvm${LLVM_VERSION}>0:devel/llvm${LLVM_VERSION} \
-		bash:shells/bash
+RUN_DEPENDS=	bash:shells/bash \
+		llvm${LLVM_VERSION}>0:devel/llvm${LLVM_VERSION}
 TEST_DEPENDS=	check>0:devel/check
 
 USES=		autoreconf compiler:c++14-lang localbase pkgconfig shebangfix
 
-USE_GITHUB=	yes
-GH_ACCOUNT=	nickg
-
 SHEBANG_FILES=	contrib/functions.sh
 
 GNU_CONFIGURE=	yes
-GNU_CONFIGURE_MANPREFIX=	${PREFIX}/share
-
-LDFLAGS+=	-lexecinfo
-
+CONFIGURE_CMD=	${WRKSRC}/configure
 CONFIGURE_ARGS=	--with-llvm=${LOCALBASE}/bin/llvm-config${LLVM_VERSION}
 
-MAKE_JOBS_UNSAFE=	yes # workaround for https://github.com/nickg/nvc/issues/746
-
-TEST_TARGET=	check
-TEST_WRKSRC=	${WRKSRC}/.build
-
 MAKE_ARGS=	CFLAGS="${CFLAGS}" # only for tests
+TEST_TARGET=	check
 
-LLVM_VERSION=	${LLVM_DEFAULT}
+LDFLAGS+=	-lexecinfo
 
 # outsource build is required by the project
-BUILD_DIR=		${WRKSRC}/.build
 BUILD_WRKSRC=		${BUILD_DIR}
 CONFIGURE_WRKSRC=	${BUILD_DIR}
 INSTALL_WRKSRC=		${BUILD_DIR}
-CONFIGURE_CMD=		${WRKSRC}/configure
-
-.include <bsd.port.options.mk>
+TEST_WRKSRC=		${WRKSRC}/.build
 
-.if ${ARCH} == "i386" # see the bug#268319 for the LTO failure on i386
-CONFIGURE_ARGS+=	--disable-lto # workaround for https://github.com/nickg/nvc/issues/579 (undefined symbol: _GLOBAL_OFFSET_TABLE_, see error: undefined symbol: _GLOBAL_OFFSET_TABLE_)
-.endif
+BUILD_DIR=	${WRKSRC}/.build
+LLVM_VERSION=	${LLVM_DEFAULT}
 
 post-install:
 	@${FIND} ${STAGEDIR}${PREFIX} -name "*.so" | ${XARGS} ${STRIP_CMD}
diff --git a/cad/nvc/distinfo b/cad/nvc/distinfo
index 1c6691618031..cf5e62d65585 100644
--- a/cad/nvc/distinfo
+++ b/cad/nvc/distinfo
@@ -1,3 +1,3 @@
-TIMESTAMP = 1753630627
-SHA256 (nickg-nvc-r1.17.1_GH0.tar.gz) = be6268c5848f518d3fc67058ca50fa4b1d68267b558bb4e023abe5d3f8a5bb63
-SIZE (nickg-nvc-r1.17.1_GH0.tar.gz) = 2265466
+TIMESTAMP = 1759533077
+SHA256 (nvc-1.18.0.tar.gz) = 02c0aaac59f7277f3151f9ddb7052928b7b7e89c1f77ae2b1c47d55988c64588
+SIZE (nvc-1.18.0.tar.gz) = 2597518