app-vim/tlib: add 1.27

Also includes a patch (not in 1.27) from upstream git that fixes
compatibility with newer vim.

Closes: https://bugs.gentoo.org/828429
Signed-off-by: Sam James <sam@gentoo.org>
This commit is contained in:
Sam James 2021-12-07 02:37:34 +00:00
parent d78afba345
commit 389ef1b556
No known key found for this signature in database
GPG Key ID: F4922810EEA0483B
3 changed files with 60 additions and 0 deletions

View File

@ -1,2 +1,3 @@
DIST tlib-1.22.tar.gz 119979 BLAKE2B 2fe1231b6a075989c41aa2cf38d0964b6d9ada390d0729ea417aa1c2ef1a105a07d569f80c75ba91a55f7e68f349faab2dcda66741b0b1da59f76d68a5467e24 SHA512 b7fc7e3741876c92bbccc116d4e170663e3d178aa8fb546f969475723cd82e07d9470af37574f8f97cfd23b8ca8f5dd5daa2e7bef50e2f62beec0015a2355908
DIST tlib-1.23.tar.gz 120827 BLAKE2B 7b86a1b0e22e499390239e5898d81c90ac1b3b989b929e3bde3ea516d05419fc8af19e72d5313df36ce856a4c7ee2cddbdbecbace835f24adefb1883d4e76e46 SHA512 5fd5d6e6ccd36117abcfca35173d28602a73b0773e5fc77cb8c1c8660f13dd7882c8a8de9b4335927b807c7d643c480f1371926b4ffb1758e53948132dee1d75
DIST tlib-1.27.tar.gz 124891 BLAKE2B d8d79d1d7bc71e38d2315ab30df414521122cae8c8dfe2e43c8e87bad30685703e09a905d97a00cc2ef01a51369acfde75c37290d971a72d40ec61bce8f1fe31 SHA512 c7037a4aaa4bbb1fede9baea45644a8d1575c5813bc387a293856d8acbe2929cb641d317a4323b295dcc1c0e05091984e6b6eb9a3968503c4cde53580baf994d

View File

@ -0,0 +1,29 @@
https://github.com/tomtom/tlib_vim/commit/b5f9f6c83ade9b5640580bf9792a332dd453dfd0
https://bugs.gentoo.org/828429
From: Laurent Stacul <laurent.stacul@gmail.com>
Date: Mon, 12 Jul 2021 15:51:16 +0200
Subject: [PATCH] Fix error E1208 raised by vim >=8.2.3141
Starting vim 8.2.3141 with the tlib_vim plugin will raised the following
error message at startup:
Error detected while processing .vim/pack/stac/start/tlib_vim/plugin/02tlib.vim:
line 77: E1208: -complete used without -nargsPress ENTER or type command to continue
The reason is the following change in vim:
https://github.com/vim/vim/commit/de69a7353e9bec552e15dbe3706a9f4e88080fce
Which forbid the com[mand] command with -nargs=0 and -complete options.
--- a/plugin/02tlib.vim
+++ b/plugin/02tlib.vim
@@ -74,7 +74,7 @@ command! -nargs=1 -complete=command TBrowseOutput call tlib#cmd#BrowseOutput(<q-
"
" EXAMPLES: >
" TBrowseScriptnames
-command! -nargs=0 -complete=command TBrowseScriptnames call tlib#cmd#TBrowseScriptnames()
+command! -nargs=0 TBrowseScriptnames call tlib#cmd#TBrowseScriptnames()
" :display: :Texecqfl CMD

View File

@ -0,0 +1,30 @@
# Copyright 1999-2021 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
}