git: 8d2e3eaae3f2 - main - databases/py-pickledb: Convert to USE_PYTHON=pep517

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

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

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

    databases/py-pickledb: Convert to USE_PYTHON=pep517
    
    - Bump PORTREVISION for package change
---
 databases/py-pickledb/Makefile             |  5 ++++-
 databases/py-pickledb/files/patch-setup.py | 11 +++++++++++
 2 files changed, 15 insertions(+), 1 deletion(-)

diff --git a/databases/py-pickledb/Makefile b/databases/py-pickledb/Makefile
index f7576b1d3d9e..f4c38caf2d90 100644
--- a/databases/py-pickledb/Makefile
+++ b/databases/py-pickledb/Makefile
@@ -1,5 +1,6 @@
 PORTNAME=	pickledb
 PORTVERSION=	0.9.2
+PORTREVISION=	1
 CATEGORIES=	databases python
 MASTER_SITES=	PYPI
 PKGNAMEPREFIX=	${PYTHON_PKGNAMEPREFIX}
@@ -11,10 +12,12 @@ WWW=		https://github.com/patx/pickledb
 
 LICENSE=	BSD3CLAUSE
 
+BUILD_DEPENDS=	${PYTHON_PKGNAMEPREFIX}setuptools>=0:devel/py-setuptools@${PY_FLAVOR} \
+		${PYTHON_PKGNAMEPREFIX}wheel>=0:devel/py-wheel@${PY_FLAVOR}
 RUN_DEPENDS=	${PYTHON_PKGNAMEPREFIX}simplejson>=0:devel/py-simplejson@${PY_FLAVOR}
 
 USES=		python
-USE_PYTHON=	autoplist concurrent distutils
+USE_PYTHON=	autoplist concurrent pep517
 
 NO_ARCH=	yes
 
diff --git a/databases/py-pickledb/files/patch-setup.py b/databases/py-pickledb/files/patch-setup.py
new file mode 100644
index 000000000000..d4fd4826906b
--- /dev/null
+++ b/databases/py-pickledb/files/patch-setup.py
@@ -0,0 +1,11 @@
+--- setup.py.orig	2019-01-14 18:47:41 UTC
++++ setup.py
+@@ -56,7 +56,7 @@ from distutils.core import setup
+ 
+ from distutils.core import setup
+ 
+-setup(name="pickleDB",
++setup(name="pickledb",
+     version="0.9.2",
+     description="A lightweight and simple database using json.",
+     long_description=__doc__,