| @@ -1,44 +1,44 @@ | | | @@ -1,44 +1,44 @@ |
1 | # $NetBSD: Makefile,v 1.54 2018/08/19 08:12:20 adam Exp $ | | 1 | # $NetBSD: Makefile,v 1.55 2018/08/27 06:06:02 adam Exp $ |
2 | | | 2 | |
3 | DISTNAME= pytest-3.7.2 | | 3 | DISTNAME= pytest-3.7.3 |
4 | PKGNAME= ${PYPKGPREFIX}-${DISTNAME:S/py//} | | 4 | PKGNAME= ${PYPKGPREFIX}-${DISTNAME:S/py//} |
5 | CATEGORIES= devel python | | 5 | CATEGORIES= devel python |
6 | MASTER_SITES= ${MASTER_SITE_PYPI:=p/pytest/} | | 6 | MASTER_SITES= ${MASTER_SITE_PYPI:=p/pytest/} |
7 | | | 7 | |
8 | MAINTAINER= pkgsrc-users@NetBSD.org | | 8 | MAINTAINER= pkgsrc-users@NetBSD.org |
9 | HOMEPAGE= http://pytest.org/ | | 9 | HOMEPAGE= http://pytest.org/ |
10 | COMMENT= Python testing tool | | 10 | COMMENT= Python testing tool |
11 | LICENSE= mit | | 11 | LICENSE= mit |
12 | | | 12 | |
13 | DEPENDS+= ${PYPKGPREFIX}-atomicwrites>=1.0:../../devel/py-atomicwrites | | 13 | DEPENDS+= ${PYPKGPREFIX}-atomicwrites>=1.0:../../devel/py-atomicwrites |
14 | DEPENDS+= ${PYPKGPREFIX}-attrs>=17.4.0:../../devel/py-attrs | | 14 | DEPENDS+= ${PYPKGPREFIX}-attrs>=17.4.0:../../devel/py-attrs |
15 | DEPENDS+= ${PYPKGPREFIX}-expat-[0-9]*:../../textproc/py-expat | | 15 | DEPENDS+= ${PYPKGPREFIX}-expat-[0-9]*:../../textproc/py-expat |
16 | DEPENDS+= ${PYPKGPREFIX}-more-itertools>=4.0.0:../../devel/py-more-itertools | | 16 | DEPENDS+= ${PYPKGPREFIX}-more-itertools>=4.0.0:../../devel/py-more-itertools |
17 | DEPENDS+= ${PYPKGPREFIX}-pluggy>=0.7:../../devel/py-pluggy | | 17 | DEPENDS+= ${PYPKGPREFIX}-pluggy>=0.7:../../devel/py-pluggy |
18 | DEPENDS+= ${PYPKGPREFIX}-py>=1.5.0:../../devel/py-py | | 18 | DEPENDS+= ${PYPKGPREFIX}-py>=1.5.0:../../devel/py-py |
19 | DEPENDS+= ${PYPKGPREFIX}-six>=1.10.0:../../lang/py-six | | 19 | DEPENDS+= ${PYPKGPREFIX}-six>=1.10.0:../../lang/py-six |
20 | BUILD_DEPENDS+= ${PYPKGPREFIX}-setuptools_scm-[0-9]*:../../devel/py-setuptools_scm | | 20 | BUILD_DEPENDS+= ${PYPKGPREFIX}-setuptools_scm-[0-9]*:../../devel/py-setuptools_scm |
21 | TEST_DEPENDS+= ${PYPKGPREFIX}-hypothesis-[0-9]*:../../devel/py-hypothesis | | 21 | TEST_DEPENDS+= ${PYPKGPREFIX}-hypothesis-[0-9]*:../../devel/py-hypothesis |
22 | TEST_DEPENDS+= ${PYPKGPREFIX}-yaml-[0-9]*:../../textproc/py-yaml | | 22 | TEST_DEPENDS+= ${PYPKGPREFIX}-yaml-[0-9]*:../../textproc/py-yaml |
23 | | | 23 | |
24 | .include "../../lang/python/pyversion.mk" | | 24 | .include "../../lang/python/pyversion.mk" |
25 | .if "${PYPKGPREFIX}" == "py27" | | 25 | .if "${PYPKGPREFIX}" == "py27" |
26 | DEPENDS+= ${PYPKGPREFIX}-funcsigs-[0-9]*:../../devel/py-funcsigs | | 26 | DEPENDS+= ${PYPKGPREFIX}-funcsigs-[0-9]*:../../devel/py-funcsigs |
27 | .endif | | 27 | .endif |
28 | | | 28 | |
29 | USE_LANGUAGES= # none | | 29 | USE_LANGUAGES= # none |
30 | USE_TOOLS+= bash:build | | 30 | USE_TOOLS+= bash:build |
31 | | | 31 | |
32 | REPLACE_PYTHON+= _pytest/standalonetemplate.py | | 32 | REPLACE_PYTHON+= _pytest/standalonetemplate.py |
33 | | | 33 | |
34 | post-install: | | 34 | post-install: |
35 | cd ${DESTDIR}${PREFIX}/bin && \ | | 35 | cd ${DESTDIR}${PREFIX}/bin && \ |
36 | ${MV} py.test py.test-${PYVERSSUFFIX} && \ | | 36 | ${MV} py.test py.test-${PYVERSSUFFIX} && \ |
37 | ${MV} pytest pytest-${PYVERSSUFFIX} || ${TRUE} | | 37 | ${MV} pytest pytest-${PYVERSSUFFIX} || ${TRUE} |
38 | | | 38 | |
39 | do-test: | | 39 | do-test: |
40 | cd ${WRKSRC}/testing && pytest-${PYVERSSUFFIX} | | 40 | cd ${WRKSRC}/testing && pytest-${PYVERSSUFFIX} |
41 | | | 41 | |
42 | .include "../../lang/python/application.mk" | | 42 | .include "../../lang/python/application.mk" |
43 | .include "../../lang/python/egg.mk" | | 43 | .include "../../lang/python/egg.mk" |
44 | .include "../../mk/bsd.pkg.mk" | | 44 | .include "../../mk/bsd.pkg.mk" |