Date: Sun, 23 Dec 2012 20:22:38 +0000 (UTC) From: Rene Ladan <rene@FreeBSD.org> To: ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org Subject: svn commit: r309446 - in head/www: . py-ws4py py-ws4py/files Message-ID: <201212232022.qBNKMcgu061578@svn.freebsd.org>
next in thread | raw e-mail | index | archive | help
Author: rene Date: Sun Dec 23 20:22:37 2012 New Revision: 309446 URL: http://svnweb.freebsd.org/changeset/ports/309446 Log: ws4py is a Python package implementing the WebSocket protocol as defined in RFC 6455. It provides client and server implementations alike that can be using different techniques like threads, micro-threads, or event loops. WWW: http://www.defuze.org/oss/ws4py/docs/ Added: head/www/py-ws4py/ head/www/py-ws4py/Makefile (contents, props changed) head/www/py-ws4py/distinfo (contents, props changed) head/www/py-ws4py/files/ head/www/py-ws4py/files/pkg-message.in (contents, props changed) head/www/py-ws4py/pkg-descr (contents, props changed) head/www/py-ws4py/pkg-plist (contents, props changed) Modified: head/www/Makefile Modified: head/www/Makefile ============================================================================== --- head/www/Makefile Sun Dec 23 19:11:12 2012 (r309445) +++ head/www/Makefile Sun Dec 23 20:22:37 2012 (r309446) @@ -1634,6 +1634,7 @@ SUBDIR += py-webware-component SUBDIR += py-werkzeug SUBDIR += py-wikitools + SUBDIR += py-ws4py SUBDIR += py-wsgiauth SUBDIR += py-zope.app.wsgi SUBDIR += pyblosxom Added: head/www/py-ws4py/Makefile ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/www/py-ws4py/Makefile Sun Dec 23 20:22:37 2012 (r309446) @@ -0,0 +1,83 @@ +# Created by: rene@FreeBSD.org +# $FreeBSD$ + +PORTNAME= ws4py +PORTVERSION= 0.2.4 +CATEGORIES= www python +MASTER_SITES= http://www.defuze.org/oss/${PORTNAME}/ +PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX} + +MAINTAINER= rene@FreeBSD.org +# python@ is also OK with me +COMMENT= WebSocket package for Python + +LICENSE= BSD + +SUB_FILES= pkg-message + +USE_PYTHON= yes +USE_PYDISTUTILS= easy_install + +OPTIONSFILE= ${PORT_DBDIR}/py-${PORTNAME}/options +OPTIONS_DEFINE= CHERRYPY GEVENT TORNADO +OPTIONS_DEFAULT= GEVENT +CHERRYPY_DESC= CherryPy server support +GEVENT_DESC= gevent-based client/server support +TORNADO_DESC= Tornado client support + +.include <bsd.port.options.mk> + +CHERRYPY_FILES= test/test_cherrypy.py ws4py/server/cherrypyserver.py +GEVENT_FILES= ws4py/client/geventclient.py ws4py/server/geventserver.py +TORNADO_FILES= ws4py/client/tornadoclient.py + +.if ${PORT_OPTIONS:MCHERRYPY} +RUN_DEPENDS+= ${PYTHON_PKGNAMEPREFIX}cherrypy>=3.2.2:${PORTSDIR}/www/py-cherrypy +SUB_LIST+= MSG_NO_CHERRYPY= +.else +SUB_LIST+= MSG_NO_CHERRYPY="${CHERRYPY_FILES}" +.endif + +.if ${PORT_OPTIONS:MGEVENT} +RUN_DEPENDS+= ${PYTHON_PKGNAMEPREFIX}gevent>=0.13.6:${PORTSDIR}/devel/py-gevent +SUB_LIST+= MSG_NO_GEVENT= +.else +SUB_LIST+= MSG_NO_GEVENT="${GEVENT_FILES}" +.endif + +.if ${PORT_OPTIONS:MTORNADO} +RUN_DEPENDS+= ${PYTHON_PKGNAMEPREFIX}tornado>=2.0:${PORTSDIR}/www/py-tornado +SUB_LIST+= MSG_NO_TORNADO= +.else +SUB_LIST+= MSG_NO_TORNADO="${TORNADO_FILES}" +.endif + +.if ! ${PORT_OPTIONS:MCHERRYPY} || ! ${PORT_OPTIONS:MGEVENT} || \ + ! ${PORT_OPTIONS:MTORNADO} +SUB_LIST+= NOTE="Note that the following files are omitted from the package:" +.else +SUB_LIST+= NOTE= +.endif + +# Do not install files which will not work +post-patch: +.if ! ${PORT_OPTIONS:MCHERRYPY} +.for f in ${CHERRYPY_FILES} + ${RM} ${WRKSRC}/${f} +.endfor +.endif +.if ! ${PORT_OPTIONS:MGEVENT} +.for f in ${GEVENT_FILES} + ${RM} ${WRKSRC}/${f} +.endfor +.endif +.if ! ${PORT_OPTIONS:MTORNADO} +.for f in ${TORNADO_FILES} + ${RM} ${WRKSRC}/${f} +.endfor +.endif + +post-install: + @${CAT} ${PKGMESSAGE} + +.include <bsd.port.mk> Added: head/www/py-ws4py/distinfo ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/www/py-ws4py/distinfo Sun Dec 23 20:22:37 2012 (r309446) @@ -0,0 +1,2 @@ +SHA256 (ws4py-0.2.4.tar.gz) = 1adb03db73d97886a05a0b22318265e4e1b0d05e9324873576f91f2ef6dfb0ad +SIZE (ws4py-0.2.4.tar.gz) = 25049 Added: head/www/py-ws4py/files/pkg-message.in ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/www/py-ws4py/files/pkg-message.in Sun Dec 23 20:22:37 2012 (r309446) @@ -0,0 +1,5 @@ +%%NOTE%% + +%%MSG_NO_CHERRYPY%% +%%MSG_NO_GEVENT%% +%%MSG_NO_TORNADO%% Added: head/www/py-ws4py/pkg-descr ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/www/py-ws4py/pkg-descr Sun Dec 23 20:22:37 2012 (r309446) @@ -0,0 +1,6 @@ +ws4py is a Python package implementing the WebSocket protocol as defined +in RFC 6455. It provides client and server implementations alike that +can be using different techniques like threads, micro-threads, +or event loops. + +WWW: http://www.defuze.org/oss/ws4py/docs/ Added: head/www/py-ws4py/pkg-plist ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/www/py-ws4py/pkg-plist Sun Dec 23 20:22:37 2012 (r309446) @@ -0,0 +1 @@ +%%PYTHON_SITELIBDIR%%/%%PYEASYINSTALL_EGG%%
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201212232022.qBNKMcgu061578>