1 |
commit: a00908d9d625bfcf32ce9c0872a6b36ade6cfdfb |
2 |
Author: Michał Górny <mgorny <AT> gentoo <DOT> org> |
3 |
AuthorDate: Tue Dec 1 08:58:50 2020 +0000 |
4 |
Commit: Michał Górny <mgorny <AT> gentoo <DOT> org> |
5 |
CommitDate: Tue Dec 1 10:32:00 2020 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=a00908d9 |
7 |
|
8 |
dev-python/llvmlite: Bump to 0.35.0 |
9 |
|
10 |
Signed-off-by: Michał Górny <mgorny <AT> gentoo.org> |
11 |
|
12 |
dev-python/llvmlite/Manifest | 1 + |
13 |
dev-python/llvmlite/llvmlite-0.35.0.ebuild | 56 ++++++++++++++++++++++++++++++ |
14 |
2 files changed, 57 insertions(+) |
15 |
|
16 |
diff --git a/dev-python/llvmlite/Manifest b/dev-python/llvmlite/Manifest |
17 |
index 0ab640394b0..f06c761a5fb 100644 |
18 |
--- a/dev-python/llvmlite/Manifest |
19 |
+++ b/dev-python/llvmlite/Manifest |
20 |
@@ -1 +1,2 @@ |
21 |
DIST llvmlite-0.34.0.gh.tar.gz 210438 BLAKE2B 832ec28047a51b2874a0de5885445b9d77942a70f86620dfb0b25ff0b17395b6009d31d5e9f27ddf02c19ae97bd5b325fc49227fdc0499a9f5fa3bde44e6b564 SHA512 5540df4ebad835e294c00cc09ab1230a530566f563f751f890752f6e22f7b2a04aedcbb53dbbb8e323198d05c80bc9699b593d919eaf1af60fa6f94ff6f50bb1 |
22 |
+DIST llvmlite-0.35.0.gh.tar.gz 228089 BLAKE2B 5cee01244552cfc1c2ba979709170484ed253f52c5c47a4a254bf7d26c935ff0d2a858b7a7f4ec7719644495383128adab11a1287849cd426b7997da4a59efeb SHA512 345b6321277749a169cd87e152261ef499edbf18d18ef7085017c111f2892eac0241529cfae9c6eaaeb68cdb4d726965ed03b4d5a836501dcbdaa73d3c0796fd |
23 |
|
24 |
diff --git a/dev-python/llvmlite/llvmlite-0.35.0.ebuild b/dev-python/llvmlite/llvmlite-0.35.0.ebuild |
25 |
new file mode 100644 |
26 |
index 00000000000..3fa3c11d9cb |
27 |
--- /dev/null |
28 |
+++ b/dev-python/llvmlite/llvmlite-0.35.0.ebuild |
29 |
@@ -0,0 +1,56 @@ |
30 |
+# Copyright 1999-2020 Gentoo Authors |
31 |
+# Distributed under the terms of the GNU General Public License v2 |
32 |
+ |
33 |
+EAPI=7 |
34 |
+ |
35 |
+PYTHON_COMPAT=( python3_{6..9} ) |
36 |
+ |
37 |
+inherit distutils-r1 llvm |
38 |
+ |
39 |
+DESCRIPTION="Python wrapper around the llvm C++ library" |
40 |
+HOMEPAGE="https://llvmlite.pydata.org/" |
41 |
+SRC_URI="https://github.com/numba/llvmlite/archive/v${PV/_/}.tar.gz -> ${P/_/}.gh.tar.gz" |
42 |
+S=${WORKDIR}/${P/_/} |
43 |
+ |
44 |
+LICENSE="BSD" |
45 |
+SLOT="0" |
46 |
+KEYWORDS="~amd64 ~arm ~arm64 ~x86 ~amd64-linux ~x86-linux" |
47 |
+IUSE="examples" |
48 |
+ |
49 |
+LLVM_MAX_SLOT=10 |
50 |
+ |
51 |
+RDEPEND=" |
52 |
+ sys-devel/llvm:${LLVM_MAX_SLOT} |
53 |
+ sys-libs/zlib:0= |
54 |
+" |
55 |
+DEPEND="${RDEPEND}" |
56 |
+ |
57 |
+python_configure_all() { |
58 |
+ # upstream's build system is just horrible, and they ignored the PR |
59 |
+ # fixing it, so let's build the shared lib properly using implicit |
60 |
+ # make rules |
61 |
+ |
62 |
+ export LDLIBS=$(llvm-config --libs all) |
63 |
+ export CXXFLAGS="$(llvm-config --cxxflags) -fPIC ${CXXFLAGS}" |
64 |
+ export LDFLAGS="$(llvm-config --ldflags) ${LDFLAGS}" |
65 |
+ |
66 |
+ local files=( ffi/*.cpp ) |
67 |
+ emake -f - <<EOF |
68 |
+ffi/libllvmlite.so: ${files[*]/.cpp/.o} |
69 |
+ \$(CXX) -shared \$(CXXFLAGS) \$(LDFLAGS) -o \$@ \$^ \$(LDLIBS) |
70 |
+EOF |
71 |
+ |
72 |
+ export LLVMLITE_SKIP_LLVM_VERSION_CHECK=1 |
73 |
+} |
74 |
+ |
75 |
+python_test() { |
76 |
+ "${EPYTHON}" runtests.py -v || die "Tests failed under ${EPYTHON}" |
77 |
+} |
78 |
+ |
79 |
+python_install_all() { |
80 |
+ distutils-r1_python_install_all |
81 |
+ if use examples; then |
82 |
+ dodoc -r examples |
83 |
+ docompress -x /usr/share/doc/${PF}/examples |
84 |
+ fi |
85 |
+} |