1 |
commit: f23b536ee1f522ec22f398d09747b79cbf2c105d |
2 |
Author: Jan Vesely <jano.vesely <AT> gmail <DOT> com> |
3 |
AuthorDate: Sat Jul 22 01:40:50 2017 +0000 |
4 |
Commit: Michał Górny <mgorny <AT> gentoo <DOT> org> |
5 |
CommitDate: Sat Jul 22 06:36:55 2017 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=f23b536e |
7 |
|
8 |
dev-python/llvmlite: Reintroduce llvmlite-0.1{5,6}.0 |
9 |
|
10 |
Partially reverts cf5e834b711289a1cfd70b5b99228a577eb32d57 |
11 |
Different versions work with different versions of LLVM. |
12 |
See https://github.com/numba/llvmlite |
13 |
|
14 |
Closes: https://github.com/gentoo/gentoo/pull/5165 |
15 |
Signed-off-by: Jan Vesely <jano.vesely <AT> gmail.com> |
16 |
|
17 |
dev-python/llvmlite/Manifest | 2 ++ |
18 |
dev-python/llvmlite/llvmlite-0.15.0.ebuild | 45 +++++++++++++++++++++++++++ |
19 |
dev-python/llvmlite/llvmlite-0.16.0.ebuild | 49 ++++++++++++++++++++++++++++++ |
20 |
3 files changed, 96 insertions(+) |
21 |
|
22 |
diff --git a/dev-python/llvmlite/Manifest b/dev-python/llvmlite/Manifest |
23 |
index 0a6100b321e..b4f071ac63a 100644 |
24 |
--- a/dev-python/llvmlite/Manifest |
25 |
+++ b/dev-python/llvmlite/Manifest |
26 |
@@ -1,2 +1,4 @@ |
27 |
DIST llvmlite-0.12.1.tar.gz 88271 SHA256 3ce71beebd4cbc7a49abe4eadfc99725477fd43caeb7405650ebb746c7a1d0df SHA512 f5b448f0ae3d84a0d3438dd7bb4c7f87055e551191c4fefb6282539029d25e8c5e1cca9dec5b90c0d99ec0a720719133b2ccf8b9551aa818c3b4626cc522d8d9 WHIRLPOOL 82b3e60520eda83d0e4082d75ca377bd34c9baf7c67688814e6dd3a7ae687b1eacf7ddd9758254e0c61f39ea5af77c847a15f1f8071cf030d9dd07bb2b1020a5 |
28 |
+DIST llvmlite-0.15.0.tar.gz 95009 SHA256 c855835537eda61f3a0d19aedc44f006d5084a2d322aee8ffa87aa06bb800dc4 SHA512 db49ed82eae989e7e7abbd72f1c1da5129887f7fce447c684085f98ae2aaf47d24e73b79c5916802edbb8dc55dda92efeac833cb903300560b1aa89f2aeb5dca WHIRLPOOL 66336fa610ae2706c9281f5e7febc8e76e0cacf8cbc151952f6978adb104bcc6b98ac65d9661c7289f258e1e63a1e6e4a139f93efc45cdfd2a26f50c35bc03fb |
29 |
+DIST llvmlite-0.16.0.tar.gz 95284 SHA256 ef3bae32482f91742d91571b5225a6943804291eb9405b98090a7b50942ec5e9 SHA512 97a251ef9d840fc5a25bd673c644207750f2e653ccad5850dec0a7f1bc77170c6ce85d5cd663ab5c109cb1b51ced9545493d35ef81dfe04a3696b5a0c37fa768 WHIRLPOOL ab629a507c2cc27756109162469a0eed8f4dbb059b7c3957df65e059c6e613581fed6380b58686812ed5378a9d2ebe5f754e6de1a5132c89a323b221da203e91 |
30 |
DIST llvmlite-0.19.0.tar.gz 97109 SHA256 fbaeb3d584e0f6bac82a33776e9b5f0b5b4a3415a03edeff5d66f6176f0edbe2 SHA512 93551bbab519021abdc66ca099b9090b3af54b048adbce8d16f3700c066bbc4f5c24e5234a8a1ac4bfcdf8bf74d0ac52bb7023251ac948af6ef99fbd5a5324c8 WHIRLPOOL ee6170c09ac897862fee4705b8131f6dfb97a980c8aec73a9316f7d0d57dfeb4a0e3bd629f536cfeb51df682b4838b1c4e267ff3ebaf54f2f5db7193062014f5 |
31 |
|
32 |
diff --git a/dev-python/llvmlite/llvmlite-0.15.0.ebuild b/dev-python/llvmlite/llvmlite-0.15.0.ebuild |
33 |
new file mode 100644 |
34 |
index 00000000000..9649c7db295 |
35 |
--- /dev/null |
36 |
+++ b/dev-python/llvmlite/llvmlite-0.15.0.ebuild |
37 |
@@ -0,0 +1,45 @@ |
38 |
+# Copyright 1999-2017 Gentoo Foundation |
39 |
+# Distributed under the terms of the GNU General Public License v2 |
40 |
+ |
41 |
+EAPI=6 |
42 |
+ |
43 |
+PYTHON_COMPAT=( python{2_7,3_4,3_5} ) |
44 |
+ |
45 |
+inherit distutils-r1 |
46 |
+ |
47 |
+DESCRIPTION="Python wrapper around the llvm C++ library" |
48 |
+HOMEPAGE="http://llvmlite.pydata.org/" |
49 |
+SRC_URI="mirror://pypi/${PN:0:1}/${PN}/${P}.tar.gz" |
50 |
+ |
51 |
+LICENSE="BSD" |
52 |
+SLOT="0" |
53 |
+KEYWORDS="~amd64 ~x86 ~amd64-linux ~x86-linux" |
54 |
+IUSE="examples" |
55 |
+ |
56 |
+RDEPEND=" |
57 |
+ dev-python/six[${PYTHON_USEDEP}] |
58 |
+ =sys-devel/llvm-3.8* |
59 |
+ sys-libs/zlib:0= |
60 |
+ virtual/python-enum34[${PYTHON_USEDEP}] |
61 |
+" |
62 |
+DEPEND="${RDEPEND} |
63 |
+ dev-python/setuptools[${PYTHON_USEDEP}] |
64 |
+" |
65 |
+PATCHES=( |
66 |
+ "${FILESDIR}"/${P}-use-system-six.patch |
67 |
+) |
68 |
+ |
69 |
+python_prepare_all() { |
70 |
+ sed -e 's/-flto$/-flto -fPIC/' \ |
71 |
+ -i ffi/Makefile.linux || die |
72 |
+ distutils-r1_python_prepare_all |
73 |
+} |
74 |
+ |
75 |
+python_test() { |
76 |
+ "${EPYTHON}" runtests.py -v || die "Tests failed under ${EPYTHON}" |
77 |
+} |
78 |
+ |
79 |
+python_install_all() { |
80 |
+ use examples && local EXAMPLES=( examples/. ) |
81 |
+ distutils-r1_python_install_all |
82 |
+} |
83 |
|
84 |
diff --git a/dev-python/llvmlite/llvmlite-0.16.0.ebuild b/dev-python/llvmlite/llvmlite-0.16.0.ebuild |
85 |
new file mode 100644 |
86 |
index 00000000000..47ce82f4870 |
87 |
--- /dev/null |
88 |
+++ b/dev-python/llvmlite/llvmlite-0.16.0.ebuild |
89 |
@@ -0,0 +1,49 @@ |
90 |
+# Copyright 1999-2017 Gentoo Foundation |
91 |
+# Distributed under the terms of the GNU General Public License v2 |
92 |
+ |
93 |
+EAPI=6 |
94 |
+ |
95 |
+PYTHON_COMPAT=( python{2_7,3_4,3_5} ) |
96 |
+ |
97 |
+inherit distutils-r1 |
98 |
+ |
99 |
+DESCRIPTION="Python wrapper around the llvm C++ library" |
100 |
+HOMEPAGE="http://llvmlite.pydata.org/" |
101 |
+SRC_URI="mirror://pypi/${PN:0:1}/${PN}/${P}.tar.gz" |
102 |
+ |
103 |
+LICENSE="BSD" |
104 |
+SLOT="0" |
105 |
+KEYWORDS="~amd64 ~x86 ~amd64-linux ~x86-linux" |
106 |
+IUSE="examples" |
107 |
+ |
108 |
+RDEPEND=" |
109 |
+ dev-python/six[${PYTHON_USEDEP}] |
110 |
+ =sys-devel/llvm-3.9* |
111 |
+ sys-libs/zlib:0= |
112 |
+ virtual/python-enum34[${PYTHON_USEDEP}] |
113 |
+" |
114 |
+DEPEND="${RDEPEND} |
115 |
+ dev-python/setuptools[${PYTHON_USEDEP}] |
116 |
+" |
117 |
+PATCHES=( |
118 |
+ "${FILESDIR}"/llvmlite-0.15.0-use-system-six.patch |
119 |
+) |
120 |
+ |
121 |
+python_prepare_all() { |
122 |
+ # remove -static-libstdc++, it makes no sense with shared LLVM |
123 |
+ # add -fPIC, needed to link against shared libraries |
124 |
+ # disable -flto, we do not force it against user's wishes |
125 |
+ sed -e 's/-static-libstdc++/-fPIC/' \ |
126 |
+ -e '/^(CXX|LD)_FLTO_FLAGS/d' \ |
127 |
+ -i ffi/Makefile.linux || die |
128 |
+ distutils-r1_python_prepare_all |
129 |
+} |
130 |
+ |
131 |
+python_test() { |
132 |
+ "${EPYTHON}" runtests.py -v || die "Tests failed under ${EPYTHON}" |
133 |
+} |
134 |
+ |
135 |
+python_install_all() { |
136 |
+ use examples && local EXAMPLES=( examples/. ) |
137 |
+ distutils-r1_python_install_all |
138 |
+} |