Files
ports/www/py-ws4py/Makefile
T
Sunpoet Po-Chuan Hsieh 33aa371efb Update MASTER_SITES and fix unfetchable
=> ws4py-0.3.4.tar.gz doesn't seem to exist in /usr/ports/distfiles/.
=> Attempting to fetch http://www.defuze.org/oss/ws4py/ws4py-0.3.4.tar.gz
fetch: http://www.defuze.org/oss/ws4py/ws4py-0.3.4.tar.gz: No address record
=> Attempting to fetch http://distcache.twn.FreeBSD.org/local-distfiles/%SUBDIR%/ws4py-0.3.4.tar.gz
fetch: http://distcache.twn.FreeBSD.org/local-distfiles/%SUBDIR%/ws4py-0.3.4.tar.gz: Bad Request
=> Couldn't fetch it - please try to retrieve this
=> port manually into /usr/ports/distfiles/ and try again.
*** Error code 1

Stop.
make: stopped in /usr/ports/www/py-ws4py

Approved by:	portmgr (blanket)
2021-01-26 17:56:16 +00:00

47 lines
1.2 KiB
Makefile

# Created by: rene@FreeBSD.org
# $FreeBSD$
PORTNAME= ws4py
PORTVERSION= 0.3.4
CATEGORIES= www python
MASTER_SITES= CHEESESHOP
PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX}
MAINTAINER= wg@FreeBSD.org
COMMENT= WebSocket package for Python
LICENSE= BSD3CLAUSE
USES= python:3.6+
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@${PY_FLAVOR}
GEVENT_RUN_DEPENDS= ${PYTHON_PKGNAMEPREFIX}gevent>=0.13.8:devel/py-gevent@${PY_FLAVOR}
TORNADO_RUN_DEPENDS= ${PYTHON_PKGNAMEPREFIX}tornado>=3.1:www/py-tornado@${PY_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>