commit:     1fb9daef87ffc3f1911e020da3dde8a7c8d07fe3
Author:     Matoro Mahri <matoro <AT> users <DOT> noreply <DOT> github <DOT> 
com>
AuthorDate: Fri Dec  2 16:26:55 2022 +0000
Commit:     Matthew Smith <matthew <AT> gentoo <DOT> org>
CommitDate: Mon Dec  5 20:00:55 2022 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=1fb9daef

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 <AT> users.noreply.github.com>
Closes: https://github.com/gentoo/gentoo/pull/28529
Signed-off-by: Matthew Smith <matthew <AT> gentoo.org>

 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 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"

Reply via email to