Gentoo Archives: gentoo-commits

From: "Michał Górny" <mgorny@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: dev-python/llvmlite/
Date: Thu, 30 May 2019 11:37:51
Message-Id: 1559215653.4a2252e78cd941b8e24db0721597956cc299acf1.mgorny@gentoo
1 commit: 4a2252e78cd941b8e24db0721597956cc299acf1
2 Author: Michał Górny <mgorny <AT> gentoo <DOT> org>
3 AuthorDate: Thu May 30 11:27:29 2019 +0000
4 Commit: Michał Górny <mgorny <AT> gentoo <DOT> org>
5 CommitDate: Thu May 30 11:27:33 2019 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=4a2252e7
7
8 dev-python/llvmlite: Bump to 0.29.0 (no changes from rc1)
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.29.0.ebuild | 63 ++++++++++++++++++++++++++++++
14 2 files changed, 64 insertions(+)
15
16 diff --git a/dev-python/llvmlite/Manifest b/dev-python/llvmlite/Manifest
17 index 40fd882b729..1b64d68291b 100644
18 --- a/dev-python/llvmlite/Manifest
19 +++ b/dev-python/llvmlite/Manifest
20 @@ -4,4 +4,5 @@ DIST llvmlite-0.26.0.gh.tar.gz 175536 BLAKE2B 6736e94c13974bb79bcda08ef58dd6d1e6
21 DIST llvmlite-0.27.0.gh.tar.gz 186891 BLAKE2B c7175beeb5c45b6fda62b78b23352d1c22111a37e7fdb89897409c6ab245dab23aa4f799fd5add1bf2199e8f6783d6094101aa29c4afefa2a3dbd48d735b418a SHA512 6c3230f23fec53ddff077c885bc0da4a773049d0226817142e2b7ded9fe6a665dd5cf8c6468101b342ef8e3b394bf2078cf93fc513e46fe451cd75755111448b
22 DIST llvmlite-0.27.1.gh.tar.gz 186904 BLAKE2B ee3af4b3ec03799ea6e643e0ee0a793537c46427d239fb3a26abf4a719b68432f403367321345c30a95758ce1bce411495bc48273dbf2452a872a1edd67dc9a4 SHA512 365ffd95050a39269d9f806d3969657437111b8e999db6cf03d0d99fc5bcc024dbc08f1d379745572317f8d4384d7f86095216674695c34f463a0b9bf48a8be7
23 DIST llvmlite-0.28.0.gh.tar.gz 191141 BLAKE2B 23c86c28311a4e8c7f9c209a7ed7816ad5002c26f9fda7a47cf2b54c4578db28ed0781b54a716726db8a7c1abce79a79a99c3f5bf4be2a61d547eb74d06cb507 SHA512 c00c767c80a507975a055088ca4328766c992e7267219dea54376daf5eb11397532b243352976d3569185149007650d5e94839b61aa55502e1991f72b1ba492a
24 +DIST llvmlite-0.29.0.gh.tar.gz 196507 BLAKE2B d4870ca042d446857b7409c0c50c370458747ee744c24611e88da4bc8780c26125b2e8db3db7fe9d4f553f9aae5769b62effe1ac94cfaf234bab54d43c8086e9 SHA512 8735b46b1a3053b89306bf6e05c8c6c375d15371d33635f1d27e5533d7a78a85f773e04b7ed8d39ebab40a892c374839e1324665d81459cb797f760d6d2c81d1
25 DIST llvmlite-0.29.0rc1.gh.tar.gz 196498 BLAKE2B 6db47948ac38bf61df7bf5eef60a29ac710d259b9b3fdcf8d9cb52239de85211969a34f707c155170e5b42d060e2d3e8616cf1b7720ebc808bddcc427a144bc9 SHA512 80f06584d52fe5947a06eec9ee88ba51c29847f53b4a2c9b21c660478c9e3f873f80677ebcffe1678e327d1132170bdc97737c385823ca0cbbfa9d9f1158cc0a
26
27 diff --git a/dev-python/llvmlite/llvmlite-0.29.0.ebuild b/dev-python/llvmlite/llvmlite-0.29.0.ebuild
28 new file mode 100644
29 index 00000000000..98ff820616c
30 --- /dev/null
31 +++ b/dev-python/llvmlite/llvmlite-0.29.0.ebuild
32 @@ -0,0 +1,63 @@
33 +# Copyright 1999-2019 Gentoo Authors
34 +# Distributed under the terms of the GNU General Public License v2
35 +
36 +EAPI=6
37 +
38 +PYTHON_COMPAT=( python{2_7,3_5,3_6,3_7} )
39 +
40 +inherit distutils-r1 llvm
41 +
42 +DESCRIPTION="Python wrapper around the llvm C++ library"
43 +HOMEPAGE="http://llvmlite.pydata.org/"
44 +SRC_URI="https://github.com/numba/llvmlite/archive/v${PV/_/}.tar.gz -> ${P/_/}.gh.tar.gz"
45 +
46 +LICENSE="BSD"
47 +SLOT="0"
48 +KEYWORDS="~amd64 ~arm64 ~x86 ~amd64-linux ~x86-linux"
49 +IUSE="examples"
50 +
51 +LLVM_MAX_SLOT=8
52 +
53 +RDEPEND="
54 + dev-python/six[${PYTHON_USEDEP}]
55 + sys-devel/llvm:${LLVM_MAX_SLOT}
56 + sys-libs/zlib:0=
57 + virtual/python-enum34[${PYTHON_USEDEP}]
58 +"
59 +DEPEND="${RDEPEND}
60 + dev-python/setuptools[${PYTHON_USEDEP}]
61 +"
62 +
63 +S=${WORKDIR}/${P/_/}
64 +
65 +PATCHES=(
66 + "${FILESDIR}"/llvmlite-0.15.0-use-system-six.patch
67 +)
68 +
69 +python_configure_all() {
70 + # upstream's build system is just horrible, and they ignored the PR
71 + # fixing it, so let's build the shared lib properly using implicit
72 + # make rules
73 +
74 + export LDLIBS=$(llvm-config --libs all)
75 + export CXXFLAGS="$(llvm-config --cxxflags) -fPIC ${CXXFLAGS}"
76 + export LDFLAGS="$(llvm-config --ldflags) ${LDFLAGS}"
77 +
78 + local files=( ffi/*.cpp )
79 + emake -f - <<EOF
80 +ffi/libllvmlite.so: ${files[*]/.cpp/.o}
81 + \$(CXX) -shared \$(CXXFLAGS) \$(LDFLAGS) -o \$@ \$^ \$(LDLIBS)
82 +EOF
83 +}
84 +
85 +python_test() {
86 + "${EPYTHON}" runtests.py -v || die "Tests failed under ${EPYTHON}"
87 +}
88 +
89 +python_install_all() {
90 + distutils-r1_python_install_all
91 + if use examples; then
92 + dodoc -r examples
93 + docompress -x /usr/share/doc/${PF}/examples
94 + fi
95 +}