diff options
author | Aric Belsito <lluixhi@gmail.com> | 2016-12-07 16:24:59 -0800 |
---|---|---|
committer | Patrice Clement <monsieurp@gentoo.org> | 2016-12-08 21:36:18 +0100 |
commit | 3cf0ca18c0e516338ed11a74624801331ea81532 (patch) | |
tree | 080f886bde84099a745492771032f5a1a9716602 /dev-python/protobuf-python/protobuf-python-3.0.2.ebuild | |
parent | dde8d15e2fc1a9c94a797dfa622e9e8a9b9e8529 (diff) | |
download | gentoo-3cf0ca18c0e516338ed11a74624801331ea81532.tar.gz gentoo-3cf0ca18c0e516338ed11a74624801331ea81532.tar.xz |
dev-python/protobuf-python: version bump 3.0.2 and 3.1.0
Closes: https://github.com/gentoo/gentoo/pull/3043
Diffstat (limited to 'dev-python/protobuf-python/protobuf-python-3.0.2.ebuild')
-rw-r--r-- | dev-python/protobuf-python/protobuf-python-3.0.2.ebuild | 40 |
1 files changed, 40 insertions, 0 deletions
diff --git a/dev-python/protobuf-python/protobuf-python-3.0.2.ebuild b/dev-python/protobuf-python/protobuf-python-3.0.2.ebuild new file mode 100644 index 00000000000..0783f229a0a --- /dev/null +++ b/dev-python/protobuf-python/protobuf-python-3.0.2.ebuild @@ -0,0 +1,40 @@ +# 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_4 python3_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="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 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-libs/protobuf-3[python(-)]" + +DEPEND="${RDEPEND} + >=dev-libs/protobuf-3 + dev-python/setuptools[${PYTHON_USEDEP}] + dev-python/six[${PYTHON_USEDEP}]" + +PATCHES=( "${FILESDIR}/${PN}-3.0.0_beta3-link-against-installed-lib.patch" ) + +S="${WORKDIR}/protobuf-${MY_PV}/python" +python_test() { + distutils_install_for_testing + esetup.py test +} |