Stefan Eßer 819f25b36d */*: Remove redundant '-[0-9]*' from CONFLICTS
The conflict checks compare the patterns first against the package
names without version (as reported by "pkg query "%n"), then - if
there was no match - agsinst the full package names including the
version (as reported by "pkg query "%n-%v").

Many CONFLICTS definitions used patterns like "bash-[0-9]*" to filter
for the bash package in any version. But that pattern is functionally
identical with just "bash".

Approved by:	portmgr (blanket)
2021-10-29 11:50:18 +02:00

35 lines
961 B
Makefile

# Created by: Gerhard Häring <gh@ghaering.de>
PORTNAME= rdiff-backup
DISTVERSION= 2.0.5
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 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>