Changeset View
Changeset View
Standalone View
Standalone View
archivers/py-borgbackup/Makefile
| Show All 32 Lines | |||||
| MAKE_ENV= BORG_OPENSSL_PREFIX=${OPENSSLBASE} | MAKE_ENV= BORG_OPENSSL_PREFIX=${OPENSSLBASE} | ||||
| OPTIONS_DEFINE= FUSE | OPTIONS_DEFINE= FUSE | ||||
| OPTIONS_DEFAULT= FUSE | OPTIONS_DEFAULT= FUSE | ||||
| FUSE_DESC= Support to mount locally borg backup files | FUSE_DESC= Support to mount locally borg backup files | ||||
| FUSE_RUN_DEPENDS= ${PYTHON_PKGNAMEPREFIX}llfuse>0:filesystems/py-llfuse@${PY_FLAVOR} | FUSE_RUN_DEPENDS= ${PYTHON_PKGNAMEPREFIX}llfuse>0:filesystems/py-llfuse@${PY_FLAVOR} | ||||
| .include <bsd.port.pre.mk> | |||||
| .if (${OPSYS} == FreeBSD) && ${OSVERSION} < 1400033 # why 1400033? | |||||
| # 1. check for the OLDEST (last in list) history entry on the file, when it was added: | |||||
| # git -C /usr/src hist lib/libc/posix1e/acl_extended_file_np.c | |||||
| # 2. check for the version you have obtained what __FreeBSD_version was | |||||
| # and increment by one. This is inaccurate for the interim between file addition | |||||
| # and __FreeBSD_version bump back then, but those versions were no releases and | |||||
| # should no longer be in the field. | |||||
| EXTRA_PATCHES += ${FILESDIR}/extrapatch-setup.py | |||||
| post-patch: | |||||
| ${CP} ${FILESDIR}/acl_extended_file_np.c ${WRKSRC}/src/borg/platform/ | |||||
| .endif | |||||
| _BORGHOME=${WRKDIR}/testhome | _BORGHOME=${WRKDIR}/testhome | ||||
| _BORGENV=-i BORG_PASSPHRASE=secret123 PYTHONPATH=${STAGEDIR}${PYTHON_SITELIBDIR} HOME=${_BORGHOME} | _BORGENV=-i BORG_PASSPHRASE=secret123 PYTHONPATH=${STAGEDIR}${PYTHON_SITELIBDIR} HOME=${_BORGHOME} | ||||
| post-install: | post-install: | ||||
| ${MKDIR} ${STAGEDIR}${PREFIX}/share/man/man1/ | ${MKDIR} ${STAGEDIR}${PREFIX}/share/man/man1/ | ||||
| ${INSTALL_MAN} ${WRKSRC}/docs/man/* ${STAGEDIR}${PREFIX}/share/man/man1/ | ${INSTALL_MAN} ${WRKSRC}/docs/man/* ${STAGEDIR}${PREFIX}/share/man/man1/ | ||||
| ${FIND} ${STAGEDIR}${PYTHONPREFIX_SITELIBDIR}/borg/ -name "*.so" \ | ${FIND} ${STAGEDIR}${PYTHONPREFIX_SITELIBDIR}/borg/ -name "*.so" \ | ||||
| -exec ${STRIP_CMD} {} \; | -exec ${STRIP_CMD} {} \; | ||||
| @${ECHO_MSG} "----> running borg smoke tests" | @${ECHO_MSG} "----> running borg smoke tests" | ||||
| Show All 19 Lines | post-install: | ||||
| ${SETENV} ${_BORGENV} ${STAGEDIR}${PREFIX}/bin/borg info ${WRKDIR}/borgrepo | ${SETENV} ${_BORGENV} ${STAGEDIR}${PREFIX}/bin/borg info ${WRKDIR}/borgrepo | ||||
| do-test: | do-test: | ||||
| # work around https://github.com/tox-dev/tox/issues/3602 | # work around https://github.com/tox-dev/tox/issues/3602 | ||||
| ${RM} ${WRKSRC}/setup.cfg | ${RM} ${WRKSRC}/setup.cfg | ||||
| # the PATH dance works around a strange "pkg-config" file not found error. | # the PATH dance works around a strange "pkg-config" file not found error. | ||||
| cd ${WRKSRC} && ${SETENV} ${_BORGENV} PATH=${PATH}:${LOCALBASE}/bin tox-${PYTHON_VER} -e ${PY_FLAVOR} -vv | cd ${WRKSRC} && ${SETENV} ${_BORGENV} PATH=${PATH}:${LOCALBASE}/bin tox-${PYTHON_VER} -e ${PY_FLAVOR} -vv | ||||
| .include <bsd.port.post.mk> | .include <bsd.port.mk> | ||||