mirror of
https://git.freebsd.org/ports.git
synced 2025-07-14 07:49:16 -04:00
37 lines
931 B
Makefile
37 lines
931 B
Makefile
# Created by: Kubilay Kocak <koobs@FreeBSD.org>
|
|
# $FreeBSD$
|
|
|
|
PORTNAME= aiohttp
|
|
PORTVERSION= 0.9.0
|
|
CATEGORIES= www python
|
|
MASTER_SITES= CHEESESHOP
|
|
PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX}
|
|
|
|
MAINTAINER= koobs@FreeBSD.org
|
|
COMMENT= HTTP client/server for asyncio
|
|
|
|
LICENSE= BSD2CLAUSE
|
|
LICENSE_FILE= ${WRKSRC}/LICENSE.txt
|
|
|
|
TEST_DEPENDS:= ${RUN_DEPENDS} \
|
|
${PYTHON_PKGNAMEPREFIX}nose>0:${PORTSDIR}/devel/py-nose \
|
|
${PYTHON_PKGNAMEPREFIX}gunicorn>0:${PORTSDIR}/www/py-gunicorn \
|
|
${PYTHON_PKGNAMEPREFIX}chardet>0:${PORTSDIR}/textproc/py-chardet
|
|
|
|
OPTIONS_DEFINE= TESTS
|
|
TESTS_DESC= Install tools for test suite
|
|
TESTS_BUILD_DEPENDS= ${TEST_DEPENDS}
|
|
|
|
USES= python:3.3+
|
|
USE_PYTHON= autoplist distutils
|
|
|
|
.include <bsd.port.pre.mk>
|
|
|
|
.if ${PYTHON_REL} < 340
|
|
RUN_DEPENDS+= ${PYTHON_PKGNAMEPREFIX}asyncio>0:${PORTSDIR}/devel/py-asyncio
|
|
.endif
|
|
|
|
regression-test: build
|
|
@cd ${WRKSRC} && ${PYTHON_CMD} ${PYSETUP} test
|
|
|
|
.include <bsd.port.post.mk>
|