| @@ -1,22 +1,34 @@ | | | @@ -1,22 +1,34 @@ |
1 | # $NetBSD: Makefile,v 1.11 2022/07/26 08:43:00 adam Exp $ | | 1 | # $NetBSD: Makefile,v 1.12 2022/11/14 18:37:14 wiz Exp $ |
2 | | | 2 | |
3 | DISTNAME= frozendict-2.3.4 | | 3 | DISTNAME= frozendict-2.3.4 |
4 | PKGNAME= ${PYPKGPREFIX}-${DISTNAME} | | 4 | PKGNAME= ${PYPKGPREFIX}-${DISTNAME} |
5 | CATEGORIES= devel python | | 5 | CATEGORIES= devel python |
6 | MASTER_SITES= ${MASTER_SITE_PYPI:=f/frozendict/} | | 6 | MASTER_SITES= ${MASTER_SITE_PYPI:=f/frozendict/} |
7 | | | 7 | |
8 | MAINTAINER= kethzer.dr@gmail.com | | 8 | MAINTAINER= kethzer.dr@gmail.com |
9 | HOMEPAGE= https://github.com/slezica/python-frozendict | | 9 | HOMEPAGE= https://github.com/slezica/python-frozendict |
10 | COMMENT= Immutable wrapper around dictionaries | | 10 | COMMENT= Immutable wrapper around dictionaries |
11 | LICENSE= mit | | 11 | LICENSE= mit |
12 | | | 12 | |
13 | TEST_DEPENDS+= ${PYPKGPREFIX}-test-[0-9]*:../../devel/py-test | | 13 | TEST_DEPENDS+= ${PYPKGPREFIX}-test-[0-9]*:../../devel/py-test |
14 | | | 14 | |
15 | PYTHON_VERSIONS_INCOMPATIBLE= 27 | | 15 | PYTHON_VERSIONS_INCOMPATIBLE= 27 |
16 | | | 16 | |
| | | 17 | PLIST_VARS= c |
| | | 18 | |
| | | 19 | .include "../../lang/python/pyversion.mk" |
| | | 20 | |
| | | 21 | .if ${PYPKGPREFIX} == "py311" |
| | | 22 | # as of 2.3.4, python 3.11 is not supported |
| | | 23 | # do not build C extension for now |
| | | 24 | PYSETUPARGS= py |
| | | 25 | .else |
| | | 26 | PLIST.c= yes |
| | | 27 | .endif |
| | | 28 | |
17 | DISTUTILS_BUILDDIR_IN_TEST_ENV= yes | | 29 | DISTUTILS_BUILDDIR_IN_TEST_ENV= yes |
18 | do-test: | | 30 | do-test: |
19 | cd ${WRKSRC} && ${SETENV} ${TEST_ENV} pytest-${PYVERSSUFFIX} | | 31 | cd ${WRKSRC} && ${SETENV} ${TEST_ENV} pytest-${PYVERSSUFFIX} |
20 | | | 32 | |
21 | .include "../../lang/python/egg.mk" | | 33 | .include "../../lang/python/egg.mk" |
22 | .include "../../mk/bsd.pkg.mk" | | 34 | .include "../../mk/bsd.pkg.mk" |