git: 4723a2f5e919 - main - databases/py-psycopg-c: Update to 3.1.20

From: Po-Chuan Hsieh <sunpoet_at_FreeBSD.org>
Date: Sat, 06 Jul 2024 16:18:27 UTC
The branch main has been updated by sunpoet:

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

commit 4723a2f5e919940c8ebc4d4b57ed27faf130e9b7
Author:     Po-Chuan Hsieh <sunpoet@FreeBSD.org>
AuthorDate: 2024-07-06 16:03:01 +0000
Commit:     Po-Chuan Hsieh <sunpoet@FreeBSD.org>
CommitDate: 2024-07-06 16:03:01 +0000

    databases/py-psycopg-c: Update to 3.1.20
    
    Changes:        https://github.com/psycopg/psycopg/blob/master/docs/news.rst
                    https://www.psycopg.org/psycopg3/docs/news.html
---
 databases/py-psycopg-c/Makefile | 11 ++++++++---
 databases/py-psycopg-c/distinfo |  6 +++---
 2 files changed, 11 insertions(+), 6 deletions(-)

diff --git a/databases/py-psycopg-c/Makefile b/databases/py-psycopg-c/Makefile
index 3eea707db42a..584c6b96108a 100644
--- a/databases/py-psycopg-c/Makefile
+++ b/databases/py-psycopg-c/Makefile
@@ -1,5 +1,5 @@
 PORTNAME=	psycopg-c
-PORTVERSION=	3.1.19
+PORTVERSION=	3.1.20
 CATEGORIES=	databases python
 MASTER_SITES=	PYPI
 PKGNAMEPREFIX=	${PYTHON_PKGNAMEPREFIX}
@@ -14,7 +14,6 @@ LICENSE=	LGPL3
 LICENSE_FILE=	${WRKSRC}/LICENSE.txt
 
 BUILD_DEPENDS=	${PYTHON_PKGNAMEPREFIX}setuptools>=49.2.0:devel/py-setuptools@${PY_FLAVOR} \
-		${PYTHON_PKGNAMEPREFIX}tomli>=2.0.1:textproc/py-tomli@${PY_FLAVOR} \
 		${PYTHON_PKGNAMEPREFIX}wheel>=0.37:devel/py-wheel@${PY_FLAVOR}
 
 USES=		pgsql python
@@ -23,4 +22,10 @@ USE_PYTHON=	autoplist concurrent cython pep517
 post-install:
 	${FIND} ${STAGEDIR}${PYTHON_SITELIBDIR} -name '*.so' -exec ${STRIP_CMD} {} +
 
-.include <bsd.port.mk>
+.include <bsd.port.pre.mk>
+
+.if ${PYTHON_REL} < 31100
+BUILD_DEPENDS+=	${PYTHON_PKGNAMEPREFIX}tomli>=2.0.1:textproc/py-tomli@${PY_FLAVOR}
+.endif
+
+.include <bsd.port.post.mk>
diff --git a/databases/py-psycopg-c/distinfo b/databases/py-psycopg-c/distinfo
index 5be1121d34f3..d1a987959f89 100644
--- a/databases/py-psycopg-c/distinfo
+++ b/databases/py-psycopg-c/distinfo
@@ -1,3 +1,3 @@
-TIMESTAMP = 1715842654
-SHA256 (psycopg_c-3.1.19.tar.gz) = 8e90f53c430e7d661cb3a9298e2761847212ead1b24c5fb058fc9d0fd9616017
-SIZE (psycopg_c-3.1.19.tar.gz) = 562146
+TIMESTAMP = 1720022764
+SHA256 (psycopg_c-3.1.20.tar.gz) = a8dadb012fce8918b0c35d9e5be3d6ba4495067117ee45fa49644e46be3c43c8
+SIZE (psycopg_c-3.1.20.tar.gz) = 562110