app-vim/nvim-cmp: Add 0_pre20220725
Signed-off-by: Nils Freydank <nils.freydank@posteo.de>
This commit is contained in:
parent
d8030b533a
commit
a671cb76a2
1
app-vim/nvim-cmp/Manifest
Normal file
1
app-vim/nvim-cmp/Manifest
Normal file
@ -0,0 +1 @@
|
||||
DIST nvim-cmp-0_pre20220725.tar.gz 58784 BLAKE2B 64d35d43db716912a12fb5840789db1ff27f59fe042aa4f79ccff2146e39e1047d99a95e85005015a994e3dd38c88ab374abfa6b20f4fdec7857202dd7babb8f SHA512 9e3d3d41d6722115b52ba260abc6c4b38fad3f897b9b14cd5ecc10ba27bb782e9e81173b52dcc1715c39896e821f4203e58f46533864f3d3f219b5475b1927ec
|
11
app-vim/nvim-cmp/metadata.xml
Normal file
11
app-vim/nvim-cmp/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">hrsh7th/nvim-cmp</remote-id>
|
||||
</upstream>
|
||||
</pkgmetadata>
|
52
app-vim/nvim-cmp/nvim-cmp-0_pre20220725.ebuild
Normal file
52
app-vim/nvim-cmp/nvim-cmp-0_pre20220725.ebuild
Normal 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="706371f1300e7c0acb98b346f80dad2dd9b5f679"
|
||||
|
||||
DESCRIPTION="neovim plugin: A completion plugin for neovim coded in Lua"
|
||||
HOMEPAGE="https://github.com/hrsh7th/nvim-cmp"
|
||||
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
|
||||
}
|
Loading…
Reference in New Issue
Block a user