commit: 389ef1b556f11f4dae6cd873fcf2afc11372983e Author: Sam James <sam <AT> gentoo <DOT> org> AuthorDate: Tue Dec 7 02:37:34 2021 +0000 Commit: Sam James <sam <AT> gentoo <DOT> org> CommitDate: Tue Dec 7 02:37:42 2021 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=389ef1b5
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 <AT> gentoo.org> app-vim/tlib/Manifest | 1 + .../tlib-1.27-fix-error-E1208-vim-8.2.3141.patch | 29 +++++++++++++++++++++ app-vim/tlib/tlib-1.27.ebuild | 30 ++++++++++++++++++++++ 3 files changed, 60 insertions(+) diff --git a/app-vim/tlib/Manifest b/app-vim/tlib/Manifest index c638356f631a..4bc1f53d28a5 100644 --- a/app-vim/tlib/Manifest +++ b/app-vim/tlib/Manifest @@ -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 diff --git a/app-vim/tlib/files/tlib-1.27-fix-error-E1208-vim-8.2.3141.patch b/app-vim/tlib/files/tlib-1.27-fix-error-E1208-vim-8.2.3141.patch new file mode 100644 index 000000000000..d52314fd6987 --- /dev/null +++ b/app-vim/tlib/files/tlib-1.27-fix-error-E1208-vim-8.2.3141.patch @@ -0,0 +1,29 @@ +https://github.com/tomtom/tlib_vim/commit/b5f9f6c83ade9b5640580bf9792a332dd453dfd0 +https://bugs.gentoo.org/828429 + +From: Laurent Stacul <laurent.sta...@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 diff --git a/app-vim/tlib/tlib-1.27.ebuild b/app-vim/tlib/tlib-1.27.ebuild new file mode 100644 index 000000000000..aac06503bc74 --- /dev/null +++ b/app-vim/tlib/tlib-1.27.ebuild @@ -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 +}