From 23544e126419753893f48082960796b65e60fc93 Mon Sep 17 00:00:00 2001 From: "Anna (navi) Figueiredo Gomes" Date: Thu, 5 Oct 2023 18:59:35 +0100 Subject: first batch of plugins Signed-off-by: Anna (navi) Figueiredo Gomes --- eclass/neovim-plugin.eclass | 35 +++++++++++++++++++++++++++++++++++ 1 file changed, 35 insertions(+) create mode 100644 eclass/neovim-plugin.eclass (limited to 'eclass/neovim-plugin.eclass') diff --git a/eclass/neovim-plugin.eclass b/eclass/neovim-plugin.eclass new file mode 100644 index 0000000..6e12078 --- /dev/null +++ b/eclass/neovim-plugin.eclass @@ -0,0 +1,35 @@ +# Copyright 2023 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +# @ECLASS: neovim-plugin.eclass +# @MAINTAINER: +# navi@vlhl.dev +# @SUPPORTED_EAPIS: 8 +# @BLURB: used for installing neovim plugins + +case ${EAPI} in + 8) ;; + *) die "${ECLASS}: EAPI ${EAPI:-0} not supported" ;; +esac + +if [[ -z ${_NEOVIM_PLUGIN_ECLASS} ]]; then +_NEOVIM_PLUGIN_ECLASS=1 + +DEPEND+=" app-editors/neovim" +IUSE+=" start" + +NEOVIM_PACK="${EPREFIX}/usr/share/nvim/site/portage" + +# @FUNCTION: neovim-plugin_src-install +# @DESCRIPTION: installs the plugin into the runtime +# folder, in a path visible to packadd +neovim-plugin_src_install() { + insinto "${NEOVIM_PACK}/$(usex start start opt)/${PN}" + doins -r * +} + +neovim-plugin_src_compile() { :; } + +fi + +EXPORT_FUNCTIONS src_compile src_install -- cgit v1.2.3