summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorArsen Arsenović <arsen@gentoo.org>2024-06-14 14:57:18 +0200
committerArsen Arsenović <arsen@gentoo.org>2024-06-14 15:21:16 +0200
commit20b9bd20b58bfd17b6ae0bcf282a52d7c956b11e (patch)
treeaa3f012319fc3b99296141bf0c3bbd9640221f75
parentprofiles/package.mask: last-rite dev-scheme/termite (diff)
downloadgentoo-20b9bd20b58bfd17b6ae0bcf282a52d7c956b11e.tar.gz
gentoo-20b9bd20b58bfd17b6ae0bcf282a52d7c956b11e.tar.bz2
gentoo-20b9bd20b58bfd17b6ae0bcf282a52d7c956b11e.zip
dev-libs/tree-sitter-tsx: add 0.21.1
Signed-off-by: Arsen Arsenović <arsen@gentoo.org>
-rw-r--r--dev-libs/tree-sitter-tsx/Manifest1
-rw-r--r--dev-libs/tree-sitter-tsx/tree-sitter-tsx-0.21.1.ebuild25
2 files changed, 26 insertions, 0 deletions
diff --git a/dev-libs/tree-sitter-tsx/Manifest b/dev-libs/tree-sitter-tsx/Manifest
index 98b4f7475867..45b368938401 100644
--- a/dev-libs/tree-sitter-tsx/Manifest
+++ b/dev-libs/tree-sitter-tsx/Manifest
@@ -1 +1,2 @@
DIST tree-sitter-tsx-0.20.6.tar.gz 1564217 BLAKE2B bc4d26bd8e4e9ca14ddf4b175cc2a2e7a81dac67e114a6e01f59ff55c5ecd63a0a359e03d78928aa965363e9c4db154a9b1917cf3aafce9fdaca3a58d60bfcc1 SHA512 f30f38aa269302eee5f738422626187111c14c7ba07982d619b200a58a20a08849f8a0e79358cad331d689afd5ab389a88b246bda30031ae354f93433e85b763
+DIST tree-sitter-tsx-0.21.1.tar.gz 1566667 BLAKE2B c6c24a60b97c092189dc54ceb12b75ee28085eb7f2cdd38673b7107db1fb57e6282e7a5254a26f6bd352195a23da43d3a36df756ef78c959e037f9e696a02f4f SHA512 8768b8bd17d90b26de4bc20c3aae34141eec87ace0a4de3a6c39ee9654954fe4ec0d6ef829edddd48ccced5e4f92e3e886870f6bdc50b6ebe6ca568d980b5f97
diff --git a/dev-libs/tree-sitter-tsx/tree-sitter-tsx-0.21.1.ebuild b/dev-libs/tree-sitter-tsx/tree-sitter-tsx-0.21.1.ebuild
new file mode 100644
index 000000000000..0eb1d05722cb
--- /dev/null
+++ b/dev-libs/tree-sitter-tsx/tree-sitter-tsx-0.21.1.ebuild
@@ -0,0 +1,25 @@
+# Copyright 1999-2024 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+inherit tree-sitter-grammar
+
+MY_P=${P/tsx/typescript}
+MY_PN=${PN/tsx/typescript}
+
+DESCRIPTION="TSX grammar for Tree-sitter"
+HOMEPAGE="https://github.com/tree-sitter/tree-sitter-typescript"
+SRC_URI="https://github.com/tree-sitter/${MY_PN}/archive/v${PV}.tar.gz -> ${P}.tar.gz"
+S="${WORKDIR}"/${MY_P}/tsx
+
+LICENSE="MIT"
+SLOT="0"
+KEYWORDS="~amd64"
+
+src_prepare() {
+ # fix test corpus path
+ ln -s ../common test || die
+
+ tree-sitter-grammar_src_prepare
+}