git: cde90c30cba1 - main - textproc/py-mistune: Convert to USE_PYTHON=pep517

From: Po-Chuan Hsieh <sunpoet_at_FreeBSD.org>
Date: Tue, 21 Mar 2023 19:30:17 UTC
The branch main has been updated by sunpoet:

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

commit cde90c30cba1af8999ec9eb0352d01f5de902ce7
Author:     Po-Chuan Hsieh <sunpoet@FreeBSD.org>
AuthorDate: 2023-03-21 18:48:30 +0000
Commit:     Po-Chuan Hsieh <sunpoet@FreeBSD.org>
CommitDate: 2023-03-21 19:21:21 +0000

    textproc/py-mistune: Convert to USE_PYTHON=pep517
    
    - Bump PORTREVISION for dependency and package change
---
 textproc/py-mistune/Makefile       | 9 +++++----
 textproc/py-mistune/files/setup.py | 3 ---
 2 files changed, 5 insertions(+), 7 deletions(-)

diff --git a/textproc/py-mistune/Makefile b/textproc/py-mistune/Makefile
index ca1c6807f220..a52d4c5bbbc1 100644
--- a/textproc/py-mistune/Makefile
+++ b/textproc/py-mistune/Makefile
@@ -1,5 +1,6 @@
 PORTNAME=	mistune
 PORTVERSION=	2.0.4
+PORTREVISION=	1
 CATEGORIES=	textproc python
 MASTER_SITES=	PYPI
 PKGNAMEPREFIX=	${PYTHON_PKGNAMEPREFIX}
@@ -11,14 +12,14 @@ WWW=		https://github.com/lepture/mistune
 LICENSE=	BSD3CLAUSE
 LICENSE_FILE=	${WRKSRC}/LICENSE
 
+BUILD_DEPENDS=	${PYTHON_PKGNAMEPREFIX}setuptools>=0:devel/py-setuptools@${PY_FLAVOR} \
+		${PYTHON_PKGNAMEPREFIX}wheel>=0:devel/py-wheel@${PY_FLAVOR}
+
 USES=		cpe python:3.6+
-USE_PYTHON=	autoplist concurrent distutils unittest
+USE_PYTHON=	autoplist concurrent pep517 unittest
 
 NO_ARCH=	yes
 
 CPE_VENDOR=	mistune_project
 
-post-patch:
-	@${CP} ${FILESDIR}/setup.py ${WRKSRC}/
-
 .include <bsd.port.mk>
diff --git a/textproc/py-mistune/files/setup.py b/textproc/py-mistune/files/setup.py
deleted file mode 100644
index 606849326a40..000000000000
--- a/textproc/py-mistune/files/setup.py
+++ /dev/null
@@ -1,3 +0,0 @@
-from setuptools import setup
-
-setup()