From a671cb76a263747cdc8520c1f9fa10d24ac123ff Mon Sep 17 00:00:00 2001 From: Nils Freydank Date: Sat, 30 Jul 2022 19:30:46 +0200 Subject: [PATCH] app-vim/nvim-cmp: Add 0_pre20220725 Signed-off-by: Nils Freydank --- app-vim/nvim-cmp/Manifest | 1 + app-vim/nvim-cmp/metadata.xml | 11 ++++ .../nvim-cmp/nvim-cmp-0_pre20220725.ebuild | 52 +++++++++++++++++++ 3 files changed, 64 insertions(+) create mode 100644 app-vim/nvim-cmp/Manifest create mode 100644 app-vim/nvim-cmp/metadata.xml create mode 100644 app-vim/nvim-cmp/nvim-cmp-0_pre20220725.ebuild diff --git a/app-vim/nvim-cmp/Manifest b/app-vim/nvim-cmp/Manifest new file mode 100644 index 0000000..43e9f68 --- /dev/null +++ b/app-vim/nvim-cmp/Manifest @@ -0,0 +1 @@ +DIST nvim-cmp-0_pre20220725.tar.gz 58784 BLAKE2B 64d35d43db716912a12fb5840789db1ff27f59fe042aa4f79ccff2146e39e1047d99a95e85005015a994e3dd38c88ab374abfa6b20f4fdec7857202dd7babb8f SHA512 9e3d3d41d6722115b52ba260abc6c4b38fad3f897b9b14cd5ecc10ba27bb782e9e81173b52dcc1715c39896e821f4203e58f46533864f3d3f219b5475b1927ec diff --git a/app-vim/nvim-cmp/metadata.xml b/app-vim/nvim-cmp/metadata.xml new file mode 100644 index 0000000..9324c85 --- /dev/null +++ b/app-vim/nvim-cmp/metadata.xml @@ -0,0 +1,11 @@ + + + + + holgersson@posteo.de + Nils Freydank + + + hrsh7th/nvim-cmp + + diff --git a/app-vim/nvim-cmp/nvim-cmp-0_pre20220725.ebuild b/app-vim/nvim-cmp/nvim-cmp-0_pre20220725.ebuild new file mode 100644 index 0000000..ee22094 --- /dev/null +++ b/app-vim/nvim-cmp/nvim-cmp-0_pre20220725.ebuild @@ -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 +}