| @@ -1,32 +1,32 @@ | | | @@ -1,32 +1,32 @@ |
1 | # $NetBSD: Makefile,v 1.5 2023/06/08 15:19:02 gdt Exp $ | | 1 | # $NetBSD: Makefile,v 1.6 2023/06/13 18:20:22 wiz Exp $ |
2 | | | 2 | |
3 | DISTNAME= rapidfuzz-3.1.1 | | 3 | DISTNAME= rapidfuzz-3.1.1 |
4 | PKGNAME= ${PYPKGPREFIX}-${DISTNAME} | | 4 | PKGNAME= ${PYPKGPREFIX}-${DISTNAME} |
5 | CATEGORIES= textproc python | | 5 | CATEGORIES= textproc python |
6 | MASTER_SITES= ${MASTER_SITE_PYPI:=r/rapidfuzz/} | | 6 | MASTER_SITES= ${MASTER_SITE_PYPI:=r/rapidfuzz/} |
7 | | | 7 | |
8 | MAINTAINER= pkgsrc-users@NetBSD.org | | 8 | MAINTAINER= pkgsrc-users@NetBSD.org |
9 | HOMEPAGE= https://github.com/maxbachmann/RapidFuzz | | 9 | HOMEPAGE= https://github.com/maxbachmann/RapidFuzz |
10 | COMMENT= Rapid fuzzy string matching | | 10 | COMMENT= Rapid fuzzy string matching |
11 | LICENSE= mit | | 11 | LICENSE= mit |
12 | | | 12 | |
13 | TOOL_DEPENDS+= ${PYPKGPREFIX}-scikit-build>=0.17.0:../../devel/py-scikit-build | | 13 | TOOL_DEPENDS+= ${PYPKGPREFIX}-scikit-build>=0.17.0:../../devel/py-scikit-build |
14 | TOOL_DEPENDS+= cmake-[0-9]*:../../devel/cmake | | 14 | TOOL_DEPENDS+= cmake-[0-9]*:../../devel/cmake |
15 | TEST_DEPENDS+= ${PYPKGPREFIX}-test>=7.1:../../devel/py-test | | 15 | TEST_DEPENDS+= ${PYPKGPREFIX}-test>=7.1:../../devel/py-test |
16 | # optional dependency, but not optional for testing | | 16 | # optional dependency, but not optional for testing |
17 | TEST_DEPENDS+= ${PYPKGPREFIX}-numpy>=0:../../math/py-numpy | | 17 | TEST_DEPENDS+= ${PYPKGPREFIX}-numpy>=0:../../math/py-numpy |
18 | TEST_DEPENDS+= ${PYPKGPREFIX}-hypothesis>=0:../../devel/py-hypothesis | | 18 | TEST_DEPENDS+= ${PYPKGPREFIX}-hypothesis>=0:../../devel/py-hypothesis |
19 | | | 19 | |
20 | PYTHON_VERSIONS_INCOMPATIBLE= 27 | | 20 | PYTHON_VERSIONS_INCOMPATIBLE= 27 |
21 | | | 21 | |
22 | PLIST_SUBST+= PYTHON_VERSION=${PYTHON_VERSION} | | 22 | PLIST_SUBST+= PYTHON_VERSION=${_PYTHON_VERSION} |
23 | | | 23 | |
24 | USE_LANGUAGES= c c++17 | | 24 | USE_LANGUAGES= c c++17 |
25 | GCC_REQD= 10 | | 25 | GCC_REQD+= 10 |
26 | | | 26 | |
27 | # needs 'make install' | | 27 | # needs 'make install' |
28 | do-test: | | 28 | do-test: |
29 | cd ${WRKSRC} && ${SETENV} ${TEST_ENV} pytest-${PYVERSSUFFIX} tests | | 29 | cd ${WRKSRC} && ${SETENV} ${TEST_ENV} pytest-${PYVERSSUFFIX} tests |
30 | | | 30 | |
31 | .include "../../lang/python/egg.mk" | | 31 | .include "../../lang/python/egg.mk" |
32 | .include "../../mk/bsd.pkg.mk" | | 32 | .include "../../mk/bsd.pkg.mk" |