py-pythran: fix building scipydiff -r1.9 -r1.10 pkgsrc/math/py-pythran/Makefile
(adam)
@@ -1,31 +1,34 @@ | @@ -1,31 +1,34 @@ | |||
1 | # $NetBSD: Makefile,v 1.9 2023/01/24 09:18:23 adam Exp $ | 1 | # $NetBSD: Makefile,v 1.10 2023/01/25 09:06:54 adam Exp $ | |
2 | 2 | |||
3 | DISTNAME= pythran-0.12.1 | 3 | DISTNAME= pythran-0.12.1 | |
4 | PKGNAME= ${PYPKGPREFIX}-${DISTNAME} | 4 | PKGNAME= ${PYPKGPREFIX}-${DISTNAME} | |
5 | CATEGORIES= math python | 5 | CATEGORIES= math python | |
6 | MASTER_SITES= ${MASTER_SITE_PYPI:=p/pythran/} | 6 | MASTER_SITES= ${MASTER_SITE_PYPI:=p/pythran/} | |
7 | 7 | |||
8 | MAINTAINER= pkgsrc-users@NetBSD.org | 8 | MAINTAINER= pkgsrc-users@NetBSD.org | |
9 | HOMEPAGE= https://pythran.readthedocs.io/ | 9 | HOMEPAGE= https://pythran.readthedocs.io/ | |
10 | COMMENT= Ahead of Time compiler for numeric kernels | 10 | COMMENT= Ahead of Time compiler for numeric kernels | |
11 | LICENSE= modified-bsd | 11 | LICENSE= modified-bsd | |
12 | 12 | |||
13 | DEPENDS+= ${PYPKGPREFIX}-beniget>=0.4.0:../../devel/py-beniget | 13 | DEPENDS+= ${PYPKGPREFIX}-beniget>=0.4.0:../../devel/py-beniget | |
14 | DEPENDS+= ${PYPKGPREFIX}-gast>=0.5.0:../../devel/py-gast | 14 | DEPENDS+= ${PYPKGPREFIX}-gast>=0.5.0:../../devel/py-gast | |
15 | DEPENDS+= ${PYPKGPREFIX}-numpy-[0-9]*:../../math/py-numpy | 15 | DEPENDS+= ${PYPKGPREFIX}-numpy-[0-9]*:../../math/py-numpy | |
16 | DEPENDS+= ${PYPKGPREFIX}-ply>=3.4:../../devel/py-ply | 16 | DEPENDS+= ${PYPKGPREFIX}-ply>=3.4:../../devel/py-ply | |
17 | 17 | |||
18 | USE_LANGUAGES= # none | 18 | USE_LANGUAGES= # none | |
19 | 19 | |||
20 | PYTHON_VERSIONS_INCOMPATIBLE= 27 | 20 | PYTHON_VERSIONS_INCOMPATIBLE= 27 | |
21 | 21 | |||
22 | USE_PKG_RESOURCES= yes | 22 | USE_PKG_RESOURCES= yes | |
23 | 23 | |||
24 | pre-configure: | |||
25 | ${RM} ${WRKSRC}/third_party/xsimd/arch/xsimd_scalar.hpp.orig | |||
26 | ||||
24 | post-install: | 27 | post-install: | |
25 | .for bin in pythran pythran-config | 28 | .for bin in pythran pythran-config | |
26 | cd ${DESTDIR}${PREFIX}/bin && \ | 29 | cd ${DESTDIR}${PREFIX}/bin && \ | |
27 | ${MV} ${bin} ${bin}-${PYVERSSUFFIX} || ${TRUE} | 30 | ${MV} ${bin} ${bin}-${PYVERSSUFFIX} || ${TRUE} | |
28 | .endfor | 31 | .endfor | |
29 | 32 | |||
30 | .include "../../lang/python/egg.mk" | 33 | .include "../../lang/python/egg.mk" | |
31 | .include "../../mk/bsd.pkg.mk" | 34 | .include "../../mk/bsd.pkg.mk" |
@@ -1,16 +1,16 @@ | @@ -1,16 +1,16 @@ | |||
1 | # $NetBSD: buildlink3.mk,v 1.1 2021/10/13 19:32:00 adam Exp $ | 1 | # $NetBSD: buildlink3.mk,v 1.2 2023/01/25 09:06:54 adam Exp $ | |
2 | 2 | |||
3 | BUILDLINK_TREE+= py-pythran | 3 | BUILDLINK_TREE+= py-pythran | |
4 | 4 | |||
5 | .if !defined(PY_PYTHRAN_BUILDLINK3_MK) | 5 | .if !defined(PY_PYTHRAN_BUILDLINK3_MK) | |
6 | PY_PYTHRAN_BUILDLINK3_MK:= | 6 | PY_PYTHRAN_BUILDLINK3_MK:= | |
7 | 7 | |||
8 | .include "../../lang/python/pyversion.mk" | 8 | .include "../../lang/python/pyversion.mk" | |
9 | BUILDLINK_API_DEPENDS.py-pythran+= ${PYPKGPREFIX}-pythran>=0.10.0 | 9 | BUILDLINK_API_DEPENDS.py-pythran+= ${PYPKGPREFIX}-pythran>=0.10.0 | |
10 | BUILDLINK_PKGSRCDIR.py-pythran?= ../../math/py-pythran | 10 | BUILDLINK_PKGSRCDIR.py-pythran?= ../../math/py-pythran | |
11 | BUILDLINK_DEPMETHOD.py-pythran?= build | 11 | BUILDLINK_DEPMETHOD.py-pythran?= build | |
12 | 12 | |||
13 | BUILDLINK_CONTENTS_FILTER.py-pythran+= ${EGREP} '(\.h$$|\.hpp$$)' | 13 | BUILDLINK_CONTENTS_FILTER.py-pythran= ${EGREP} '(\.h$$|\.hpp$$)' | |
14 | .endif # PY_PYTHRAN_BUILDLINK3_MK | 14 | .endif # PY_PYTHRAN_BUILDLINK3_MK | |
15 | 15 | |||
16 | BUILDLINK_TREE+= -py-pythran | 16 | BUILDLINK_TREE+= -py-pythran |
@@ -1,5 +1,6 @@ | @@ -1,5 +1,6 @@ | |||
1 | $NetBSD: distinfo,v 1.6 2023/01/24 09:18:23 adam Exp $ | 1 | $NetBSD: distinfo,v 1.7 2023/01/25 09:06:54 adam Exp $ | |
2 | 2 | |||
3 | BLAKE2s (pythran-0.12.1.tar.gz) = 2e30bfd595ba4b12d43aaac62ccc329b59dc777e3a5ad484febf6235c37616dd | 3 | BLAKE2s (pythran-0.12.1.tar.gz) = 2e30bfd595ba4b12d43aaac62ccc329b59dc777e3a5ad484febf6235c37616dd | |
4 | SHA512 (pythran-0.12.1.tar.gz) = e0a78df2c0a9b678a51ea2446588b5287a1f838e8387dd904b011b9314e61eebe0f53b6ea92107e766eebbea73ca0bdd4095a1805eb76a63cae063f82cdfa66b | 4 | SHA512 (pythran-0.12.1.tar.gz) = e0a78df2c0a9b678a51ea2446588b5287a1f838e8387dd904b011b9314e61eebe0f53b6ea92107e766eebbea73ca0bdd4095a1805eb76a63cae063f82cdfa66b | |
5 | Size (pythran-0.12.1.tar.gz) = 3995885 bytes | 5 | Size (pythran-0.12.1.tar.gz) = 3995885 bytes | |
6 | SHA1 (patch-third__party_xsimd_arch_xsimd__scalar.hpp) = b7609b1575d8c5e4c8ea6c4969f8ef4ff352c20c |
$NetBSD: patch-third__party_xsimd_arch_xsimd__scalar.hpp,v 1.1 2023/01/25 09:06:54 adam Exp $
https://github.com/serge-sans-paille/pythran/issues/2070
--- third_party/xsimd/arch/xsimd_scalar.hpp.orig 2023-01-25 08:48:11.000000000 +0000
+++ third_party/xsimd/arch/xsimd_scalar.hpp
@@ -441,7 +441,7 @@ namespace xsimd
return !(x0 == x1);
}
-#if defined(_GNU_SOURCE) && !defined(__APPLE__) && !defined(__MINGW32__) && !defined(__ANDROID__)
+#if defined(_GNU_SOURCE) && !defined(__APPLE__) && !defined(__MINGW32__) && !defined(__ANDROID__) && !defined(__FreeBSD__) && !defined(__NetBSD__) && !defined(__OpenBSD__) && !defined(__DragonFly__)
inline float exp10(const float& x) noexcept
{
return ::exp10f(x);