Hi,
the ports' INDEX fails to build correctly:
$ make index
[...]
--- describe.x11-wm ---
make_index: /usr/ports/devel/py-monkeytype: no entry for
/usr/ports/devel/py-libcst03
Done.
$
The trouble is that there is no devel/py-libcst03 port yet. A (untested)
patch is attached.
Best
Philipp
diff --git a/devel/Makefile b/devel/Makefile
index 907928eaa837..bb468ee5db5f 100644
--- a/devel/Makefile
+++ b/devel/Makefile
@@ -4762,6 +4762,7 @@
SUBDIR += py-lazy
SUBDIR += py-lazy-object-proxy
SUBDIR += py-libcst
+ SUBDIR += py-libcst03
SUBDIR += py-libioc
SUBDIR += py-libpeas
SUBDIR += py-libplist
diff --git a/devel/py-libcst03/Makefile b/devel/py-libcst03/Makefile
new file mode 100644
index 000000000000..34dc02559b46
--- /dev/null
+++ b/devel/py-libcst03/Makefile
@@ -0,0 +1,24 @@
+PORTNAME= libcst03
+PORTVERSION= 0.3.23
+CATEGORIES= devel python
+MASTER_SITES= CHEESESHOP
+PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX}
+
+MAINTAINER= [email protected]
+COMMENT= Concrete syntax tree with AST-like properties
+WWW= https://github.com/Instagram/LibCST
+
+LICENSE= MIT
+LICENSE_FILE= ${WRKSRC}/LICENSE
+
+BUILD_DEPENDS=
${PYTHON_PKGNAMEPREFIX}setuptools_scm>=0:devel/py-setuptools_scm@${PY_FLAVOR}
+RUN_DEPENDS= ${PYTHON_PKGNAMEPREFIX}yaml>=5.2:devel/py-yaml@${PY_FLAVOR} \
+
${PYTHON_PKGNAMEPREFIX}typing-extensions>=3.7.4.2:devel/py-typing-extensions@${PY_FLAVOR}
\
+
${PYTHON_PKGNAMEPREFIX}typing-inspect>=0.4.0:devel/py-typing-inspect@${PY_FLAVOR}
+
+USES= python:3.6+
+USE_PYTHON= autoplist concurrent distutils
+
+NO_ARCH= yes
+
+.include <bsd.port.mk>
diff --git a/devel/py-libcst03/distinfo b/devel/py-libcst03/distinfo
new file mode 100644
index 000000000000..2425179ba82f
--- /dev/null
+++ b/devel/py-libcst03/distinfo
@@ -0,0 +1,3 @@
+TIMESTAMP = 1638556576
+SHA256 (libcst-0.3.23.tar.gz) =
330f9082a309bad808e283e80845a843200303bb256690185b98ca458a62c4f8
+SIZE (libcst-0.3.23.tar.gz) = 579195
diff --git a/devel/py-libcst03/pkg-descr b/devel/py-libcst03/pkg-descr
new file mode 100644
index 000000000000..74375e1c900e
--- /dev/null
+++ b/devel/py-libcst03/pkg-descr
@@ -0,0 +1,10 @@
+LibCST is a Concrete Syntax Tree (CST) parser and serializer library for
Python.
+
+LibCST parses Python source code as a CST tree that keeps all formatting
details
+(comments, whitespaces, parentheses, etc). It's useful for building automated
+refactoring (codemod) applications and linters.
+
+LibCST creates a compromise between an Abstract Syntax Tree (AST) and a
+traditional Concrete Syntax Tree (CST). By carefully reorganizing and naming
+node types and fields, we've created a lossless CST that looks and feels like
an
+AST.