Changeset View
Changeset View
Standalone View
Standalone View
www/py-autobahn/Makefile
# Created by: Kubilay Kocak <koobs@FreeBSD.org> | # Created by: Kubilay Kocak <koobs@FreeBSD.org> | ||||
# $FreeBSD$ | # $FreeBSD$ | ||||
PORTNAME= autobahn | PORTNAME= autobahn | ||||
PORTVERSION= 0.17.2 | PORTVERSION= 17.9.3 | ||||
DISTVERSIONPREFIX= v | DISTVERSIONPREFIX= v | ||||
CATEGORIES= www python | CATEGORIES= www python | ||||
PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX} | PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX} | ||||
MAINTAINER= koobs@FreeBSD.org | MAINTAINER= koobs@FreeBSD.org | ||||
COMMENT= WebSocket client & server library, WAMP real-time framework | COMMENT= WebSocket client & server library, WAMP real-time framework | ||||
LICENSE= BSD2CLAUSE | LICENSE= BSD2CLAUSE | ||||
Show All 30 Lines | ACCELERATE_RUN_DEPENDS= ${PYTHON_PKGNAMEPREFIX}wsaccel>=0.6.2:www/py-wsaccel \ | ||||
${PYTHON_PKGNAMEPREFIX}ujson>=1.33:devel/py-ujson | ${PYTHON_PKGNAMEPREFIX}ujson>=1.33:devel/py-ujson | ||||
SERIALIZATION_RUN_DEPENDS= ${PYTHON_PKGNAMEPREFIX}msgpack-python>=0.4.0:devel/py-msgpack-python | SERIALIZATION_RUN_DEPENDS= ${PYTHON_PKGNAMEPREFIX}msgpack-python>=0.4.0:devel/py-msgpack-python | ||||
TWISTED_RUN_DEPENDS= ${PYTHON_PKGNAMEPREFIX}zope.interface>=3.6:devel/py-zope.interface \ | TWISTED_RUN_DEPENDS= ${PYTHON_PKGNAMEPREFIX}zope.interface>=3.6:devel/py-zope.interface \ | ||||
${PYTHON_PKGNAMEPREFIX}twisted>=12.1:devel/py-twisted | ${PYTHON_PKGNAMEPREFIX}twisted>=12.1:devel/py-twisted | ||||
.include <bsd.port.pre.mk> | .include <bsd.port.pre.mk> | ||||
.if ${PORT_OPTIONS:MTWISTED} && ${PYTHON_REL} >= 3000 | |||||
BROKEN= Twisted currently only supports Python 2.x. Disable the TWISTED option and use ASYNCIO instead | |||||
.endif | |||||
.if ${PORT_OPTIONS:MASYNCIO} | .if ${PORT_OPTIONS:MASYNCIO} | ||||
.if ${PYTHON_REL} <= 3000 | .if ${PYTHON_REL} <= 3000 | ||||
BROKEN= ASYNCIO requires Python 3.x. Disable the ASYNCIO option and use TWISTED instead | BROKEN= ASYNCIO requires Python 3.x. Disable the ASYNCIO option and use TWISTED instead | ||||
.elif ${PYTHON_REL} <= 3300 | .elif ${PYTHON_REL} <= 3300 | ||||
RUN_DEPENDS+= ${PYTHON_PKGNAMEPREFIX}asyncio>=3.4.3:devel/py-asyncio | RUN_DEPENDS+= ${PYTHON_PKGNAMEPREFIX}asyncio>=3.4.3:devel/py-asyncio | ||||
.endif | .endif | ||||
.endif | .endif | ||||
do-test: | do-test: | ||||
@cd ${WRKSRC} && ${PYTHON_CMD} -m pytest autobahn | @cd ${WRKSRC} && ${PYTHON_CMD} -m pytest autobahn | ||||
.include <bsd.port.post.mk> | .include <bsd.port.post.mk> |