Tue Jun 13 18:20:22 2023 UTC ()
py-rapidfuzz: try fixing build with Python 3.8 and 3.9

Fix pkglint while here.


(wiz)
diff -r1.5 -r1.6 pkgsrc/textproc/py-rapidfuzz/Makefile

cvs diff -r1.5 -r1.6 pkgsrc/textproc/py-rapidfuzz/Makefile (expand / switch to unified diff)

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