app-vim/nerdtree-git: initial import

Signed-off-by: Anna (cybertailor) Vyalkova <cyber+gentoo@sysrq.in>
This commit is contained in:
Anna (cybertailor) Vyalkova
2021-08-18 01:33:53 +05:00
parent d13cf8a69c
commit be5b0ef05d
3 changed files with 44 additions and 0 deletions

View File

@@ -0,0 +1,35 @@
# Copyright 2021 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=7
inherit vim-plugin
COMMIT="ff9b14f14dceecb6c08cb05053ad649c3b6ac250"
DESCRIPTION="vim plugin: display git status flags in NERDTree"
HOMEPAGE="https://github.com/Xuyuanp/nerdtree-git-plugin"
SRC_URI="https://github.com/Xuyuanp/${PN}-plugin/archive/${COMMIT}.tar.gz -> ${P}.tar.gz"
S="${WORKDIR}/${PN}-plugin-${COMMIT}"
LICENSE="WTFPL-2"
KEYWORDS="~amd64 ~x86"
IUSE="test"
RESTRICT="!test? ( test )"
RDEPEND="
app-vim/nerdtree
dev-vcs/git
"
BDEPEND="test? (
${RDEPEND}
app-vim/themis
)"
src_test() {
themis ./tests --runtimepath "${EPREFIX}"/usr/share/vim/vimfiles || die
}
src_install() {
rm -r tests || die
vim-plugin_src_install
}