Thu Jun 8 14:08:19 2023 UTC ()
textproc/py-rapidjson: Increase compiler requirements

On netbsd-9, some files failed to build with an ICE.  (The upstream
build system unhelpfully retried the build without the C extension,
making this harder to debug, but PLIST caught it.)

Declare C++17 because upstream README says so.
Require gcc 10, because gcc 7 on NetBSD 9 fails, and 10 is the new
normal.


(gdt)
diff -r1.3 -r1.4 pkgsrc/textproc/py-rapidfuzz/Makefile

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

--- pkgsrc/textproc/py-rapidfuzz/Makefile 2023/06/06 20:53:15 1.3
+++ pkgsrc/textproc/py-rapidfuzz/Makefile 2023/06/08 14:08:19 1.4
@@ -1,31 +1,32 @@ @@ -1,31 +1,32 @@
1# $NetBSD: Makefile,v 1.3 2023/06/06 20:53:15 wiz Exp $ 1# $NetBSD: Makefile,v 1.4 2023/06/08 14:08:19 gdt 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++ 24USE_LANGUAGES= c c++17
 25GCC_REQD= 8
25 26
26# needs 'make install' 27# needs 'make install'
27do-test: 28do-test:
28 cd ${WRKSRC} && ${SETENV} ${TEST_ENV} pytest-${PYVERSSUFFIX} tests 29 cd ${WRKSRC} && ${SETENV} ${TEST_ENV} pytest-${PYVERSSUFFIX} tests
29 30
30.include "../../lang/python/egg.mk" 31.include "../../lang/python/egg.mk"
31.include "../../mk/bsd.pkg.mk" 32.include "../../mk/bsd.pkg.mk"