git: d3035a192598 - main - devel/py-gitdb: Allow build with py-smmap 5.0.0

From: Po-Chuan Hsieh <sunpoet_at_FreeBSD.org>
Date: Mon, 25 Oct 2021 16:02:15 UTC
The branch main has been updated by sunpoet:

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

commit d3035a192598cb180ff56b4efee20eb3a9c45054
Author:     Po-Chuan Hsieh <sunpoet@FreeBSD.org>
AuthorDate: 2021-10-25 15:07:13 +0000
Commit:     Po-Chuan Hsieh <sunpoet@FreeBSD.org>
CommitDate: 2021-10-25 15:57:24 +0000

    devel/py-gitdb: Allow build with py-smmap 5.0.0
    
    - Bump PORTREVISION for package change
---
 devel/py-gitdb/Makefile             |  3 ++-
 devel/py-gitdb/files/patch-setup.py | 11 +++++++++++
 2 files changed, 13 insertions(+), 1 deletion(-)

diff --git a/devel/py-gitdb/Makefile b/devel/py-gitdb/Makefile
index fc7769bc637c..f02ed83a8a6b 100644
--- a/devel/py-gitdb/Makefile
+++ b/devel/py-gitdb/Makefile
@@ -2,6 +2,7 @@
 
 PORTNAME=	gitdb
 PORTVERSION=	4.0.7
+PORTREVISION=	1
 CATEGORIES=	devel python
 MASTER_SITES=	CHEESESHOP
 PKGNAMEPREFIX=	${PYTHON_PKGNAMEPREFIX}
@@ -12,7 +13,7 @@ COMMENT=	Git Object Database
 LICENSE=	BSD3CLAUSE
 LICENSE_FILE=	${WRKSRC}/LICENSE
 
-RUN_DEPENDS=	${PYTHON_PKGNAMEPREFIX}smmap>=3.0.1<5:devel/py-smmap@${PY_FLAVOR}
+RUN_DEPENDS=	${PYTHON_PKGNAMEPREFIX}smmap>=3.0.1<6:devel/py-smmap@${PY_FLAVOR}
 
 USES=		python:3.4+
 USE_PYTHON=	autoplist concurrent distutils
diff --git a/devel/py-gitdb/files/patch-setup.py b/devel/py-gitdb/files/patch-setup.py
new file mode 100644
index 000000000000..2c3851b04757
--- /dev/null
+++ b/devel/py-gitdb/files/patch-setup.py
@@ -0,0 +1,11 @@
+--- setup.py.orig	2021-03-26 14:25:19 UTC
++++ setup.py
+@@ -20,7 +20,7 @@ setup(
+     packages=('gitdb', 'gitdb.db', 'gitdb.utils', 'gitdb.test'),
+     license="BSD License",
+     zip_safe=False,
+-    install_requires=['smmap>=3.0.1,<5'],
++    install_requires=['smmap>=3.0.1,<6'],
+     long_description="""GitDB is a pure-Python git object database""",
+     python_requires='>=3.4',
+     # See https://pypi.python.org/pypi?%3Aaction=list_classifiers