From 962dcb23fd6b52d3e7a9cb20de81630a901dd58e Mon Sep 17 00:00:00 2001 From: Nils Freydank Date: Thu, 20 Jul 2023 08:15:51 +0200 Subject: [PATCH] app-vim/nvim-lspconfig: Bump to 0.1.4_p20230718 Signed-off-by: Nils Freydank --- app-vim/nvim-lspconfig/Manifest | 1 + .../nvim-lspconfig-0.1.4_p20230718.ebuild | 55 +++++++++++++++++++ 2 files changed, 56 insertions(+) create mode 100644 app-vim/nvim-lspconfig/nvim-lspconfig-0.1.4_p20230718.ebuild diff --git a/app-vim/nvim-lspconfig/Manifest b/app-vim/nvim-lspconfig/Manifest index 3ff97b9..5a4ca95 100644 --- a/app-vim/nvim-lspconfig/Manifest +++ b/app-vim/nvim-lspconfig/Manifest @@ -1 +1,2 @@ DIST nvim-lspconfig-0.1.4.tar.gz 161878 BLAKE2B 176dc2585ad72a5349de5ce5b55622865ccd5850ae0f8eef05c4ecbac16fb9f5a5127c3e2d56e9cbb15fe0ef0896bce2bb753b1954bc744b6bf334abb491b174 SHA512 e6573ccff26018475e7e56c750ba7dfd20efd4f8e60be02b314a44866cb36b9d81b73355b2d90253d04db84815e645ee359dc12270dc57fd7c5f93a2ebae6d10 +DIST nvim-lspconfig-0.1.4_p20230718.tar.gz 192810 BLAKE2B cd70b503c432ccba499327f969a5abca3e81192628b206508e0e1bbc0e95066b78045114ffb1a3a835a93be2ce5054ab4d76cdc5505d1007e62b825430a4b577 SHA512 921f61a8fabb224d503edd47043fb76e2593fac6a9853fe9da6427ae18bcb20ca8839bb4a23bdf90a7d6eb43be56bfbd6704d47dc81b39511a5cf22295dba2d4 diff --git a/app-vim/nvim-lspconfig/nvim-lspconfig-0.1.4_p20230718.ebuild b/app-vim/nvim-lspconfig/nvim-lspconfig-0.1.4_p20230718.ebuild new file mode 100644 index 0000000..4bc34d2 --- /dev/null +++ b/app-vim/nvim-lspconfig/nvim-lspconfig-0.1.4_p20230718.ebuild @@ -0,0 +1,55 @@ +# 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="447443a2404adc323ad2efc7c0a346a904ce694c" + +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 +}