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/
Date: Thu, 21 Sep 2017 21:06:11
Message-Id: 1506027837.b24f9cfd6f13efa097e1529084f8c6a1caf29f78.floppym@gentoo
1 commit: b24f9cfd6f13efa097e1529084f8c6a1caf29f78
2 Author: Arfrever Frehtes Taifersar Arahesis <Arfrever <AT> Apache <DOT> Org>
3 AuthorDate: Thu Sep 21 18:44:25 2017 +0000
4 Commit: Mike Gilbert <floppym <AT> gentoo <DOT> org>
5 CommitDate: Thu Sep 21 21:03:57 2017 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=b24f9cfd
7
8 dev-python/protobuf-python: Version bump (3.4.1) (bug #619828).
9
10 dev-python/protobuf-python/Manifest | 1 +
11 .../protobuf-python/protobuf-python-3.4.1.ebuild | 46 ++++++++++++++++++++++
12 2 files changed, 47 insertions(+)
13
14 diff --git a/dev-python/protobuf-python/Manifest b/dev-python/protobuf-python/Manifest
15 index eefcfffce43..34b77de2d60 100644
16 --- a/dev-python/protobuf-python/Manifest
17 +++ b/dev-python/protobuf-python/Manifest
18 @@ -1,2 +1,3 @@
19 DIST protobuf-3.1.0.tar.gz 4051503 SHA256 0a0ae63cbffc274efb573bdde9a253e3f32e458c41261df51c5dbc5ad541e8f7 SHA512 8d3289a16944c255bd1cceab696e515e52467f2bfe1cc10f6b32fabdf082d5acdc248ec9cadc572223a24d04d431f75921076153109cea2f90ee533f502ab47a WHIRLPOOL b8a0bee9ff549c8da45c2b56b12aafbed5807959cdb11b3888a0f30fd0d6df83a72f3c6ef9e266522754b8901792f65235a6e81a8b0f74cee15d59ecbe6dee68
20 DIST protobuf-3.3.0.tar.gz 4336596 SHA256 94c414775f275d876e5e0e4a276527d155ab2d0da45eed6b7734301c330be36e SHA512 0734a55ae92f0539dfb507e174539d290fd8e93633c1edd8810e0d51c37e67254337b75fc5ba9450316f6416e1f8f8cfb59415864657b55f2a1696fbcdfe7636 WHIRLPOOL 4c18120ad784234ebb5308c0f3a2f3814d77f2fc906407f48285f3ba8f84af8e15defa4e7edf2d2e77cf22316df338b3f5bc0c6ca11c7a4fb951105c3aa7d7d4
21 +DIST protobuf-3.4.1.tar.gz 4490100 SHA256 8e0236242106e680b4f9f576cc44b8cd711e948b20a9fc07769b0a20ceab9cc4 SHA512 471e52198fa878a79183dc8fbc39d9c65239be4d9dff799e12281ee9b1af61a427584534b1baae1773bc6e4c86467f89ca2e7911a21effd86bc5f40cc7d94c34 WHIRLPOOL c53dc76155bcfeee11720b08c7d508a35274f2387d6f8a61149565bc72d5539ad598600ad692f01ac7a0ea102d66659f4d516f994c419c56c4420ce69659646b
22
23 diff --git a/dev-python/protobuf-python/protobuf-python-3.4.1.ebuild b/dev-python/protobuf-python/protobuf-python-3.4.1.ebuild
24 new file mode 100644
25 index 00000000000..156bcde3e95
26 --- /dev/null
27 +++ b/dev-python/protobuf-python/protobuf-python-3.4.1.ebuild
28 @@ -0,0 +1,46 @@
29 +# Copyright 1999-2017 Gentoo Foundation
30 +# Distributed under the terms of the GNU General Public License v2
31 +
32 +EAPI="6"
33 +# pypy fails tests; pypy3 fails even running tests
34 +PYTHON_COMPAT=( python2_7 python3_{4,5,6} )
35 +
36 +inherit distutils-r1
37 +
38 +DESCRIPTION="Google's Protocol Buffers - Python bindings"
39 +HOMEPAGE="https://developers.google.com/protocol-buffers/ https://github.com/google/protobuf"
40 +SRC_URI="https://github.com/google/protobuf/archive/v${PV}.tar.gz -> protobuf-${PV}.tar.gz"
41 +
42 +LICENSE="BSD"
43 +SLOT="0/14"
44 +KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~mips ~ppc ~ppc64 ~sh ~sparc ~x86 ~amd64-linux ~arm-linux ~x86-linux ~x64-macos ~x86-macos"
45 +IUSE=""
46 +
47 +DEPEND="${PYTHON_DEPS}
48 + ~dev-libs/protobuf-${PV}
49 + dev-python/namespace-google[${PYTHON_USEDEP}]
50 + dev-python/setuptools[${PYTHON_USEDEP}]
51 + dev-python/six[${PYTHON_USEDEP}]
52 + !<dev-libs/protobuf-3[python(-)]"
53 +RDEPEND="${DEPEND}"
54 +
55 +S="${WORKDIR}/protobuf-${PV}/python"
56 +
57 +python_configure_all() {
58 + mydistutilsargs=(--cpp_implementation)
59 +}
60 +
61 +python_compile() {
62 + python_is_python3 || local -x CXXFLAGS="${CXXFLAGS} -fno-strict-aliasing"
63 + distutils-r1_python_compile
64 +}
65 +
66 +python_test() {
67 + esetup.py test
68 +}
69 +
70 +python_install_all() {
71 + distutils-r1_python_install_all
72 +
73 + find "${D}" -name "*.pth" -delete || die
74 +}