svn commit: r554249 - head/www/py-google-resumable-media
Sunpoet Po-Chuan Hsieh
sunpoet at FreeBSD.org
Fri Nov 6 11:28:23 UTC 2020
Author: sunpoet
Date: Fri Nov 6 11:28:19 2020
New Revision: 554249
URL: https://svnweb.freebsd.org/changeset/ports/554249
Log:
Add AIOHTTP option
- Bump PORTREVISION for dependency change
Modified:
head/www/py-google-resumable-media/Makefile
Modified: head/www/py-google-resumable-media/Makefile
==============================================================================
--- head/www/py-google-resumable-media/Makefile Fri Nov 6 11:28:12 2020 (r554248)
+++ head/www/py-google-resumable-media/Makefile Fri Nov 6 11:28:19 2020 (r554249)
@@ -2,6 +2,7 @@
PORTNAME= google-resumable-media
PORTVERSION= 1.1.0
+PORTREVISION= 1
CATEGORIES= www python
MASTER_SITES= CHEESESHOP
PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX}
@@ -15,12 +16,13 @@ LICENSE_FILE= ${WRKSRC}/LICENSE
RUN_DEPENDS= ${PYTHON_PKGNAMEPREFIX}six>=0:devel/py-six@${PY_FLAVOR}
USES= python
-USE_PYTHON= distutils concurrent autoplist
+USE_PYTHON= autoplist concurrent distutils
NO_ARCH= yes
-OPTIONS_DEFINE= REQUESTS
-OPTIONS_DEFAULT=REQUESTS
+OPTIONS_DEFINE= AIOHTTP REQUESTS
+OPTIONS_DEFAULT=AIOHTTP REQUESTS
+AIOHTTP_DESC= Use aiohttp
REQUESTS_DESC= Use requests
REQUESTS_RUN_DEPENDS= ${PYTHON_PKGNAMEPREFIX}requests>=2.18.0:www/py-requests@${PY_FLAVOR}
@@ -33,6 +35,10 @@ RUN_DEPENDS+= ${PYTHON_PKGNAMEPREFIX}crcmod>=1.7:devel
.if ${PYTHON_REL} >= 3500
RUN_DEPENDS+= ${PYTHON_PKGNAMEPREFIX}google-crc32c>=1.0<2.0:devel/py-google-crc32c@${PY_FLAVOR}
+.endif
+
+.if ${PORT_OPTIONS:MAIOHTTP} && ${PYTHON_REL} >= 3600
+RUN_DEPENDS+= ${PYTHON_PKGNAMEPREFIX}aiohttp>=3.6.2<4.0.0:www/py-aiohttp@${PY_FLAVOR}
.endif
.include <bsd.port.post.mk>
More information about the svn-ports-head
mailing list