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

65 lines
1.2 KiB
Bash
Raw Normal View History

2019-08-25 13:41:43 -07: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=""
RDEPEND="
vim? (
app-editors/vim[python]
app-vim/vim-hug-neovim-rpc
app-vim/nvim-yarp
)
nvim? (
app-editors/neovim[python]
)
"
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. "
}