git: 63b2c6d91c30 - main - www/py-flask-apscheduler: Convert to USE_PYTHON=pep517

From: Po-Chuan Hsieh <sunpoet_at_FreeBSD.org>
Date: Mon, 13 May 2024 14:24:58 UTC
The branch main has been updated by sunpoet:

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

commit 63b2c6d91c300de46e4ecc62b41228f785296ca1
Author:     Po-Chuan Hsieh <sunpoet@FreeBSD.org>
AuthorDate: 2024-05-13 14:12:42 +0000
Commit:     Po-Chuan Hsieh <sunpoet@FreeBSD.org>
CommitDate: 2024-05-13 14:12:42 +0000

    www/py-flask-apscheduler: Convert to USE_PYTHON=pep517
    
    - Bump PORTREVISION for package change
---
 www/py-flask-apscheduler/Makefile             | 6 ++++--
 www/py-flask-apscheduler/files/patch-setup.py | 9 +++++++++
 2 files changed, 13 insertions(+), 2 deletions(-)

diff --git a/www/py-flask-apscheduler/Makefile b/www/py-flask-apscheduler/Makefile
index 7ff73acafd01..f8ae7e8fae6f 100644
--- a/www/py-flask-apscheduler/Makefile
+++ b/www/py-flask-apscheduler/Makefile
@@ -1,6 +1,6 @@
 PORTNAME=	flask-apscheduler
 PORTVERSION=	1.13.1
-PORTREVISION=	1
+PORTREVISION=	2
 CATEGORIES=	www python
 MASTER_SITES=	PYPI \
 		https://github.com/viniciuschiele/flask-apscheduler/releases/download/${PORTVERSION}/
@@ -14,12 +14,14 @@ WWW=		https://github.com/viniciuschiele/flask-apscheduler
 LICENSE=	APACHE20
 LICENSE_FILE=	${WRKSRC}/LICENSE
 
+BUILD_DEPENDS=	${PYTHON_PKGNAMEPREFIX}setuptools>=0:devel/py-setuptools@${PY_FLAVOR} \
+		${PYTHON_PKGNAMEPREFIX}wheel>=0:devel/py-wheel@${PY_FLAVOR}
 RUN_DEPENDS=	${PYTHON_PKGNAMEPREFIX}apscheduler>=3.2.0<4.0.0:devel/py-apscheduler@${PY_FLAVOR} \
 		${PYTHON_PKGNAMEPREFIX}flask>=2.2.5<4.0.0:www/py-flask@${PY_FLAVOR} \
 		${PYTHON_PKGNAMEPREFIX}python-dateutil>=2.4.2:devel/py-python-dateutil@${PY_FLAVOR}
 
 USES=		python
-USE_PYTHON=	autoplist concurrent distutils
+USE_PYTHON=	autoplist concurrent pep517
 
 NO_ARCH=	yes
 
diff --git a/www/py-flask-apscheduler/files/patch-setup.py b/www/py-flask-apscheduler/files/patch-setup.py
index 98badf70bdec..70d0779a80a2 100644
--- a/www/py-flask-apscheduler/files/patch-setup.py
+++ b/www/py-flask-apscheduler/files/patch-setup.py
@@ -1,5 +1,14 @@
 --- setup.py.orig	2023-11-07 12:41:21 UTC
 +++ setup.py
+@@ -4,7 +4,7 @@ setup(
+     long_description = fh.read()
+ 
+ setup(
+-    name="Flask-APScheduler",
++    name="flask-apscheduler",
+     version="1.13.1",
+     packages=["flask_apscheduler"],
+     url="https://github.com/viniciuschiele/flask-apscheduler",
 @@ -17,7 +17,6 @@ setup(
      keywords=["apscheduler", "scheduler", "scheduling", "cron"],
      python_requires=">=3.8",