ports/devel/py-twisted/Makefile
Wen Heping d9551aec6c - Add missing DEPENDS
PR:		217205
Submitted by:	john@saltant.com
2017-02-19 23:41:22 +00:00

41 lines
1.2 KiB
Makefile

# Created by: Johann Visagie <wjv@FreeBSD.org>
# $FreeBSD$
PORTNAME= twisted
PORTVERSION= 17.1.0
PORTREVISION= 1
CATEGORIES= devel net python
MASTER_SITES= CHEESESHOP
PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX}
DISTNAME= Twisted-${PORTVERSION}
MAINTAINER= python@FreeBSD.org
COMMENT= Asynchronous networking framework written in Python
LICENSE= MIT
LICENSE_FILE= ${WRKSRC}/LICENSE
BUILD_DEPENDS= ${PYTHON_PKGNAMEPREFIX}constantly>=15.1:devel/py-constantly \
${PYTHON_PKGNAMEPREFIX}incremental>=16.10.1:devel/py-incremental
RUN_DEPENDS= ${PYTHON_PKGNAMEPREFIX}zope.interface>=3.6.0:devel/py-zope.interface \
${PYTHON_PKGNAMEPREFIX}constantly>=15.1:devel/py-constantly \
${PYTHON_PKGNAMEPREFIX}incremental>=16.10.1:devel/py-incremental \
${PYTHON_PKGNAMEPREFIX}Automat>=0.3.0:devel/py-Automat
# Actually 2.7,3.3+
USES= python tar:bzip2
USE_PYTHON= autoplist concurrent distutils
.include <bsd.port.pre.mk>
post-install:
.if ${PYTHON_REL} < 3000
${STRIP_CMD} ${STAGEDIR}${PYTHON_SITELIBDIR}/twisted/python/_sendmsg.so
${STRIP_CMD} ${STAGEDIR}${PYTHON_SITELIBDIR}/twisted/runner/portmap.so
.endif
${STRIP_CMD} ${STAGEDIR}${PYTHON_SITELIBDIR}/twisted/test/raiser.so
do-test:
@cd ${WRKSRC} && ${PYTHON_CMD} -m twisted.trial -e twisted
.include <bsd.port.post.mk>