Po-Chuan Hsieh 450393a38b
devel/py-tree-sitter-python: Add py-tree-sitter-python 0.25.0
tree-sitter-python provides Python grammar for tree-sitter.
2025-10-13 14:11:07 +08:00

25 lines
678 B
Makefile

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>