git: d139a74c6d81 - main - www/py-requests-aws4auth: Add HTTPX option

From: Po-Chuan Hsieh <sunpoet_at_FreeBSD.org>
Date: Mon, 18 Apr 2022 00:02:31 UTC
The branch main has been updated by sunpoet:

URL: https://cgit.FreeBSD.org/ports/commit/?id=d139a74c6d81b876ab29a560500d38428c647593

commit d139a74c6d81b876ab29a560500d38428c647593
Author:     Po-Chuan Hsieh <sunpoet@FreeBSD.org>
AuthorDate: 2022-04-17 23:45:49 +0000
Commit:     Po-Chuan Hsieh <sunpoet@FreeBSD.org>
CommitDate: 2022-04-17 23:58:26 +0000

    www/py-requests-aws4auth: Add HTTPX option
---
 www/py-requests-aws4auth/Makefile | 5 +++++
 1 file changed, 5 insertions(+)

diff --git a/www/py-requests-aws4auth/Makefile b/www/py-requests-aws4auth/Makefile
index db30cfe4051a..eef696c0f245 100644
--- a/www/py-requests-aws4auth/Makefile
+++ b/www/py-requests-aws4auth/Makefile
@@ -20,4 +20,9 @@ USE_PYTHON=	autoplist concurrent distutils
 
 NO_ARCH=	yes
 
+OPTIONS_DEFINE=	HTTPX
+HTTPX_DESC=	HTTP client support via httpx
+
+HTTPX__RUN_DEPENDS=	${PYTHON_PKGNAMEPREFIX}httpx>=0:www/py-httpx@${PY_FLAVOR}
+
 .include <bsd.port.mk>