mirror of
https://git.FreeBSD.org/ports.git
synced 2024-11-26 00:55:14 +00:00
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
This commit is contained in:
parent
1a6a6e34f6
commit
c6206e7adf
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=410169
@ -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>
|
||||
post-install:
|
||||
${STRIP_CMD} ${STAGEDIR}${PYTHONPREFIX_SITELIBDIR}/aiohttp/*.so
|
||||
|
||||
.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
|
||||
|
||||
regression-test: build
|
||||
do-test:
|
||||
@cd ${WRKSRC} && ${PYTHON_CMD} ${PYDISTUTILS_SETUP} test
|
||||
|
||||
.include <bsd.port.post.mk>
|
||||
.include <bsd.port.mk>
|
||||
|
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user