gentoo-overlay-trent/app-vim/deoplete/deoplete-6.1.ebuild

69 lines
1.4 KiB
Bash
Raw Permalink Normal View History

2020-02-19 18:19:49 -08:00
# Copyright 1999-2018 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
EAPI=6
inherit vim-plugin
DESCRIPTION="Dark powered asynchronous completion framework for neovim"
HOMEPAGE="https://github.com/Shougo/deoplete.nvim"
SRC_URI="https://github.com/Shougo/deoplete.nvim/archive/${PV}.tar.gz -> ${P}.tar.gz"
KEYWORDS="amd64 x86 arm"
LICENSE="MIT"
SLOT="0"
IUSE="+doc +vim +nvim"
REQUIRED_USE="
|| (
vim
nvim
)
"
DEPEND=""
# deoplete 5.2 appears to require that python-msgpack be version < 1.0.0
# otherwise you wouldn't need to exlicitly include python-msgpack as a dependency
RDEPEND="
2021-06-27 06:50:45 -07:00
dev-python/msgpack
2020-02-19 18:19:49 -08:00
vim? (
app-editors/vim[python]
app-vim/vim-hug-neovim-rpc
app-vim/nvim-yarp
)
nvim? (
app-editors/neovim
dev-python/pynvim
)
"
src_unpack() {
unpack ${A}
cd "${WORKDIR}"
mv deoplete.nvim-${PV} "${P}"
}
src_compile() {
true
}
src_install() {
insinto /usr/share/vim/vimfiles
doins -r autoload
use doc && doins -r doc
doins -r plugin
doins -r rplugin
use doc && dodoc README.md
}
pkg_postinst() {
echo -n "Updating vim help tags..."
/usr/bin/vim --noplugins -u NONE -U NONE --cmd ":helptags /usr/share/vim/vimfiles/doc" --cmd ":q" > /dev/null 2>&1
echo "done. "
}
pkg_postrm() {
echo -n "Updating vim help tags..."
/usr/bin/vim --noplugins -u NONE -U NONE --cmd ":helptags /usr/share/vim/vimfiles/doc" --cmd ":q" > /dev/null 2>&1
echo "done. "
}