mirror of
https://github.com/gentoo-mirror/gentoo.git
synced 2026-07-23 20:28:21 -07:00
dev-python/protobuf-python: version bump to 3.3.0
Change license from Apache-2.0 to BSD Fix python3 incompatibility in patch Bug: https://bugs.gentoo.org/460608
This commit is contained in:
committed by
Michał Górny
parent
f5988bfcb1
commit
9448ce017d
39
dev-python/protobuf-python/protobuf-python-3.3.0.ebuild
Normal file
39
dev-python/protobuf-python/protobuf-python-3.3.0.ebuild
Normal file
@@ -0,0 +1,39 @@
|
||||
# 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-libs/protobuf-3[python(-)]
|
||||
~dev-libs/protobuf-${PV}"
|
||||
|
||||
DEPEND="${RDEPEND}
|
||||
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() {
|
||||
esetup.py test
|
||||
}
|
||||
Reference in New Issue
Block a user