summaryrefslogtreecommitdiff
path: root/www
diff options
context:
space:
mode:
authorKubilay Kocak <koobs@FreeBSD.org>2016-03-05 11:00:28 +0000
committerKubilay Kocak <koobs@FreeBSD.org>2016-03-05 11:00:28 +0000
commitc6206e7adf22cd421c7254a7e860c23a018ef4c8 (patch)
tree5652a392276e03b519dedc8ffcb91bf8fc0e4cdb /www
parentnet/py-novaclient: update to 3.3.0 (diff)
www/py-aiohttp: Update to 0.21.2, Modernize
- Update PORTVERSION and distinfo checksum (0.21.2) - Switch to py3-chardet (C'mon VARIANTS! :|) - Update TEST_DEPENDS and test target to new framework bits - Remove TESTS option bits accordingly - Update USES:python minimum version - Remove conditional asyncio RUN_DEPENDS accordingly - Strip shared extensions Changes: https://github.com/KeepSafe/aiohttp/blob/v0.21.2/CHANGES.txt
Diffstat (limited to 'www')
-rw-r--r--www/py-aiohttp/Makefile27
-rw-r--r--www/py-aiohttp/distinfo4
2 files changed, 10 insertions, 21 deletions
diff --git a/www/py-aiohttp/Makefile b/www/py-aiohttp/Makefile
index b80ba7de5ed5..a4b0510bc8e6 100644
--- a/www/py-aiohttp/Makefile
+++ b/www/py-aiohttp/Makefile
@@ -2,7 +2,7 @@
# $FreeBSD$
PORTNAME= aiohttp
-PORTVERSION= 0.16.3
+PORTVERSION= 0.21.2
CATEGORIES= www python
MASTER_SITES= CHEESESHOP
PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX}
@@ -13,28 +13,17 @@ COMMENT= HTTP client/server for asyncio
LICENSE= BSD2CLAUSE
LICENSE_FILE= ${WRKSRC}/LICENSE.txt
-RUN_DEPENDS= ${PYTHON_PKGNAMEPREFIX}chardet>0:${PORTSDIR}/textproc/py-chardet
-TEST_DEPENDS:= ${RUN_DEPENDS} \
- ${PYTHON_PKGNAMEPREFIX}nose>0:${PORTSDIR}/devel/py-nose \
+RUN_DEPENDS= ${PYTHON_PKGNAMEPREFIX}chardet>0:${PORTSDIR}/textproc/py3-chardet
+TEST_DEPENDS= ${PYTHON_PKGNAMEPREFIX}pytest>0:${PORTSDIR}/devel/py-pytest \
${PYTHON_PKGNAMEPREFIX}gunicorn>0:${PORTSDIR}/www/py-gunicorn
-OPTIONS_DEFINE= TESTS
-TESTS_DESC= Install test suite requirements
-TESTS_BUILD_DEPENDS= ${TEST_DEPENDS}
-
-USES= python:3.3+
+USES= python:3.4+
USE_PYTHON= autoplist distutils
-.include <bsd.port.pre.mk>
-
-.if ${PYTHON_REL} < 3400
-RUN_DEPENDS+= ${PYTHON_PKGNAMEPREFIX}asyncio>0:${PORTSDIR}/devel/py-asyncio
-.endif
-.if defined(PACKAGE_BUILDING) && ${PYTHON_VER} != ${PYTHON_DEFAULT}
-IGNORE= you have python ${PYTHON_DEFAULT} set as the default, and this needs ${PYTHON_VER}
-.endif
+post-install:
+ ${STRIP_CMD} ${STAGEDIR}${PYTHONPREFIX_SITELIBDIR}/aiohttp/*.so
-regression-test: build
+do-test:
@cd ${WRKSRC} && ${PYTHON_CMD} ${PYDISTUTILS_SETUP} test
-.include <bsd.port.post.mk>
+.include <bsd.port.mk>
diff --git a/www/py-aiohttp/distinfo b/www/py-aiohttp/distinfo
index 7e22ed2b048f..a4fb193b5176 100644
--- a/www/py-aiohttp/distinfo
+++ b/www/py-aiohttp/distinfo
@@ -1,2 +1,2 @@
-SHA256 (aiohttp-0.16.3.tar.gz) = eaf479acc98ffee0a029882465ebf21f3c302e1b94a41b16c8a5a695bc614900
-SIZE (aiohttp-0.16.3.tar.gz) = 1442720
+SHA256 (aiohttp-0.21.2.tar.gz) = 991e574309815036ca36889a8917005bb795522acd2ba9cc870e07c260c092b5
+SIZE (aiohttp-0.21.2.tar.gz) = 528570