openbsd-ports/net/py-zmq/Makefile
2013-08-07 21:57:40 +00:00

45 lines
1004 B
Makefile

# $OpenBSD: Makefile,v 1.6 2013/08/07 21:57:59 naddy Exp $
COMMENT = Python bindings for ZeroMQ
MODPY_EGG_VERSION = 13.0.0
DISTNAME = pyzmq-${MODPY_EGG_VERSION}
PKGNAME = ${DISTNAME:S/py/py-/}
REVISION = 0
CATEGORIES = net devel
HOMEPAGE = https://github.com/zeromq/pyzmq/
# LGPLv3
PERMIT_PACKAGE_CDROM = Yes
WANTLIB = ${MODPY_WANTLIB} pthread zmq
MASTER_SITES = ${MASTER_SITE_PYPI:=p/pyzmq/} \
https://github.com/downloads/zeromq/pyzmq/
MODULES = lang/python
LIB_DEPENDS = net/zeromq>=3.2.2 \
${MODPY_LIB_DEPENDS}
RUN_DEPENDS = security/py-paramiko \
devel/py-pexpect
MODPY_DISTUTILS_BUILDARGS = --zmq=${LOCALBASE}
TEST_TARGET = test
# regression tests needs to change default ulimit
# ulimit -n 1024
TEST_DEPENDS += math/py-numpy \
devel/py-nose
do-test:
@cd ${WRKSRC} && ${SETENV} ${MAKE_ENV} \
${MODPY_BIN} ./${MODPY_SETUP} build_ext --inplace
cd ${WRKSRC} && ${SETENV} ${MAKE_ENV} \
${MODPY_BIN} ./${MODPY_SETUP} ${TEST_TARGET}
.include <bsd.port.mk>