git: 458573c3a6d4 - main - textproc/py-pyphen: Change build to pep517

From: Yuri Victorovich <yuri_at_FreeBSD.org>
Date: Mon, 06 Feb 2023 10:04:34 UTC
The branch main has been updated by yuri:

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

commit 458573c3a6d4b44ac1e10714b674d34ebe703f88
Author:     Yuri Victorovich <yuri@FreeBSD.org>
AuthorDate: 2023-02-06 10:02:57 +0000
Commit:     Yuri Victorovich <yuri@FreeBSD.org>
CommitDate: 2023-02-06 10:04:32 +0000

    textproc/py-pyphen: Change build to pep517
    
    PR:             269325
    Reported by:    pi@
---
 textproc/py-pyphen/Makefile | 11 ++++-------
 1 file changed, 4 insertions(+), 7 deletions(-)

diff --git a/textproc/py-pyphen/Makefile b/textproc/py-pyphen/Makefile
index cbbcce9cbf32..ad0df3d5c21d 100644
--- a/textproc/py-pyphen/Makefile
+++ b/textproc/py-pyphen/Makefile
@@ -1,5 +1,6 @@
 PORTNAME=	pyphen
 PORTVERSION=	0.13.0
+PORTREVISION=	1
 CATEGORIES=	textproc python
 MASTER_SITES=	PYPI
 PKGNAMEPREFIX=	${PYTHON_PKGNAMEPREFIX}
@@ -14,15 +15,11 @@ LICENSE_FILE_GPLv2=	${WRKSRC}/COPYING.GPL
 LICENSE_FILE_LGPL21=	${WRKSRC}/COPYING.LGPL
 LICENSE_FILE_MPL11=	${WRKSRC}/COPYING.MPL
 
+BUILD_DEPENDS=	${PYTHON_PKGNAMEPREFIX}flit>=3.2<4:devel/py-flit@${PY_FLAVOR}
+
 USES=		python:3.6+
-USE_PYTHON=	autoplist distutils pytest
+USE_PYTHON=	pep517 autoplist pytest
 
 NO_ARCH=	yes
 
-pre-configure:
-	@( \
-		${ECHO} "from setuptools import setup" && \
-		${ECHO} "setup()" \
-	) > ${WRKSRC}/setup.py
-
 .include <bsd.port.mk>