diff options
author | Matthew Smith <matthew@gentoo.org> | 2024-04-01 15:33:00 +0000 |
---|---|---|
committer | Matthew Smith <matthew@gentoo.org> | 2024-04-01 15:33:00 +0000 |
commit | a18074ab3baeceb198e6457a365d0a57d987b237 (patch) | |
tree | 269ff9cc3795664665f1d86cbf357d90bac997ef /dev-libs | |
parent | www-misc/htdig: fix source URLs (diff) | |
download | gentoo-a18074ab3baeceb198e6457a365d0a57d987b237.tar.gz gentoo-a18074ab3baeceb198e6457a365d0a57d987b237.tar.bz2 gentoo-a18074ab3baeceb198e6457a365d0a57d987b237.zip |
dev-libs/tree-sitter-css: fix test with >tree-sitter-0.22
Closes: https://bugs.gentoo.org/928010
Signed-off-by: Matthew Smith <matthew@gentoo.org>
Diffstat (limited to 'dev-libs')
-rw-r--r-- | dev-libs/tree-sitter-css/files/tree-sitter-css-0.20.0-test-selector.patch | 14 | ||||
-rw-r--r-- | dev-libs/tree-sitter-css/tree-sitter-css-0.20.0.ebuild | 6 |
2 files changed, 20 insertions, 0 deletions
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 +) |