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
This commit is contained in:
parent
ca610c3c68
commit
44e481c0a2
1 changed files with 8 additions and 3 deletions
|
@ -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>
|
||||
|
|
Loading…
Reference in a new issue