holgersson-overlay/app-vim/vim-vsnip/vim-vsnip-0_pre20230312.ebuild
Nils Freydank 9d43506384
app-vim/vim-vsnip: Bump to 0_pre20230312
Signed-off-by: Nils Freydank <nils.freydank@posteo.de>
2023-03-21 22:57:03 +01:00

45 lines
1.0 KiB
Bash

# Copyright 2021-2023 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="7753ba9c10429c29d25abfd11b4c60b76718c438"
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
}