freebsd-ports/sysutils/py-rdiff-backup/Makefile
Hiroki Tagato 9bce152d2e - Update to 2.0.0 and undeprecate
- Rename portname to py-rdiff-backup following Python Ports Policy[1]
- Flavorize
- Remove PORTEPOCH due to package name change
- Use CHEESESHOP as MASTER_SITES instead of USE_GITHUB as per [1]
- Update COMMENT to match the description at PyPi as per [1]
- Update LICENSE and LICENSE_FILE based on the info at PyPi
- Add autoplist and concurrent to USE_PYTHON as per [1]
- Delete MAN1S and DOCS to let autoplist handle these files
- Delete pkg-plist in favor of autoplist
- Add TEST_DEPENDS and do-test target

[1] https://wiki.freebsd.org/Python/PortsPolicy

PR:		246250
Submitted by:	Zsolt Udvari <uzsolt@uzsolt.hu> (maintainer)
Reviewed by:	koobs, bapt
Approved by:	ehaupt (mentor)
Changelog:	https://github.com/rdiff-backup/rdiff-backup/blob/v2.0.0/CHANGELOG
Differential Revision:	https://reviews.freebsd.org/D24816
2020-05-17 08:35:19 +00:00

35 lines
978 B
Makefile

# Created by: Gerhard Häring <gh@ghaering.de>
# $FreeBSD$
PORTNAME= rdiff-backup
DISTVERSION= 2.0.0
CATEGORIES= sysutils python
MASTER_SITES= CHEESESHOP
PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX}
MAINTAINER= uzsolt@uzsolt.hu
COMMENT= Easy to use and efficient backup and restore utility
LICENSE= GPLv2+
LICENSE_FILE= ${WRKSRC}/COPYING
BUILD_DEPENDS= ${PYTHON_PKGNAMEPREFIX}setuptools_scm>0:devel/py-setuptools_scm@${PY_FLAVOR}
LIB_DEPENDS= librsync.so:net/librsync
TEST_DEPENDS= ${PYTHON_PKGNAMEPREFIX}tox>0:devel/py-tox@${PY_FLAVOR}
USES= localbase:ldflags python:3.5+
USE_LDCONFIG= yes
USE_PYTHON= autoplist concurrent distutils
CONFLICTS= rdiff-backup-devel-[0-9]* rdiff-backup-1.0*
PORTSCOUT= limitw:1,even
post-install:
${STRIP_CMD} ${STAGEDIR}${PYTHONPREFIX_SITELIBDIR}/rdiff_backup/_librsync.so
${STRIP_CMD} ${STAGEDIR}${PYTHONPREFIX_SITELIBDIR}/rdiff_backup/C.so
do-test:
cd ${TEST_WRKSRC} && ${SETENV} ${TEST_ENV} ${PYTHON_CMD} -m tox
.include <bsd.port.mk>