PORTNAME=	tree-sitter
DISTVERSIONPREFIX=	v
DISTVERSION=	0.26.11
CATEGORIES=	devel

# When updating this port, make sure that editors/neovim can
# build against it. Updates may need to be delayed until
# neovim gains support.
MAINTAINER=	adamw@FreeBSD.org
COMMENT=	Incremental parser generator
WWW=		https://tree-sitter.github.io/tree-sitter/

LICENSE=	MIT
LICENSE_FILE=	${WRKSRC}/LICENSE

USES=		gmake
USE_GITHUB=	yes
USE_LDCONFIG=	yes

post-install:
	${STRIP_CMD} ${STAGEDIR}${PREFIX}/lib/libtree-sitter.so.*

.include <bsd.port.mk>
