summaryrefslogtreecommitdiff
path: root/dev-python/protobuf-python
diff options
context:
space:
mode:
authorV3n3RiX <venerix@redcorelinux.org>2017-10-09 18:53:29 +0100
committerV3n3RiX <venerix@redcorelinux.org>2017-10-09 18:53:29 +0100
commit4f2d7949f03e1c198bc888f2d05f421d35c57e21 (patch)
treeba5f07bf3f9d22d82e54a462313f5d244036c768 /dev-python/protobuf-python
reinit the tree, so we can have metadata
Diffstat (limited to 'dev-python/protobuf-python')
-rw-r--r--dev-python/protobuf-python/Manifest10
-rw-r--r--dev-python/protobuf-python/files/protobuf-python-3.0.0_beta3-link-against-installed-lib.patch33
-rw-r--r--dev-python/protobuf-python/metadata.xml24
-rw-r--r--dev-python/protobuf-python/protobuf-python-3.1.0.ebuild39
-rw-r--r--dev-python/protobuf-python/protobuf-python-3.3.0-r1.ebuild46
-rw-r--r--dev-python/protobuf-python/protobuf-python-3.3.0.ebuild39
-rw-r--r--dev-python/protobuf-python/protobuf-python-3.4.1.ebuild46
7 files changed, 237 insertions, 0 deletions
diff --git a/dev-python/protobuf-python/Manifest b/dev-python/protobuf-python/Manifest
new file mode 100644
index 000000000000..5bb0a325b886
--- /dev/null
+++ b/dev-python/protobuf-python/Manifest
@@ -0,0 +1,10 @@
+AUX protobuf-python-3.0.0_beta3-link-against-installed-lib.patch 1327 SHA256 3d12159549f8b7291b81f0c21367ce9ce15a29562bad8fe8e10ffa5232023296 SHA512 0d4d79c403327110ed16f47e64027c10d476a75a1b267f513777064151019074fec772e65ee24db2e93b3e169f343f59dc03fe68bd8a3dc299379b615204fa89 WHIRLPOOL e1397df17af26556baa2f3c76539727883986a934e2b4d447d086b5cb3efb998a2c369f6505989d75915138e3c16d2a2f6bbb411d4ca01d0e72b0fce15bfb2c6
+DIST protobuf-3.1.0.tar.gz 4051503 SHA256 0a0ae63cbffc274efb573bdde9a253e3f32e458c41261df51c5dbc5ad541e8f7 SHA512 8d3289a16944c255bd1cceab696e515e52467f2bfe1cc10f6b32fabdf082d5acdc248ec9cadc572223a24d04d431f75921076153109cea2f90ee533f502ab47a WHIRLPOOL b8a0bee9ff549c8da45c2b56b12aafbed5807959cdb11b3888a0f30fd0d6df83a72f3c6ef9e266522754b8901792f65235a6e81a8b0f74cee15d59ecbe6dee68
+DIST protobuf-3.3.0.tar.gz 4336596 SHA256 94c414775f275d876e5e0e4a276527d155ab2d0da45eed6b7734301c330be36e SHA512 0734a55ae92f0539dfb507e174539d290fd8e93633c1edd8810e0d51c37e67254337b75fc5ba9450316f6416e1f8f8cfb59415864657b55f2a1696fbcdfe7636 WHIRLPOOL 4c18120ad784234ebb5308c0f3a2f3814d77f2fc906407f48285f3ba8f84af8e15defa4e7edf2d2e77cf22316df338b3f5bc0c6ca11c7a4fb951105c3aa7d7d4
+DIST protobuf-3.4.1.tar.gz 4490100 SHA256 8e0236242106e680b4f9f576cc44b8cd711e948b20a9fc07769b0a20ceab9cc4 SHA512 471e52198fa878a79183dc8fbc39d9c65239be4d9dff799e12281ee9b1af61a427584534b1baae1773bc6e4c86467f89ca2e7911a21effd86bc5f40cc7d94c34 WHIRLPOOL c53dc76155bcfeee11720b08c7d508a35274f2387d6f8a61149565bc72d5539ad598600ad692f01ac7a0ea102d66659f4d516f994c419c56c4420ce69659646b
+EBUILD protobuf-python-3.1.0.ebuild 1305 SHA256 ea171c5e1c3bd096a59d9a77ba0dc2c389888373dc71e27bd88e3ed92d9f4dfc SHA512 9c2cce83ae543f35da04ed38c844cf1e7e2462c3db264d79f2dd8d0b248bfdc49271db4f5d288d17b522e555695f276a73c4a665373e1944af438a7f3050e645 WHIRLPOOL 3aaf9adc9d0f26a6c282ab5f2e22837d3871b84156479babbf428ca36d7814a36c6660f15ffd8470b1beb1931e7fbe1fb2933e4c8a5ffef15cf0b2a46d2718d7
+EBUILD protobuf-python-3.3.0-r1.ebuild 1424 SHA256 00aa2154ce7e487deeedb93506dab942cac6cf72aeaf6c1738625136df48a08f SHA512 e418df42b58de1efef38f54cfa6ff0818d1349d314003759d6f921a03ede7aa45083014955933f21d416d70e551a9525408abafa773934ebf074c9cfdf55e61f WHIRLPOOL 6aafaa1dfc1c2ebd2f1b1bb3f99a2088e2f0d524b1223540cfaddf0ad5dc7470eb5d8f1b5c1858d3ef7507d8c85cea1e884f152284128acc5041f34dcc44ecec
+EBUILD protobuf-python-3.3.0.ebuild 1273 SHA256 1d9d19540d6d12a9453f00c86695d9a4dec6d17bfe1ab8b3ecf3346e4627aa6f SHA512 5f9d1d730877b24133839ccb669416df55e178c5af94a76261445a15b8e15ec4735724d531d2f8ca972ab759a34718974b5636c6f4ac6056348a1386c3b52d4e WHIRLPOOL 6ab5a24ca6c207faf44444372af1e260aabfb510e629f6c0df4bf8ca711aa3d73dcb45d9fd5398470b46ab3a00406237a1c8945776e0d5d27bd1fc54fd76834a
+EBUILD protobuf-python-3.4.1.ebuild 1250 SHA256 90a6b925342b4ad5e3b7aa1cb5d5e4c017bde60066b4079d01cb7f81d445afd6 SHA512 a82b7e00afb6408dfeaf3c70fe5df077792daadca9e0de3b30689fd5ef49405e81f615fa2e586f14548715e189bc9db1a013b69bc17b599a0119801f74857d14 WHIRLPOOL f79a0010abe68728f42aa4784127c65ef8a93755a083e7090d9eb1e31f0e4e67bc86507572ee6983fb35ab8267519dd105107f84bdd5bf3a04115fa2bb3fb6b2
+MISC ChangeLog 2292 SHA256 c770002f77811ec78e86335ab105666d39e1d5aea5e8fbacc6ba026b873c21d5 SHA512 3e0adfe1158ac8b13057b49d8a81aa888c82d6ef031d0c4cc76a2de0e0d26dcee8fa5d9f6ceb09f20082b64a70de07c64798d27c66a6fd72d1a38276b6b188b8 WHIRLPOOL e73a71ea9952cb578629599c151de74d8390fc128a527b7efde19b60866d1b0ab022cca7e2005713ead67b732df1e22533751184c95ac0fc5e925313c2e9e26e
+MISC metadata.xml 684 SHA256 fb1b3b15a0c90c2ba5a595bc76a450e8d4a1d722fcabc62bd3e767340b4f3bd8 SHA512 0df3579cf30f46c98cbc09de65b9e209b41fa28f39ef6d226b8f4b7bf6c68751ca343a5a6d3373822084d2a0379c0cc872fde99d9f0fa4b7210af61a94364fc4 WHIRLPOOL 38fd8afd256063c823e4ec2034c8ccbb799031b4bce68f9c3d45f96bf2b4d53eea41da4305366e00e3933f0b56c2aacf8785c59ad1a1f5695974a1418bcb852e
diff --git a/dev-python/protobuf-python/files/protobuf-python-3.0.0_beta3-link-against-installed-lib.patch b/dev-python/protobuf-python/files/protobuf-python-3.0.0_beta3-link-against-installed-lib.patch
new file mode 100644
index 000000000000..c0b7aadcd6f5
--- /dev/null
+++ b/dev-python/protobuf-python/files/protobuf-python-3.0.0_beta3-link-against-installed-lib.patch
@@ -0,0 +1,33 @@
+diff -Naur python/setup.py python/setup.py
+--- python/setup.py 2015-12-30 22:21:46.000000000 +0100
++++ python/setup.py 2016-04-18 00:51:49.490809789 +0200
+@@ -190,15 +190,27 @@
+ extra_compile_args.append('-Werror')
+ sys.argv.remove(warnings_as_errors)
+
++ inclD = ['.', '../src']
++ libD = []
++ try:
++ subprocess.check_call(['pkg-config', '--exists', 'protobuf'])
++ inclD += subprocess.check_output(['pkg-config','--variable=includedir','protobuf']).decode().split()
++ libD = subprocess.check_output(['pkg-config','--variable=libdir','protobuf']).decode().split()
++ except OSError as osex:
++ if osex.errno == errno.ENOENT:
++ info('pkg-config not found')
++ else:
++ warn("Running pkg-config failed - %s." % osex)
++ libD = ['../src/.libs']
+ # C++ implementation extension
+ ext_module_list.extend([
+ Extension(
+ "google.protobuf.pyext._message",
+ glob.glob('google/protobuf/pyext/*.cc'),
+- include_dirs=[".", "../src"],
++ include_dirs=inclD,
+ libraries=libraries,
+ extra_objects=extra_objects,
+- library_dirs=['../src/.libs'],
++ library_dirs=libD,
+ extra_compile_args=extra_compile_args,
+ ),
+ Extension(
diff --git a/dev-python/protobuf-python/metadata.xml b/dev-python/protobuf-python/metadata.xml
new file mode 100644
index 000000000000..4c6fe778f353
--- /dev/null
+++ b/dev-python/protobuf-python/metadata.xml
@@ -0,0 +1,24 @@
+<?xml version='1.0' encoding='UTF-8'?>
+<!DOCTYPE pkgmetadata SYSTEM 'http://www.gentoo.org/dtd/metadata.dtd'>
+<pkgmetadata>
+<maintainer type='person'>
+ <email>vapier@gentoo.org</email>
+</maintainer>
+<maintainer type='person'>
+ <email>tomboy64@sina.cn</email>
+</maintainer>
+<maintainer type="project">
+ <email>python@gentoo.org</email>
+ <name>Gentoo Python Project</name>
+</maintainer>
+<maintainer type="project">
+ <email>proxy-maint@gentoo.org</email>
+ <name>Gentoo Proxy Maintainers Project</name>
+</maintainer>
+<slots>
+ <subslots>soname major version number of protobuf</subslots>
+</slots>
+<upstream>
+ <remote-id type='github'>google/protobuf</remote-id>
+</upstream>
+</pkgmetadata>
diff --git a/dev-python/protobuf-python/protobuf-python-3.1.0.ebuild b/dev-python/protobuf-python/protobuf-python-3.1.0.ebuild
new file mode 100644
index 000000000000..ac2101c316e4
--- /dev/null
+++ b/dev-python/protobuf-python/protobuf-python-3.1.0.ebuild
@@ -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 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="BSD"
+SLOT="0/11"
+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
+}
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..ec1907817312
--- /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,6} )
+
+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}]
+ !<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
+}
+
+python_install_all() {
+ distutils-r1_python_install_all
+
+ find "${D}" -name '*.pth' -delete || die
+}
diff --git a/dev-python/protobuf-python/protobuf-python-3.3.0.ebuild b/dev-python/protobuf-python/protobuf-python-3.3.0.ebuild
new file mode 100644
index 000000000000..c3076f1f5b6d
--- /dev/null
+++ b/dev-python/protobuf-python/protobuf-python-3.3.0.ebuild
@@ -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
+}
diff --git a/dev-python/protobuf-python/protobuf-python-3.4.1.ebuild b/dev-python/protobuf-python/protobuf-python-3.4.1.ebuild
new file mode 100644
index 000000000000..156bcde3e958
--- /dev/null
+++ b/dev-python/protobuf-python/protobuf-python-3.4.1.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,6} )
+
+inherit distutils-r1
+
+DESCRIPTION="Google's Protocol Buffers - Python bindings"
+HOMEPAGE="https://developers.google.com/protocol-buffers/ https://github.com/google/protobuf"
+SRC_URI="https://github.com/google/protobuf/archive/v${PV}.tar.gz -> protobuf-${PV}.tar.gz"
+
+LICENSE="BSD"
+SLOT="0/14"
+KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~mips ~ppc ~ppc64 ~sh ~sparc ~x86 ~amd64-linux ~arm-linux ~x86-linux ~x64-macos ~x86-macos"
+IUSE=""
+
+DEPEND="${PYTHON_DEPS}
+ ~dev-libs/protobuf-${PV}
+ dev-python/namespace-google[${PYTHON_USEDEP}]
+ dev-python/setuptools[${PYTHON_USEDEP}]
+ dev-python/six[${PYTHON_USEDEP}]
+ !<dev-libs/protobuf-3[python(-)]"
+RDEPEND="${DEPEND}"
+
+S="${WORKDIR}/protobuf-${PV}/python"
+
+python_configure_all() {
+ mydistutilsargs=(--cpp_implementation)
+}
+
+python_compile() {
+ python_is_python3 || local -x CXXFLAGS="${CXXFLAGS} -fno-strict-aliasing"
+ distutils-r1_python_compile
+}
+
+python_test() {
+ esetup.py test
+}
+
+python_install_all() {
+ distutils-r1_python_install_all
+
+ find "${D}" -name "*.pth" -delete || die
+}