Skip to content

Commit

Permalink
devel/py-lsprotocol: New port: Python implementation of the Language …
Browse files Browse the repository at this point in the history
…Server Protocol
  • Loading branch information
yurivict committed Dec 28, 2022
1 parent ee5ed3e commit 26e5532
Show file tree
Hide file tree
Showing 4 changed files with 37 additions and 0 deletions.
1 change: 1 addition & 0 deletions devel/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -4792,6 +4792,7 @@
SUBDIR += py-logzero
SUBDIR += py-louie
SUBDIR += py-lru-dict
SUBDIR += py-lsprotocol
SUBDIR += py-lunardate
SUBDIR += py-lxml
SUBDIR += py-lxml-stubs
Expand Down
30 changes: 30 additions & 0 deletions devel/py-lsprotocol/Makefile
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
PORTNAME= lsprotocol
PORTVERSION= 2022.0.0a9
CATEGORIES= devel python
MASTER_SITES= CHEESESHOP
PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX}

MAINTAINER= yuri@FreeBSD.org
COMMENT= Python implementation of the Language Server Protocol
WWW= https://github.com/microsoft/lsprotocol

LICENSE= MIT
LICENSE_FILE= ${WRKSRC}/LICENSE

PY_DEPENDS= ${PYTHON_PKGNAMEPREFIX}attrs>=22.1.0:devel/py-attrs@${PY_FLAVOR} \
${PYTHON_PKGNAMEPREFIX}cattrs>=22.2.0:devel/py-cattrs@${PY_FLAVOR} \
${PYTHON_PKGNAMEPREFIX}exceptiongroup>0:devel/py-exceptiongroup@${PY_FLAVOR} \
${PYTHON_PKGNAMEPREFIX}typing-extensions>=4.4.0:devel/py-typing-extensions@${PY_FLAVOR}
BUILD_DEPENDS= ${PY_DEPENDS}
RUN_DEPENDS= ${PY_DEPENDS}

USES= python:3.7+
USE_PYTHON= distutils autoplist concurrent

pre-configure:
@( \
${ECHO} "from setuptools import setup" && \
${ECHO} "setup()" \
) > ${WRKSRC}/setup.py

.include <bsd.port.mk>
3 changes: 3 additions & 0 deletions devel/py-lsprotocol/distinfo
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
TIMESTAMP = 1672212914
SHA256 (lsprotocol-2022.0.0a9.tar.gz) = db81eafc80485a6052f6771aaf6fb9cef58cb6409d510c60132f12c6e91d9182
SIZE (lsprotocol-2022.0.0a9.tar.gz) = 72265
3 changes: 3 additions & 0 deletions devel/py-lsprotocol/pkg-descr
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
lsprotocol is a python implementation of object types used in the
Language Server Protocol (LSP). This repository contains the code
generator and the generated types for LSP.

0 comments on commit 26e5532

Please sign in to comment.