git: 7c58ab1b04f9 - main - devel/py-amalgamate: Convert to USE_PYTHON=pep517

From: Po-Chuan Hsieh <sunpoet_at_FreeBSD.org>
Date: Sat, 06 Jul 2024 16:28:31 UTC
The branch main has been updated by sunpoet:

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

commit 7c58ab1b04f964929f7b13cb516b3a35a5ee36ed
Author:     Po-Chuan Hsieh <sunpoet@FreeBSD.org>
AuthorDate: 2024-07-06 16:11:50 +0000
Commit:     Po-Chuan Hsieh <sunpoet@FreeBSD.org>
CommitDate: 2024-07-06 16:11:50 +0000

    devel/py-amalgamate: Convert to USE_PYTHON=pep517
    
    - Bump PORTREVISION for package change
---
 devel/py-amalgamate/Makefile             | 10 +++++-----
 devel/py-amalgamate/files/patch-setup.py |  3 +--
 2 files changed, 6 insertions(+), 7 deletions(-)

diff --git a/devel/py-amalgamate/Makefile b/devel/py-amalgamate/Makefile
index 805b83d2a3a0..aeeba65a38ef 100644
--- a/devel/py-amalgamate/Makefile
+++ b/devel/py-amalgamate/Makefile
@@ -1,6 +1,6 @@
 PORTNAME=	amalgamate
 PORTVERSION=	0.1.3
-PORTREVISION=	1
+PORTREVISION=	2
 CATEGORIES=	devel python
 MASTER_SITES=	PYPI
 PKGNAMEPREFIX=	${PYTHON_PKGNAMEPREFIX}
@@ -12,12 +12,12 @@ WWW=		https://github.com/xonsh/amalgamate
 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=		python
-USE_PYTHON=	autoplist distutils concurrent
+USE_PYTHON=	autoplist concurrent pep517
 
 NO_ARCH=	yes
 
-post-patch:
-	@${REINPLACE_CMD} -e 's|%%DOCSDIR%%|${DOCSDIR}|' ${WRKSRC}/setup.py
-
 .include <bsd.port.mk>
diff --git a/devel/py-amalgamate/files/patch-setup.py b/devel/py-amalgamate/files/patch-setup.py
index c716bf4acc5b..1ec68bfc99be 100644
--- a/devel/py-amalgamate/files/patch-setup.py
+++ b/devel/py-amalgamate/files/patch-setup.py
@@ -1,11 +1,10 @@
 --- setup.py.orig	2022-01-18 11:48:00 UTC
 +++ setup.py
-@@ -26,7 +26,7 @@ setup_kwargs = {
+@@ -26,7 +26,6 @@ setup_kwargs = {
          ],
      "zip_safe": False,
      "scripts": ['amalgamate.py'],
 -    "data_files": [("", ['LICENSE', 'README.rst']),],
-+    "data_files": [("%%DOCSDIR%%", ['LICENSE', 'README.rst']),],
      }