app-vim/nvim-treesitter: Add new package version 0.0_p20221005
Signed-off-by: Nils Freydank <nils.freydank@posteo.de>
This commit is contained in:
parent
fe4842f9c6
commit
f359f7b611
1
app-vim/nvim-treesitter/Manifest
Normal file
1
app-vim/nvim-treesitter/Manifest
Normal file
@ -0,0 +1 @@
|
|||||||
|
DIST nvim-treesitter-0.0_p20221005.tar.gz 1114331 BLAKE2B 8d26a88f0744cb921fd54ea3a888205cc9eaa8505ef2168977c260a746aff2653a5048d4a0b95c795d19b1fe749ad2afdcda322e112517decd8fa7de0bfdad81 SHA512 dd958ba74f2ba37ae69454e68b2da78570d807692229212d6ed8c19513940f656f1dd16ba5a28723f75812146eb0470119128f95aa3915efe5df2c009834b4ff
|
11
app-vim/nvim-treesitter/metadata.xml
Normal file
11
app-vim/nvim-treesitter/metadata.xml
Normal file
@ -0,0 +1,11 @@
|
|||||||
|
<?xml version="1.0" encoding="UTF-8"?>
|
||||||
|
<!DOCTYPE pkgmetadata SYSTEM "https://www.gentoo.org/dtd/metadata.dtd">
|
||||||
|
<pkgmetadata>
|
||||||
|
<maintainer type="person">
|
||||||
|
<email>holgersson@posteo.de</email>
|
||||||
|
<name>Nils Freydank</name>
|
||||||
|
</maintainer>
|
||||||
|
<upstream>
|
||||||
|
<remote-id type="github">nvim-treesitter/nvim-treesitter</remote-id>
|
||||||
|
</upstream>
|
||||||
|
</pkgmetadata>
|
53
app-vim/nvim-treesitter/nvim-treesitter-0.0_p20221005.ebuild
Normal file
53
app-vim/nvim-treesitter/nvim-treesitter-0.0_p20221005.ebuild
Normal file
@ -0,0 +1,53 @@
|
|||||||
|
# Copyright 2022 Gentoo Authors
|
||||||
|
# Distributed under the terms of the GNU General Public License v2
|
||||||
|
|
||||||
|
EAPI="8"
|
||||||
|
|
||||||
|
LUA_COMPAT=( lua5-{1..4} luajit )
|
||||||
|
|
||||||
|
inherit lua-single vim-plugin
|
||||||
|
COMMIT_ID="07e5fcbaad1a503bdde87a62029be6e6d5beb06b"
|
||||||
|
|
||||||
|
DESCRIPTION="neovim plugin: tree sitter support for syntax highlighting"
|
||||||
|
HOMEPAGE="https://github.com/nvim-treesitter/nvim-treesitter"
|
||||||
|
LICENSE="Apache-2.0"
|
||||||
|
|
||||||
|
if [[ ${PV} == *9999 ]]
|
||||||
|
then
|
||||||
|
inherit git-r3
|
||||||
|
EGIT_REPO_URI="https://github.com/nvim-treesitter/nvim-treesitter.git"
|
||||||
|
else
|
||||||
|
if [[ ${PV} == *_p* ]]; then
|
||||||
|
SRC_URI="https://github.com/nvim-treesitter/${PN}/archive/${COMMIT_ID}.tar.gz -> ${P}.tar.gz"
|
||||||
|
S="${WORKDIR}/${PN}-${COMMIT_ID}"
|
||||||
|
else
|
||||||
|
SRC_URI="https://github.com/nvim-treesitter/${PN}/archive/refs/tags/v${PV}.tar.gz -> ${P}.tar.gz"
|
||||||
|
fi
|
||||||
|
fi
|
||||||
|
|
||||||
|
IUSE="test"
|
||||||
|
REQUIRED_USE="${LUA_REQUIRED_USE}"
|
||||||
|
RESTRICT="!test? ( test )"
|
||||||
|
KEYWORDS="~amd64"
|
||||||
|
RDEPEND="
|
||||||
|
app-editors/neovim
|
||||||
|
dev-libs/tree-sitter-meta
|
||||||
|
"
|
||||||
|
|
||||||
|
DOCS=(
|
||||||
|
CONTRIBUTING.md
|
||||||
|
README.md
|
||||||
|
)
|
||||||
|
|
||||||
|
src_compile() {
|
||||||
|
# The Makefile runs only tests.
|
||||||
|
:;
|
||||||
|
}
|
||||||
|
|
||||||
|
src_install() {
|
||||||
|
# We need to get the major and minor version only.
|
||||||
|
insinto /usr/share/lua/$(ver_cut 1-2 $(lua_get_version))
|
||||||
|
doins -r lua/*
|
||||||
|
rm -r lua || die
|
||||||
|
vim-plugin_src_install
|
||||||
|
}
|
Loading…
x
Reference in New Issue
Block a user