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, 25 Apr 2018 14:37:01
Message-Id: 1524667011.45caed28e492afacdfb8a31831488fd3a80551bf.mgorny@gentoo
1 commit: 45caed28e492afacdfb8a31831488fd3a80551bf
2 Author: Michał Górny <mgorny <AT> gentoo <DOT> org>
3 AuthorDate: Wed Apr 25 14:31:30 2018 +0000
4 Commit: Michał Górny <mgorny <AT> gentoo <DOT> org>
5 CommitDate: Wed Apr 25 14:36:51 2018 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=45caed28
7
8 dev-python/llvmlite: Bump to 0.23.0 (for LLVM 6)
9
10 dev-python/llvmlite/Manifest | 1 +
11 dev-python/llvmlite/llvmlite-0.23.0.ebuild | 55 ++++++++++++++++++++++++++++++
12 2 files changed, 56 insertions(+)
13
14 diff --git a/dev-python/llvmlite/Manifest b/dev-python/llvmlite/Manifest
15 index 48de8fd0b21..308985953f7 100644
16 --- a/dev-python/llvmlite/Manifest
17 +++ b/dev-python/llvmlite/Manifest
18 @@ -2,3 +2,4 @@ DIST llvmlite-0.19.0.tar.gz 97109 BLAKE2B c4d22d130d12d7e61e9ddc177e28c6d8c3d0a1
19 DIST llvmlite-0.20.0.tar.gz 96753 BLAKE2B ec9cfa554f44162c0d6e755628603c9afd85642998f56ed49c2ff29c3ef975ef4ce14c6555382ca282b70d71a1ff7347c0b773b339b14345e10d3b9ac96ac55e SHA512 c2e0918e7acfba68922f60889180ec660da13ea199c9e8dfb3ac075c295baeb8c90784a6acc3c463cdd696f8f61c42226548d38db5bd8c4397a23cfa7c7ff764
20 DIST llvmlite-0.21.0.tar.gz 96462 BLAKE2B 8458037ca49c2c7035cc65539c1dc933f26c694e07502bfb0f37adfa389c56d715b53310fa977461fa75d7f826384a9c408682bee942e7cda6a299b16192c183 SHA512 25fb0986faf558995e6405a77d675d1dfcda2f79f8e6f5183d66a16f7b1f323df7eefb54455d9a15412c4eb88cd2e160d9f45038b7d97da6fffe78d7adc0e296
21 DIST llvmlite-0.22.0.gh.tar.gz 156077 BLAKE2B 1b95a0636807fcf38955b32bd5c7c19784df2cc6708f23624c047f0e9caf4eb2fc26c7a1cb778d7cc7e42b8aeaee1ed43c92bcdaf7eb2e798c25f692b96b786a SHA512 633ec4d294dc246ebff5c7931e9bea86efa28323242411f3f54bc34c99085ebaef477b5bfd8224080790a12b188308ff9662c284b360e1a2939f4fe9b84a9458
22 +DIST llvmlite-0.23.0.gh.tar.gz 167384 BLAKE2B f0f64f389004b8c07b40ad42bfe2aa10b06769c59c6ca84fd89c5c38e0f453bc079d435418fe19bdd5b97b9cac698eae5c537417bee181485390745b8d319fc8 SHA512 e4fa0096d73351a73b0509ca312dd79f8b4a50eeae03d7491761c68738e1c4f8204be1c2eefad71e10edfbcaef062dafa4270029e1b254febc580016aff2d3b9
23
24 diff --git a/dev-python/llvmlite/llvmlite-0.23.0.ebuild b/dev-python/llvmlite/llvmlite-0.23.0.ebuild
25 new file mode 100644
26 index 00000000000..e7d50fc0b39
27 --- /dev/null
28 +++ b/dev-python/llvmlite/llvmlite-0.23.0.ebuild
29 @@ -0,0 +1,55 @@
30 +# Copyright 1999-2018 Gentoo Foundation
31 +# Distributed under the terms of the GNU General Public License v2
32 +
33 +EAPI=6
34 +
35 +PYTHON_COMPAT=( python{2_7,3_4,3_5,3_6} )
36 +
37 +inherit distutils-r1 llvm
38 +
39 +DESCRIPTION="Python wrapper around the llvm C++ library"
40 +HOMEPAGE="http://llvmlite.pydata.org/"
41 +# upstream slacks in making pypi releases
42 +SRC_URI="https://github.com/numba/llvmlite/archive/v${PV}.tar.gz -> ${P}.gh.tar.gz"
43 +
44 +LICENSE="BSD"
45 +SLOT="0"
46 +KEYWORDS="~amd64 ~x86 ~amd64-linux ~x86-linux"
47 +IUSE="examples"
48 +
49 +LLVM_MAX_SLOT=6
50 +
51 +RDEPEND="
52 + dev-python/six[${PYTHON_USEDEP}]
53 + >=sys-devel/llvm-6.0.0-r1:${LLVM_MAX_SLOT}
54 + sys-libs/zlib:0=
55 + virtual/python-enum34[${PYTHON_USEDEP}]
56 +"
57 +DEPEND="${RDEPEND}
58 + dev-python/setuptools[${PYTHON_USEDEP}]
59 +"
60 +PATCHES=(
61 + "${FILESDIR}"/llvmlite-0.15.0-use-system-six.patch
62 +)
63 +
64 +python_prepare_all() {
65 + # disable -flto, we do not force it against user's wishes
66 + # add -fPIC, needed to link against shared libraries
67 + # plus use those vars to force our CXXFLAGS/LDFLAGS in...
68 + export CXX_FLTO_FLAGS="${CXXFLAGS} -fPIC"
69 + export LD_FLTO_FLAGS="${LDFLAGS} -fPIC"
70 + distutils-r1_python_prepare_all
71 +}
72 +
73 +python_test() {
74 + "${EPYTHON}" runtests.py -v || die "Tests failed under ${EPYTHON}"
75 +}
76 +
77 +python_install_all() {
78 + distutils-r1_python_install_all
79 + if use examples; then
80 + insinto /usr/share/doc/${PF}
81 + doins -r examples
82 + docompress -x /usr/share/doc/${PF}/examples
83 + fi
84 +}