diff options
| author | Marshall Brewer (Gentoo Key) <tomboy64@sina.cn> | 2016-04-17 21:25:41 +0200 |
|---|---|---|
| committer | Ian Delaney <idella4@gentoo.org> | 2016-04-21 17:51:59 +0800 |
| commit | f47f7012a3efc785a9672d5197ed16f4038a0291 (patch) | |
| tree | 3a1c3d1668dca4690950391e7861e657cc7d38be /dev-python/protobuf-python/protobuf-python-3.0.0_beta2.ebuild | |
| parent | 88c7324a377aa965facacc0b8a2704d59bf76cf4 (diff) | |
| download | gentoo-f47f7012a3efc785a9672d5197ed16f4038a0291.tar.gz gentoo-f47f7012a3efc785a9672d5197ed16f4038a0291.tar.bz2 gentoo-f47f7012a3efc785a9672d5197ed16f4038a0291.zip | |
dev-python/protobuf-python: initial version, 3.0.0_beta2
- outsourced python implementation of dev-libs/protobuf
- added PYTHON_COMPAT for python 3.* and pypy{,3}
Package-Manager: portage-2.2.28
RepoMan-Options: --ignore-arches
Closes: https://github.com/gentoo/gentoo/pull/1295
Signed-off-by: Ian Delaney <idella4@gentoo.org>
Diffstat (limited to 'dev-python/protobuf-python/protobuf-python-3.0.0_beta2.ebuild')
| -rw-r--r-- | dev-python/protobuf-python/protobuf-python-3.0.0_beta2.ebuild | 38 |
1 files changed, 38 insertions, 0 deletions
diff --git a/dev-python/protobuf-python/protobuf-python-3.0.0_beta2.ebuild b/dev-python/protobuf-python/protobuf-python-3.0.0_beta2.ebuild new file mode 100644 index 000000000000..05552d0615ae --- /dev/null +++ b/dev-python/protobuf-python/protobuf-python-3.0.0_beta2.ebuild @@ -0,0 +1,38 @@ +# Copyright 1999-2016 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +EAPI=6 +# pypy fails tests; pypy3 fails even running tests +PYTHON_COMPAT=( python2_7 python3_3 python3_4 python3_5 ) + +inherit distutils-r1 + +MY_PV=${PV/_beta2/-beta-2} + +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="Apache-2.0" +SLOT="0/10" +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 depend 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-libs/protobuf-3[python(-)]" +DEPEND="${RDEPEND} + >=dev-libs/protobuf-3 + dev-python/setuptools[${PYTHON_USEDEP}] + dev-python/six[${PYTHON_USEDEP}]" +S="${WORKDIR}/protobuf-${MY_PV}/python" +REQUIRED_USE="${PYTHON_REQUIRED_USE}" +PATCHES=( "${FILESDIR}/protobuf-${PV}-link-against-installed-lib.patch" ) + +python_test() { + distutils_install_for_testing + esetup.py test +} |
