2020-05-16 11:09:04 +02:00
|
|
|
# $NetBSD: Makefile,v 1.3 2020/05/16 09:09:04 adam Exp $
|
2017-04-03 16:32:09 +02:00
|
|
|
|
2019-01-04 09:49:33 +01:00
|
|
|
DISTNAME= python-bugzilla-2.2.0
|
|
|
|
PKGNAME= ${PYPKGPREFIX}-${DISTNAME}
|
|
|
|
CATEGORIES= devel python
|
2017-04-03 16:32:09 +02:00
|
|
|
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
|
|
|
|
|
2019-01-04 09:49:33 +01:00
|
|
|
DEPENDS+= ${PYPKGPREFIX}-requests-[0-9]*:../../devel/py-requests
|
2020-05-16 11:09:04 +02:00
|
|
|
|
|
|
|
PYTHON_VERSIONED_DEPENDENCIES= test:test
|
2019-01-04 09:49:33 +01:00
|
|
|
|
2017-04-03 16:32:09 +02:00
|
|
|
USE_LANGUAGES= # none
|
|
|
|
|
2019-01-04 09:49:33 +01:00
|
|
|
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
|
|
|
|
|
2017-04-03 16:32:09 +02:00
|
|
|
.include "../../lang/python/egg.mk"
|
2020-05-16 11:09:04 +02:00
|
|
|
.include "../../lang/python/versioned_dependencies.mk"
|
2017-04-03 16:32:09 +02:00
|
|
|
.include "../../mk/bsd.pkg.mk"
|