git: 450393a38b4f - main - devel/py-tree-sitter-python: Add py-tree-sitter-python 0.25.0

From: Po-Chuan Hsieh <sunpoet_at_FreeBSD.org>
Date: Mon, 13 Oct 2025 06:28:53 UTC
The branch main has been updated by sunpoet:

URL: https://cgit.FreeBSD.org/ports/commit/?id=450393a38b4f857fd664af3f8ba667465382a8df

commit 450393a38b4f857fd664af3f8ba667465382a8df
Author:     Po-Chuan Hsieh <sunpoet@FreeBSD.org>
AuthorDate: 2025-10-13 06:11:07 +0000
Commit:     Po-Chuan Hsieh <sunpoet@FreeBSD.org>
CommitDate: 2025-10-13 06:11:07 +0000

    devel/py-tree-sitter-python: Add py-tree-sitter-python 0.25.0
    
    tree-sitter-python provides Python grammar for tree-sitter.
---
 devel/Makefile                        |  1 +
 devel/py-tree-sitter-python/Makefile  | 24 ++++++++++++++++++++++++
 devel/py-tree-sitter-python/distinfo  |  3 +++
 devel/py-tree-sitter-python/pkg-descr |  1 +
 4 files changed, 29 insertions(+)

diff --git a/devel/Makefile b/devel/Makefile
index 85db7519a2ca..b3cc4074c67a 100644
--- a/devel/Makefile
+++ b/devel/Makefile
@@ -6109,6 +6109,7 @@
     SUBDIR += py-tree-format
     SUBDIR += py-tree-sitter
     SUBDIR += py-tree-sitter-languages
+    SUBDIR += py-tree-sitter-python
     SUBDIR += py-tree-sitter023
     SUBDIR += py-treelib
     SUBDIR += py-trimesh
diff --git a/devel/py-tree-sitter-python/Makefile b/devel/py-tree-sitter-python/Makefile
new file mode 100644
index 000000000000..2a438c2c7433
--- /dev/null
+++ b/devel/py-tree-sitter-python/Makefile
@@ -0,0 +1,24 @@
+PORTNAME=	tree-sitter-python
+PORTVERSION=	0.25.0
+CATEGORIES=	devel python
+MASTER_SITES=	PYPI
+PKGNAMEPREFIX=	${PYTHON_PKGNAMEPREFIX}
+DISTNAME=	tree_sitter_python-${PORTVERSION}
+
+MAINTAINER=	sunpoet@FreeBSD.org
+COMMENT=	Python grammar for tree-sitter
+WWW=		https://github.com/tree-sitter/tree-sitter-python
+
+LICENSE=	MIT
+LICENSE_FILE=	${WRKSRC}/LICENSE
+
+BUILD_DEPENDS=	${PYTHON_PKGNAMEPREFIX}setuptools>=62.4.0:devel/py-setuptools@${PY_FLAVOR} \
+		${PYTHON_PKGNAMEPREFIX}wheel>=0:devel/py-wheel@${PY_FLAVOR}
+
+USES=		python
+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-python/distinfo b/devel/py-tree-sitter-python/distinfo
new file mode 100644
index 000000000000..3182e8f722ef
--- /dev/null
+++ b/devel/py-tree-sitter-python/distinfo
@@ -0,0 +1,3 @@
+TIMESTAMP = 1759816480
+SHA256 (tree_sitter_python-0.25.0.tar.gz) = b13e090f725f5b9c86aa455a268553c65cadf325471ad5b65cd29cac8a1a68ac
+SIZE (tree_sitter_python-0.25.0.tar.gz) = 159845
diff --git a/devel/py-tree-sitter-python/pkg-descr b/devel/py-tree-sitter-python/pkg-descr
new file mode 100644
index 000000000000..ed45ea510265
--- /dev/null
+++ b/devel/py-tree-sitter-python/pkg-descr
@@ -0,0 +1 @@
+tree-sitter-python provides Python grammar for tree-sitter.