mirror of
https://github.com/gentoo-mirror/gentoo.git
synced 2026-11-23 11:17:21 -08:00
Closes: https://bugs.gentoo.org/983489 Signed-off-by: Alfredo Tupone <tupone@gentoo.org>
33 lines
647 B
Bash
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
|
|
}
|