py-llvmlite: updated to 0.32.1 v0.32.1: Trove classifiers may be out of date. Add FAQ entry on LLVM version support. Adds override for LLVM version check, re-formats docs.diff -r1.13 -r1.14 pkgsrc/devel/py-llvmlite/Makefile
(adam)
@@ -1,31 +1,29 @@ | @@ -1,31 +1,29 @@ | |||
1 | # $NetBSD: Makefile,v 1.13 2020/04/18 08:11:53 adam Exp $ | 1 | # $NetBSD: Makefile,v 1.14 2020/05/12 08:08:08 adam Exp $ | |
2 | 2 | |||
3 | DISTNAME= llvmlite-0.32.0 | 3 | DISTNAME= llvmlite-0.32.1 | |
4 | PKGNAME= ${PYPKGPREFIX}-${DISTNAME} | 4 | PKGNAME= ${PYPKGPREFIX}-${DISTNAME} | |
5 | CATEGORIES= devel python | 5 | CATEGORIES= devel python | |
6 | MASTER_SITES= ${MASTER_SITE_PYPI:=l/llvmlite/} | 6 | MASTER_SITES= ${MASTER_SITE_PYPI:=l/llvmlite/} | |
7 | 7 | |||
8 | MAINTAINER= pkgsrc-users@NetBSD.org | 8 | MAINTAINER= pkgsrc-users@NetBSD.org | |
9 | HOMEPAGE= http://llvmlite.pydata.org/ | 9 | HOMEPAGE= https://llvmlite.readthedocs.io/ | |
10 | COMMENT= Lightweight LLVM Python binding for writing JIT compilers | 10 | COMMENT= Lightweight LLVM Python binding for writing JIT compilers | |
11 | LICENSE= 2-clause-bsd | 11 | LICENSE= 2-clause-bsd | |
12 | 12 | |||
13 | USE_LANGUAGES= c++14 | 13 | USE_LANGUAGES= c++14 | |
14 | MAKE_ENV+= LLVMLITE_SKIP_LLVM_VERSION_CHECK=1 | |||
14 | 15 | |||
15 | .include "../../lang/python/pyversion.mk" | 16 | PYTHON_VERSIONS_INCOMPATIBLE= 27 | |
16 | .if ${_PYTHON_VERSION} == 27 | |||
17 | DEPENDS+= ${PYPKGPREFIX}-enum34-[0-9]*:../../devel/py-enum34 | |||
18 | .endif | |||
19 | 17 | |||
20 | pre-configure: | 18 | pre-configure: | |
21 | ${LN} -f ${WRKSRC}/ffi/Makefile.freebsd ${WRKSRC}/ffi/Makefile.netbsd | 19 | ${LN} -f ${WRKSRC}/ffi/Makefile.freebsd ${WRKSRC}/ffi/Makefile.netbsd | |
22 | 20 | |||
23 | post-install: | 21 | post-install: | |
24 | .if ${OPSYS} == "Darwin" | 22 | .if ${OPSYS} == "Darwin" | |
25 | install_name_tool -id \ | 23 | install_name_tool -id \ | |
26 | ${PREFIX}/${PYSITELIB}/llvmlite/binding/libllvmlite.dylib \ | 24 | ${PREFIX}/${PYSITELIB}/llvmlite/binding/libllvmlite.dylib \ | |
27 | ${DESTDIR}${PREFIX}/${PYSITELIB}/llvmlite/binding/libllvmlite.dylib | 25 | ${DESTDIR}${PREFIX}/${PYSITELIB}/llvmlite/binding/libllvmlite.dylib | |
28 | .endif | 26 | .endif | |
29 | 27 | |||
30 | BUILDLINK_API_DEPENDS.llvm+= llvm>=10.0.0 | 28 | BUILDLINK_API_DEPENDS.llvm+= llvm>=10.0.0 | |
31 | .include "../../lang/llvm/buildlink3.mk" | 29 | .include "../../lang/llvm/buildlink3.mk" |
@@ -1,18 +1,17 @@ | @@ -1,18 +1,17 @@ | |||
1 | @comment $NetBSD: PLIST,v 1.4 2020/04/18 08:11:53 adam Exp $ | 1 | @comment $NetBSD: PLIST,v 1.5 2020/05/12 08:08:08 adam Exp $ | |
2 | ${PYSITELIB}/${EGG_INFODIR}/PKG-INFO | 2 | ${PYSITELIB}/${EGG_INFODIR}/PKG-INFO | |
3 | ${PYSITELIB}/${EGG_INFODIR}/SOURCES.txt | 3 | ${PYSITELIB}/${EGG_INFODIR}/SOURCES.txt | |
4 | ${PYSITELIB}/${EGG_INFODIR}/dependency_links.txt | 4 | ${PYSITELIB}/${EGG_INFODIR}/dependency_links.txt | |
5 | ${PYSITELIB}/${EGG_INFODIR}/requires.txt | |||
6 | ${PYSITELIB}/${EGG_INFODIR}/top_level.txt | 5 | ${PYSITELIB}/${EGG_INFODIR}/top_level.txt | |
7 | ${PYSITELIB}/llvmlite/__init__.py | 6 | ${PYSITELIB}/llvmlite/__init__.py | |
8 | ${PYSITELIB}/llvmlite/__init__.pyc | 7 | ${PYSITELIB}/llvmlite/__init__.pyc | |
9 | ${PYSITELIB}/llvmlite/__init__.pyo | 8 | ${PYSITELIB}/llvmlite/__init__.pyo | |
10 | ${PYSITELIB}/llvmlite/_version.py | 9 | ${PYSITELIB}/llvmlite/_version.py | |
11 | ${PYSITELIB}/llvmlite/_version.pyc | 10 | ${PYSITELIB}/llvmlite/_version.pyc | |
12 | ${PYSITELIB}/llvmlite/_version.pyo | 11 | ${PYSITELIB}/llvmlite/_version.pyo | |
13 | ${PYSITELIB}/llvmlite/binding/__init__.py | 12 | ${PYSITELIB}/llvmlite/binding/__init__.py | |
14 | ${PYSITELIB}/llvmlite/binding/__init__.pyc | 13 | ${PYSITELIB}/llvmlite/binding/__init__.pyc | |
15 | ${PYSITELIB}/llvmlite/binding/__init__.pyo | 14 | ${PYSITELIB}/llvmlite/binding/__init__.pyo | |
16 | ${PYSITELIB}/llvmlite/binding/analysis.py | 15 | ${PYSITELIB}/llvmlite/binding/analysis.py | |
17 | ${PYSITELIB}/llvmlite/binding/analysis.pyc | 16 | ${PYSITELIB}/llvmlite/binding/analysis.pyc | |
18 | ${PYSITELIB}/llvmlite/binding/analysis.pyo | 17 | ${PYSITELIB}/llvmlite/binding/analysis.pyo |
@@ -1,10 +1,10 @@ | @@ -1,10 +1,10 @@ | |||
1 | $NetBSD: distinfo,v 1.12 2020/04/18 08:11:53 adam Exp $ | 1 | $NetBSD: distinfo,v 1.13 2020/05/12 08:08:08 adam Exp $ | |
2 | 2 | |||
3 | SHA1 (llvmlite-0.32.0.tar.gz) = 8bd1ec4d409f315f475926eba41e903171578300 | 3 | SHA1 (llvmlite-0.32.1.tar.gz) = 57b7add0ca7442a9ca5719d2dc9f3a0e1d60e15a | |
4 | RMD160 (llvmlite-0.32.0.tar.gz) = 4429497ed59df5f56e7a35332d614bed469468b5 | 4 | RMD160 (llvmlite-0.32.1.tar.gz) = 48f5b2d914915121d1069e2eeaef0d86dabe4ea4 | |
5 | SHA512 (llvmlite-0.32.0.tar.gz) = 29e597b0200547519a7f5f637523a111ea9637f6e4909cd5053fa30d90f5cf821bae796f6ec2196dbcc983c121aba6db3fa003e4ffac0c3be87f37f4057285b1 | 5 | SHA512 (llvmlite-0.32.1.tar.gz) = 4c13cb362c97b2a7c18fec35a38edb8aff28c3824e3af310fc479fae0e2f69761084600f949fba3d6f7bdca5fec6a1840b36dd6e939a32352e09ed058a94a272 | |
6 | Size (llvmlite-0.32.0.tar.gz) = 103987 bytes | 6 | Size (llvmlite-0.32.1.tar.gz) = 104284 bytes | |
7 | SHA1 (patch-ffi_Makefile.freebsd) = c4624de19e08bab70668a62a62e9edece027cb93 | 7 | SHA1 (patch-ffi_Makefile.freebsd) = c4624de19e08bab70668a62a62e9edece027cb93 | |
8 | SHA1 (patch-ffi_Makefile.linux) = 64fe000e738b61f0ece5c3b6cb86a1d548955c70 | 8 | SHA1 (patch-ffi_Makefile.linux) = 64fe000e738b61f0ece5c3b6cb86a1d548955c70 | |
9 | SHA1 (patch-ffi_build.py) = f3708b97abec4a8745a9afbb16a74d89898b6879 | 9 | SHA1 (patch-ffi_build.py) = 9a992dd33f624055d5c8bea3986c4243c87b4ccf | |
10 | SHA1 (patch-ffi_linker.cpp) = 3d9c6ef53a27bc516a06e59b46328ee32323730c | 10 | SHA1 (patch-ffi_linker.cpp) = 3d9c6ef53a27bc516a06e59b46328ee32323730c |
@@ -1,25 +1,15 @@ | @@ -1,25 +1,15 @@ | |||
1 | $NetBSD: patch-ffi_build.py,v 1.6 2020/04/18 08:11:53 adam Exp $ | 1 | $NetBSD: patch-ffi_build.py,v 1.7 2020/05/12 08:08:08 adam Exp $ | |
2 | 2 | |||
3 | Allow building with LLVM 10.0.x and 9.0.x. | |||
4 | Add NetBSD support. | 3 | Add NetBSD support. | |
5 | 4 | |||
6 | --- ffi/build.py.orig 2020-04-17 14:49:06.000000000 +0000 | 5 | --- ffi/build.py.orig 2020-05-08 14:22:24.000000000 +0000 | |
7 | +++ ffi/build.py | 6 | +++ ffi/build.py | |
8 | @@ -110,7 +110,7 @@ def main_posix(kind, library_ext): | 7 | @@ -182,6 +182,8 @@ def main(): | |
9 | ||||
10 | out = out.decode('latin1') | |||
11 | print(out) | |||
12 | - if not (out.startswith('8.0.') or out.startswith('7.0.') | |||
13 | + if not (out.startswith('10.0.') or out.startswith('9.0.') or out.startswith('8.0.') or out.startswith('7.0.') | |||
14 | or out.startswith('7.1.')): | |||
15 | msg = ( | |||
16 | "Building llvmlite requires LLVM 7.0.x, 7.1.x or 8.0.x, got {!r}. " | |||
17 | @@ -158,6 +158,8 @@ def main(): | |||
18 | main_posix('linux', '.so') | 8 | main_posix('linux', '.so') | |
19 | elif sys.platform.startswith(('freebsd','openbsd')): | 9 | elif sys.platform.startswith(('freebsd','openbsd')): | |
20 | main_posix('freebsd', '.so') | 10 | main_posix('freebsd', '.so') | |
21 | + elif sys.platform.startswith('netbsd'): | 11 | + elif sys.platform.startswith('netbsd'): | |
22 | + main_posix('netbsd', '.so') | 12 | + main_posix('netbsd', '.so') | |
23 | elif sys.platform == 'darwin': | 13 | elif sys.platform == 'darwin': | |
24 | main_posix('osx', '.dylib') | 14 | main_posix('osx', '.dylib') | |
25 | else: | 15 | else: |