git: c9a9321d00c8 - main - archivers/py-borgbackup: also tighten up RUN_DEPENDS for msgpack

From: Matthias Andree <mandree_at_FreeBSD.org>
Date: Fri, 07 Apr 2023 10:33:00 UTC
The branch main has been updated by mandree:

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

commit c9a9321d00c80f557f1a2da32ca7439d7fad0a70
Author:     Matthias Andree <mandree@FreeBSD.org>
AuthorDate: 2023-04-07 10:30:16 +0000
Commit:     Matthias Andree <mandree@FreeBSD.org>
CommitDate: 2023-04-07 10:32:12 +0000

    archivers/py-borgbackup: also tighten up RUN_DEPENDS for msgpack
    
    and refactor. After the version in 2023Q2, and related to:
    PR:             270665
---
 archivers/py-borgbackup/Makefile | 7 ++++---
 1 file changed, 4 insertions(+), 3 deletions(-)

diff --git a/archivers/py-borgbackup/Makefile b/archivers/py-borgbackup/Makefile
index 4d446466774a..52a6098741fc 100644
--- a/archivers/py-borgbackup/Makefile
+++ b/archivers/py-borgbackup/Makefile
@@ -11,14 +11,15 @@ WWW=		https://pypi.org/project/borgbackup/
 LICENSE=	BSD3CLAUSE
 LICENSE_FILE=	${WRKSRC}/LICENSE
 
+# note that borgbackup pins the msgpack version range per patchlevel version!
+_BB_DEPENDS=	${PYTHON_PKGNAMEPREFIX}msgpack>=1.0.2<=1.0.5:devel/py-msgpack@${PY_FLAVOR}
 BUILD_DEPENDS=	${PYTHON_PKGNAMEPREFIX}setuptools_scm>=1.7:devel/py-setuptools_scm@${PY_FLAVOR} \
-		${PYTHON_PKGNAMEPREFIX}msgpack==1.0.5:devel/py-msgpack@${PY_FLAVOR}
-		# note that borgbackup pins the msgpack version range per patchlevel version!
+		${_BB_DEPENDS}
 LIB_DEPENDS=	liblz4.so:archivers/liblz4 \
 		libzstd.so:archivers/zstd \
 		libxxhash.so:devel/xxhash
 RUN_DEPENDS=	${PYTHON_PKGNAMEPREFIX}packaging>=19.0:devel/py-packaging@${PY_FLAVOR} \
-		${PYTHON_PKGNAMEPREFIX}msgpack>=1.0:devel/py-msgpack@${PY_FLAVOR}
+		${_BB_DEPENDS}
 TEST_DEPENDS=	${RUN_DEPENDS} \
 		${PYTHON_PKGNAMEPREFIX}tox>3.2:devel/py-tox@${PY_FLAVOR} \
 		${PYTHON_PKGNAMEPREFIX}virtualenv>=0:devel/py-virtualenv@${PY_FLAVOR} \