mirror of
https://github.com/TrentSPalmer/gentoo-overlay-trent.git
synced 2024-11-24 02:51:29 -08:00
69 lines
1.4 KiB
Bash
69 lines
1.4 KiB
Bash
# 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="
|
|
dev-python/msgpack
|
|
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. "
|
|
}
|