head	1.3;
access;
symbols;
locks; strict;
comment	@# @;


1.3
date	2013.01.04.15.43.05;	author svnexp;	state Exp;
branches;
next	1.2;

1.2
date	2012.12.24.11.19.55;	author svnexp;	state Exp;
branches;
next	1.1;

1.1
date	2012.12.23.21.50.01;	author svnexp;	state Exp;
branches;
next	;


desc
@@


1.3
log
@## SVN ## Exported commit - http://svnweb.freebsd.org/changeset/base/309931
## SVN ## CVS IS DEPRECATED: http://wiki.freebsd.org/CvsIsDeprecated
## SVN ##
## SVN ## ------------------------------------------------------------------------
## SVN ## r309931 | rene | 2013-01-04 15:25:41 +0000 (Fri, 04 Jan 2013) | 4 lines
## SVN ##
## SVN ## Enable the CHERRYPY option by default and bump PORTREVISION
## SVN ##
## SVN ## The client of the upcoming spotify-websocket-api port needs this.
## SVN ##
## SVN ## ------------------------------------------------------------------------
## SVN ##
@
text
@# Created by: rene@@FreeBSD.org
# $FreeBSD: head/www/py-ws4py/Makefile 309931 2013-01-04 15:25:41Z rene $

PORTNAME=	ws4py
PORTVERSION=	0.2.4
PORTREVISION=	1
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

USE_PYTHON=	yes
USE_PYDISTUTILS=	easy_install

OPTIONSFILE=	${PORT_DBDIR}/py-${PORTNAME}/options
OPTIONS_DEFINE=	CHERRYPY GEVENT TORNADO
OPTIONS_DEFAULT=	CHERRYPY 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
.endif

.if ${PORT_OPTIONS:MGEVENT}
RUN_DEPENDS+=	${PYTHON_PKGNAMEPREFIX}gevent>=0.13.6:${PORTSDIR}/devel/py-gevent
.endif

.if ${PORT_OPTIONS:MTORNADO}
RUN_DEPENDS+=	${PYTHON_PKGNAMEPREFIX}tornado>=2.0:${PORTSDIR}/www/py-tornado
.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:
.if ! ${PORT_OPTIONS:MCHERRYPY} || ! ${PORT_OPTIONS:MGEVENT} || ! ${PORT_OPTIONS:MTORNADO}
	@@${ECHO_MSG}
	@@${ECHO_MSG} "Note that the following files are not installed:"
.endif
.if ! ${PORT_OPTIONS:MCHERRYPY}
	@@${ECHO_MSG} ${CHERRYPY_FILES}
.endif
.if ! ${PORT_OPTIONS:MGEVENT}
	@@${ECHO_MSG} ${GEVENT_FILES}
.endif
.if ! ${PORT_OPTIONS:MTORNADO}
	@@${ECHO_MSG} ${TORNADO_FILES}
.endif

.include <bsd.port.mk>
@


1.2
log
@## SVN ## Exported commit - http://svnweb.freebsd.org/changeset/base/309454
## SVN ## CVS IS DEPRECATED: http://wiki.freebsd.org/CvsIsDeprecated
## SVN ##
## SVN ## ------------------------------------------------------------------------
## SVN ## r309454 | rene | 2012-12-24 10:50:25 +0000 (Mon, 24 Dec 2012) | 4 lines
## SVN ##
## SVN ## Sanitize printing of optionally non-installed files.
## SVN ##
## SVN ## Inspired by:	crees
## SVN ##
## SVN ## ------------------------------------------------------------------------
## SVN ##
@
text
@d2 1
a2 1
# $FreeBSD: head/www/py-ws4py/Makefile 309454 2012-12-24 10:50:25Z rene $
d6 1
d22 1
a22 1
OPTIONS_DEFAULT=	GEVENT
@


1.1
log
@## SVN ## Exported commit - http://svnweb.freebsd.org/changeset/base/309446
## SVN ## CVS IS DEPRECATED: http://wiki.freebsd.org/CvsIsDeprecated
## SVN ##
## SVN ## ------------------------------------------------------------------------
## SVN ## r309446 | rene | 2012-12-23 20:22:37 +0000 (Sun, 23 Dec 2012) | 7 lines
## SVN ##
## SVN ## ws4py is a Python package implementing the WebSocket protocol as defined
## SVN ## in RFC 6455.  It provides client and server implementations alike that
## SVN ## can be using different techniques like threads, micro-threads,
## SVN ## or event loops.
## SVN ##
## SVN ## WWW:	http://www.defuze.org/oss/ws4py/docs/
## SVN ##
## SVN ## ------------------------------------------------------------------------
## SVN ##
@
text
@d2 1
a2 1
# $FreeBSD: head/www/py-ws4py/Makefile 309446 2012-12-23 20:22:37Z rene $
a15 2
SUB_FILES=	pkg-message

a33 3
SUB_LIST+=	MSG_NO_CHERRYPY=
.else
SUB_LIST+=	MSG_NO_CHERRYPY="${CHERRYPY_FILES}"
a37 3
SUB_LIST+=	MSG_NO_GEVENT=
.else
SUB_LIST+=	MSG_NO_GEVENT="${GEVENT_FILES}"
a41 10
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=
d63 13
a75 1
	@@${CAT} ${PKGMESSAGE}
@

