app-vim/vim-vsnip: Add 0_pre20220422

Signed-off-by: Nils Freydank <nils.freydank@posteo.de>
This commit is contained in:
Nils Freydank 2022-07-30 19:30:46 +02:00
parent 73321d4dc9
commit d8030b533a
Signed by: nfr
GPG Key ID: 0F1DEAB2D36AD112
3 changed files with 64 additions and 0 deletions

View File

@ -0,0 +1 @@
DIST vim-vsnip-0_pre20220422.tar.gz 38220 BLAKE2B 6a37e96a72c2087a1f8edbc8db1bbabf6778f8beea0c0c33f65caa8b449e873d6d51c9dd24ccd623c150f33d2315608d6bec62afbc1f3ca6e9e0d7ab21ddea20 SHA512 f33622fa1ba534fe30946f3747536f3fefa36024205f039a323d1e663626106d442a6ec0660b2c2c5d7f5382f5c446c40760ccb79ec11aba03e538f614294c30

View 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">hrsh7th/vim-vsnip</remote-id>
</upstream>
</pkgmetadata>

View File

@ -0,0 +1,52 @@
# Copyright 2021-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="8f199ef690ed26dcbb8973d9a6760d1332449ac9"
DESCRIPTION="Snippet plugin with support for LSP/VSCode snippet format"
HOMEPAGE="https://github.com/hrsh7th/vim-vsnip"
LICENSE="MIT"
KEYWORDS="~amd64"
IUSE="test"
REQUIRED_USE="${LUA_REQUIRED_USE}"
RESTRICT="test" # needs unpacked packages
if [[ ${PV} == *9999 ]]
then
inherit git-r3
EGIT_REPO_URI="https://github.com/hrsh7th/${PN}.git"
else
if [[ ${PV} == *_p* ]]; then
SRC_URI="https://github.com/hrsh7th/${PN}/archive/${COMMIT_ID}.tar.gz -> ${P}.tar.gz"
S="${WORKDIR}/${PN}-${COMMIT_ID}"
else
SRC_URI="https://github.com/hrsh7th/${PN}/archive/refs/tags/v${PV}.tar.gz -> ${P}.tar.gz"
fi
fi
RDEPEND="
app-editors/neovim
app-vim/vim-vsnip
app-vim/nvim-lspconfig
"
DOCS=( README.md )
src_compile(){
# Don't do anything. The Makefile runs only some linter for testing.
echo
}
#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
#}