From 1fb9daef87ffc3f1911e020da3dde8a7c8d07fe3 Mon Sep 17 00:00:00 2001 From: Matoro Mahri Date: Fri, 2 Dec 2022 11:26:55 -0500 Subject: [PATCH] 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 Closes: https://github.com/gentoo/gentoo/pull/28529 Signed-off-by: Matthew Smith --- 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 dd30458513773..654df3497df32 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"