commit:     a90fc73eeff4faf712b5b52a21343cb02abd916f
Author:     Arsen Arsenović <arsen <AT> gentoo <DOT> org>
AuthorDate: Sun Jun  9 20:45:29 2024 +0000
Commit:     Matthew Smith <matthew <AT> gentoo <DOT> org>
CommitDate: Tue Jun 11 16:52:09 2024 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=a90fc73e

dev-libs/tree-sitter-tsx: new package, add 0.20.6

Closes: https://github.com/gentoo/gentoo/pull/37099
Signed-off-by: Arsen Arsenović <arsen <AT> gentoo.org>
Signed-off-by: Matthew Smith <matthew <AT> gentoo.org>

 dev-libs/tree-sitter-tsx/Manifest                  |  1 +
 dev-libs/tree-sitter-tsx/metadata.xml              | 15 +++++++++++++
 .../tree-sitter-tsx/tree-sitter-tsx-0.20.6.ebuild  | 25 ++++++++++++++++++++++
 3 files changed, 41 insertions(+)

diff --git a/dev-libs/tree-sitter-tsx/Manifest 
b/dev-libs/tree-sitter-tsx/Manifest
new file mode 100644
index 000000000000..98b4f7475867
--- /dev/null
+++ b/dev-libs/tree-sitter-tsx/Manifest
@@ -0,0 +1 @@
+DIST tree-sitter-tsx-0.20.6.tar.gz 1564217 BLAKE2B 
bc4d26bd8e4e9ca14ddf4b175cc2a2e7a81dac67e114a6e01f59ff55c5ecd63a0a359e03d78928aa965363e9c4db154a9b1917cf3aafce9fdaca3a58d60bfcc1
 SHA512 
f30f38aa269302eee5f738422626187111c14c7ba07982d619b200a58a20a08849f8a0e79358cad331d689afd5ab389a88b246bda30031ae354f93433e85b763

diff --git a/dev-libs/tree-sitter-tsx/metadata.xml 
b/dev-libs/tree-sitter-tsx/metadata.xml
new file mode 100644
index 000000000000..7b982a3cd402
--- /dev/null
+++ b/dev-libs/tree-sitter-tsx/metadata.xml
@@ -0,0 +1,15 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "https://www.gentoo.org/dtd/metadata.dtd";>
+<pkgmetadata>
+       <maintainer type="person">
+               <email>ar...@gentoo.org</email>
+               <name>Arsen Arsenović</name>
+       </maintainer>
+       <maintainer type="person">
+               <email>matt...@gentoo.org</email>
+               <name>Matthew Smith</name>
+       </maintainer>
+       <upstream>
+               <remote-id 
type="github">tree-sitter/tree-sitter-typescript</remote-id>
+       </upstream>
+</pkgmetadata>

diff --git a/dev-libs/tree-sitter-tsx/tree-sitter-tsx-0.20.6.ebuild 
b/dev-libs/tree-sitter-tsx/tree-sitter-tsx-0.20.6.ebuild
new file mode 100644
index 000000000000..0eb1d05722cb
--- /dev/null
+++ b/dev-libs/tree-sitter-tsx/tree-sitter-tsx-0.20.6.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
+}

Reply via email to