pkgsrc/net/py-xandikos/Makefile
wiz bb579283d0 *: bump PKGREVISION for egg.mk users
They now have a tool dependency on py-setuptools instead of a DEPENDS
2022-01-04 20:53:26 +00:00

39 lines
1.3 KiB
Makefile

# $NetBSD: Makefile,v 1.13 2022/01/04 20:54:34 wiz Exp $
DISTNAME= xandikos-0.2.6
PKGNAME= ${PYPKGPREFIX}-${DISTNAME}
PKGREVISION= 1
CATEGORIES= net python
MASTER_SITES= ${MASTER_SITE_PYPI:=x/xandikos/}
MAINTAINER= pkgsrc-users@NetBSD.org
HOMEPAGE= https://www.jelmer.uk/code/xandikos/
COMMENT= Lightweight CalDAV/CardDAV server
LICENSE= gnu-gpl-v3
DEPENDS+= ${PYPKGPREFIX}-aiohttp-[0-9]*:../../www/py-aiohttp
DEPENDS+= ${PYPKGPREFIX}-defusedxml-[0-9]*:../../textproc/py-defusedxml
DEPENDS+= ${PYPKGPREFIX}-dulwich>=0.19.1:../../devel/py-dulwich
DEPENDS+= ${PYPKGPREFIX}-icalendar-[0-9]*:../../time/py-icalendar
DEPENDS+= ${PYPKGPREFIX}-jinja2-[0-9]*:../../textproc/py-jinja2
DEPENDS+= ${PYPKGPREFIX}-multidict-[0-9]*:../../databases/py-multidict
DEPENDS+= ${PYPKGPREFIX}-prometheus_client-[0-9]*:../../net/py-prometheus_client
USE_LANGUAGES= # none
PYTHON_VERSIONS_INCOMPATIBLE= 27
SUBST_CLASSES+= mandir
SUBST_STAGE.mandir= pre-configure
SUBST_MESSAGE.mandir= Fix mandir.
SUBST_FILES.mandir= setup.py
SUBST_SED.mandir= -e 's,share/man,${PKGMANDIR},g'
post-install:
cd ${DESTDIR}${PREFIX}/bin && \
${MV} xandikos xandikos-${PYVERSSUFFIX} || ${TRUE}
cd ${DESTDIR}${PREFIX}/${PKGMANDIR}/man8 && \
${MV} xandikos.8 xandikos-${PYVERSSUFFIX}.8 || ${TRUE}
.include "../../lang/python/egg.mk"
.include "../../mk/bsd.pkg.mk"