# Copyright 1999-2022 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2

EAPI=7

inherit vim-plugin

MY_PN=${PN}_vim
MY_P=${MY_PN}-${PV}

DESCRIPTION="vim plugin: a library of utility functions"
HOMEPAGE="https://www.vim.org/scripts/script.php?script_id=1863 https://github.com/tomtom/tlib_vim"
SRC_URI="https://github.com/tomtom/${MY_PN}/archive/${PV}.tar.gz -> ${P}.tar.gz"
S="${WORKDIR}"/${MY_P}

LICENSE="GPL-3"
KEYWORDS="amd64 ~riscv x86"

VIM_PLUGIN_HELPFILES="${PN}.txt"

DOCS=( README CHANGES.TXT )

PATCHES=(
	"${FILESDIR}"/${P}-fix-error-E1208-vim-8.2.3141.patch
)

src_prepare() {
	default
	rm -r test samples || die
}