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: Wed, 28 Nov 2018 09:04:12
Message-Id: 1543393966.058c73e897e12f4726e000013e8fb5eef638aa52.mgorny@gentoo
1 commit: 058c73e897e12f4726e000013e8fb5eef638aa52
2 Author: Michał Górny <mgorny <AT> gentoo <DOT> org>
3 AuthorDate: Wed Nov 28 08:32:46 2018 +0000
4 Commit: Michał Górny <mgorny <AT> gentoo <DOT> org>
5 CommitDate: Wed Nov 28 08:32:46 2018 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=058c73e8
7
8 dev-python/llvmlite: Bump to 0.26.0 (still no LLVM 7!)
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.26.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 ad857c8c77d..7ed794d6b46 100644
18 --- a/dev-python/llvmlite/Manifest
19 +++ b/dev-python/llvmlite/Manifest
20 @@ -2,3 +2,4 @@ DIST llvmlite-0.20.0.tar.gz 96753 BLAKE2B ec9cfa554f44162c0d6e755628603c9afd8564
21 DIST llvmlite-0.22.0.gh.tar.gz 156077 BLAKE2B 1b95a0636807fcf38955b32bd5c7c19784df2cc6708f23624c047f0e9caf4eb2fc26c7a1cb778d7cc7e42b8aeaee1ed43c92bcdaf7eb2e798c25f692b96b786a SHA512 633ec4d294dc246ebff5c7931e9bea86efa28323242411f3f54bc34c99085ebaef477b5bfd8224080790a12b188308ff9662c284b360e1a2939f4fe9b84a9458
22 DIST llvmlite-0.24.0.gh.tar.gz 169577 BLAKE2B 7fedf8b9ec49f537db27a77c5880fb3bb41d126c615e73a4fd503ff781dcd4745c4f708cccd31d9b5544609ab7821e8ef1299856ef13ec3912ad2341af12a3ce SHA512 14b8918f9f58a88596607e697212aa516a99c65f71257d22f09e6b735f517a38f11142a63bf2e8f117c6ceff97153a5e686fa322d62abd14000db7e9ae136900
23 DIST llvmlite-0.25.0.gh.tar.gz 173304 BLAKE2B 1376dee4b81343d22f218b0bc1c31f6dbd5eb1d8e4788a504626c1a653aa92500ab0685117c0d73c2a561e957dd930e411b4b128a85c9fddc712cee102690521 SHA512 a72b49db7720fa8a76647f9ad875b8e43e8738127a27fcb2646e28a543fb4e334ed690965e0c973e9d50b05fcbe4b9466f87c82936b3d49e61f774d0c7fd827e
24 +DIST llvmlite-0.26.0.gh.tar.gz 175536 BLAKE2B 6736e94c13974bb79bcda08ef58dd6d1e67d07a0173b5f2ab1b2fcf9a6e72b2a0b8737da5598023fa0c6db85cfd84f2d429f6077e1342a15b500376addd03c69 SHA512 e6bf76b209f44624fe21551971d422bbee6a6dcdfbd2c42607904be32db1b94cfcb185e70198fced5deadd938208d66d94eed4cea31726ae7f4779d58b57eb48
25
26 diff --git a/dev-python/llvmlite/llvmlite-0.26.0.ebuild b/dev-python/llvmlite/llvmlite-0.26.0.ebuild
27 new file mode 100644
28 index 00000000000..64fcac01111
29 --- /dev/null
30 +++ b/dev-python/llvmlite/llvmlite-0.26.0.ebuild
31 @@ -0,0 +1,63 @@
32 +# Copyright 1999-2018 Gentoo Foundation
33 +# Distributed under the terms of the GNU General Public License v2
34 +
35 +EAPI=6
36 +
37 +PYTHON_COMPAT=( python{2_7,3_4,3_5,3_6,3_7} )
38 +
39 +inherit distutils-r1 llvm
40 +
41 +DESCRIPTION="Python wrapper around the llvm C++ library"
42 +HOMEPAGE="http://llvmlite.pydata.org/"
43 +SRC_URI="https://github.com/numba/llvmlite/archive/v${PV/_/}.tar.gz -> ${P/_/}.gh.tar.gz"
44 +
45 +LICENSE="BSD"
46 +SLOT="0"
47 +KEYWORDS="~amd64 ~x86 ~amd64-linux ~x86-linux"
48 +IUSE="examples"
49 +
50 +LLVM_MAX_SLOT=6
51 +
52 +RDEPEND="
53 + dev-python/six[${PYTHON_USEDEP}]
54 + >=sys-devel/llvm-6.0.0-r1:${LLVM_MAX_SLOT}
55 + sys-libs/zlib:0=
56 + virtual/python-enum34[${PYTHON_USEDEP}]
57 +"
58 +DEPEND="${RDEPEND}
59 + dev-python/setuptools[${PYTHON_USEDEP}]
60 +"
61 +
62 +S=${WORKDIR}/${P/_/}
63 +
64 +PATCHES=(
65 + "${FILESDIR}"/llvmlite-0.15.0-use-system-six.patch
66 +)
67 +
68 +python_configure_all() {
69 + # upstream's build system is just horrible, and they ignored the PR
70 + # fixing it, so let's build the shared lib properly using implicit
71 + # make rules
72 +
73 + export LDLIBS=$(llvm-config --libs all)
74 + export CXXFLAGS="$(llvm-config --cxxflags) -fPIC ${CXXFLAGS}"
75 + export LDFLAGS="$(llvm-config --ldflags) ${LDFLAGS}"
76 +
77 + local files=( ffi/*.cpp )
78 + emake -f - <<EOF
79 +ffi/libllvmlite.so: ${files[*]/.cpp/.o}
80 + \$(CXX) -shared \$(CXXFLAGS) \$(LDFLAGS) -o \$@ \$^ \$(LDLIBS)
81 +EOF
82 +}
83 +
84 +python_test() {
85 + "${EPYTHON}" runtests.py -v || die "Tests failed under ${EPYTHON}"
86 +}
87 +
88 +python_install_all() {
89 + distutils-r1_python_install_all
90 + if use examples; then
91 + dodoc -r examples
92 + docompress -x /usr/share/doc/${PF}/examples
93 + fi
94 +}