holgersson-overlay/app-vim/nvim-lspconfig/nvim-lspconfig-0.1.4.ebuild
Nils Freydank 014e118352
app-vim/nvim-lspconfig: Drop version in neovim dep
We did depend on >= 0.5.0, in Gentoo we have currently 0.7 and 0.8,
i.e. newer versions and as I’m personally on 0.8.1 and won’t support
older versions of neovim I choose to drop the explicit dep here without
updating it each time.

Signed-off-by: Nils Freydank <nils.freydank@posteo.de>
2022-12-31 16:17:58 +01:00

56 lines
1.2 KiB
Bash

# 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=""
DESCRIPTION="vim plugin: Quickstart configurations for the Nvim LSP client"
HOMEPAGE="https://github.com/neovim/nvim-lspconfig"
LICENSE="Apache-2.0"
KEYWORDS="~amd64"
IUSE="test"
REQUIRED_USE="${LUA_REQUIRED_USE}"
RESTRICT="test" # needs network access
if [[ ${PV} == *9999 ]]
then
inherit git-r3
EGIT_REPO_URI="https://github.com/neovim/${PN}.git"
else
if [[ ${PV} == *_p* ]]; then
SRC_URI="https://github.com/neovim/${PN}/archive/${COMMIT_ID}.tar.gz -> ${P}.tar.gz"
S="${WORKDIR}/${PN}-${COMMIT_ID}"
else
SRC_URI="https://github.com/neovim/${PN}/archive/refs/tags/v${PV}.tar.gz -> ${P}.tar.gz"
fi
fi
BDEPEND="virtual/pkgconfig"
RDEPEND="app-editors/neovim"
DOCS=( README.md )
src_prepare(){
default
rm -r test || die
}
src_compile(){
# Don't do anything. The Makefile just runs some tests that need
# network access.
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
}