diff options
author | Kacper Kowalik <xarthisius@gentoo.org> | 2012-05-18 10:59:04 +0000 |
---|---|---|
committer | Kacper Kowalik <xarthisius@gentoo.org> | 2012-05-18 10:59:04 +0000 |
commit | 34998f1bc5abbd857d5261b6e7a39b7b65f3af4d (patch) | |
tree | 467f951d8e7ea6f5e55df0de7ea2c9c62eba73c8 /dev-python | |
parent | Bump (diff) | |
download | gentoo-2-34998f1bc5abbd857d5261b6e7a39b7b65f3af4d.tar.gz gentoo-2-34998f1bc5abbd857d5261b6e7a39b7b65f3af4d.tar.bz2 gentoo-2-34998f1bc5abbd857d5261b6e7a39b7b65f3af4d.zip |
Initial import, fixes #415589. Ebuild written by Ian Delaney <johneed@hotmail.com>
(Portage version: 2.2.0_alpha105/cvs/Linux x86_64)
Diffstat (limited to 'dev-python')
-rw-r--r-- | dev-python/gevent/ChangeLog | 11 | ||||
-rw-r--r-- | dev-python/gevent/gevent-0.13.7.ebuild | 59 | ||||
-rw-r--r-- | dev-python/gevent/metadata.xml | 15 |
3 files changed, 85 insertions, 0 deletions
diff --git a/dev-python/gevent/ChangeLog b/dev-python/gevent/ChangeLog new file mode 100644 index 000000000000..eb07899be88b --- /dev/null +++ b/dev-python/gevent/ChangeLog @@ -0,0 +1,11 @@ +# ChangeLog for dev-python/gevent +# Copyright 1999-2012 Gentoo Foundation; Distributed under the GPL v2 +# $Header: /var/cvsroot/gentoo-x86/dev-python/gevent/ChangeLog,v 1.1 2012/05/18 10:59:04 xarthisius Exp $ + +*gevent-0.13.7 (18 May 2012) + + 18 May 2012; Kacper Kowalik <xarthisius@gentoo.org> +gevent-0.13.7.ebuild, + +metadata.xml: + Initial import, fixes #415589. Ebuild written by Ian Delaney + <johneed@hotmail.com> + diff --git a/dev-python/gevent/gevent-0.13.7.ebuild b/dev-python/gevent/gevent-0.13.7.ebuild new file mode 100644 index 000000000000..d29146673fdd --- /dev/null +++ b/dev-python/gevent/gevent-0.13.7.ebuild @@ -0,0 +1,59 @@ +# Copyright 1999-2012 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/dev-python/gevent/gevent-0.13.7.ebuild,v 1.1 2012/05/18 10:59:04 xarthisius Exp $ + +EAPI=4 + +SUPPORT_PYTHON_ABIS=1 +RESTRICT_PYTHON_ABIS="3.* 2.7-pypy-* *-jython" + +inherit distutils + +DESCRIPTION="A Python networking library that uses greenlet to provide synchronous API" +HOMEPAGE="http://pypi.python.org/pypi/gevent/" +SRC_URI="mirror://pypi/${PN:0:1}/${PN}/${P}.tar.gz" + +KEYWORDS="~amd64 ~x86" +IUSE="doc examples" +LICENSE="MIT" +SLOT="0" + +RDEPEND="dev-libs/libevent + dev-python/greenlet" +DEPEND="${RDEPEND} + dev-python/setuptools + doc? ( dev-python/sphinx )" + +PYTHON_CFLAGS=("2.* + -fno-strict-aliasing") + +DOCS="AUTHORS changelog.rst" +RESTRICT="test" # long and lot's of failures + +src_compile() { + distutils_src_compile + if use doc; then + PYTHONPATH="$(ls -d ${S}/build-$(PYTHON -f --ABI)/lib.*)" emake html -C doc + fi +} + +src_test() { + pushd greentest &> /dev/null + testing() { + PYTHONPATH="$(ls -d ../build-${PYTHON_ABI}/lib.*)" "$(PYTHON)" testrunner.py + } + python_execute_function testing + popd &> /dev/null +} + +src_install() { + distutils_src_install + + if use doc; then + dohtml -r doc/_build/html/ + fi + + if use examples; then + insinto /usr/share/doc/${PF}/examples + doins -r examples/* + fi +} diff --git a/dev-python/gevent/metadata.xml b/dev-python/gevent/metadata.xml new file mode 100644 index 000000000000..4da32c02e8f0 --- /dev/null +++ b/dev-python/gevent/metadata.xml @@ -0,0 +1,15 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> +<pkgmetadata> + <herd>python</herd> + <maintainer> + <email>tampakrap@gentoo.org</email> + <name>Theo Chatzimichos</name> + <description>Proxy maintainer. CC him on bugs</description> + </maintainer> + <maintainer> + <email>johneed@hotmail.com</email> + <name>Ian Delaney</name> + <description>Maintainer. Assign bugs to him</description> + </maintainer> +</pkgmetadata> |