blob: 67dae774eadf081555c0696342a82510f0accf70 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
|
# Created by: rene@FreeBSD.org
# $FreeBSD$
PORTNAME= ws4py
PORTVERSION= 0.3.4
CATEGORIES= www python
MASTER_SITES= http://www.defuze.org/oss/${PORTNAME}/
PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX}
MAINTAINER= ports@FreeBSD.org
COMMENT= WebSocket package for Python
LICENSE= BSD3CLAUSE
USES= python
USE_PYTHON= distutils autoplist
NO_ARCH= yes
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
CHERRYPY_RUN_DEPENDS= ${PYTHON_PKGNAMEPREFIX}cherrypy>=3.2.2:www/py-cherrypy@${FLAVOR}
GEVENT_RUN_DEPENDS= ${PYTHON_PKGNAMEPREFIX}gevent>=0.13.8:devel/py-gevent@${FLAVOR}
TORNADO_RUN_DEPENDS= ${PYTHON_PKGNAMEPREFIX}tornado>=3.1:www/py-tornado@${FLAVOR}
# Do not install files which will not work
post-patch-CHERRYPY-off:
.for f in test/test_cherrypy.py ws4py/server/cherrypyserver.py
@${RM} ${WRKSRC}/${f}
.endfor
post-patch-GEVENT-off:
.for f in ws4py/client/geventclient.py ws4py/server/geventserver.py
@${RM} ${WRKSRC}/${f}
.endfor
post-patch-TORNADO-off:
.for f in ws4py/client/tornadoclient.py
@${RM} ${WRKSRC}/${f}
.endfor
.include <bsd.port.mk>
|