aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJuraj Lutter <otis@FreeBSD.org>2022-11-01 22:10:01 +0000
committerJuraj Lutter <otis@FreeBSD.org>2022-11-05 10:40:55 +0000
commit44e481c0a249db28e9dfb02bbb8427f3e03c867f (patch)
treeea0188d74c0956ac2137c40e69c84026ef6ed15a
parentca610c3c682a2f9eaba55122b1d5ff4422a40dda (diff)
downloadports-44e481c0a249db28e9dfb02bbb8427f3e03c867f.tar.gz
ports-44e481c0a249db28e9dfb02bbb8427f3e03c867f.zip
sysutils/py-borgmatic: Fix runtime dependency with python <3.9
Add RUN_DEPENDS on devel/py-pkgutil-resolve-name that is needed with python <3.9 PR: 267509 Approved by: egypcio (maintainer) Differential Revision: https://reviews.freebsd.org/D37232
-rw-r--r--sysutils/py-borgmatic/Makefile11
1 files changed, 8 insertions, 3 deletions
diff --git a/sysutils/py-borgmatic/Makefile b/sysutils/py-borgmatic/Makefile
index 2d82ee2292ca..e2cd827234ad 100644
--- a/sysutils/py-borgmatic/Makefile
+++ b/sysutils/py-borgmatic/Makefile
@@ -1,6 +1,6 @@
PORTNAME= borgmatic
PORTVERSION= 1.5.24
-PORTREVISION= 1
+PORTREVISION= 2
CATEGORIES= sysutils python
MASTER_SITES= CHEESESHOP
PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX}
@@ -17,12 +17,17 @@ RUN_DEPENDS= ${PYTHON_PKGNAMEPREFIX}borgbackup>=0:archivers/py-borgbackup@${PY_F
${PYTHON_PKGNAMEPREFIX}pykwalify>=0:textproc/py-pykwalify@${PY_FLAVOR} \
${PYTHON_PKGNAMEPREFIX}requests>=0:www/py-requests@${PY_FLAVOR} \
${PYTHON_PKGNAMEPREFIX}ruamel.yaml>=0:devel/py-ruamel.yaml@${PY_FLAVOR}
-
USES= python:3.6+
USE_PYTHON= autoplist distutils
NO_ARCH= yes
+.include <bsd.port.pre.mk>
+
+.if ${PYTHON_VER} == "3.8"
+RUN_DEPENDS+= ${PYTHON_PKGNAMEPREFIX}pkgutil-resolve-name>=1.3.10:devel/py-pkgutil-resolve-name@${PY_FLAVOR}
+.endif
+
post-patch:
@cd ${WRKSRC} && \
${REINPLACE_CMD} -e 's|/etc/borgmatic|${PREFIX}/etc/borgmatic|g' \
@@ -34,4 +39,4 @@ post-patch:
borgmatic/config/schema.yaml \
tests/unit/config/test_collect.py
-.include <bsd.port.mk>
+.include <bsd.port.post.mk>