Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 6 Nov 2020 11:28:19 +0000 (UTC)
From:      Sunpoet Po-Chuan Hsieh <sunpoet@FreeBSD.org>
To:        ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org
Subject:   svn commit: r554249 - head/www/py-google-resumable-media
Message-ID:  <202011061128.0A6BSJLQ098149@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
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>



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?202011061128.0A6BSJLQ098149>