From ec1c576592d49c6dc1bbad4f93c135128b01f13a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Micha=C5=82=20G=C3=B3rny?= Date: Tue, 9 May 2017 20:16:22 +0200 Subject: dev-python/protobuf-python: Fix namespace support --- .../protobuf-python-3.3.0-r1.ebuild | 46 ++++++++++++++++++++++ 1 file changed, 46 insertions(+) create mode 100644 dev-python/protobuf-python/protobuf-python-3.3.0-r1.ebuild (limited to 'dev-python/protobuf-python/protobuf-python-3.3.0-r1.ebuild') diff --git a/dev-python/protobuf-python/protobuf-python-3.3.0-r1.ebuild b/dev-python/protobuf-python/protobuf-python-3.3.0-r1.ebuild new file mode 100644 index 000000000000..0d7dbfde1dc9 --- /dev/null +++ b/dev-python/protobuf-python/protobuf-python-3.3.0-r1.ebuild @@ -0,0 +1,46 @@ +# Copyright 1999-2017 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +EAPI=6 +# pypy fails tests; pypy3 fails even running tests +PYTHON_COMPAT=( python2_7 python3_{4,5} ) + +inherit distutils-r1 + +MY_PV=${PV/_beta/-beta-} +MY_PV=${MY_PV/_p/.} + +DESCRIPTION="Google's Protocol Buffers - official Python bindings" +HOMEPAGE="https://github.com/google/protobuf/ https://developers.google.com/protocol-buffers/" +SRC_URI="https://github.com/google/protobuf/archive/v${MY_PV}.tar.gz -> protobuf-${PV}.tar.gz" + +LICENSE="BSD" +SLOT="0/13" +KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~mips ~ppc ~ppc64 ~sh ~sparc ~x86 ~amd64-linux ~arm-linux ~x86-linux ~x64-macos ~x86-macos" +IUSE="" + +# Protobuf is only a build-time dep, but depends on the exact same version +# (excluding revision), since we are using the same tarball. +# In case of using the (linked) cpp implementation we should be fine with the same subslot. +RDEPEND="${PYTHON_DEPS} + dev-python/namespace-google[${PYTHON_USEDEP}] + !