summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJesus Rivero <neurogeek@gentoo.org>2011-07-06 21:38:06 +0000
committerJesus Rivero <neurogeek@gentoo.org>2011-07-06 21:38:06 +0000
commitca461062990e01cdaf4a8cbae89e31fcef52ac98 (patch)
treec4006c4d8cfdd82c36a6a1cb5d2e0d28c765338c /dev-python/amqplib
parentStable for ppc64; bug #372959 (diff)
downloadhistorical-ca461062990e01cdaf4a8cbae89e31fcef52ac98.tar.gz
historical-ca461062990e01cdaf4a8cbae89e31fcef52ac98.tar.bz2
historical-ca461062990e01cdaf4a8cbae89e31fcef52ac98.zip
Initial commit
Package-Manager: portage-2.2.0_alpha29/cvs/Linux i686
Diffstat (limited to 'dev-python/amqplib')
-rw-r--r--dev-python/amqplib/ChangeLog10
-rw-r--r--dev-python/amqplib/Manifest15
-rw-r--r--dev-python/amqplib/amqplib-0.6.1.ebuild53
-rw-r--r--dev-python/amqplib/files/amqplib-0.6.1_disable_socket_tests.patch17
-rw-r--r--dev-python/amqplib/metadata.xml13
5 files changed, 108 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/Manifest b/dev-python/amqplib/Manifest
new file mode 100644
index 000000000000..a7a508c9464a
--- /dev/null
+++ b/dev-python/amqplib/Manifest
@@ -0,0 +1,15 @@
+-----BEGIN PGP SIGNED MESSAGE-----
+Hash: SHA1
+
+AUX amqplib-0.6.1_disable_socket_tests.patch 652 RMD160 64c5326eb1ba105f2c8dadf308d93dfe2fd0d491 SHA1 7ad0dfed2a1ddf213264f6ffecedd6248680faf3 SHA256 420e8a5e4f89357288af95080fa5e5f6f3b59c9334628cfb354bee4f6e458f4e
+DIST amqplib-0.6.1.tgz 53680 RMD160 9d04e91f0457d96a6db9fbcf9364546026aec147 SHA1 f124e5e4a6644bf6d1734032a01ac44db1b25a29 SHA256 0f2618b74d95cd360a6d46a309a3fb1c37d881a237e269ac195a69a34e0e2f62
+EBUILD amqplib-0.6.1.ebuild 1101 RMD160 0c952da562f0c1f0201258d72531688ee18f2381 SHA1 682ab754e6bd7acb30925989fc585b9eaeccb99c SHA256 b9315acaf04f2bd0aea74172c0624ae2b9819311307b9939b6b78d2028598daa
+MISC ChangeLog 400 RMD160 132ca0dfb88bd047b55a3b1100593905b100c193 SHA1 01e602dbe8b25095920201d0a5fa952c6b976577 SHA256 4d75a08b4a277befea07f29219fe084f2e2c31a4136937a829f463ee423a8920
+MISC metadata.xml 375 RMD160 75e98ce356bd31fb3b40bcff70981e3c1af850b8 SHA1 aba30fd889fd5123f0a426af1fe34a6b7374fd72 SHA256 b05121e360fe24b8fcc72490af667b4feb072ca8ad225fae94f18c5101284522
+-----BEGIN PGP SIGNATURE-----
+Version: GnuPG v2.0.16 (GNU/Linux)
+
+iEYEARECAAYFAk4U2KcACgkQdIssYB9vBoOQ1ACfVVULwOaAPhKPpxCFAwKnENG+
+baAAnjxgNWG47MerCPPu04CoZkUpRWAx
+=X6m1
+-----END PGP SIGNATURE-----
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>