git: 514608115568 - main - www/py-httpcore: Add SOCKS option

From: Po-Chuan Hsieh <sunpoet_at_FreeBSD.org>
Date: Tue, 25 Jan 2022 20:16:50 UTC
The branch main has been updated by sunpoet:

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

commit 514608115568ed1f986c66acb9b0ad179eadf51b
Author:     Po-Chuan Hsieh <sunpoet@FreeBSD.org>
AuthorDate: 2022-01-25 20:16:39 +0000
Commit:     Po-Chuan Hsieh <sunpoet@FreeBSD.org>
CommitDate: 2022-01-25 20:16:39 +0000

    www/py-httpcore: Add SOCKS option
---
 www/py-httpcore/Makefile | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/www/py-httpcore/Makefile b/www/py-httpcore/Makefile
index 9f698ab10952..09f4cdc1b012 100644
--- a/www/py-httpcore/Makefile
+++ b/www/py-httpcore/Makefile
@@ -22,10 +22,11 @@ USE_PYTHON=	autoplist concurrent distutils
 
 NO_ARCH=	yes
 
-OPTIONS_DEFINE=	HTTP2
+OPTIONS_DEFINE=	HTTP2 SOCKS
 OPTIONS_DEFAULT=HTTP2
 HTTP2_DESC=	HTTP/2 support
 
 HTTP2_RUN_DEPENDS=	${PYTHON_PKGNAMEPREFIX}h2>=3<5:www/py-h2@${PY_FLAVOR}
+SOCKS_RUN_DEPENDS=	${PYTHON_PKGNAMEPREFIX}socksio>=1<2:net/py-socksio@${PY_FLAVOR}
 
 .include <bsd.port.mk>