diff options
Diffstat (limited to 'textproc/py-tree-sitter-language-pack/Makefile')
-rw-r--r-- | textproc/py-tree-sitter-language-pack/Makefile | 28 |
1 files changed, 28 insertions, 0 deletions
diff --git a/textproc/py-tree-sitter-language-pack/Makefile b/textproc/py-tree-sitter-language-pack/Makefile new file mode 100644 index 000000000000..1f8b50a300d5 --- /dev/null +++ b/textproc/py-tree-sitter-language-pack/Makefile @@ -0,0 +1,28 @@ +PORTNAME= tree-sitter-language-pack +DISTVERSION= 0.9.1 +CATEGORIES= textproc python +MASTER_SITES= PYPI +PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX} +DISTNAME= ${PORTNAME:S/-/_/g}-${PORTVERSION} + +MAINTAINER= yuri@FreeBSD.org +COMMENT= Tree-sitter: Collection of 160+ tree-sitter language parsers +WWW= https://github.com/Goldziher/tree-sitter-language-pack + +LICENSE= APACHE20 + +BUILD_DEPENDS= ${PY_SETUPTOOLS} \ + ${PYTHON_PKGNAMEPREFIX}typing-extensions>0:devel/py-typing-extensions@${PY_FLAVOR} \ + ${PYTHON_PKGNAMEPREFIX}wheel>0:devel/py-wheel@${PY_FLAVOR} +RUN_DEPENDS= ${PYTHON_PKGNAMEPREFIX}tree-sitter023==0.23.2:devel/py-tree-sitter023@${PY_FLAVOR} + +USES= python +USE_PYTHON= pep517 cython3 autoplist pytest + +TEST_ENV= ${MAKE_ENV} PYTHONPATH=${STAGEDIR}${PYTHONPREFIX_SITELIBDIR} +TEST_WRKSRC= ${WRKSRC}/tests + +post-install: + @${FIND} ${STAGEDIR}${PYTHON_SITELIBDIR} -name '*.so' -exec ${STRIP_CMD} {} + + +.include <bsd.port.mk> |