git: a78610c737b7 - main - lang/lfortran: upgrade to 0.21.2

From: Thierry Thomas <thierry_at_FreeBSD.org>
Date: Sun, 08 Oct 2023 17:06:46 UTC
The branch main has been updated by thierry:

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

commit a78610c737b73aaace15261a51d66463307d5c7a
Author:     Thierry Thomas <thierry@FreeBSD.org>
AuthorDate: 2023-10-08 14:04:13 +0000
Commit:     Thierry Thomas <thierry@FreeBSD.org>
CommitDate: 2023-10-08 17:06:40 +0000

    lang/lfortran: upgrade to 0.21.2
    
    Release notes at <https://github.com/lfortran/lfortran/releases/tag/v0.21.2>.
---
 lang/lfortran/Makefile  | 7 +++++--
 lang/lfortran/distinfo  | 6 +++---
 lang/lfortran/pkg-plist | 2 +-
 3 files changed, 9 insertions(+), 6 deletions(-)

diff --git a/lang/lfortran/Makefile b/lang/lfortran/Makefile
index 3b3327607dd2..7f0d141e634b 100644
--- a/lang/lfortran/Makefile
+++ b/lang/lfortran/Makefile
@@ -1,6 +1,6 @@
 PORTNAME=	lfortran
 DISTVERSIONPREFIX=	v
-DISTVERSION=	0.21.1
+DISTVERSION=	0.21.2
 CATEGORIES=	lang
 
 MAINTAINER=	fortran@FreeBSD.org
@@ -30,8 +30,9 @@ SHEBANG_FILES=	*.sh
 BINARY_ALIAS=	python=${PYTHON_CMD}
 CMAKE_ON=	LFORTRAN_BUILD_ALL WITH_DWARFDUMP WITH_FMT WITH_JSON	\
 		WITH_LINKH WITH_LLVM WITH_STACKTRACE WITH_UNWIND
+USE_LDCONFIG=	yes
 
-LLVM_VERSION=	15
+LLVM_VERSION=	15	# 16 is supported too
 
 OPTIONS_DEFINE=	EXAMPLES
 PORTEXAMPLES=	*
@@ -52,6 +53,8 @@ USE_BINUTILS=	yes
 CMAKE_ON+=	WITH_BFD
 LIB_DEPENDS+=	libbfd.so:devel/binutils
 
+PLIST_SUB=	VER=${PORTVERSION}
+
 pre-configure:
 	${ECHO_CMD} ${PORTVERSION} > ${WRKSRC}/version
 
diff --git a/lang/lfortran/distinfo b/lang/lfortran/distinfo
index cb7dfbb92dfb..83c451c92d7e 100644
--- a/lang/lfortran/distinfo
+++ b/lang/lfortran/distinfo
@@ -1,3 +1,3 @@
-TIMESTAMP = 1696689407
-SHA256 (lfortran-lfortran-v0.21.1_GH0.tar.gz) = f0daf532ee9d86aa05c6630bfb7afc9c5fd551dccb0a3937f564f1811f759cec
-SIZE (lfortran-lfortran-v0.21.1_GH0.tar.gz) = 2391190
+TIMESTAMP = 1696771504
+SHA256 (lfortran-lfortran-v0.21.2_GH0.tar.gz) = 3aa390cb552e1a2467b7e8811d3b8a4daeb28d375613d3f245e8111e784fe72c
+SIZE (lfortran-lfortran-v0.21.2_GH0.tar.gz) = 2391176
diff --git a/lang/lfortran/pkg-plist b/lang/lfortran/pkg-plist
index f5e0b9453703..c6379acd5773 100644
--- a/lang/lfortran/pkg-plist
+++ b/lang/lfortran/pkg-plist
@@ -17,5 +17,5 @@ share/jupyter/kernels/fortran/kernel.json
 %%DATADIR%%/lib/lfortran_intrinsic_trig.mod
 %%DATADIR%%/lib/liblfortran_runtime.so
 %%DATADIR%%/lib/liblfortran_runtime.so.0
-%%DATADIR%%/lib/liblfortran_runtime.so.0.21.1
+%%DATADIR%%/lib/liblfortran_runtime.so.%%VER%%
 %%DATADIR%%/lib/liblfortran_runtime_static.a