blob: 07bce729ce6c78b9180cc7e493c45a6b7c1867c3 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
|
# Created by: Johann Visagie <wjv@FreeBSD.org>
# $FreeBSD$
PORTNAME= twisted
PORTVERSION= 16.5.0
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
# 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>
|