git: af429fc4e930 - main - lang/lfortran: upgrade to v0.21.1

From: Thierry Thomas <thierry_at_FreeBSD.org>
Date: Sat, 07 Oct 2023 15:45:00 UTC
The branch main has been updated by thierry:

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

commit af429fc4e930dc8c7ba36bbacc35d2d71d0ecfcc
Author:     Thierry Thomas <thierry@FreeBSD.org>
AuthorDate: 2023-10-07 15:43:23 +0000
Commit:     Thierry Thomas <thierry@FreeBSD.org>
CommitDate: 2023-10-07 15:43:23 +0000

    lang/lfortran: upgrade to v0.21.1
    
    Releases notes at <https://github.com/lfortran/lfortran/releases>.
---
 lang/lfortran/Makefile  | 9 +++++++--
 lang/lfortran/distinfo  | 6 +++---
 lang/lfortran/pkg-plist | 5 ++++-
 3 files changed, 14 insertions(+), 6 deletions(-)

diff --git a/lang/lfortran/Makefile b/lang/lfortran/Makefile
index 3ceaceb7d0b0..3b3327607dd2 100644
--- a/lang/lfortran/Makefile
+++ b/lang/lfortran/Makefile
@@ -1,6 +1,6 @@
 PORTNAME=	lfortran
 DISTVERSIONPREFIX=	v
-DISTVERSION=	0.20.3
+DISTVERSION=	0.21.1
 CATEGORIES=	lang
 
 MAINTAINER=	fortran@FreeBSD.org
@@ -33,7 +33,8 @@ CMAKE_ON=	LFORTRAN_BUILD_ALL WITH_DWARFDUMP WITH_FMT WITH_JSON	\
 
 LLVM_VERSION=	15
 
-OPTIONS_DEFINE=	DOCS
+OPTIONS_DEFINE=	EXAMPLES
+PORTEXAMPLES=	*
 
 # Xeus: version 3.0.5 is required and xeus-zmq 1.0.2
 # + xtl-quant-stack + cppzmq + nlohmann_json + LibUUID + libzmq4
@@ -54,4 +55,8 @@ LIB_DEPENDS+=	libbfd.so:devel/binutils
 pre-configure:
 	${ECHO_CMD} ${PORTVERSION} > ${WRKSRC}/version
 
+post-install-EXAMPLES-on:
+	@${MKDIR} ${STAGEDIR}${EXAMPLESDIR}
+	(cd ${WRKSRC}/examples && ${COPYTREE_SHARE} . ${STAGEDIR}${EXAMPLESDIR})
+
 .include <bsd.port.mk>
diff --git a/lang/lfortran/distinfo b/lang/lfortran/distinfo
index af2116d845c3..cb7dfbb92dfb 100644
--- a/lang/lfortran/distinfo
+++ b/lang/lfortran/distinfo
@@ -1,3 +1,3 @@
-TIMESTAMP = 1694269873
-SHA256 (lfortran-lfortran-v0.20.3_GH0.tar.gz) = fa0e1cf8bf9764e254973725dfa7319ddd5c160320aa670e210d4b8415298591
-SIZE (lfortran-lfortran-v0.20.3_GH0.tar.gz) = 2300921
+TIMESTAMP = 1696689407
+SHA256 (lfortran-lfortran-v0.21.1_GH0.tar.gz) = f0daf532ee9d86aa05c6630bfb7afc9c5fd551dccb0a3937f564f1811f759cec
+SIZE (lfortran-lfortran-v0.21.1_GH0.tar.gz) = 2391190
diff --git a/lang/lfortran/pkg-plist b/lang/lfortran/pkg-plist
index 353bf2050a68..f5e0b9453703 100644
--- a/lang/lfortran/pkg-plist
+++ b/lang/lfortran/pkg-plist
@@ -1,7 +1,9 @@
 bin/lfortran
+share/jupyter/kernels/fortran/kernel.json
 %%DATADIR%%/lib/impure/lfortran_intrinsics.h
 %%DATADIR%%/lib/lfortran_intrinsic_bit.mod
 %%DATADIR%%/lib/lfortran_intrinsic_builtin.mod
+%%DATADIR%%/lib/lfortran_intrinsic_custom.mod
 %%DATADIR%%/lib/lfortran_intrinsic_ieee_arithmetic.mod
 %%DATADIR%%/lib/lfortran_intrinsic_iso_c_binding.mod
 %%DATADIR%%/lib/lfortran_intrinsic_iso_fortran_env.mod
@@ -14,5 +16,6 @@ bin/lfortran
 %%DATADIR%%/lib/lfortran_intrinsic_string.mod
 %%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_static.a
-share/jupyter/kernels/fortran/kernel.json