| @@ -1,37 +1,39 @@ | | | @@ -1,37 +1,39 @@ |
1 | # $NetBSD: Makefile,v 1.11 2023/07/01 08:37:42 wiz Exp $ | | 1 | # $NetBSD: Makefile,v 1.12 2023/07/03 13:54:32 gdt 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 37 38 | | 20 | PYTHON_VERSIONS_INCOMPATIBLE= 27 37 38 |
21 | | | 21 | |
22 | PLIST_SUBST+= PYTHON_VERSION=${_PYTHON_VERSION} | | 22 | PLIST_SUBST+= PYTHON_VERSION=${_PYTHON_VERSION} |
23 | PLIST_VARS+= avx2 | | 23 | PLIST_VARS+= avx2 |
24 | .if ${MACHINE_ARCH} == "i386" || ${MACHINE_ARCH} == "x86_64" | | 24 | # Only x86_64 is guaranteed to have avx2; while some i386 CPUs do, our |
| | | 25 | # build target does not. |
| | | 26 | .if ${MACHINE_ARCH} == "x86_64" |
25 | PLIST.avx2= yes | | 27 | PLIST.avx2= yes |
26 | .endif | | 28 | .endif |
27 | | | 29 | |
28 | USE_LANGUAGES= c c++17 | | 30 | USE_LANGUAGES= c c++17 |
29 | GCC_REQD+= 10 | | 31 | GCC_REQD+= 10 |
30 | | | 32 | |
31 | BUILDLINK_TRANSFORM.SunOS+= rm:-fno-fat-lto-objects | | 33 | BUILDLINK_TRANSFORM.SunOS+= rm:-fno-fat-lto-objects |
32 | | | 34 | |
33 | # needs 'make install' | | 35 | # needs 'make install' |
34 | do-test: | | 36 | do-test: |
35 | cd ${WRKSRC} && ${SETENV} ${TEST_ENV} pytest-${PYVERSSUFFIX} tests | | 37 | cd ${WRKSRC} && ${SETENV} ${TEST_ENV} pytest-${PYVERSSUFFIX} tests |
36 | | | 38 | |
37 | .include "../../lang/python/egg.mk" | | 39 | .include "../../lang/python/egg.mk" |