commit: a18074ab3baeceb198e6457a365d0a57d987b237 Author: Matthew Smith <matthew <AT> gentoo <DOT> org> AuthorDate: Mon Apr 1 15:33:00 2024 +0000 Commit: Matthew Smith <matthew <AT> gentoo <DOT> org> CommitDate: Mon Apr 1 15:33:00 2024 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=a18074ab
dev-libs/tree-sitter-css: fix test with >tree-sitter-0.22 Closes: https://bugs.gentoo.org/928010 Signed-off-by: Matthew Smith <matthew <AT> gentoo.org> .../files/tree-sitter-css-0.20.0-test-selector.patch | 14 ++++++++++++++ dev-libs/tree-sitter-css/tree-sitter-css-0.20.0.ebuild | 6 ++++++ 2 files changed, 20 insertions(+) diff --git a/dev-libs/tree-sitter-css/files/tree-sitter-css-0.20.0-test-selector.patch b/dev-libs/tree-sitter-css/files/tree-sitter-css-0.20.0-test-selector.patch new file mode 100644 index 000000000000..bbcec7e47e23 --- /dev/null +++ b/dev-libs/tree-sitter-css/files/tree-sitter-css-0.20.0-test-selector.patch @@ -0,0 +1,14 @@ +https://bugs.gentoo.org/928010 +https://github.com/tree-sitter/tree-sitter-css/issues/47 +https://github.com/tree-sitter/tree-sitter/issues/3238 +--- a/test/corpus/selectors.txt ++++ b/test/corpus/selectors.txt +@@ -102,7 +102,7 @@ a::first-line {} + (block))) + + ========================= +-::slotted pseudo element ++slotted pseudo element + ========================= + + ::slotted(button) {} diff --git a/dev-libs/tree-sitter-css/tree-sitter-css-0.20.0.ebuild b/dev-libs/tree-sitter-css/tree-sitter-css-0.20.0.ebuild index a1f48ed9e145..632f1a55a2fa 100644 --- a/dev-libs/tree-sitter-css/tree-sitter-css-0.20.0.ebuild +++ b/dev-libs/tree-sitter-css/tree-sitter-css-0.20.0.ebuild @@ -11,3 +11,9 @@ HOMEPAGE="https://github.com/tree-sitter/tree-sitter-css" LICENSE="MIT" SLOT="0" KEYWORDS="amd64" + +PATCHES=( + # https://bugs.gentoo.org/928010 + # Test name beginning with :: is incompatible with tree-sitter >0.22 + "${FILESDIR}"/${PN}-0.20.0-test-selector.patch +)