mirror of
https://github.com/gentoo-mirror/guru.git
synced 2026-10-12 17:51:11 -04:00
dev-libs/tree-sitter-zig: new package, add 1.1.2_p20250910
Signed-off-by: Pavel Sobolev <contact@paveloom.dev>
This commit is contained in:
3 files changed
+46
No files matched your search
@@ -0,0 +1 @@
|
|||||||
|
DIST tree-sitter-zig-1.1.2_p20250910.tar.gz 258895 BLAKE2B bf31dd47749f0a9b6d4391e94cdeb00c2cbb490b3e7c9c8f69c84b8b5bf7ba9af38929a3a924f9fb1cb12ceefc496e33fdcdd1cc6554a8c0efeeee5e098f798a SHA512 a05d0c4a9c55a07cea348351a1cecdc21a0a1ffd9d40f20cdb29b4cd61e1f3b727f0b31c560a34a9eb78a0aed78fcd9d4871a1076553c14e8b9a82d13789e33f
|
||||||
@@ -0,0 +1,12 @@
|
|||||||
|
<?xml version="1.0" encoding="UTF-8"?>
|
||||||
|
<!DOCTYPE pkgmetadata SYSTEM "https://www.gentoo.org/dtd/metadata.dtd">
|
||||||
|
<pkgmetadata>
|
||||||
|
<maintainer type="person">
|
||||||
|
<name>Pavel Sobolev</name>
|
||||||
|
<email>contact@paveloom.dev</email>
|
||||||
|
</maintainer>
|
||||||
|
<upstream>
|
||||||
|
<bugs-to>https://github.com/tree-sitter-grammars/tree-sitter-zig/issues</bugs-to>
|
||||||
|
<remote-id type="github">tree-sitter-grammars/tree-sitter-zig</remote-id>
|
||||||
|
</upstream>
|
||||||
|
</pkgmetadata>
|
||||||
@@ -0,0 +1,33 @@
|
|||||||
|
# Copyright 1999-2026 Gentoo Authors
|
||||||
|
# Distributed under the terms of the GNU General Public License v2
|
||||||
|
|
||||||
|
EAPI=8
|
||||||
|
|
||||||
|
EGIT_COMMIT="6479aa13f32f701c383083d8b28360ebd682fb7d"
|
||||||
|
|
||||||
|
ZIG_NEEDS_LLVM=1
|
||||||
|
ZIG_SLOT="0.15"
|
||||||
|
|
||||||
|
inherit zig
|
||||||
|
|
||||||
|
DESCRIPTION="Zig grammar for tree-sitter"
|
||||||
|
HOMEPAGE="https://github.com/tree-sitter-grammars/tree-sitter-zig"
|
||||||
|
SRC_URI="https://github.com/tree-sitter-grammars/tree-sitter-zig/archive/${EGIT_COMMIT}.tar.gz -> ${P}.tar.gz"
|
||||||
|
|
||||||
|
S="${WORKDIR}/${PN}-${EGIT_COMMIT}"
|
||||||
|
|
||||||
|
LICENSE="MIT"
|
||||||
|
SLOT="0"
|
||||||
|
KEYWORDS="~amd64"
|
||||||
|
RESTRICT="test"
|
||||||
|
|
||||||
|
src_prepare() {
|
||||||
|
sed -e '/.install_subdir/s#queries#share/tree-sitter/queries/zig#' \
|
||||||
|
-e '/node-types.json/d' \
|
||||||
|
-i "${S}/build.zig" || die
|
||||||
|
|
||||||
|
sed -e '2a .fingerprint = 0xb3d0096061c17516,' \
|
||||||
|
-i "${S}/build.zig.zon" || die
|
||||||
|
|
||||||
|
zig_src_prepare
|
||||||
|
}
|
||||||
Reference in new issue
Block a user