2018-02-24 07:09:09 -08:00
|
|
|
# Copyright 1999-2018 Gentoo Foundation
|
2018-01-01 23:58:26 -08:00
|
|
|
# Distributed under the terms of the GNU General Public License v2
|
|
|
|
|
|
|
|
EAPI=6
|
|
|
|
|
|
|
|
inherit vim-plugin git-r3
|
|
|
|
|
|
|
|
EGIT_REPO_URI="https://github.com/itchyny/lightline.vim.git"
|
|
|
|
EGIT_COMMIT="b19faca129f7921766c0a32a7c378dc89a61e590"
|
|
|
|
SRC_URI=""
|
|
|
|
KEYWORDS="~amd64 ~x86"
|
|
|
|
PROPERTIES="live"
|
|
|
|
|
|
|
|
DESCRIPTION="vim plugin: A light and configurable statusline/tabline"
|
|
|
|
HOMEPAGE="https://github.com/itchyny/lightline.vim/"
|
|
|
|
LICENSE="vim.org"
|
2018-02-24 07:09:09 -08:00
|
|
|
IUSE="+doc"
|
2018-01-01 23:58:26 -08:00
|
|
|
VIM_PLUGIN_HELPFILES="${PN}"
|
|
|
|
|
|
|
|
DISABLE_AUTOFORMATTING="true"
|
|
|
|
DOC_CONTENTS="You may have to update \$TERM in your environment,
|
|
|
|
see https://github.com/itchyny/lightline.vim"
|
|
|
|
|
|
|
|
src_prepare() {
|
|
|
|
default
|
|
|
|
}
|
|
|
|
|
|
|
|
src_install() {
|
|
|
|
insinto /usr/share/nvim/runtime
|
|
|
|
doins -r autoload
|
|
|
|
doins -r doc
|
|
|
|
doins -r plugin
|
|
|
|
vim-plugin_src_install
|
2018-02-24 07:09:09 -08:00
|
|
|
use doc || rm -rf "${D}/usr/share/doc"
|
2018-01-01 23:58:26 -08:00
|
|
|
}
|
|
|
|
|
|
|
|
pkg_postinst() {
|
|
|
|
elog "${DOC_CONTENTS}"
|
|
|
|
echo -n "Updating neovim (nvim) help tags..."
|
2018-02-24 07:09:09 -08:00
|
|
|
/usr/bin/nvim --noplugins -u NONE -U NONE --cmd ":helptags /usr/share/nvim/runtime/doc" --cmd ":q" > /dev/null 2>&1
|
|
|
|
echo "done. "
|
2018-01-01 23:58:26 -08:00
|
|
|
}
|
|
|
|
|
|
|
|
pkg_postrm() {
|
|
|
|
echo -n "Updating neovim (nvim) help tags..."
|
2018-02-24 07:09:09 -08:00
|
|
|
/usr/bin/nvim --noplugins -u NONE -U NONE --cmd ":helptags /usr/share/nvim/runtime/doc" --cmd ":q" > /dev/null 2>&1
|
|
|
|
echo "done. "
|
2018-01-01 23:58:26 -08:00
|
|
|
}
|