git: b4092367bdc0 - main - databases/postgresql-plv8js: bump to 3.2.2

From: Michael Zhilin <mizhka_at_FreeBSD.org>
Date: Wed, 31 Jan 2024 20:59:52 UTC
The branch main has been updated by mizhka:

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

commit b4092367bdc07b541b551ccafcf28beb9d7da7c0
Author:     Michael Zhilin <mizhka@FreeBSD.org>
AuthorDate: 2023-12-19 09:58:55 +0000
Commit:     Michael Zhilin <mizhka@FreeBSD.org>
CommitDate: 2024-01-31 20:56:34 +0000

    databases/postgresql-plv8js: bump to 3.2.2
    
    Reported by:    portscout
    Relnotes:       https://github.com/plv8/plv8/commit/2669d52a44bf6d65da840f06fcb603d9bd41fba0
    Sponsored by:   Postgres Professional
---
 databases/postgresql-plv8js/Makefile  | 13 +++++++++----
 databases/postgresql-plv8js/distinfo  |  6 +++---
 databases/postgresql-plv8js/pkg-plist |  2 ++
 3 files changed, 14 insertions(+), 7 deletions(-)

diff --git a/databases/postgresql-plv8js/Makefile b/databases/postgresql-plv8js/Makefile
index b2d0435a25cd..e4cb04c2eabf 100644
--- a/databases/postgresql-plv8js/Makefile
+++ b/databases/postgresql-plv8js/Makefile
@@ -1,5 +1,5 @@
 PORTNAME=	plv8
-PORTVERSION=	3.2.0
+PORTVERSION=	3.2.2
 DISTVERSIONPREFIX=	v
 CATEGORIES=	databases
 PKGNAMEPREFIX=	postgresql${PGSQL_VER:S/.//}-
@@ -10,16 +10,21 @@ COMMENT=	PL/v8js procedural language for PostgreSQL database
 WWW=		https://plv8.github.io/
 
 LICENSE=	PostgreSQL
+
 BUILD_DEPENDS=	bash:shells/bash
 LIB_DEPENDS=	libv8.so:lang/v8
 
 USES=		compiler:c++17-lang gmake pgsql
-USE_PERL5=	build
 USE_GITHUB=	yes
 PLIST_SUB=	PORTVERSION="${PORTVERSION}"
 
-CXXFLAGS+=	-std=c++17 -fno-rtti \
-		-DV8_COMPRESS_POINTERS=1 -DV8_31BIT_SMIS_ON_64BIT_ARCH=1
+.include <bsd.port.options.mk>
+
+CXXFLAGS+=	-std=c++17 -fno-rtti
+# Only for 64-bit architectures
+.if ${ARCH} != armv6 && ${ARCH} != armv7 && ${ARCH} != i386 && ${ARCH} != mips && ${ARCH} != powerpc && ${ARCH} != powerpcspe
+CXXFLAGS+=	-DV8_COMPRESS_POINTERS=1 -DV8_31BIT_SMIS_ON_64BIT_ARCH=1
+.endif
 MAKE_ARGS=	CUSTOM_CC=${CXX} CCFLAGS="${CXXFLAGS}"
 
 .include <bsd.port.mk>
diff --git a/databases/postgresql-plv8js/distinfo b/databases/postgresql-plv8js/distinfo
index 81e8469cf62d..2217e5ce233a 100644
--- a/databases/postgresql-plv8js/distinfo
+++ b/databases/postgresql-plv8js/distinfo
@@ -1,3 +1,3 @@
-TIMESTAMP = 1701334781
-SHA256 (plv8-plv8-v3.2.0_GH0.tar.gz) = ec07b191882bfbba2cb9471ccc4f1e2a3f5360d70f1df83673bb45db81e7cca4
-SIZE (plv8-plv8-v3.2.0_GH0.tar.gz) = 8995530
+TIMESTAMP = 1706693702
+SHA256 (plv8-plv8-v3.2.2_GH0.tar.gz) = 2d1491280505afcdff629191451d0891d3258dbdc483992aa7449a8517335d98
+SIZE (plv8-plv8-v3.2.2_GH0.tar.gz) = 8994848
diff --git a/databases/postgresql-plv8js/pkg-plist b/databases/postgresql-plv8js/pkg-plist
index a7521adc132d..dcd63abeb425 100644
--- a/databases/postgresql-plv8js/pkg-plist
+++ b/databases/postgresql-plv8js/pkg-plist
@@ -39,5 +39,7 @@ share/postgresql/extension/plv8--3.1.5--%%PORTVERSION%%.sql
 share/postgresql/extension/plv8--3.1.6--%%PORTVERSION%%.sql
 share/postgresql/extension/plv8--3.1.7--%%PORTVERSION%%.sql
 share/postgresql/extension/plv8--3.1.8--%%PORTVERSION%%.sql
+share/postgresql/extension/plv8--3.2.0--%%PORTVERSION%%.sql
+share/postgresql/extension/plv8--3.2.1--%%PORTVERSION%%.sql
 share/postgresql/extension/plv8--%%PORTVERSION%%.sql
 share/postgresql/extension/plv8.control