summaryrefslogtreecommitdiff
path: root/dev-libs/tree-sitter-xml/tree-sitter-xml-0.7.0.ebuild
blob: 033e8c7c0a80e3d7bbcb31c42f7908e20535f687 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
# Copyright 2026 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2

EAPI=8

TS_BINDINGS=( python )

DISTUTILS_OPTIONAL=1
inherit tree-sitter-grammar distutils-r1

DESCRIPTION="HTML grammar for Tree-sitter"
HOMEPAGE="https://github.com/tree-sitter/tree-sitter-html"
SRC_URI="https://github.com/tree-sitter-grammars/${PN}/archive/refs/tags/v${PV}.tar.gz
	-> ${P}.tar.gz"

LICENSE="MIT"
SLOT="0"
KEYWORDS="~amd64"

PATCHES=( "${FILESDIR}"/${P}-make.patch )

src_test() {
	tree-sitter-grammar_src_test

	use python && distutils-r1_src_test
}

python_test() {
	epytest bindings/python/tests
}