git: f1661bdbbac2 - main - databases/sqlite3: Update to 3.37.2

From: Fernando Apesteguía <fernape_at_FreeBSD.org>
Date: Mon, 10 Jan 2022 15:05:30 UTC
The branch main has been updated by fernape:

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

commit f1661bdbbac2d08cc535e38e41d2bbd3fec025c4
Author:     Pavel Volkov <pavelivolkov@gmail.com>
AuthorDate: 2022-01-10 12:59:29 +0000
Commit:     Fernando Apesteguía <fernape@FreeBSD.org>
CommitDate: 2022-01-10 15:03:57 +0000

    databases/sqlite3: Update to 3.37.2
    
    PR:     261000
    Reported by:    pavelivolkov@gmail.com (maintainer)
---
 databases/sqlite3/Makefile      | 21 ++++++++++-----------
 databases/sqlite3/distinfo      |  6 +++---
 databases/sqlite3/pkg-descr-tea |  4 ++++
 3 files changed, 17 insertions(+), 14 deletions(-)

diff --git a/databases/sqlite3/Makefile b/databases/sqlite3/Makefile
index aa14a56e12f4..f17d3cae2d7b 100644
--- a/databases/sqlite3/Makefile
+++ b/databases/sqlite3/Makefile
@@ -1,8 +1,7 @@
 # Created by: Ying-Chieh Liao <ijliao@FreeBSD.org>
 
 PORTNAME=	sqlite3
-DISTVERSION=	3.37.1
-#PORTREVISION=	0
+DISTVERSION=	3.37.2
 PORTEPOCH=	1
 CATEGORIES=	databases
 MASTER_SITES=	https://www.sqlite.org/${YEAR}/ https://www2.sqlite.org/${YEAR}/ https://www3.sqlite.org/${YEAR}/
@@ -216,7 +215,7 @@ URI_AUTHORITY_CPPFLAGS=	-DSQLITE_ALLOW_URI_AUTHORITY=1
 .include <bsd.port.options.mk>
 
 # YEAR=	${%Y:L:gmtime} - do not work with the version from the previous year
-YEAR=	2021
+YEAR=	2022
 
 # Platform Configuration
 # -DHAVE_POSIX_FALLOCATE=1 not yet, chunksize.test ZFS failure chunksize-1.2 expected: [32768] got: [2048]
@@ -242,7 +241,7 @@ CFLAGS_powerpc64le=	-DSQLITE_BYTEORDER=1234
 # EXTRACT_DEPENDS=p5-Digest-SHA3:security/p5-Digest-SHA3; USES=perl5; USE_PERL5=extract;
 # @${PERL} -MDigest::SHA3 -le 'print Digest::SHA3->new(sha_256_hex)->add(<>)->hexdigest' < ${DISTDIR}/${ALLFILES}
 pre-extract:
-	@${WHICH} sha3sum > /dev/null && ${ECHO_MSG} -n "=> " && sha3sum -a 256 --tag ${DISTDIR}/${ALLFILES} || ${TRUE}
+	@${WHICH} sha3sum > /dev/null && for entry in ${ALLFILES}; do ${ECHO_MSG} -n "=> "; sha3sum -a 256 --tag "${DISTDIR}/$${entry}"; done || ${TRUE}
 
 post-configure:
 	@${ECHO_MSG} "===> CONFIGURE_ARGS=${CONFIGURE_ARGS}"
@@ -253,11 +252,11 @@ post-configure:
 
 post-install:
 .if !defined(TEA)
-	${INSTALL_MAN} ${WRKSRC}/sqlite3.1 ${STAGEDIR}${PREFIX}/man/man1
-	${RM} ${STAGEDIR}${PREFIX}/include/msvc.h
+	${INSTALL_MAN} "${WRKSRC}/${PORTNAME}.1" "${STAGEDIR}${PREFIX}/man/man1"
+	${RM} "${STAGEDIR}${PREFIX}/include/msvc.h"
 	${SETENV} LD_LIBMAP_DISABLE=1 ldd -a "${STAGEDIR}${PREFIX}/bin/${PORTNAME}" "${STAGEDIR}${PREFIX}/lib/lib${PORTNAME}.so"
 .else
-	${RM} ${STAGEDIR}${PREFIX}/lib/libsqlite3.so.0.8.6 ${STAGEDIR}${PREFIX}/lib/libsqlite3.a
+	${RM} "${STAGEDIR}${PREFIX}/lib/lib${PORTNAME}.so.0.8.6" "${STAGEDIR}${PREFIX}/lib/lib${PORTNAME}.a"
 .endif
 
 post-install-STRIP-on:
@@ -269,11 +268,11 @@ post-install-STRIP-on:
 .endif
 
 post-install-TCL-on:
-	${INSTALL_PROGRAM} ${WRKSRC}/sqlite3_analyzer ${STAGEDIR}${PREFIX}/bin
-	${INSTALL_MAN} ${WRKSRC}/autoconf/tea/doc/${PORTNAME}.n ${STAGEDIR}${PREFIX}/man/mann/${PORTNAME}.tcl${TCL_VER:S/.//g}.n
+	${INSTALL_PROGRAM} "${WRKSRC}/${PORTNAME}_analyzer" "${STAGEDIR}${PREFIX}/bin"
+	${INSTALL_MAN} "${WRKSRC}/autoconf/tea/doc/${PORTNAME}.n" "${STAGEDIR}${PREFIX}/man/mann/${PORTNAME}.tcl${TCL_VER:S/.//g}.n"
 .if ${PORT_OPTIONS:MEXAMPLES}
-	${MKDIR} ${STAGEDIR}${EXAMPLESDIR}
-	${INSTALL_SCRIPT} ${WRKDIR}/${SUB_FILES} ${WRKSRC}/contrib/sqlitecon.tcl ${STAGEDIR}${EXAMPLESDIR}
+	${MKDIR} "${STAGEDIR}${EXAMPLESDIR}"
+	${INSTALL_SCRIPT} "${WRKDIR}/${SUB_FILES}" "${WRKSRC}/contrib/sqlitecon.tcl" "${STAGEDIR}${EXAMPLESDIR}"
 .endif
 
 pre-test:
diff --git a/databases/sqlite3/distinfo b/databases/sqlite3/distinfo
index 0b9e8eec1a18..cfc0ad8033d1 100644
--- a/databases/sqlite3/distinfo
+++ b/databases/sqlite3/distinfo
@@ -1,3 +1,3 @@
-TIMESTAMP = 1641122781
-SHA256 (sqlite-src-3370100.zip) = 7168153862562d7ac619a286368bd61a04ef3e5736307eac63cadbb85ec8bb12
-SIZE (sqlite-src-3370100.zip) = 13142659
+TIMESTAMP = 1641540089
+SHA256 (sqlite-src-3370200.zip) = 486770b4d5f88b5bb0dba540dd6ee1763067d7539dfee18a7c66fe9bb03d16d9
+SIZE (sqlite-src-3370200.zip) = 13145234
diff --git a/databases/sqlite3/pkg-descr-tea b/databases/sqlite3/pkg-descr-tea
new file mode 100644
index 000000000000..879810d67c5a
--- /dev/null
+++ b/databases/sqlite3/pkg-descr-tea
@@ -0,0 +1,4 @@
+This is the SQLite extension for Tcl using the Tcl Extension
+Architecture (TEA).
+
+WWW: https://www.sqlite.org/