landry dc061d33b6 Add python3 FLAVOR, required by upcoming buildbot switch to python3
Disable tests with python3, this requires an update to py-unittest2
(which hasnt been updated since 2010) which in turn requires traceback2
and linebreak2, and at that point i stopped looking.
2018-06-23 21:33:07 +00:00

35 lines
666 B
Makefile

# $OpenBSD: Makefile,v 1.2 2018/06/23 21:33:07 landry Exp $
COMMENT = WebSocket client & server library, WAMP real-time framework
MODPY_EGG_VERSION = 17.10.1
DISTNAME = autobahn-${MODPY_EGG_VERSION}
PKGNAME = py-${DISTNAME}
REVISION = 0
CATEGORIES = www
HOMEPAGE = https://github.com/crossbario/autobahn-python
# MIT
PERMIT_PACKAGE_CDROM = Yes
MODPY_PI = Yes
MODULES = lang/python
MODPY_SETUPTOOLS = Yes
FLAVORS = python3
FLAVOR ?=
BUILD_DEPENDS = devel/py-txaio
.if empty (FLAVOR)
TEST_DEPENDS = devel/py-unittest2 \
devel/py-trollius
.else
# requires an update to unittest and then traceback2 and linecache2
NO_TEST = Yes
.endif
.include <bsd.port.mk>