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: Sat, 09 Dec 2017 08:36:43
Message-Id: 1512808585.a97a7a441d0316e61bd6a06cc9efc4f232e80b32.mgorny@gentoo
1 commit: a97a7a441d0316e61bd6a06cc9efc4f232e80b32
2 Author: Michał Górny <mgorny <AT> gentoo <DOT> org>
3 AuthorDate: Sat Dec 9 08:23:22 2017 +0000
4 Commit: Michał Górny <mgorny <AT> gentoo <DOT> org>
5 CommitDate: Sat Dec 9 08:36:25 2017 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=a97a7a44
7
8 dev-python/llvmlite: Bump to 0.21.0 (for LLVM 5)
9
10 dev-python/llvmlite/Manifest | 1 +
11 dev-python/llvmlite/llvmlite-0.21.0.ebuild | 54 ++++++++++++++++++++++++++++++
12 2 files changed, 55 insertions(+)
13
14 diff --git a/dev-python/llvmlite/Manifest b/dev-python/llvmlite/Manifest
15 index efd237ebef7..c0046c4cb02 100644
16 --- a/dev-python/llvmlite/Manifest
17 +++ b/dev-python/llvmlite/Manifest
18 @@ -2,3 +2,4 @@ DIST llvmlite-0.12.1.tar.gz 88271 SHA256 3ce71beebd4cbc7a49abe4eadfc99725477fd43
19 DIST llvmlite-0.16.0.tar.gz 95284 SHA256 ef3bae32482f91742d91571b5225a6943804291eb9405b98090a7b50942ec5e9 SHA512 97a251ef9d840fc5a25bd673c644207750f2e653ccad5850dec0a7f1bc77170c6ce85d5cd663ab5c109cb1b51ced9545493d35ef81dfe04a3696b5a0c37fa768 WHIRLPOOL ab629a507c2cc27756109162469a0eed8f4dbb059b7c3957df65e059c6e613581fed6380b58686812ed5378a9d2ebe5f754e6de1a5132c89a323b221da203e91
20 DIST llvmlite-0.19.0.tar.gz 97109 SHA256 fbaeb3d584e0f6bac82a33776e9b5f0b5b4a3415a03edeff5d66f6176f0edbe2 SHA512 93551bbab519021abdc66ca099b9090b3af54b048adbce8d16f3700c066bbc4f5c24e5234a8a1ac4bfcdf8bf74d0ac52bb7023251ac948af6ef99fbd5a5324c8 WHIRLPOOL ee6170c09ac897862fee4705b8131f6dfb97a980c8aec73a9316f7d0d57dfeb4a0e3bd629f536cfeb51df682b4838b1c4e267ff3ebaf54f2f5db7193062014f5
21 DIST llvmlite-0.20.0.tar.gz 96753 SHA256 b2f174848df16bb9195a07fec102110a06d018da736bd9b3570a54d44c797c29 SHA512 c2e0918e7acfba68922f60889180ec660da13ea199c9e8dfb3ac075c295baeb8c90784a6acc3c463cdd696f8f61c42226548d38db5bd8c4397a23cfa7c7ff764 WHIRLPOOL 8eae219cce74a106ddf48b771b210589775a4fea37f8267ed7e496b078d92503fe955edc371326cf3261d9707461f996585209cd30183cc81f5b6f204b1aa293
22 +DIST llvmlite-0.21.0.tar.gz 96462 BLAKE2B 8458037ca49c2c7035cc65539c1dc933f26c694e07502bfb0f37adfa389c56d715b53310fa977461fa75d7f826384a9c408682bee942e7cda6a299b16192c183 SHA512 25fb0986faf558995e6405a77d675d1dfcda2f79f8e6f5183d66a16f7b1f323df7eefb54455d9a15412c4eb88cd2e160d9f45038b7d97da6fffe78d7adc0e296
23
24 diff --git a/dev-python/llvmlite/llvmlite-0.21.0.ebuild b/dev-python/llvmlite/llvmlite-0.21.0.ebuild
25 new file mode 100644
26 index 00000000000..957abcd3634
27 --- /dev/null
28 +++ b/dev-python/llvmlite/llvmlite-0.21.0.ebuild
29 @@ -0,0 +1,54 @@
30 +# Copyright 1999-2017 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 +SRC_URI="mirror://pypi/${PN:0:1}/${PN}/${P}.tar.gz"
42 +
43 +LICENSE="BSD"
44 +SLOT="0"
45 +KEYWORDS="~amd64 ~x86 ~amd64-linux ~x86-linux"
46 +IUSE="examples"
47 +
48 +LLVM_MAX_SLOT=5
49 +
50 +RDEPEND="
51 + dev-python/six[${PYTHON_USEDEP}]
52 + sys-devel/llvm:${LLVM_MAX_SLOT}
53 + sys-libs/zlib:0=
54 + virtual/python-enum34[${PYTHON_USEDEP}]
55 +"
56 +DEPEND="${RDEPEND}
57 + dev-python/setuptools[${PYTHON_USEDEP}]
58 +"
59 +PATCHES=(
60 + "${FILESDIR}"/llvmlite-0.15.0-use-system-six.patch
61 +)
62 +
63 +python_prepare_all() {
64 + # disable -flto, we do not force it against user's wishes
65 + # add -fPIC, needed to link against shared libraries
66 + # plus use those vars to force our CXXFLAGS/LDFLAGS in...
67 + export CXX_FLTO_FLAGS="${CXXFLAGS} -fPIC"
68 + export LD_FLTO_FLAGS="${LDFLAGS} -fPIC"
69 + distutils-r1_python_prepare_all
70 +}
71 +
72 +python_test() {
73 + "${EPYTHON}" runtests.py -v || die "Tests failed under ${EPYTHON}"
74 +}
75 +
76 +python_install_all() {
77 + distutils-r1_python_install_all
78 + if use examples; then
79 + insinto /usr/share/doc/${PF}
80 + doins -r examples
81 + docompress -x /usr/share/doc/${PF}/examples
82 + fi
83 +}