diff options
author | Jesus Rivero <neurogeek@gentoo.org> | 2011-07-06 21:38:06 +0000 |
---|---|---|
committer | Jesus Rivero <neurogeek@gentoo.org> | 2011-07-06 21:38:06 +0000 |
commit | a209c4a42d25c4f4a4fc595218832b11a96c205f (patch) | |
tree | 6bf1eed65f51569f00669cc91a9fe4d9eddbec2e /dev-python/amqplib | |
parent | Stable for ppc64; bug #372959 (diff) | |
download | gentoo-2-a209c4a42d25c4f4a4fc595218832b11a96c205f.tar.gz gentoo-2-a209c4a42d25c4f4a4fc595218832b11a96c205f.tar.bz2 gentoo-2-a209c4a42d25c4f4a4fc595218832b11a96c205f.zip |
Initial commit
(Portage version: 2.2.0_alpha29/cvs/Linux i686)
Diffstat (limited to 'dev-python/amqplib')
-rw-r--r-- | dev-python/amqplib/ChangeLog | 10 | ||||
-rw-r--r-- | dev-python/amqplib/amqplib-0.6.1.ebuild | 53 | ||||
-rw-r--r-- | dev-python/amqplib/files/amqplib-0.6.1_disable_socket_tests.patch | 17 | ||||
-rw-r--r-- | dev-python/amqplib/metadata.xml | 13 |
4 files changed, 93 insertions, 0 deletions
diff --git a/dev-python/amqplib/ChangeLog b/dev-python/amqplib/ChangeLog new file mode 100644 index 000000000000..9314dfce73c8 --- /dev/null +++ b/dev-python/amqplib/ChangeLog @@ -0,0 +1,10 @@ +# ChangeLog for dev-python/amqplib +# Copyright 1999-2011 Gentoo Foundation; Distributed under the GPL v2 +# $Header: /var/cvsroot/gentoo-x86/dev-python/amqplib/ChangeLog,v 1.1 2011/07/06 21:38:06 neurogeek Exp $ + +*amqplib-0.6.1 (06 Jul 2011) + + 06 Jul 2011; Jesus Rivero <neurogeek@gentoo.org> +amqplib-0.6.1.ebuild, + +files/amqplib-0.6.1_disable_socket_tests.patch, +metadata.xml: + Initial commit + diff --git a/dev-python/amqplib/amqplib-0.6.1.ebuild b/dev-python/amqplib/amqplib-0.6.1.ebuild new file mode 100644 index 000000000000..391604f206bf --- /dev/null +++ b/dev-python/amqplib/amqplib-0.6.1.ebuild @@ -0,0 +1,53 @@ +# Copyright 1999-2011 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/dev-python/amqplib/amqplib-0.6.1.ebuild,v 1.1 2011/07/06 21:38:06 neurogeek Exp $ + +EAPI="3" +PYTHON_DEPEND="2" +SUPPORT_PYTHON_ABIS="1" + +inherit distutils eutils + +DESCRIPTION="Python client for the Advanced Message Queuing Procotol (AMQP)" +HOMEPAGE="http://code.google.com/p/py-amqplib/" +SRC_URI="http://py-amqplib.googlecode.com/files/${P}.tgz" + +LICENSE="LGPL-3" +SLOT="0" +KEYWORDS="~x86 ~amd64" +IUSE="examples extras test" + +RDEPEND="" +DEPEND="${RDEPEND}" + +RESTRICT_PYTHON_ABIS="3.*" + +src_prepare() { + if use test; then + epatch "${FILESDIR}/${P}_disable_socket_tests.patch" + fi +} + +src_test() { + + testing() { + PYTHONPATH="build-${PYTHON_ABI}/lib" python \ + "tests/client_0_8/run_all.py" + } + + python_execute_function testing +} + +src_install() { + distutils_src_install + + dodoc docs/* + if use examples; then + docinto examples + dodoc demo/* || die "dodoc failed" + fi + if use extras; then + insinto /usr/share/${PF} + doins -r extras || die "doins failed" + fi +} diff --git a/dev-python/amqplib/files/amqplib-0.6.1_disable_socket_tests.patch b/dev-python/amqplib/files/amqplib-0.6.1_disable_socket_tests.patch new file mode 100644 index 000000000000..c92e3cba64f4 --- /dev/null +++ b/dev-python/amqplib/files/amqplib-0.6.1_disable_socket_tests.patch @@ -0,0 +1,17 @@ +diff -uNr amqplib-0.6.1.org/tests/client_0_8/run_all.py amqplib-0.6.1/tests/client_0_8/run_all.py +--- amqplib-0.6.1.org/tests/client_0_8/run_all.py 2011-07-06 16:21:22.000000000 -0400 ++++ amqplib-0.6.1/tests/client_0_8/run_all.py 2011-07-06 16:21:38.000000000 -0400 +@@ -28,13 +28,8 @@ + 'test_exceptions', + 'test_serialization', + 'test_basic_message', +- 'test_connection', +- 'test_channel', + ] + +-if sys.version_info >= (2, 5): +- TEST_NAMES.append('test_with') +- + def main(): + suite = unittest.TestLoader().loadTestsFromNames(TEST_NAMES) + unittest.TextTestRunner(**settings.test_args).run(suite) diff --git a/dev-python/amqplib/metadata.xml b/dev-python/amqplib/metadata.xml new file mode 100644 index 000000000000..48e5829e9aab --- /dev/null +++ b/dev-python/amqplib/metadata.xml @@ -0,0 +1,13 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> +<pkgmetadata> + <herd>python</herd> + <maintainer> + <email>neurogeek@gentoo.org</email> + <name>Jesus Rivero</name> + </maintainer> + <use> + <flag name="extras">Install extra tools to generate initial Python mod + from an AMQP XML file</flag> + </use> +</pkgmetadata> |