aboutsummaryrefslogtreecommitdiffstats
path: root/devel/py-tree-sitter-python/Makefile
diff options
context:
space:
mode:
authorLexi Winter <ivy@FreeBSD.org>2025-12-01 03:19:41 +0000
committerLexi Winter <ivy@FreeBSD.org>2025-12-01 03:19:41 +0000
commit2e80774d0b20d167bc0a9e2b63dafbfb171c0d22 (patch)
tree25f0138e1af8902b92dacc8cce09b267447c17db /devel/py-tree-sitter-python/Makefile
parentf85f2b2d6e5b7ed869376eb4b180c3a74a5c5da9 (diff)
parent1a30da80670973368b399f2b01fe9c04b91a1273 (diff)
Merge remote-tracking branch 'freebsd/main' into lf/mainlf/main
Diffstat (limited to 'devel/py-tree-sitter-python/Makefile')
-rw-r--r--devel/py-tree-sitter-python/Makefile24
1 files changed, 24 insertions, 0 deletions
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>