# 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