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
See: https://github.com/gentoo/gentoo/pull/28529
Signed-off-by: Matoro Mahri <mat...@users.noreply.github.com>
---
 dev-libs/tree-sitter-cpp/tree-sitter-cpp-0.20.0.ebuild | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/dev-libs/tree-sitter-cpp/tree-sitter-cpp-0.20.0.ebuild b/dev-libs/tree-sitter-cpp/tree-sitter-cpp-0.20.0.ebuild
index dd304585137..654df3497df 100644
--- a/dev-libs/tree-sitter-cpp/tree-sitter-cpp-0.20.0.ebuild
+++ b/dev-libs/tree-sitter-cpp/tree-sitter-cpp-0.20.0.ebuild
@@ -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"
--
2.38.1

Reply via email to