Gentoo Archives: gentoo-commits

From: Sam James <sam@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: app-vim/tlib/, app-vim/tlib/files/
Date: Tue, 07 Dec 2021 02:38:10
Message-Id: 1638844662.389ef1b556f11f4dae6cd873fcf2afc11372983e.sam@gentoo
1 commit: 389ef1b556f11f4dae6cd873fcf2afc11372983e
2 Author: Sam James <sam <AT> gentoo <DOT> org>
3 AuthorDate: Tue Dec 7 02:37:34 2021 +0000
4 Commit: Sam James <sam <AT> gentoo <DOT> org>
5 CommitDate: Tue Dec 7 02:37:42 2021 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=389ef1b5
7
8 app-vim/tlib: add 1.27
9
10 Also includes a patch (not in 1.27) from upstream git that fixes
11 compatibility with newer vim.
12
13 Closes: https://bugs.gentoo.org/828429
14 Signed-off-by: Sam James <sam <AT> gentoo.org>
15
16 app-vim/tlib/Manifest | 1 +
17 .../tlib-1.27-fix-error-E1208-vim-8.2.3141.patch | 29 +++++++++++++++++++++
18 app-vim/tlib/tlib-1.27.ebuild | 30 ++++++++++++++++++++++
19 3 files changed, 60 insertions(+)
20
21 diff --git a/app-vim/tlib/Manifest b/app-vim/tlib/Manifest
22 index c638356f631a..4bc1f53d28a5 100644
23 --- a/app-vim/tlib/Manifest
24 +++ b/app-vim/tlib/Manifest
25 @@ -1,2 +1,3 @@
26 DIST tlib-1.22.tar.gz 119979 BLAKE2B 2fe1231b6a075989c41aa2cf38d0964b6d9ada390d0729ea417aa1c2ef1a105a07d569f80c75ba91a55f7e68f349faab2dcda66741b0b1da59f76d68a5467e24 SHA512 b7fc7e3741876c92bbccc116d4e170663e3d178aa8fb546f969475723cd82e07d9470af37574f8f97cfd23b8ca8f5dd5daa2e7bef50e2f62beec0015a2355908
27 DIST tlib-1.23.tar.gz 120827 BLAKE2B 7b86a1b0e22e499390239e5898d81c90ac1b3b989b929e3bde3ea516d05419fc8af19e72d5313df36ce856a4c7ee2cddbdbecbace835f24adefb1883d4e76e46 SHA512 5fd5d6e6ccd36117abcfca35173d28602a73b0773e5fc77cb8c1c8660f13dd7882c8a8de9b4335927b807c7d643c480f1371926b4ffb1758e53948132dee1d75
28 +DIST tlib-1.27.tar.gz 124891 BLAKE2B d8d79d1d7bc71e38d2315ab30df414521122cae8c8dfe2e43c8e87bad30685703e09a905d97a00cc2ef01a51369acfde75c37290d971a72d40ec61bce8f1fe31 SHA512 c7037a4aaa4bbb1fede9baea45644a8d1575c5813bc387a293856d8acbe2929cb641d317a4323b295dcc1c0e05091984e6b6eb9a3968503c4cde53580baf994d
29
30 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
31 new file mode 100644
32 index 000000000000..d52314fd6987
33 --- /dev/null
34 +++ b/app-vim/tlib/files/tlib-1.27-fix-error-E1208-vim-8.2.3141.patch
35 @@ -0,0 +1,29 @@
36 +https://github.com/tomtom/tlib_vim/commit/b5f9f6c83ade9b5640580bf9792a332dd453dfd0
37 +https://bugs.gentoo.org/828429
38 +
39 +From: Laurent Stacul <laurent.stacul@×××××.com>
40 +Date: Mon, 12 Jul 2021 15:51:16 +0200
41 +Subject: [PATCH] Fix error E1208 raised by vim >=8.2.3141
42 +
43 +Starting vim 8.2.3141 with the tlib_vim plugin will raised the following
44 +error message at startup:
45 +
46 + Error detected while processing .vim/pack/stac/start/tlib_vim/plugin/02tlib.vim:
47 + line 77: E1208: -complete used without -nargsPress ENTER or type command to continue
48 +
49 +The reason is the following change in vim:
50 +
51 + https://github.com/vim/vim/commit/de69a7353e9bec552e15dbe3706a9f4e88080fce
52 +
53 +Which forbid the com[mand] command with -nargs=0 and -complete options.
54 +--- a/plugin/02tlib.vim
55 ++++ b/plugin/02tlib.vim
56 +@@ -74,7 +74,7 @@ command! -nargs=1 -complete=command TBrowseOutput call tlib#cmd#BrowseOutput(<q-
57 + "
58 + " EXAMPLES: >
59 + " TBrowseScriptnames
60 +-command! -nargs=0 -complete=command TBrowseScriptnames call tlib#cmd#TBrowseScriptnames()
61 ++command! -nargs=0 TBrowseScriptnames call tlib#cmd#TBrowseScriptnames()
62 +
63 +
64 + " :display: :Texecqfl CMD
65
66 diff --git a/app-vim/tlib/tlib-1.27.ebuild b/app-vim/tlib/tlib-1.27.ebuild
67 new file mode 100644
68 index 000000000000..aac06503bc74
69 --- /dev/null
70 +++ b/app-vim/tlib/tlib-1.27.ebuild
71 @@ -0,0 +1,30 @@
72 +# Copyright 1999-2021 Gentoo Authors
73 +# Distributed under the terms of the GNU General Public License v2
74 +
75 +EAPI=7
76 +
77 +inherit vim-plugin
78 +
79 +MY_PN=${PN}_vim
80 +MY_P=${MY_PN}-${PV}
81 +
82 +DESCRIPTION="vim plugin: a library of utility functions"
83 +HOMEPAGE="https://www.vim.org/scripts/script.php?script_id=1863 https://github.com/tomtom/tlib_vim"
84 +SRC_URI="https://github.com/tomtom/${MY_PN}/archive/${PV}.tar.gz -> ${P}.tar.gz"
85 +S="${WORKDIR}"/${MY_P}
86 +
87 +LICENSE="GPL-3"
88 +KEYWORDS="~amd64 ~riscv ~x86"
89 +
90 +VIM_PLUGIN_HELPFILES="${PN}.txt"
91 +
92 +DOCS=( README CHANGES.TXT )
93 +
94 +PATCHES=(
95 + "${FILESDIR}"/${P}-fix-error-E1208-vim-8.2.3141.patch
96 +)
97 +
98 +src_prepare() {
99 + default
100 + rm -r test samples || die
101 +}