dev-libs/tree-sitter-cpp: restrict tests

Requires sample files from tree-sitter-c to be available, but these
files are not installed with dev-libs/tree-sitter-c, and are instead
expected to be pulled down via making the tree-sitter-c javascript
wrapper package a dependency in package.json.  However since we invoke
"tree-sitter test" directly rather than via "npm test" the source
package for tree-sitter-c will not be available.

Bug: https://bugs.gentoo.org/844223
Signed-off-by: Matoro Mahri <matoro@users.noreply.github.com>
Closes: https://github.com/gentoo/gentoo/pull/28529
Signed-off-by: Matthew Smith <matthew@gentoo.org>
This commit is contained in:
Matoro Mahri
2022-12-02 11:26:55 -05:00
committed by Matthew Smith
parent 6a060f3c58
commit 1fb9daef87

View File

@@ -11,3 +11,6 @@ HOMEPAGE="https://github.com/tree-sitter/tree-sitter-cpp"
LICENSE="MIT"
SLOT="0"
KEYWORDS="amd64"
# requires test data from tree-sitter-c
RESTRICT="test"