git: 4e5ce2aec65d - main - textproc/py-mdurl: Convert to USE_PYTHON=pep517

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

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

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

    textproc/py-mdurl: Convert to USE_PYTHON=pep517
    
    - Bump PORTREVISION for dependency and package change
---
 textproc/py-mdurl/Makefile       |  8 ++++----
 textproc/py-mdurl/files/setup.py | 25 -------------------------
 2 files changed, 4 insertions(+), 29 deletions(-)

diff --git a/textproc/py-mdurl/Makefile b/textproc/py-mdurl/Makefile
index a3168c1a95c9..8a65eab4506c 100644
--- a/textproc/py-mdurl/Makefile
+++ b/textproc/py-mdurl/Makefile
@@ -1,5 +1,6 @@
 PORTNAME=	mdurl
 PORTVERSION=	0.1.2
+PORTREVISION=	1
 CATEGORIES=	textproc python
 MASTER_SITES=	PYPI
 PKGNAMEPREFIX=	${PYTHON_PKGNAMEPREFIX}
@@ -11,12 +12,11 @@ WWW=		https://github.com/executablebooks/mdurl
 LICENSE=	MIT
 LICENSE_FILE=	${WRKSRC}/LICENSE
 
+BUILD_DEPENDS=	${PYTHON_PKGNAMEPREFIX}flit-core>=3.2.0<4:devel/py-flit-core@${PY_FLAVOR}
+
 USES=		python:3.7+
-USE_PYTHON=	autoplist concurrent distutils
+USE_PYTHON=	autoplist concurrent pep517
 
 NO_ARCH=	yes
 
-post-patch:
-	@${SED} -e 's|%%PORTVERSION%%|${PORTVERSION}|' ${FILESDIR}/setup.py > ${WRKSRC}/setup.py
-
 .include <bsd.port.mk>
diff --git a/textproc/py-mdurl/files/setup.py b/textproc/py-mdurl/files/setup.py
deleted file mode 100644
index e2fbb7362611..000000000000
--- a/textproc/py-mdurl/files/setup.py
+++ /dev/null
@@ -1,25 +0,0 @@
-#!/usr/bin/env python
-# setup.py generated by flit for tools that don't yet use PEP 517
-
-from distutils.core import setup
-
-packages = \
-['mdurl']
-
-package_data = \
-{'': ['*']}
-
-package_dir = \
-{'': 'src'}
-
-setup(name='mdurl',
-      version='%%PORTVERSION%%',
-      description='Markdown URL utilities',
-      author=None,
-      author_email='Taneli Hukkinen <hukkin@users.noreply.github.com>',
-      url=None,
-      packages=packages,
-      package_data=package_data,
-      package_dir=package_dir,
-      python_requires='>=3.7',
-     )