diff options
author | Arsen Arsenović <arsen@gentoo.org> | 2024-06-09 22:45:29 +0200 |
---|---|---|
committer | Matthew Smith <matthew@gentoo.org> | 2024-06-11 16:52:09 +0000 |
commit | a90fc73eeff4faf712b5b52a21343cb02abd916f (patch) | |
tree | 9b6aa8529f30850f79fc39e7cfc3b30fbc9e852a | |
parent | dev-ml/ppx_fixed_literal: add 0.17.0 (diff) | |
download | gentoo-a90fc73eeff4faf712b5b52a21343cb02abd916f.tar.gz gentoo-a90fc73eeff4faf712b5b52a21343cb02abd916f.tar.bz2 gentoo-a90fc73eeff4faf712b5b52a21343cb02abd916f.zip |
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@gentoo.org>
Signed-off-by: Matthew Smith <matthew@gentoo.org>
-rw-r--r-- | dev-libs/tree-sitter-tsx/Manifest | 1 | ||||
-rw-r--r-- | dev-libs/tree-sitter-tsx/metadata.xml | 15 | ||||
-rw-r--r-- | dev-libs/tree-sitter-tsx/tree-sitter-tsx-0.20.6.ebuild | 25 |
3 files changed, 41 insertions, 0 deletions
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>arsen@gentoo.org</email> + <name>Arsen Arsenović</name> + </maintainer> + <maintainer type="person"> + <email>matthew@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 +} |