git: 2cad91ad5a16 - main - devel/py-jsonform: Convert to USE_PYTHON=pep517

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

URL: https://cgit.FreeBSD.org/ports/commit/?id=2cad91ad5a1632268dbbab7922312211e35ff1e9

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

    devel/py-jsonform: Convert to USE_PYTHON=pep517
    
    - Change MASTER_SITES from GitHub to PYPI
    - Add NO_ARCH
    - Bump PORTREVISION for package change
---
 devel/py-jsonform/Makefile             | 12 ++++++++----
 devel/py-jsonform/distinfo             |  6 +++---
 devel/py-jsonform/files/patch-setup.py | 11 +++++++++++
 3 files changed, 22 insertions(+), 7 deletions(-)

diff --git a/devel/py-jsonform/Makefile b/devel/py-jsonform/Makefile
index bfac9d7557e1..56c6707c3da1 100644
--- a/devel/py-jsonform/Makefile
+++ b/devel/py-jsonform/Makefile
@@ -1,7 +1,10 @@
 PORTNAME=	jsonform
 PORTVERSION=	0.0.2
+PORTREVISION=	1
 CATEGORIES=	devel python
+MASTER_SITES=	PYPI
 PKGNAMEPREFIX=	${PYTHON_PKGNAMEPREFIX}
+DISTNAME=	JsonForm-${PORTVERSION}
 
 MAINTAINER=	python@FreeBSD.org
 COMMENT=	Form validation for JSON-like data
@@ -9,12 +12,13 @@ WWW=		https://github.com/RussellLuo/jsonform
 
 LICENSE=	MIT
 
+BUILD_DEPENDS=	${PYTHON_PKGNAMEPREFIX}setuptools>=0:devel/py-setuptools@${PY_FLAVOR} \
+		${PYTHON_PKGNAMEPREFIX}wheel>=0:devel/py-wheel@${PY_FLAVOR}
 RUN_DEPENDS=	${PYTHON_PKGNAMEPREFIX}jsonschema>=2.4.0:devel/py-jsonschema@${PY_FLAVOR}
 
 USES=		python
-USE_GITHUB=	yes
-GH_ACCOUNT=	RussellLuo
-GH_TAGNAME=	7ee5f95
-USE_PYTHON=	distutils autoplist
+USE_PYTHON=	autoplist concurrent pep517
+
+NO_ARCH=	yes
 
 .include <bsd.port.mk>
diff --git a/devel/py-jsonform/distinfo b/devel/py-jsonform/distinfo
index 2a468b19fca3..4309a19ac74e 100644
--- a/devel/py-jsonform/distinfo
+++ b/devel/py-jsonform/distinfo
@@ -1,3 +1,3 @@
-TIMESTAMP = 1547201011
-SHA256 (RussellLuo-jsonform-0.0.2-7ee5f95_GH0.tar.gz) = dd6d8fe62a817f17a76cf988122248adc1c40aa280c7c7098b2a07f3775a16dc
-SIZE (RussellLuo-jsonform-0.0.2-7ee5f95_GH0.tar.gz) = 2973
+TIMESTAMP = 1720023784
+SHA256 (JsonForm-0.0.2.tar.gz) = 71f8b7a21538e30ca984b69dde04f02980cd6cdc2183a18aa7ca02d9509988e6
+SIZE (JsonForm-0.0.2.tar.gz) = 2445
diff --git a/devel/py-jsonform/files/patch-setup.py b/devel/py-jsonform/files/patch-setup.py
new file mode 100644
index 000000000000..7784e8f3409c
--- /dev/null
+++ b/devel/py-jsonform/files/patch-setup.py
@@ -0,0 +1,11 @@
+--- setup.py.orig	2015-01-16 05:30:34 UTC
++++ setup.py
+@@ -6,7 +6,7 @@ setup(
+ description = 'Form validation for JSON-like data (i.e. document) in Python.'
+ 
+ setup(
+-    name='JsonForm',
++    name='jsonform',
+     version='0.0.2',
+     author='RussellLuo',
+     author_email='luopeng.he@gmail.com',