2022-01-02 07:50:11 +01:00
|
|
|
# Copyright 2021-2022 Gentoo Authors
|
2021-07-04 19:47:02 +02:00
|
|
|
# Distributed under the terms of the GNU General Public License v2
|
|
|
|
|
|
|
|
EAPI=7
|
|
|
|
|
2021-08-31 13:42:05 +02:00
|
|
|
LUA_COMPAT=( lua5-{1..4} luajit )
|
|
|
|
|
|
|
|
inherit lua-single vim-plugin
|
2021-12-31 10:22:23 +01:00
|
|
|
COMMIT_ID=""
|
2021-07-04 19:47:02 +02:00
|
|
|
|
|
|
|
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"
|
2021-08-31 13:42:05 +02:00
|
|
|
REQUIRED_USE="${LUA_REQUIRED_USE}"
|
|
|
|
RESTRICT="test" # needs network access
|
2021-07-04 19:47:02 +02:00
|
|
|
|
|
|
|
if [[ ${PV} == *9999 ]]
|
|
|
|
then
|
|
|
|
inherit git-r3
|
|
|
|
EGIT_REPO_URI="https://github.com/neovim/${PN}.git"
|
|
|
|
else
|
2022-01-02 07:50:11 +01:00
|
|
|
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
|
2021-07-04 19:47:02 +02:00
|
|
|
fi
|
|
|
|
|
2021-08-31 13:42:05 +02:00
|
|
|
BDEPEND="virtual/pkgconfig"
|
|
|
|
RDEPEND=">=app-editors/neovim-0.5.0"
|
|
|
|
|
2021-07-04 19:47:02 +02:00
|
|
|
DOCS=( README.md )
|
|
|
|
|
|
|
|
src_prepare(){
|
2021-07-04 20:37:40 +02:00
|
|
|
default
|
|
|
|
|
2021-07-12 19:23:24 +02:00
|
|
|
rm -r test || die
|
2021-07-04 19:47:02 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
src_compile(){
|
|
|
|
# Don't do anything. The Makefile just runs some tests that need
|
|
|
|
# network access.
|
|
|
|
echo
|
|
|
|
}
|
|
|
|
|
|
|
|
src_install(){
|
2021-08-31 13:42:05 +02:00
|
|
|
# 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
|
2021-07-04 19:47:02 +02:00
|
|
|
vim-plugin_src_install
|
|
|
|
}
|