# $NetBSD: Makefile,v 1.4 2022/01/04 20:52:53 wiz Exp $
DISTNAME= python-bugzilla-2.2.0
PKGNAME= ${PYPKGPREFIX}-${DISTNAME}
PKGREVISION= 1
CATEGORIES= devel python
MASTER_SITES= ${MASTER_SITE_PYPI:=p/python-bugzilla/}
MAINTAINER= pkgsrc-users@NetBSD.org
HOMEPAGE= https://github.com/python-bugzilla/python-bugzilla
COMMENT= Bugzilla XMLRPC access module
LICENSE= gnu-gpl-v2
DEPENDS+= ${PYPKGPREFIX}-requests-[0-9]*:../../devel/py-requests
PYTHON_VERSIONED_DEPENDENCIES= test:test
USE_LANGUAGES= # none
SUBST_CLASSES+= mandir
SUBST_STAGE.mandir= pre-configure
SUBST_MESSAGE.mandir= Setting correct mandir.
SUBST_FILES.mandir= setup.py
SUBST_SED.mandir= -e 's,share/man,${PKGMANDIR},g'
post-install:
cd ${DESTDIR}${PREFIX} && \
${MV} bin/bugzilla bin/bugzilla-${PYVERSSUFFIX} && \
${MV} ${PKGMANDIR}/man1/bugzilla.1 ${PKGMANDIR}/man1/bugzilla-${PYVERSSUFFIX}.1 || ${TRUE}
do-test:
cd ${WRKSRC} && pytest-${PYVERSSUFFIX} tests
.include "../../lang/python/egg.mk"
.include "../../lang/python/versioned_dependencies.mk"
.include "../../mk/bsd.pkg.mk"
CVSweb <webmaster@jp.NetBSD.org>