1 |
commit: a454764b8f57dd5de8ab0678ff7099ac670720bd |
2 |
Author: Arfrever Frehtes Taifersar Arahesis <Arfrever <AT> Apache <DOT> Org> |
3 |
AuthorDate: Thu Apr 18 19:32:06 2019 +0000 |
4 |
Commit: Mike Gilbert <floppym <AT> gentoo <DOT> org> |
5 |
CommitDate: Fri Apr 19 16:39:08 2019 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=a454764b |
7 |
|
8 |
dev-python/protobuf-python: Version bump (3.7.1). |
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 | 1 + |
14 |
.../protobuf-python/protobuf-python-3.7.1.ebuild | 62 ++++++++++++++++++++++ |
15 |
2 files changed, 63 insertions(+) |
16 |
|
17 |
diff --git a/dev-python/protobuf-python/Manifest b/dev-python/protobuf-python/Manifest |
18 |
index ac2f8a09268..766a6d89f8d 100644 |
19 |
--- a/dev-python/protobuf-python/Manifest |
20 |
+++ b/dev-python/protobuf-python/Manifest |
21 |
@@ -1 +1,2 @@ |
22 |
DIST protobuf-3.6.1.3.tar.gz 4490599 BLAKE2B 5a058f937330bd562e364a8d86e0b1376fdac9fded0fd23d6914cb59c5c15e8bfc1e203ea36b5a4eece8919708c1a9a6616b0ec2028d6ec339704da53ed81963 SHA512 9eadb46c7daa19e612516958169bc90943b38b429a4b2cf2171b66b57f50a2f8a9b66cbf58bdd44517af414b78e0f3ab2e1361891dc60ecd098185da2638d37e |
23 |
+DIST protobuf-3.7.1.tar.gz 4795774 BLAKE2B a91155169623ee24ba49e397b151829321c01ff06bb27541e6c02701c37ac96ea9606961291ef0d4616dd6dba045bf7e893ec6288f5809d30cc026b60ae76590 SHA512 7d4cfabd4bd55926336a3baafa0bc1f1f15380b1b2af945f70a2bb3ba24c6ac6567f49c492326d6d1c43a488166bff178f9266377758a05d8541d8b242f4f80f |
24 |
|
25 |
diff --git a/dev-python/protobuf-python/protobuf-python-3.7.1.ebuild b/dev-python/protobuf-python/protobuf-python-3.7.1.ebuild |
26 |
new file mode 100644 |
27 |
index 00000000000..7b3d970ead2 |
28 |
--- /dev/null |
29 |
+++ b/dev-python/protobuf-python/protobuf-python-3.7.1.ebuild |
30 |
@@ -0,0 +1,62 @@ |
31 |
+# Copyright 2008-2019 Arfrever Frehtes Taifersar Arahesis and others |
32 |
+# Distributed under the terms of the GNU General Public License v2 |
33 |
+ |
34 |
+EAPI="7" |
35 |
+PYTHON_COMPAT=(python{2_7,3_5,3_6,3_7}) |
36 |
+ |
37 |
+inherit distutils-r1 |
38 |
+ |
39 |
+if [[ "${PV}" == "9999" ]]; then |
40 |
+ inherit git-r3 |
41 |
+ |
42 |
+ EGIT_REPO_URI="https://github.com/protocolbuffers/protobuf" |
43 |
+ EGIT_SUBMODULES=() |
44 |
+fi |
45 |
+ |
46 |
+DESCRIPTION="Google's Protocol Buffers - Python bindings" |
47 |
+HOMEPAGE="https://developers.google.com/protocol-buffers/ https://github.com/protocolbuffers/protobuf" |
48 |
+if [[ "${PV}" == "9999" ]]; then |
49 |
+ SRC_URI="" |
50 |
+else |
51 |
+ SRC_URI="https://github.com/protocolbuffers/protobuf/archive/v${PV}.tar.gz -> protobuf-${PV}.tar.gz" |
52 |
+fi |
53 |
+ |
54 |
+LICENSE="BSD" |
55 |
+SLOT="0/18" |
56 |
+KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~mips ~ppc ~ppc64 ~sh ~sparc ~x86 ~amd64-linux ~x86-linux ~x64-macos ~x86-macos" |
57 |
+IUSE="" |
58 |
+ |
59 |
+BDEPEND="${PYTHON_DEPS} |
60 |
+ ~dev-libs/protobuf-${PV} |
61 |
+ dev-python/namespace-google[${PYTHON_USEDEP}] |
62 |
+ dev-python/setuptools[${PYTHON_USEDEP}] |
63 |
+ dev-python/six[${PYTHON_USEDEP}]" |
64 |
+DEPEND="${PYTHON_DEPS} |
65 |
+ ~dev-libs/protobuf-${PV}" |
66 |
+RDEPEND="${BDEPEND} |
67 |
+ !<dev-libs/protobuf-3[python(-)]" |
68 |
+ |
69 |
+S="${WORKDIR}/protobuf-${PV}/python" |
70 |
+ |
71 |
+if [[ "${PV}" == "9999" ]]; then |
72 |
+ EGIT_CHECKOUT_DIR="${WORKDIR}/protobuf-${PV}" |
73 |
+fi |
74 |
+ |
75 |
+python_configure_all() { |
76 |
+ mydistutilsargs=(--cpp_implementation) |
77 |
+} |
78 |
+ |
79 |
+python_compile() { |
80 |
+ python_is_python3 || local -x CXXFLAGS="${CXXFLAGS} -fno-strict-aliasing" |
81 |
+ distutils-r1_python_compile |
82 |
+} |
83 |
+ |
84 |
+python_test() { |
85 |
+ esetup.py test |
86 |
+} |
87 |
+ |
88 |
+python_install_all() { |
89 |
+ distutils-r1_python_install_all |
90 |
+ |
91 |
+ find "${D}" -name "*.pth" -delete || die |
92 |
+} |