Files
gentoo/dev-libs/tree-sitter-css/tree-sitter-css-0.25.0-r1.ebuild
2026-09-30 00:13:51 +02:00

33 lines
647 B
Bash

# Copyright 1999-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="CSS grammar for Tree-sitter"
HOMEPAGE="https://github.com/tree-sitter/tree-sitter-css"
LICENSE="MIT"
SLOT="0"
KEYWORDS="amd64 ~riscv"
PATCHES=(
# https://bugs.gentoo.org/928010
# Test name beginning with :: is incompatible with tree-sitter >0.22
"${FILESDIR}"/${PN}-0.20.0-test-selector.patch
)
src_test() {
tree-sitter-grammar_src_test
use python && distutils-r1_src_test
}
python_test() {
epytest bindings/python/tests
}