git: f8b4b540f273 - main - dns/py-dns-crawler: Allow build with py-setuptools-git-versioning 2.0.0+

From: Po-Chuan Hsieh <sunpoet_at_FreeBSD.org>
Date: Sun, 19 May 2024 17:26:41 UTC
The branch main has been updated by sunpoet:

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

commit f8b4b540f2736647c10a17aff9c339110e4c2f8e
Author:     Po-Chuan Hsieh <sunpoet@FreeBSD.org>
AuthorDate: 2024-05-19 16:18:10 +0000
Commit:     Po-Chuan Hsieh <sunpoet@FreeBSD.org>
CommitDate: 2024-05-19 17:15:48 +0000

    dns/py-dns-crawler: Allow build with py-setuptools-git-versioning 2.0.0+
    
    - Bump PORTREVISION for package change
---
 dns/py-dns-crawler/Makefile                   |  3 ++-
 dns/py-dns-crawler/files/patch-pyproject.toml | 11 +++++++++++
 2 files changed, 13 insertions(+), 1 deletion(-)

diff --git a/dns/py-dns-crawler/Makefile b/dns/py-dns-crawler/Makefile
index c212f499b5df..1d65e57ccc5e 100644
--- a/dns/py-dns-crawler/Makefile
+++ b/dns/py-dns-crawler/Makefile
@@ -1,5 +1,6 @@
 PORTNAME=	dns-crawler
 PORTVERSION=	1.6.3
+PORTREVISION=	1
 CATEGORIES=	dns python
 MASTER_SITES=	PYPI
 PKGNAMEPREFIX=	${PYTHON_PKGNAMEPREFIX}
@@ -12,7 +13,7 @@ LICENSE=	GPLv3
 LICENSE_FILE=	${WRKSRC}/LICENSE
 
 BUILD_DEPENDS=	${PYTHON_PKGNAMEPREFIX}setuptools>=41:devel/py-setuptools@${PY_FLAVOR} \
-		${PYTHON_PKGNAMEPREFIX}setuptools-git-versioning>=0<2:devel/py-setuptools-git-versioning@${PY_FLAVOR} \
+		${PYTHON_PKGNAMEPREFIX}setuptools-git-versioning>=0:devel/py-setuptools-git-versioning@${PY_FLAVOR} \
 		${PYTHON_PKGNAMEPREFIX}wheel>=0:devel/py-wheel@${PY_FLAVOR}
 RUN_DEPENDS=	${PYTHON_PKGNAMEPREFIX}asn1crypto>=1.5.1:devel/py-asn1crypto@${PY_FLAVOR} \
 		${PYTHON_PKGNAMEPREFIX}cert-human>=1.0.7:security/py-cert-human@${PY_FLAVOR} \
diff --git a/dns/py-dns-crawler/files/patch-pyproject.toml b/dns/py-dns-crawler/files/patch-pyproject.toml
new file mode 100644
index 000000000000..138b802801c3
--- /dev/null
+++ b/dns/py-dns-crawler/files/patch-pyproject.toml
@@ -0,0 +1,11 @@
+--- pyproject.toml.orig	2024-03-12 11:50:34 UTC
++++ pyproject.toml
+@@ -26,7 +26,7 @@ line-length = 120
+ line-length = 120
+ 
+ [build-system]
+-requires = ["setuptools>=41", "wheel", "setuptools-git-versioning<2"]
++requires = ["setuptools>=41", "wheel", "setuptools-git-versioning"]
+ build-backend = "setuptools.build_meta"
+ 
+ [tool.setuptools-git-versioning]