git: 307ac536c54e - main - devel/py-tree-sitter-yaml: Add py-tree-sitter-yaml 0.7.2
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Sun, 19 Oct 2025 00:01:42 UTC
The branch main has been updated by sunpoet:
URL: https://cgit.FreeBSD.org/ports/commit/?id=307ac536c54e1297c72d25d913569e4af92cc76c
commit 307ac536c54e1297c72d25d913569e4af92cc76c
Author: Po-Chuan Hsieh <sunpoet@FreeBSD.org>
AuthorDate: 2025-10-18 23:46:02 +0000
Commit: Po-Chuan Hsieh <sunpoet@FreeBSD.org>
CommitDate: 2025-10-18 23:46:02 +0000
devel/py-tree-sitter-yaml: Add py-tree-sitter-yaml 0.7.2
tree-sitter-yaml provides a tree-sitter parser for YAML files.
---
devel/Makefile | 1 +
devel/py-tree-sitter-yaml/Makefile | 24 ++++++++++++++++++++++++
devel/py-tree-sitter-yaml/distinfo | 3 +++
devel/py-tree-sitter-yaml/pkg-descr | 1 +
4 files changed, 29 insertions(+)
diff --git a/devel/Makefile b/devel/Makefile
index 7bbe005ed967..a643f04918c2 100644
--- a/devel/Makefile
+++ b/devel/Makefile
@@ -6120,6 +6120,7 @@
SUBDIR += py-tree-sitter-languages
SUBDIR += py-tree-sitter-python
SUBDIR += py-tree-sitter-regex
+ SUBDIR += py-tree-sitter-yaml
SUBDIR += py-tree-sitter023
SUBDIR += py-treelib
SUBDIR += py-trimesh
diff --git a/devel/py-tree-sitter-yaml/Makefile b/devel/py-tree-sitter-yaml/Makefile
new file mode 100644
index 000000000000..ea549201c5c1
--- /dev/null
+++ b/devel/py-tree-sitter-yaml/Makefile
@@ -0,0 +1,24 @@
+PORTNAME= tree-sitter-yaml
+PORTVERSION= 0.7.2
+CATEGORIES= devel python
+MASTER_SITES= PYPI
+PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX}
+DISTNAME= tree_sitter_yaml-${PORTVERSION}
+
+MAINTAINER= sunpoet@FreeBSD.org
+COMMENT= YAML grammar for tree-sitter
+WWW= https://github.com/tree-sitter-grammars/tree-sitter-yaml
+
+LICENSE= MIT
+LICENSE_FILE= ${WRKSRC}/LICENSE
+
+BUILD_DEPENDS= ${PYTHON_PKGNAMEPREFIX}setuptools>=42:devel/py-setuptools@${PY_FLAVOR} \
+ ${PYTHON_PKGNAMEPREFIX}wheel>=0:devel/py-wheel@${PY_FLAVOR}
+
+USES= python:3.10+
+USE_PYTHON= autoplist concurrent pep517
+
+post-install:
+ ${FIND} ${STAGEDIR}${PYTHON_SITELIBDIR} -name '*.so' -exec ${STRIP_CMD} {} +
+
+.include <bsd.port.mk>
diff --git a/devel/py-tree-sitter-yaml/distinfo b/devel/py-tree-sitter-yaml/distinfo
new file mode 100644
index 000000000000..e66152bf0d79
--- /dev/null
+++ b/devel/py-tree-sitter-yaml/distinfo
@@ -0,0 +1,3 @@
+TIMESTAMP = 1759774511
+SHA256 (tree_sitter_yaml-0.7.2.tar.gz) = 756db4c09c9d9e97c81699e8f941cb8ce4e51104927f6090eefe638ee567d32c
+SIZE (tree_sitter_yaml-0.7.2.tar.gz) = 84882
diff --git a/devel/py-tree-sitter-yaml/pkg-descr b/devel/py-tree-sitter-yaml/pkg-descr
new file mode 100644
index 000000000000..32e80dbdd778
--- /dev/null
+++ b/devel/py-tree-sitter-yaml/pkg-descr
@@ -0,0 +1 @@
+tree-sitter-yaml provides a tree-sitter parser for YAML files.