git: bc1fef110855 - main - databases/py-psycopg-c: Convert to USE_PYTHON=pep517

From: Po-Chuan Hsieh <sunpoet_at_FreeBSD.org>
Date: Wed, 05 Apr 2023 17:35:49 UTC
The branch main has been updated by sunpoet:

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

commit bc1fef11085525334a8b0068dc63007e27536e45
Author:     Po-Chuan Hsieh <sunpoet@FreeBSD.org>
AuthorDate: 2023-04-05 17:15:45 +0000
Commit:     Po-Chuan Hsieh <sunpoet@FreeBSD.org>
CommitDate: 2023-04-05 17:30:12 +0000

    databases/py-psycopg-c: Convert to USE_PYTHON=pep517
    
    - Update WWW and clean up pkg-descr
    - Bump PORTREVISION for package change
---
 databases/py-psycopg-c/Makefile  | 10 ++++++++--
 databases/py-psycopg-c/pkg-descr |  2 --
 2 files changed, 8 insertions(+), 4 deletions(-)

diff --git a/databases/py-psycopg-c/Makefile b/databases/py-psycopg-c/Makefile
index 5e8fca2b0fae..52e2fd3c404b 100644
--- a/databases/py-psycopg-c/Makefile
+++ b/databases/py-psycopg-c/Makefile
@@ -1,18 +1,24 @@
 PORTNAME=	psycopg-c
 PORTVERSION=	3.1.8
+PORTREVISION=	1
 CATEGORIES=	databases python
 MASTER_SITES=	PYPI
 PKGNAMEPREFIX=	${PYTHON_PKGNAMEPREFIX}
 
 MAINTAINER=	sunpoet@FreeBSD.org
 COMMENT=	PostgreSQL database adapter for Python - C optimization distribution
-WWW=		https://www.psycopg.org/
+WWW=		https://www.psycopg.org/ \
+		https://github.com/psycopg/psycopg/tree/master/psycopg_c
 
 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:3.7+
-USE_PYTHON=	autoplist concurrent cython distutils
+USE_PYTHON=	autoplist concurrent cython pep517
 
 post-install:
 	${FIND} ${STAGEDIR}${PYTHON_SITELIBDIR} -name '*.so' -exec ${STRIP_CMD} {} +
diff --git a/databases/py-psycopg-c/pkg-descr b/databases/py-psycopg-c/pkg-descr
index 0d5b1bf52d89..304f1b7fe017 100644
--- a/databases/py-psycopg-c/pkg-descr
+++ b/databases/py-psycopg-c/pkg-descr
@@ -1,5 +1,3 @@
 PostgreSQL database adapter for Python - optimization package
 
 Psycopg 3 is a modern implementation of a PostgreSQL adapter for Python.
-
-See also: https://github.com/psycopg/psycopg/tree/master/psycopg_c