git: a359b7c98d25 - main - devel/py-tree-sitter-bash: Add py-tree-sitter-bash 0.25.0
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Sun, 19 Oct 2025 00:01:36 UTC
The branch main has been updated by sunpoet:
URL: https://cgit.FreeBSD.org/ports/commit/?id=a359b7c98d25e41f564cb11963425c27536a85b6
commit a359b7c98d25e41f564cb11963425c27536a85b6
Author: Po-Chuan Hsieh <sunpoet@FreeBSD.org>
AuthorDate: 2025-10-18 23:45:52 +0000
Commit: Po-Chuan Hsieh <sunpoet@FreeBSD.org>
CommitDate: 2025-10-18 23:45:52 +0000
devel/py-tree-sitter-bash: Add py-tree-sitter-bash 0.25.0
tree-sitter-bash provides Bash grammar for tree-sitter.
---
devel/Makefile | 1 +
devel/py-tree-sitter-bash/Makefile | 24 ++++++++++++++++++++++++
devel/py-tree-sitter-bash/distinfo | 3 +++
devel/py-tree-sitter-bash/pkg-descr | 1 +
4 files changed, 29 insertions(+)
diff --git a/devel/Makefile b/devel/Makefile
index 34937bd861ec..c63fee4954a5 100644
--- a/devel/Makefile
+++ b/devel/Makefile
@@ -6113,6 +6113,7 @@
SUBDIR += py-transitions
SUBDIR += py-tree-format
SUBDIR += py-tree-sitter
+ SUBDIR += py-tree-sitter-bash
SUBDIR += py-tree-sitter-languages
SUBDIR += py-tree-sitter-python
SUBDIR += py-tree-sitter023
diff --git a/devel/py-tree-sitter-bash/Makefile b/devel/py-tree-sitter-bash/Makefile
new file mode 100644
index 000000000000..c824db3e2996
--- /dev/null
+++ b/devel/py-tree-sitter-bash/Makefile
@@ -0,0 +1,24 @@
+PORTNAME= tree-sitter-bash
+PORTVERSION= 0.25.0
+CATEGORIES= devel python
+MASTER_SITES= PYPI
+PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX}
+DISTNAME= tree_sitter_bash-${PORTVERSION}
+
+MAINTAINER= sunpoet@FreeBSD.org
+COMMENT= Bash grammar for tree-sitter
+WWW= https://github.com/tree-sitter/tree-sitter-bash
+
+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-bash/distinfo b/devel/py-tree-sitter-bash/distinfo
new file mode 100644
index 000000000000..095c5db4ac59
--- /dev/null
+++ b/devel/py-tree-sitter-bash/distinfo
@@ -0,0 +1,3 @@
+TIMESTAMP = 1759774501
+SHA256 (tree_sitter_bash-0.25.0.tar.gz) = 6b6410ea5f54abe8780e4b260b01adbfec3a0729907c7a62a3448f670010e72e
+SIZE (tree_sitter_bash-0.25.0.tar.gz) = 426005
diff --git a/devel/py-tree-sitter-bash/pkg-descr b/devel/py-tree-sitter-bash/pkg-descr
new file mode 100644
index 000000000000..1b01de2b4cbd
--- /dev/null
+++ b/devel/py-tree-sitter-bash/pkg-descr
@@ -0,0 +1 @@
+tree-sitter-bash provides Bash grammar for tree-sitter.