dev-python/grpcio-tools: new package
authorGeorgy Yakovlev <gyakovlev@gentoo.org>
Sun, 21 Oct 2018 23:30:28 +0000 (16:30 -0700)
committerGeorgy Yakovlev <gyakovlev@gentoo.org>
Thu, 25 Oct 2018 04:35:07 +0000 (21:35 -0700)
Split from net-libs/grpc[tools]

Signed-off-by: Georgy Yakovlev <gyakovlev@gentoo.org>
Package-Manager: Portage-2.3.51, Repoman-2.3.11

dev-python/grpcio-tools/Manifest [new file with mode: 0644]
dev-python/grpcio-tools/grpcio-tools-1.16.0.ebuild [new file with mode: 0644]
dev-python/grpcio-tools/metadata.xml [new file with mode: 0644]

diff --git a/dev-python/grpcio-tools/Manifest b/dev-python/grpcio-tools/Manifest
new file mode 100644 (file)
index 0000000..790f774
--- /dev/null
@@ -0,0 +1 @@
+DIST grpcio-tools-1.16.0.tar.gz 1893006 BLAKE2B 01224d6af05a87e23609d47e5fefeb4784b0ac63cc1198e9f81de03b0b0fed5b2e2d706a486627c1d0e770ba66fe7be00dd98b866fb98e1d14299302a080e3b7 SHA512 86b66242d17d52d08ebb0861d08bcda4dc90fc142d2777bf99d0e4bce72049f88edd5d2ea52c2b33b9a77d94ca8961d877a97ed614766a3061528d41c96e6e96
diff --git a/dev-python/grpcio-tools/grpcio-tools-1.16.0.ebuild b/dev-python/grpcio-tools/grpcio-tools-1.16.0.ebuild
new file mode 100644 (file)
index 0000000..1cc3d8e
--- /dev/null
@@ -0,0 +1,29 @@
+# Copyright 1999-2018 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=7
+
+PYTHON_COMPAT=( python2_7 python3_{4,5,6} )
+inherit distutils-r1
+
+DESCRIPTION="Protobuf code generator for gRPC"
+HOMEPAGE="https://grpc.io"
+SRC_URI="mirror://pypi/${PN::1}/${PN}/${P}.tar.gz"
+
+LICENSE="Apache-2.0"
+SLOT="0"
+KEYWORDS="~amd64 ~x86"
+
+RDEPEND="dev-python/cython[${PYTHON_USEDEP}]
+       dev-python/grpcio[${PYTHON_USEDEP}]
+       dev-python/protobuf-python[${PYTHON_USEDEP}]
+       !<net-libs/grpc-1.16.0[tools]
+"
+DEPEND="${RDEPEND}
+       dev-python/setuptools[${PYTHON_USEDEP}]
+"
+
+python_compile() {
+       export GRPC_PYTHON_BUILD_WITH_CYTHON=1
+       distutils-r1_python_compile
+}
diff --git a/dev-python/grpcio-tools/metadata.xml b/dev-python/grpcio-tools/metadata.xml
new file mode 100644 (file)
index 0000000..b140e0d
--- /dev/null
@@ -0,0 +1,15 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+       <maintainer type="person">
+               <email>gyakovlev@gentoo.org</email>
+               <name>Georgy Yakovlev</name>
+       </maintainer>
+       <longdescription lang="en">
+               High-performance RPC framework (python libraries)
+       </longdescription>
+       <upstream>
+               <remote-id type="github">grpc/grpc</remote-id>
+               <remote-id type="pypi">grpcio-tools</remote-id>
+       </upstream>
+</pkgmetadata>