summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMatoro Mahri <matoro@users.noreply.github.com>2022-12-02 11:26:55 -0500
committerMatthew Smith <matthew@gentoo.org>2022-12-05 20:00:55 +0000
commit1fb9daef87ffc3f1911e020da3dde8a7c8d07fe3 (patch)
tree151574c0acfa294cecf95c9a6733977553c26552 /dev-libs/tree-sitter-cpp
parenttree-sitter-grammar.eclass: Add src_test implementation (diff)
downloadgentoo-1fb9daef87ffc3f1911e020da3dde8a7c8d07fe3.tar.gz
gentoo-1fb9daef87ffc3f1911e020da3dde8a7c8d07fe3.tar.bz2
gentoo-1fb9daef87ffc3f1911e020da3dde8a7c8d07fe3.zip
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>
Diffstat (limited to 'dev-libs/tree-sitter-cpp')
-rw-r--r--dev-libs/tree-sitter-cpp/tree-sitter-cpp-0.20.0.ebuild3
1 files changed, 3 insertions, 0 deletions
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 dd3045851377..654df3497df3 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"