Gentoo Archives: gentoo-commits

From: Mike Gilbert <floppym@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: dev-python/protobuf-python/files/, dev-python/protobuf-python/
Date: Sat, 20 Apr 2019 23:28:05
Message-Id: 1555691946.924e41bf2c58e026e121a4cee14fc4eca4fd25b5.floppym@gentoo
1 commit: 924e41bf2c58e026e121a4cee14fc4eca4fd25b5
2 Author: Arfrever Frehtes Taifersar Arahesis <Arfrever <AT> Apache <DOT> Org>
3 AuthorDate: Thu Apr 18 19:07:03 2019 +0000
4 Commit: Mike Gilbert <floppym <AT> gentoo <DOT> org>
5 CommitDate: Fri Apr 19 16:39:06 2019 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=924e41bf
7
8 dev-python/protobuf-python: Delete old versions (<3.6.1.3).
9
10 Signed-off-by: Arfrever Frehtes Taifersar Arahesis <Arfrever <AT> Apache.Org>
11 Signed-off-by: Mike Gilbert <floppym <AT> gentoo.org>
12
13 dev-python/protobuf-python/Manifest | 6 --
14 .../files/protobuf-python-3.6.1-python-3.7.patch | 67 ----------------------
15 .../protobuf-python/protobuf-python-3.5.1.1.ebuild | 46 ---------------
16 .../protobuf-python-3.5.2-r1.ebuild | 50 ----------------
17 .../protobuf-python/protobuf-python-3.6.0.1.ebuild | 50 ----------------
18 .../protobuf-python/protobuf-python-3.6.1.1.ebuild | 51 ----------------
19 .../protobuf-python/protobuf-python-3.6.1.2.ebuild | 50 ----------------
20 .../protobuf-python/protobuf-python-3.6.1.ebuild | 51 ----------------
21 8 files changed, 371 deletions(-)
22
23 diff --git a/dev-python/protobuf-python/Manifest b/dev-python/protobuf-python/Manifest
24 index 587e2bfbd47..ac2f8a09268 100644
25 --- a/dev-python/protobuf-python/Manifest
26 +++ b/dev-python/protobuf-python/Manifest
27 @@ -1,7 +1 @@
28 -DIST protobuf-3.5.1.1.tar.gz 4584489 BLAKE2B 995ee2f06a6358e9935b488269ee50f0dccede417c1757828b0108fbe8c67034301f3a9cb87517430acd9838ae71bb677f4edd8b59b2418f99c15d8ea3d33591 SHA512 f25ecf772facc8efd196b7c06012ce9ec24152b2c0cde38ed2e29ecded8f534221b008e649f4cbd991436ad3436130cd2e31d51e75019d08240d518111fb4496
29 -DIST protobuf-3.5.2.tar.gz 4584659 BLAKE2B f582212169d802a5844574eb900c9f8cbb343b7e73f2074e5ff0bfc544ebd13f4bc2b78271fb70f4465d78fdc39972ed68339f453c0d3ffe98d8564fbf520544 SHA512 09d10cf0c07a0ba249428bbf20f5dbed840965fa06b3c09682f286a4dee9d84bb96f3b5b50e993d48ef1f20440531255ce7d0e60a648bf3fe536a5f2b0b74181
30 -DIST protobuf-3.6.0.1.tar.gz 4483964 BLAKE2B 8afc1e4f4a6eba0eb453fa7cbee8e8ab4986ab9dda39a0005de9d07ec4bd4fd27a5af4ab359b139b4117a5da580be6da3387295266625ee8cc7ec9421c5c0235 SHA512 63cd799d5d6edbb05a87bc07992271c5bdb9595366d698b4dc5476cc89dc278d1c43186b9e56340958aefea2ce23e15a9c3a550158414add868b56e789ceafe4
31 -DIST protobuf-3.6.1.1.tar.gz 4489116 BLAKE2B 4ed5da3dcb56245b3ce2f979142d5e77837e8e1fbc2f0af27be48664b8b7dfa2ec44382cf75678d226dd665c289f81d95bf04c5f2795fcdd759aa8ec630dba1f SHA512 df59ed966047471d7296883a4500d657eee5e7d8713dd7e44f3f2e0b8c4400e85cb511b316f2fa8518620f1074fd0cad8ee9538c063ac371d6b59358de81ee88
32 -DIST protobuf-3.6.1.2.tar.gz 4490331 BLAKE2B be5fac5a38369b21941c3c615a97cf35d05a24ee03536b6ea6c1c797a82a0a7f8ecc3630b62af7728f063c850c4faac8ae670171a18bacd44e2a2fb38b2e6fce SHA512 557ffb1216f663df94a16cd8e51e20acf42378913d656f56402c6653cb58ce6a83f77a6050bd846460c7dcac59bb41ad03ac003b0b06250df6a97fd17f8a2c7c
33 DIST protobuf-3.6.1.3.tar.gz 4490599 BLAKE2B 5a058f937330bd562e364a8d86e0b1376fdac9fded0fd23d6914cb59c5c15e8bfc1e203ea36b5a4eece8919708c1a9a6616b0ec2028d6ec339704da53ed81963 SHA512 9eadb46c7daa19e612516958169bc90943b38b429a4b2cf2171b66b57f50a2f8a9b66cbf58bdd44517af414b78e0f3ab2e1361891dc60ecd098185da2638d37e
34 -DIST protobuf-3.6.1.tar.gz 4485582 BLAKE2B 546c49759df784018459809b9db692c5c94aef5d717183af5cd9edd96b4c658e759f23950cdcd5dddceaaad06ea1de2a2357b9fa8c496ed5d538fc5920174da0 SHA512 1bc175d24b49de1b1e41eaf39598194e583afffb924c86c8d2e569d935af21874be76b2cbd4d9655a1d38bac3d4cd811de88bc2c72d81bad79115e69e5b0d839
35
36 diff --git a/dev-python/protobuf-python/files/protobuf-python-3.6.1-python-3.7.patch b/dev-python/protobuf-python/files/protobuf-python-3.6.1-python-3.7.patch
37 deleted file mode 100644
38 index bd4ce9d7fca..00000000000
39 --- a/dev-python/protobuf-python/files/protobuf-python-3.6.1-python-3.7.patch
40 +++ /dev/null
41 @@ -1,67 +0,0 @@
42 -https://github.com/protocolbuffers/protobuf/pull/4862
43 -https://github.com/protocolbuffers/protobuf/commit/0a59054c30e4f0ba10f10acfc1d7f3814c63e1a7
44 -
45 ---- /python/google/protobuf/pyext/descriptor.cc
46 -+++ /python/google/protobuf/pyext/descriptor.cc
47 -@@ -56,7 +56,7 @@
48 - #endif
49 - #define PyString_AsStringAndSize(ob, charpp, sizep) \
50 - (PyUnicode_Check(ob)? \
51 -- ((*(charpp) = PyUnicode_AsUTF8AndSize(ob, (sizep))) == NULL? -1: 0): \
52 -+ ((*(charpp) = const_cast<char*>(PyUnicode_AsUTF8AndSize(ob, (sizep)))) == NULL? -1: 0): \
53 - PyBytes_AsStringAndSize(ob, (charpp), (sizep)))
54 - #endif
55 -
56 ---- /python/google/protobuf/pyext/descriptor_containers.cc
57 -+++ /python/google/protobuf/pyext/descriptor_containers.cc
58 -@@ -66,7 +66,7 @@
59 - #endif
60 - #define PyString_AsStringAndSize(ob, charpp, sizep) \
61 - (PyUnicode_Check(ob)? \
62 -- ((*(charpp) = PyUnicode_AsUTF8AndSize(ob, (sizep))) == NULL? -1: 0): \
63 -+ ((*(charpp) = const_cast<char*>(PyUnicode_AsUTF8AndSize(ob, (sizep)))) == NULL? -1: 0): \
64 - PyBytes_AsStringAndSize(ob, (charpp), (sizep)))
65 - #endif
66 -
67 ---- /python/google/protobuf/pyext/descriptor_pool.cc
68 -+++ /python/google/protobuf/pyext/descriptor_pool.cc
69 -@@ -48,7 +48,7 @@
70 - #endif
71 - #define PyString_AsStringAndSize(ob, charpp, sizep) \
72 - (PyUnicode_Check(ob)? \
73 -- ((*(charpp) = PyUnicode_AsUTF8AndSize(ob, (sizep))) == NULL? -1: 0): \
74 -+ ((*(charpp) = const_cast<char*>(PyUnicode_AsUTF8AndSize(ob, (sizep)))) == NULL? -1: 0): \
75 - PyBytes_AsStringAndSize(ob, (charpp), (sizep)))
76 - #endif
77 -
78 ---- /python/google/protobuf/pyext/extension_dict.cc
79 -+++ /python/google/protobuf/pyext/extension_dict.cc
80 -@@ -53,7 +53,7 @@
81 - #endif
82 - #define PyString_AsStringAndSize(ob, charpp, sizep) \
83 - (PyUnicode_Check(ob)? \
84 -- ((*(charpp) = PyUnicode_AsUTF8AndSize(ob, (sizep))) == NULL? -1: 0): \
85 -+ ((*(charpp) = const_cast<char*>(PyUnicode_AsUTF8AndSize(ob, (sizep)))) == NULL? -1: 0): \
86 - PyBytes_AsStringAndSize(ob, (charpp), (sizep)))
87 - #endif
88 -
89 ---- /python/google/protobuf/pyext/message.cc
90 -+++ /python/google/protobuf/pyext/message.cc
91 -@@ -79,7 +79,7 @@
92 - (PyUnicode_Check(ob)? PyUnicode_AsUTF8(ob): PyBytes_AsString(ob))
93 - #define PyString_AsStringAndSize(ob, charpp, sizep) \
94 - (PyUnicode_Check(ob)? \
95 -- ((*(charpp) = PyUnicode_AsUTF8AndSize(ob, (sizep))) == NULL? -1: 0): \
96 -+ ((*(charpp) = const_cast<char*>(PyUnicode_AsUTF8AndSize(ob, (sizep)))) == NULL? -1: 0): \
97 - PyBytes_AsStringAndSize(ob, (charpp), (sizep)))
98 - #endif
99 - #endif
100 -@@ -1529,7 +1529,7 @@
101 - return NULL;
102 - }
103 - #else
104 -- field_name = PyUnicode_AsUTF8AndSize(arg, &size);
105 -+ field_name = const_cast<char*>(PyUnicode_AsUTF8AndSize(arg, &size));
106 - if (!field_name) {
107 - return NULL;
108 - }
109
110 diff --git a/dev-python/protobuf-python/protobuf-python-3.5.1.1.ebuild b/dev-python/protobuf-python/protobuf-python-3.5.1.1.ebuild
111 deleted file mode 100644
112 index 2064c630cd6..00000000000
113 --- a/dev-python/protobuf-python/protobuf-python-3.5.1.1.ebuild
114 +++ /dev/null
115 @@ -1,46 +0,0 @@
116 -# Copyright 1999-2019 Gentoo Authors
117 -# Distributed under the terms of the GNU General Public License v2
118 -
119 -EAPI="6"
120 -# pypy fails tests; pypy3 fails even running tests
121 -PYTHON_COMPAT=( python2_7 python3_{5,6} )
122 -
123 -inherit distutils-r1
124 -
125 -DESCRIPTION="Google's Protocol Buffers - Python bindings"
126 -HOMEPAGE="https://developers.google.com/protocol-buffers/ https://github.com/protocolbuffers/protobuf"
127 -SRC_URI="https://github.com/protocolbuffers/protobuf/archive/v${PV}.tar.gz -> protobuf-${PV}.tar.gz"
128 -
129 -LICENSE="BSD"
130 -SLOT="0/15"
131 -KEYWORDS="alpha amd64 arm ~arm64 ~hppa ia64 ~mips ppc ppc64 ~sh ~sparc x86 ~amd64-linux ~x86-linux ~x64-macos ~x86-macos"
132 -IUSE=""
133 -
134 -DEPEND="${PYTHON_DEPS}
135 - ~dev-libs/protobuf-${PV}
136 - dev-python/namespace-google[${PYTHON_USEDEP}]
137 - dev-python/setuptools[${PYTHON_USEDEP}]
138 - dev-python/six[${PYTHON_USEDEP}]
139 - !<dev-libs/protobuf-3[python(-)]"
140 -RDEPEND="${DEPEND}"
141 -
142 -S="${WORKDIR}/protobuf-${PV}/python"
143 -
144 -python_configure_all() {
145 - mydistutilsargs=(--cpp_implementation)
146 -}
147 -
148 -python_compile() {
149 - python_is_python3 || local -x CXXFLAGS="${CXXFLAGS} -fno-strict-aliasing"
150 - distutils-r1_python_compile
151 -}
152 -
153 -python_test() {
154 - esetup.py test
155 -}
156 -
157 -python_install_all() {
158 - distutils-r1_python_install_all
159 -
160 - find "${D}" -name "*.pth" -delete || die
161 -}
162
163 diff --git a/dev-python/protobuf-python/protobuf-python-3.5.2-r1.ebuild b/dev-python/protobuf-python/protobuf-python-3.5.2-r1.ebuild
164 deleted file mode 100644
165 index 7247bf545b0..00000000000
166 --- a/dev-python/protobuf-python/protobuf-python-3.5.2-r1.ebuild
167 +++ /dev/null
168 @@ -1,50 +0,0 @@
169 -# Copyright 1999-2019 Gentoo Authors
170 -# Distributed under the terms of the GNU General Public License v2
171 -
172 -EAPI="6"
173 -PYTHON_COMPAT=(python2_7 python3_{5,6})
174 -
175 -inherit distutils-r1
176 -
177 -DESCRIPTION="Google's Protocol Buffers - Python bindings"
178 -HOMEPAGE="https://developers.google.com/protocol-buffers/ https://github.com/protocolbuffers/protobuf"
179 -SRC_URI="https://github.com/protocolbuffers/protobuf/archive/v${PV}.tar.gz -> protobuf-${PV}.tar.gz"
180 -
181 -LICENSE="BSD"
182 -SLOT="0/15"
183 -KEYWORDS="alpha amd64 arm ~arm64 ~hppa ia64 ~mips ppc ppc64 ~sh ~sparc x86 ~amd64-linux ~x86-linux ~x64-macos ~x86-macos"
184 -IUSE=""
185 -
186 -DEPEND="${PYTHON_DEPS}
187 - ~dev-libs/protobuf-${PV}
188 - dev-python/namespace-google[${PYTHON_USEDEP}]
189 - dev-python/setuptools[${PYTHON_USEDEP}]
190 - dev-python/six[${PYTHON_USEDEP}]"
191 -RDEPEND="${DEPEND}
192 - !<dev-libs/protobuf-3[python(-)]"
193 -
194 -S="${WORKDIR}/protobuf-${PV}/python"
195 -
196 -python_prepare_all() {
197 - eapply -p2 "${FILESDIR}/${P}-google.protobuf.pyext._message.MessageMeta.patch"
198 - distutils-r1_python_prepare_all
199 -}
200 -
201 -python_configure_all() {
202 - mydistutilsargs=(--cpp_implementation)
203 -}
204 -
205 -python_compile() {
206 - python_is_python3 || local -x CXXFLAGS="${CXXFLAGS} -fno-strict-aliasing"
207 - distutils-r1_python_compile
208 -}
209 -
210 -python_test() {
211 - esetup.py test
212 -}
213 -
214 -python_install_all() {
215 - distutils-r1_python_install_all
216 -
217 - find "${D}" -name "*.pth" -delete || die
218 -}
219
220 diff --git a/dev-python/protobuf-python/protobuf-python-3.6.0.1.ebuild b/dev-python/protobuf-python/protobuf-python-3.6.0.1.ebuild
221 deleted file mode 100644
222 index 1c9ed1337c4..00000000000
223 --- a/dev-python/protobuf-python/protobuf-python-3.6.0.1.ebuild
224 +++ /dev/null
225 @@ -1,50 +0,0 @@
226 -# Copyright 1999-2019 Gentoo Authors
227 -# Distributed under the terms of the GNU General Public License v2
228 -
229 -EAPI="6"
230 -PYTHON_COMPAT=(python{2_7,3_5,3_6})
231 -
232 -inherit distutils-r1
233 -
234 -DESCRIPTION="Google's Protocol Buffers - Python bindings"
235 -HOMEPAGE="https://developers.google.com/protocol-buffers/ https://github.com/protocolbuffers/protobuf"
236 -SRC_URI="https://github.com/protocolbuffers/protobuf/archive/v${PV}.tar.gz -> protobuf-${PV}.tar.gz"
237 -
238 -LICENSE="BSD"
239 -SLOT="0/16"
240 -KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~mips ~ppc ~ppc64 ~sh ~sparc ~x86 ~amd64-linux ~x86-linux ~x64-macos ~x86-macos"
241 -IUSE=""
242 -
243 -DEPEND="${PYTHON_DEPS}
244 - ~dev-libs/protobuf-${PV}
245 - dev-python/namespace-google[${PYTHON_USEDEP}]
246 - dev-python/setuptools[${PYTHON_USEDEP}]
247 - dev-python/six[${PYTHON_USEDEP}]"
248 -RDEPEND="${DEPEND}
249 - !<dev-libs/protobuf-3[python(-)]"
250 -
251 -S="${WORKDIR}/protobuf-${PV}/python"
252 -
253 -python_prepare_all() {
254 - eapply -p2 "${FILESDIR}/${PN}-3.5.2-google.protobuf.pyext._message.MessageMeta.patch"
255 - distutils-r1_python_prepare_all
256 -}
257 -
258 -python_configure_all() {
259 - mydistutilsargs=(--cpp_implementation)
260 -}
261 -
262 -python_compile() {
263 - python_is_python3 || local -x CXXFLAGS="${CXXFLAGS} -fno-strict-aliasing"
264 - distutils-r1_python_compile
265 -}
266 -
267 -python_test() {
268 - esetup.py test
269 -}
270 -
271 -python_install_all() {
272 - distutils-r1_python_install_all
273 -
274 - find "${D}" -name "*.pth" -delete || die
275 -}
276
277 diff --git a/dev-python/protobuf-python/protobuf-python-3.6.1.1.ebuild b/dev-python/protobuf-python/protobuf-python-3.6.1.1.ebuild
278 deleted file mode 100644
279 index 00885bbb1f3..00000000000
280 --- a/dev-python/protobuf-python/protobuf-python-3.6.1.1.ebuild
281 +++ /dev/null
282 @@ -1,51 +0,0 @@
283 -# Copyright 2008-2019 Gentoo Authors
284 -# Distributed under the terms of the GNU General Public License v2
285 -
286 -EAPI="7"
287 -PYTHON_COMPAT=(python{2_7,3_5,3_6,3_7})
288 -
289 -inherit distutils-r1
290 -
291 -DESCRIPTION="Google's Protocol Buffers - Python bindings"
292 -HOMEPAGE="https://developers.google.com/protocol-buffers/ https://github.com/protocolbuffers/protobuf"
293 -SRC_URI="https://github.com/protocolbuffers/protobuf/archive/v${PV}.tar.gz -> protobuf-${PV}.tar.gz"
294 -
295 -LICENSE="BSD"
296 -SLOT="0/17"
297 -KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~mips ~ppc ~ppc64 ~sh ~sparc ~x86 ~amd64-linux ~x86-linux ~x64-macos ~x86-macos"
298 -IUSE=""
299 -
300 -DEPEND="${PYTHON_DEPS}
301 - ~dev-libs/protobuf-${PV}
302 - dev-python/namespace-google[${PYTHON_USEDEP}]
303 - dev-python/setuptools[${PYTHON_USEDEP}]
304 - dev-python/six[${PYTHON_USEDEP}]"
305 -RDEPEND="${DEPEND}
306 - !<dev-libs/protobuf-3[python(-)]"
307 -
308 -S="${WORKDIR}/protobuf-${PV}/python"
309 -
310 -python_prepare_all() {
311 - eapply -p2 "${FILESDIR}/${PN}-3.5.2-google.protobuf.pyext._message.MessageMeta.patch"
312 - eapply -p2 "${FILESDIR}/${PN}-3.6.1-python-3.7.patch"
313 - distutils-r1_python_prepare_all
314 -}
315 -
316 -python_configure_all() {
317 - mydistutilsargs=(--cpp_implementation)
318 -}
319 -
320 -python_compile() {
321 - python_is_python3 || local -x CXXFLAGS="${CXXFLAGS} -fno-strict-aliasing"
322 - distutils-r1_python_compile
323 -}
324 -
325 -python_test() {
326 - esetup.py test
327 -}
328 -
329 -python_install_all() {
330 - distutils-r1_python_install_all
331 -
332 - find "${D}" -name "*.pth" -delete || die
333 -}
334
335 diff --git a/dev-python/protobuf-python/protobuf-python-3.6.1.2.ebuild b/dev-python/protobuf-python/protobuf-python-3.6.1.2.ebuild
336 deleted file mode 100644
337 index 272b3dddfbd..00000000000
338 --- a/dev-python/protobuf-python/protobuf-python-3.6.1.2.ebuild
339 +++ /dev/null
340 @@ -1,50 +0,0 @@
341 -# Copyright 2008-2019 Gentoo Authors
342 -# Distributed under the terms of the GNU General Public License v2
343 -
344 -EAPI="7"
345 -PYTHON_COMPAT=(python{2_7,3_5,3_6,3_7})
346 -
347 -inherit distutils-r1
348 -
349 -DESCRIPTION="Google's Protocol Buffers - Python bindings"
350 -HOMEPAGE="https://developers.google.com/protocol-buffers/ https://github.com/protocolbuffers/protobuf"
351 -SRC_URI="https://github.com/protocolbuffers/protobuf/archive/v${PV}.tar.gz -> protobuf-${PV}.tar.gz"
352 -
353 -LICENSE="BSD"
354 -SLOT="0/17"
355 -KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~mips ~ppc ~ppc64 ~sh ~sparc ~x86 ~amd64-linux ~x86-linux ~x64-macos ~x86-macos"
356 -IUSE=""
357 -
358 -DEPEND="${PYTHON_DEPS}
359 - ~dev-libs/protobuf-${PV}
360 - dev-python/namespace-google[${PYTHON_USEDEP}]
361 - dev-python/setuptools[${PYTHON_USEDEP}]
362 - dev-python/six[${PYTHON_USEDEP}]"
363 -RDEPEND="${DEPEND}
364 - !<dev-libs/protobuf-3[python(-)]"
365 -
366 -S="${WORKDIR}/protobuf-${PV}/python"
367 -
368 -python_prepare_all() {
369 - eapply -p2 "${FILESDIR}/${PN}-3.5.2-google.protobuf.pyext._message.MessageMeta.patch"
370 - distutils-r1_python_prepare_all
371 -}
372 -
373 -python_configure_all() {
374 - mydistutilsargs=(--cpp_implementation)
375 -}
376 -
377 -python_compile() {
378 - python_is_python3 || local -x CXXFLAGS="${CXXFLAGS} -fno-strict-aliasing"
379 - distutils-r1_python_compile
380 -}
381 -
382 -python_test() {
383 - esetup.py test
384 -}
385 -
386 -python_install_all() {
387 - distutils-r1_python_install_all
388 -
389 - find "${D}" -name "*.pth" -delete || die
390 -}
391
392 diff --git a/dev-python/protobuf-python/protobuf-python-3.6.1.ebuild b/dev-python/protobuf-python/protobuf-python-3.6.1.ebuild
393 deleted file mode 100644
394 index 0d6f434aa0e..00000000000
395 --- a/dev-python/protobuf-python/protobuf-python-3.6.1.ebuild
396 +++ /dev/null
397 @@ -1,51 +0,0 @@
398 -# Copyright 1999-2019 Gentoo Authors
399 -# Distributed under the terms of the GNU General Public License v2
400 -
401 -EAPI="6"
402 -PYTHON_COMPAT=(python{2_7,3_5,3_6,3_7})
403 -
404 -inherit distutils-r1
405 -
406 -DESCRIPTION="Google's Protocol Buffers - Python bindings"
407 -HOMEPAGE="https://developers.google.com/protocol-buffers/ https://github.com/protocolbuffers/protobuf"
408 -SRC_URI="https://github.com/protocolbuffers/protobuf/archive/v${PV}.tar.gz -> protobuf-${PV}.tar.gz"
409 -
410 -LICENSE="BSD"
411 -SLOT="0/17"
412 -KEYWORDS="alpha amd64 arm ~arm64 ~hppa ia64 ~mips ppc ppc64 ~sh ~sparc x86 ~amd64-linux ~x86-linux ~x64-macos ~x86-macos"
413 -IUSE=""
414 -
415 -DEPEND="${PYTHON_DEPS}
416 - ~dev-libs/protobuf-${PV}
417 - dev-python/namespace-google[${PYTHON_USEDEP}]
418 - dev-python/setuptools[${PYTHON_USEDEP}]
419 - dev-python/six[${PYTHON_USEDEP}]"
420 -RDEPEND="${DEPEND}
421 - !<dev-libs/protobuf-3[python(-)]"
422 -
423 -S="${WORKDIR}/protobuf-${PV}/python"
424 -
425 -python_prepare_all() {
426 - eapply -p2 "${FILESDIR}/${PN}-3.5.2-google.protobuf.pyext._message.MessageMeta.patch"
427 - eapply -p2 "${FILESDIR}/${PN}-3.6.1-python-3.7.patch"
428 - distutils-r1_python_prepare_all
429 -}
430 -
431 -python_configure_all() {
432 - mydistutilsargs=(--cpp_implementation)
433 -}
434 -
435 -python_compile() {
436 - python_is_python3 || local -x CXXFLAGS="${CXXFLAGS} -fno-strict-aliasing"
437 - distutils-r1_python_compile
438 -}
439 -
440 -python_test() {
441 - esetup.py test
442 -}
443 -
444 -python_install_all() {
445 - distutils-r1_python_install_all
446 -
447 - find "${D}" -name "*.pth" -delete || die
448 -}