diff options
author | bms <bms@FreeBSD.org> | 2009-07-05 03:17:11 +0800 |
---|---|---|
committer | bms <bms@FreeBSD.org> | 2009-07-05 03:17:11 +0800 |
commit | b10851faf502b16fea808498a443747cffb3b3bc (patch) | |
tree | ea403732893f3a8b0bad203b20cbaf2339427835 /net | |
parent | 412f344ff03507715bbcd233efacffe5f3f71c44 (diff) | |
download | freebsd-ports-gnome-b10851faf502b16fea808498a443747cffb3b3bc.tar.gz freebsd-ports-gnome-b10851faf502b16fea808498a443747cffb3b3bc.tar.zst freebsd-ports-gnome-b10851faf502b16fea808498a443747cffb3b3bc.zip |
Add new port py-txamqp, an asynchronous-capable AMQP messing transport
module for Python/Twisted, by Esteve Fernandez.
Tested with RabbitMQ 1.6.0 on FreeBSD 7.2-STABLE, i386 and amd64, using
Esteve's example code here:
http://fluidinfo.com/esteve/stuff/txamqp_consumer.py
http://fluidinfo.com/esteve/stuff/txamqp_publisher.py
Note: The Thrift-in-AMQP support is not yet built as it depends on the
Thrift bindings for Python which need to be fixed.
Diffstat (limited to 'net')
-rw-r--r-- | net/Makefile | 1 | ||||
-rw-r--r-- | net/py-txamqp/Makefile | 37 | ||||
-rw-r--r-- | net/py-txamqp/distinfo | 3 | ||||
-rw-r--r-- | net/py-txamqp/pkg-descr | 6 | ||||
-rw-r--r-- | net/py-txamqp/pkg-plist | 44 |
5 files changed, 91 insertions, 0 deletions
diff --git a/net/Makefile b/net/Makefile index 25ab31ae280a..6f14b1268883 100644 --- a/net/Makefile +++ b/net/Makefile @@ -786,6 +786,7 @@ SUBDIR += py-tofu SUBDIR += py-twistedPair SUBDIR += py-twitter + SUBDIR += py-txamqp SUBDIR += py-xmlrpc SUBDIR += py-xmlrpclib SUBDIR += py-yadis diff --git a/net/py-txamqp/Makefile b/net/py-txamqp/Makefile new file mode 100644 index 000000000000..96eb8f654e0b --- /dev/null +++ b/net/py-txamqp/Makefile @@ -0,0 +1,37 @@ +# New ports collection makefile for: txamqp +# Date created: 2009-07-04 +# Whom: Bruce Simpson +# +# $FreeBSD$ +# + +PORTNAME= txamqp +PORTVERSION= 0.2.1 +CATEGORIES= net python +MASTER_SITES= http://launchpadlibrarian.net/20320545/ \ + # http://launchpad.net/txamqp/trunk/${PORTVERSION}/+download/ +PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX} +DISTNAME= python-${PORTNAME}-${PORTVERSION} + +MAINTAINER= bms@FreeBSD.org +COMMENT= Twisted Python library for the AMQP messaging protocol + +USE_BZIP2= yes +USE_PYTHON= 2.5+ +USE_PYDISTUTILS= yes +USE_TWISTED= yes + +PYDISTUTILS_PKGNAME= txAMQP +PYDISTUTILS_PKGVERSION= 0.2 +PLIST_SUB= PORTNAME="${PORTNAME}" + +# TODO: Install AMQP spec files in a separate leaf port. +# TODO: Install txAMQP examples. +# TODO: Build and re-introduce Thrift runtime dependencies. + +post-install: + @${ECHO_MSG} + @${ECHO_MSG} "Note: Thrift is not yet supported, Python bindings need fixed." + @${ECHO_MSG} + +.include <bsd.port.mk> diff --git a/net/py-txamqp/distinfo b/net/py-txamqp/distinfo new file mode 100644 index 000000000000..fd9fe5e0eafb --- /dev/null +++ b/net/py-txamqp/distinfo @@ -0,0 +1,3 @@ +MD5 (python-txamqp-0.2.1.tar.bz2) = be9b24f0423552dcad9ff1b0385c000c +SHA256 (python-txamqp-0.2.1.tar.bz2) = 80900586068f4ab1462f4c35e03e5d271c7def319fe83d37706ee63bd794bbd3 +SIZE (python-txamqp-0.2.1.tar.bz2) = 80530 diff --git a/net/py-txamqp/pkg-descr b/net/py-txamqp/pkg-descr new file mode 100644 index 000000000000..97ff278e9cd7 --- /dev/null +++ b/net/py-txamqp/pkg-descr @@ -0,0 +1,6 @@ +This project contains all the necessary code to connect, send and +receive messages to/from an AMQP-compliant peer or broker (Qpid, +OpenAMQ, RabbitMQ) using Twisted. It also includes support for using +Thrift RPC over AMQP in Twisted applications. + +WWW: https://launchpad.net/txamqp diff --git a/net/py-txamqp/pkg-plist b/net/py-txamqp/pkg-plist new file mode 100644 index 000000000000..1997b5541ede --- /dev/null +++ b/net/py-txamqp/pkg-plist @@ -0,0 +1,44 @@ +%%PYTHON_SITELIBDIR%%/%%PORTNAME%%/__init__.py +%%PYTHON_SITELIBDIR%%/%%PORTNAME%%/__init__.pyc +%%PYTHON_SITELIBDIR%%/%%PORTNAME%%/__init__.pyo +%%PYTHON_SITELIBDIR%%/%%PORTNAME%%/client.py +%%PYTHON_SITELIBDIR%%/%%PORTNAME%%/client.pyc +%%PYTHON_SITELIBDIR%%/%%PORTNAME%%/client.pyo +%%PYTHON_SITELIBDIR%%/%%PORTNAME%%/codec.py +%%PYTHON_SITELIBDIR%%/%%PORTNAME%%/codec.pyc +%%PYTHON_SITELIBDIR%%/%%PORTNAME%%/codec.pyo +%%PYTHON_SITELIBDIR%%/%%PORTNAME%%/connection.py +%%PYTHON_SITELIBDIR%%/%%PORTNAME%%/connection.pyc +%%PYTHON_SITELIBDIR%%/%%PORTNAME%%/connection.pyo +%%PYTHON_SITELIBDIR%%/%%PORTNAME%%/content.py +%%PYTHON_SITELIBDIR%%/%%PORTNAME%%/content.pyc +%%PYTHON_SITELIBDIR%%/%%PORTNAME%%/content.pyo +%%PYTHON_SITELIBDIR%%/%%PORTNAME%%/contrib/__init__.py +%%PYTHON_SITELIBDIR%%/%%PORTNAME%%/contrib/__init__.pyc +%%PYTHON_SITELIBDIR%%/%%PORTNAME%%/contrib/__init__.pyo +%%PYTHON_SITELIBDIR%%/%%PORTNAME%%/contrib/thrift.py +%%PYTHON_SITELIBDIR%%/%%PORTNAME%%/contrib/thrift.pyc +%%PYTHON_SITELIBDIR%%/%%PORTNAME%%/contrib/thrift.pyo +%%PYTHON_SITELIBDIR%%/%%PORTNAME%%/delegate.py +%%PYTHON_SITELIBDIR%%/%%PORTNAME%%/delegate.pyc +%%PYTHON_SITELIBDIR%%/%%PORTNAME%%/delegate.pyo +%%PYTHON_SITELIBDIR%%/%%PORTNAME%%/message.py +%%PYTHON_SITELIBDIR%%/%%PORTNAME%%/message.pyc +%%PYTHON_SITELIBDIR%%/%%PORTNAME%%/message.pyo +%%PYTHON_SITELIBDIR%%/%%PORTNAME%%/protocol.py +%%PYTHON_SITELIBDIR%%/%%PORTNAME%%/protocol.pyc +%%PYTHON_SITELIBDIR%%/%%PORTNAME%%/protocol.pyo +%%PYTHON_SITELIBDIR%%/%%PORTNAME%%/queue.py +%%PYTHON_SITELIBDIR%%/%%PORTNAME%%/queue.pyc +%%PYTHON_SITELIBDIR%%/%%PORTNAME%%/queue.pyo +%%PYTHON_SITELIBDIR%%/%%PORTNAME%%/spec.py +%%PYTHON_SITELIBDIR%%/%%PORTNAME%%/spec.pyc +%%PYTHON_SITELIBDIR%%/%%PORTNAME%%/spec.pyo +%%PYTHON_SITELIBDIR%%/%%PORTNAME%%/testlib.py +%%PYTHON_SITELIBDIR%%/%%PORTNAME%%/testlib.pyc +%%PYTHON_SITELIBDIR%%/%%PORTNAME%%/testlib.pyo +%%PYTHON_SITELIBDIR%%/%%PORTNAME%%/xmlutil.py +%%PYTHON_SITELIBDIR%%/%%PORTNAME%%/xmlutil.pyc +%%PYTHON_SITELIBDIR%%/%%PORTNAME%%/xmlutil.pyo +@dirrmtry %%PYTHON_SITELIBDIR%%/%%PORTNAME%%/contrib +@dirrmtry %%PYTHON_SITELIBDIR%%/%%PORTNAME%% |