git: 211dd110d4fa - main - devel/py-pygls: Add WS option

From: Po-Chuan Hsieh <sunpoet_at_FreeBSD.org>
Date: Thu, 17 Oct 2024 19:06:44 UTC
The branch main has been updated by sunpoet:

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

commit 211dd110d4fa244275cad4f0326cdc8019dfc1a9
Author:     Po-Chuan Hsieh <sunpoet@FreeBSD.org>
AuthorDate: 2024-10-17 19:03:03 +0000
Commit:     Po-Chuan Hsieh <sunpoet@FreeBSD.org>
CommitDate: 2024-10-17 19:03:03 +0000

    devel/py-pygls: Add WS option
---
 devel/py-pygls/Makefile | 5 +++++
 1 file changed, 5 insertions(+)

diff --git a/devel/py-pygls/Makefile b/devel/py-pygls/Makefile
index efb9d72b0b5e..383246b8747e 100644
--- a/devel/py-pygls/Makefile
+++ b/devel/py-pygls/Makefile
@@ -21,4 +21,9 @@ USE_PYTHON=	autoplist concurrent pep517
 
 NO_ARCH=	yes
 
+OPTIONS_DEFINE=	WS
+WS_DESC=	WebSocket support
+
+WS_RUN_DEPENDS=		${PYTHON_PKGNAMEPREFIX}websockets>=11.0.3:devel/py-websockets@${PY_FLAVOR}
+
 .include <bsd.port.mk>