diff options
author | V3n3RiX <venerix@redcorelinux.org> | 2018-07-14 21:03:06 +0100 |
---|---|---|
committer | V3n3RiX <venerix@redcorelinux.org> | 2018-07-14 21:03:06 +0100 |
commit | 8376ef56580626e9c0f796d5b85b53a0a1c7d5f5 (patch) | |
tree | 7681bbd4e8b05407772df40a4bf04cbbc8afc3fa /dev-python/pyzmq | |
parent | 30a9caf154332f12ca60756e1b75d2f0e3e1822d (diff) |
gentoo resync : 14.07.2018
Diffstat (limited to 'dev-python/pyzmq')
-rw-r--r-- | dev-python/pyzmq/Manifest | 3 | ||||
-rw-r--r-- | dev-python/pyzmq/metadata.xml | 11 | ||||
-rw-r--r-- | dev-python/pyzmq/pyzmq-16.0.2.ebuild | 66 |
3 files changed, 80 insertions, 0 deletions
diff --git a/dev-python/pyzmq/Manifest b/dev-python/pyzmq/Manifest new file mode 100644 index 000000000000..11842ea6ba35 --- /dev/null +++ b/dev-python/pyzmq/Manifest @@ -0,0 +1,3 @@ +DIST pyzmq-16.0.2.tar.gz 1026531 BLAKE2B b276fea116d56595ff2aca8a00b2b8918c0170cf1522c4bb457f6bb0d44a13e63de18e4d4f53238a1a5b515986e029ffebdded269f191d62eb36d988b328b402 SHA512 40eaf8ce39db86ab3866890d74b92bd6f20d4ae827828a8772003656d899d10ffcfc222d21f344d9daba390824e6c43b9f34e31beb604ec5ee1ec199165f4b96 +EBUILD pyzmq-16.0.2.ebuild 1747 BLAKE2B eec022024457a0c35163b38327c56f24e28f9959f7002cdf142cb66f8099ea41886386a26dd49d2b6c81b4e229c93922fb1deb0be75c2617ebe97b892089b401 SHA512 451e934945195529585163c98e84fb968acf3bbcf90ba98871292aab19aa01fd3405adff253988447505ce20a6d2ca54c0c87d1321175dc0acb88d9437a8f6a8 +MISC metadata.xml 318 BLAKE2B 332c15a9f2501968cf1ef1f794c6ffe69c196b0d1574889cf90cbffe394e01aeeb869d4644d3182bfb4fd6f1fd1b08e4d73bfdeca401e7071f547311fcebdab5 SHA512 82430ca9ef38b198825652b6a35b18070c4dbfbe9e662311755c6436e98d37b83c44c1d1aa9ade477b5eefadef85390ca1e6c3d035150a850ec08e8134b4f03c diff --git a/dev-python/pyzmq/metadata.xml b/dev-python/pyzmq/metadata.xml new file mode 100644 index 000000000000..7b2bf120e320 --- /dev/null +++ b/dev-python/pyzmq/metadata.xml @@ -0,0 +1,11 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> +<pkgmetadata> + <maintainer type="project"> + <email>python@gentoo.org</email> + <name>Python</name> + </maintainer> + <upstream> + <remote-id type="pypi">pyzmq</remote-id> + </upstream> +</pkgmetadata> diff --git a/dev-python/pyzmq/pyzmq-16.0.2.ebuild b/dev-python/pyzmq/pyzmq-16.0.2.ebuild new file mode 100644 index 000000000000..6f7275ec29f2 --- /dev/null +++ b/dev-python/pyzmq/pyzmq-16.0.2.ebuild @@ -0,0 +1,66 @@ +# Copyright 1999-2018 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +EAPI=6 + +PYTHON_COMPAT=( python2_7 python3_{4,5,6} ) +PYTHON_REQ_USE="threads(+)" + +inherit flag-o-matic distutils-r1 toolchain-funcs + +DESCRIPTION="Lightweight and super-fast messaging library built on top of the ZeroMQ library" +HOMEPAGE="http://www.zeromq.org/bindings:python https://pypi.org/project/pyzmq/" +SRC_URI="mirror://pypi/${PN:0:1}/${PN}/${P}.tar.gz" + +LICENSE="LGPL-3" +SLOT="0" +KEYWORDS="amd64 arm ~arm64 ~mips ~ppc ppc64 x86 ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos" +IUSE="doc test" + +RDEPEND=" + >=net-libs/zeromq-4.1.2:= + dev-python/py[${PYTHON_USEDEP}] + dev-python/cffi:=[${PYTHON_USEDEP}] + $(python_gen_cond_dep 'dev-python/gevent[${PYTHON_USEDEP}]' python2_7) +" +DEPEND="${RDEPEND} + dev-python/cython[${PYTHON_USEDEP}] + test? ( + dev-python/pytest[${PYTHON_USEDEP}] + $(python_gen_cond_dep 'dev-python/unittest2[${PYTHON_USEDEP}]' -2) + www-servers/tornado[${PYTHON_USEDEP}] + ) + doc? ( + >=dev-python/sphinx-1.3[${PYTHON_USEDEP}] + dev-python/numpydoc[${PYTHON_USEDEP}] + )" + +python_prepare_all() { + # Prevent un-needed download during build + sed -e "/'sphinx.ext.intersphinx',/d" -i docs/source/conf.py || die + distutils-r1_python_prepare_all +} + +python_configure_all() { + tc-export CC + append-cppflags -DZMQ_BUILD_DRAFT_API=1 +} + +python_compile_all() { + use doc && emake -C docs html +} + +python_compile() { + esetup.py cython --force + python_is_python3 || local -x CFLAGS="${CFLAGS} -fno-strict-aliasing" + distutils-r1_python_compile +} + +python_test() { + ${EPYTHON} -m pytest -v "${BUILD_DIR}/lib" || die +} + +python_install_all() { + use doc && local HTML_DOCS=( docs/build/html/. ) + distutils-r1_python_install_all +} |