git: 59ff8b66f6a6 - main - devel/py-pypugjs: Convert to USE_PYTHON=pep517

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

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

commit 59ff8b66f6a6fb1792087c2c56006bad4b9dbd41
Author:     Po-Chuan Hsieh <sunpoet@FreeBSD.org>
AuthorDate: 2024-05-13 13:59:34 +0000
Commit:     Po-Chuan Hsieh <sunpoet@FreeBSD.org>
CommitDate: 2024-05-13 13:59:34 +0000

    devel/py-pypugjs: Convert to USE_PYTHON=pep517
    
    - Bump PORTREVISION for package change
---
 devel/py-pypugjs/Makefile                   |  4 +++-
 devel/py-pypugjs/files/patch-pyproject.toml | 10 ++++++++++
 2 files changed, 13 insertions(+), 1 deletion(-)

diff --git a/devel/py-pypugjs/Makefile b/devel/py-pypugjs/Makefile
index 60391a8922c5..33988759a35e 100644
--- a/devel/py-pypugjs/Makefile
+++ b/devel/py-pypugjs/Makefile
@@ -1,5 +1,6 @@
 PORTNAME=	pypugjs
 PORTVERSION=	5.9.12
+PORTREVISION=	1
 CATEGORIES=	devel lang python
 MASTER_SITES=	PYPI
 PKGNAMEPREFIX=	${PYTHON_PKGNAMEPREFIX}
@@ -10,11 +11,12 @@ WWW=		https://github.com/kakulukia/pypugjs
 
 LICENSE=	MIT
 
+BUILD_DEPENDS=	${PYTHON_PKGNAMEPREFIX}poetry-core>=1.0.0:devel/py-poetry-core@${PY_FLAVOR}
 RUN_DEPENDS=	${PYTHON_PKGNAMEPREFIX}charset-normalizer>=0:textproc/py-charset-normalizer@${PY_FLAVOR} \
 		${PYTHON_PKGNAMEPREFIX}six>=0:devel/py-six@${PY_FLAVOR}
 
 USES=		python
-USE_PYTHON=	autoplist concurrent distutils
+USE_PYTHON=	autoplist concurrent pep517
 
 NO_ARCH=	yes
 
diff --git a/devel/py-pypugjs/files/patch-pyproject.toml b/devel/py-pypugjs/files/patch-pyproject.toml
new file mode 100644
index 000000000000..eb08fff73212
--- /dev/null
+++ b/devel/py-pypugjs/files/patch-pyproject.toml
@@ -0,0 +1,10 @@
+--- pyproject.toml.orig	2022-07-28 07:13:22 UTC
++++ pyproject.toml
+@@ -1,6 +1,6 @@ name = "pypugjs"
+ [tool.poetry]
+ name = "pypugjs"
+-version = "5.9.4"
++version = "5.9.12"
+ description = ""
+ authors = ["Andy Grabow <andy@freilandkiwis.de>"]
+ license = "MIT"