mirror of
https://git.FreeBSD.org/ports.git
synced 2025-02-06 11:41:52 +00:00
35 lines
858 B
Makefile
35 lines
858 B
Makefile
# Created by: Guixing Bai<khsing.cn@gmail.com>
|
|
# $FreeBSD$
|
|
|
|
PORTNAME= tornado
|
|
PORTVERSION= 4.1
|
|
PORTREVISION= 1
|
|
CATEGORIES= www python
|
|
MASTER_SITES= CHEESESHOP
|
|
PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX}
|
|
|
|
MAINTAINER= khsing.cn@gmail.com
|
|
COMMENT= Python Web Server from FriendFeed
|
|
|
|
LICENSE= APACHE20
|
|
|
|
RUN_DEPENDS= ${PYTHON_PKGNAMEPREFIX}certifi>0:${PORTSDIR}/security/py-certifi
|
|
|
|
USES= python
|
|
USE_PYTHON= distutils autoplist
|
|
|
|
.include <bsd.port.pre.mk>
|
|
|
|
.if ${PYTHON_REL} < 300
|
|
RUN_DEPENDS+= ${PYTHON_PKGNAMEPREFIX}backports.ssl_match_hostname>0:${PORTSDIR}/security/py-backports.ssl_match_hostname \
|
|
${PYTHON_PKGNAMEPREFIX}futures>0:${PORTSDIR}/devel/py-futures
|
|
.endif
|
|
|
|
post-build:
|
|
@${FIND} ${WRKSRC}/build -name speedups.so -exec ${STRIP_CMD} {} \;
|
|
|
|
regression-test: build
|
|
@cd ${WRKSRC} && ${PYTHON_CMD} -m tornado.test.runtests
|
|
|
|
.include <bsd.port.post.mk>
|