git: b91c48cd4c09 - main - cad/ghdl: Update 5.0.1 => 5.1.1

From: Älven <alven_at_FreeBSD.org>
Date: Fri, 03 Oct 2025 09:16:26 UTC
The branch main has been updated by alven:

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

commit b91c48cd4c09bc4eff6fa86377696eb8bebe6e61
Author:     Älven <alven@FreeBSD.org>
AuthorDate: 2025-10-02 15:37:37 +0000
Commit:     Älven <alven@FreeBSD.org>
CommitDate: 2025-10-03 09:16:19 +0000

    cad/ghdl: Update 5.0.1 => 5.1.1
    
    Changelogs:
    * https://github.com/ghdl/ghdl/releases/tag/v5.1.1
    * https://github.com/ghdl/ghdl/compare/v5.0.1...v5.1.1
    
    * Mark as PIE_UNSAFE
    * Pet portclippy(1) and portfmt(1)
    
    Approved by:    yuri@ (maintainer, Mentor)
    
    Differential Revision: https://reviews.freebsd.org/D52859
---
 cad/ghdl/Makefile  | 37 +++++++++++++++++++------------------
 cad/ghdl/distinfo  |  6 +++---
 cad/ghdl/pkg-plist |  6 +++---
 3 files changed, 25 insertions(+), 24 deletions(-)

diff --git a/cad/ghdl/Makefile b/cad/ghdl/Makefile
index cdbb15775212..21434b11b2e7 100644
--- a/cad/ghdl/Makefile
+++ b/cad/ghdl/Makefile
@@ -1,7 +1,6 @@
 PORTNAME=	ghdl
 DISTVERSIONPREFIX=	v
-DISTVERSION=	5.0.1
-PORTREVISION=	1
+DISTVERSION=	5.1.1
 CATEGORIES=	cad
 
 MAINTAINER=	yuri@FreeBSD.org
@@ -13,41 +12,38 @@ LICENSE_FILE=	${WRKSRC}/COPYING.md
 
 BROKEN_aarch64=	build breaks, see https://github.com/ghdl/ghdl/issues/2639
 
-TEST_DEPENDS=	bash:shells/bash \
-		${PYTHON_PKGNAMEPREFIX}pyTooling>=2.11.0:devel/py-pyTooling@${PY_FLAVOR}
+TEST_DEPENDS=	${PYTHON_PKGNAMEPREFIX}pyTooling>=2.11.0:devel/py-pyTooling@${PY_FLAVOR} \
+		bash:shells/bash
 
 USES=		ada:run gmake python:test shebangfix
-SHEBANG_FILES=	testsuite/testsuite.sh
+USE_GITHUB=	yes
 USE_LDCONFIG=	yes
-NO_SHLIB_REQUIRES_GLOB=	libgnat-12.so
 
-USE_GITHUB=	yes
+SHEBANG_FILES=	testsuite/testsuite.sh
 
 GNU_CONFIGURE=	yes
 
+NO_SHLIB_REQUIRES_GLOB=	libgnat-12.so
+PIE_UNSAFE=	yes
+
 OPTIONS_DEFINE=		SYNTH
-OPTIONS_SINGLE=		BACKEND
-OPTIONS_SINGLE_BACKEND=	MCODE LLVM
 OPTIONS_DEFAULT=	LLVM SYNTH
+OPTIONS_SINGLE=		BACKEND
+OPTIONS_SINGLE_BACKEND=	LLVM MCODE
 OPTIONS_SUB=		yes
 
-MCODE_DESC=		Use the MCODE backend
+LLVM_DESC=	Use the LLVM backend
+MCODE_DESC=	Use the MCODE backend
 # MCODE is enabled by default and doesn't require any configuration options
+SYNTH_DESC=	Enable Synthesis Features in ghdl
 
-LLVM_USES=		llvm:15,lib ncurses
+LLVM_USES=		llvm:lib ncurses
 LLVM_CONFIGURE_ON=	--with-llvm-config=${LOCALBASE}/bin/llvm-config${LLVM_VERSION}
-
-SYNTH_DESC=		Enable Synthesis Features in ghdl
 SYNTH_CONFIGURE_ON=	--enable-synth
 
 post-install:
 	@${STRIP_CMD} ${STAGEDIR}${PREFIX}/lib/libghdl-${DISTVERSION:S/./_/g}.so
 
-post-install-MCODE-on:
-	@${STRIP_CMD} \
-		${STAGEDIR}${PREFIX}/bin/ghdl \
-		${STAGEDIR}${PREFIX}/lib/libghdlvpi.so
-
 post-install-LLVM-on:
 	@${STRIP_CMD} \
 		${STAGEDIR}${PREFIX}/bin/ghdl \
@@ -56,6 +52,11 @@ post-install-LLVM-on:
 		${STAGEDIR}${PREFIX}/lib/libghdlvpi.so \
 		${STAGEDIR}${PREFIX}/lib/libghw.so
 
+post-install-MCODE-on:
+	@${STRIP_CMD} \
+		${STAGEDIR}${PREFIX}/bin/ghdl \
+		${STAGEDIR}${PREFIX}/lib/libghdlvpi.so
+
 do-test:
 	@cd ${WRKSRC}/testsuite && \
 		${SETENV} ${MAKE_ENV} GHDL=${STAGEDIR}${PREFIX}/bin/ghdl ${SH} testsuite.sh
diff --git a/cad/ghdl/distinfo b/cad/ghdl/distinfo
index ca9babf98efb..42a05d02f23b 100644
--- a/cad/ghdl/distinfo
+++ b/cad/ghdl/distinfo
@@ -1,3 +1,3 @@
-TIMESTAMP = 1740902757
-SHA256 (ghdl-ghdl-v5.0.1_GH0.tar.gz) = a4cef27312a158c28498eeb62a470007354755b267adb62005a04b66143a1f92
-SIZE (ghdl-ghdl-v5.0.1_GH0.tar.gz) = 7851730
+TIMESTAMP = 1758491532
+SHA256 (ghdl-ghdl-v5.1.1_GH0.tar.gz) = 00cd58ec8f25e2532465aabc8705f43071f20dc1d13e03fd9dc235523186fca9
+SIZE (ghdl-ghdl-v5.1.1_GH0.tar.gz) = 7894213
diff --git a/cad/ghdl/pkg-plist b/cad/ghdl/pkg-plist
index bc4337473f6a..62fd7629460d 100644
--- a/cad/ghdl/pkg-plist
+++ b/cad/ghdl/pkg-plist
@@ -2,10 +2,10 @@ bin/ghdl
 %%LLVM%%bin/ghdl1-llvm
 bin/ghwdump
 include/ghdl/libghw.h
+include/ghdl/synth.h
+include/ghdl/synth_gates.h
 include/ghdl/vhpi_user.h
 include/ghdl/vpi_user.h
-%%SYNTH%%include/ghdl/synth.h
-%%SYNTH%%include/ghdl/synth_gates.h
 lib/ghdl/ansi_color.sh
 %%LLVM%%lib/ghdl/grt-exec.lst
 %%LLVM%%lib/ghdl/grt-shared.lst
@@ -196,7 +196,7 @@ lib/ghdl/vendors/config.sh
 lib/ghdl/vendors/filter.analyze.sh
 lib/ghdl/vendors/shared.psm1
 lib/ghdl/vendors/shared.sh
-lib/libghdl-5_0_1.so
+lib/libghdl-5_1_1.so
 lib/libghdl.a
 lib/libghdl.link
 lib/libghdlvpi.so