Gentoo Archives: gentoo-commits

From: Mikle Kolyada <zlogene@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: app-editors/vim/
Date: Sun, 29 Dec 2019 18:17:50
Message-Id: 1577643459.c0e292abc1f1043707fbfd00d27b9e6b0e3ecc42.zlogene@gentoo
1 commit: c0e292abc1f1043707fbfd00d27b9e6b0e3ecc42
2 Author: Mikle Kolyada <zlogene <AT> gentoo <DOT> org>
3 AuthorDate: Sun Dec 29 18:16:51 2019 +0000
4 Commit: Mikle Kolyada <zlogene <AT> gentoo <DOT> org>
5 CommitDate: Sun Dec 29 18:17:39 2019 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=c0e292ab
7
8 app-editors/vim: Version bump (v8.2.0055)
9
10 Package-Manager: Portage-2.3.79, Repoman-2.3.16
11 Signed-off-by: Mikle Kolyada <zlogene <AT> gentoo.org>
12
13 app-editors/vim/Manifest | 1 +
14 app-editors/vim/vim-8.2.0055.ebuild | 320 ++++++++++++++++++++++++++++++++++++
15 2 files changed, 321 insertions(+)
16
17 diff --git a/app-editors/vim/Manifest b/app-editors/vim/Manifest
18 index 88f7734b453..878da4cc54d 100644
19 --- a/app-editors/vim/Manifest
20 +++ b/app-editors/vim/Manifest
21 @@ -1,3 +1,4 @@
22 DIST vim-8.0.0938-gentoo-patches.tar.bz2 2316 BLAKE2B 05a87f32fc5cc65e7f5e4e5a87c654b2040ad39f1555ddde7e0e6f473dc8b520916a795406bb6bbeaf5e7ae8748aacebe7a9679461e48802e69417e945eea827 SHA512 a6062be5e6a5c5b437081312df5742353242b5171bf26da04aa6ca216d2b142b2411a88bc1edd460d28e00a59a210c8e1729e801fac6f1efd86bb2e437a56a2b
23 DIST vim-8.1.1486.tar.gz 14318109 BLAKE2B 6054df175a32e9ed36873802a4a669cc46e034bac879cb829e45ece53f9440e97cccad47e370ebdef8dc1bb963e8e8c84bd517a3a6561705786dcab7e2368d21 SHA512 0a521d74c60f2a32e8a11e16f256e2e99fb9c00f478cd8d7a9328315abbd445796153f03884ab2b240905260317809a33afb64627b9a71ac8d6db1cbd4026d20
24 DIST vim-8.1.1846.tar.gz 14415116 BLAKE2B 59c2864519e100f9bc2617dd7b31a8cc17ff20fc87a761eba653e91a70688c3b4a5f05c527acaf6d075830d23c7ef8842595b6558eac2ab5209029153f1adb10 SHA512 d5a5cb7733f3190915e2b1389fea48d119afef27eac6f04ac3967f57e894cab811727a694c6837bb5acef9997cd56018d4b37efeb413c654012aaaea02bf7c7a
25 +DIST vim-8.2.0055.tar.gz 14655766 BLAKE2B 73703f4f08cd78f75c53cd446e3edc171805a19bce37bcc4f420f4800d50b515a265ceb885947668e8654666cfca52a189f2abc407d2db0f520a6ceb124e20ec SHA512 ccbf0bb4cd294292ef69c2b7f4539ed87aa3cbdb5e638dbcc3e86b8e3986c96419c033685a7b2293382ace0599457a523e3bf25815882cec74f6ecec87139d92
26
27 diff --git a/app-editors/vim/vim-8.2.0055.ebuild b/app-editors/vim/vim-8.2.0055.ebuild
28 new file mode 100644
29 index 00000000000..a5ce18ee59b
30 --- /dev/null
31 +++ b/app-editors/vim/vim-8.2.0055.ebuild
32 @@ -0,0 +1,320 @@
33 +# Copyright 1999-2019 Gentoo Authors
34 +# Distributed under the terms of the GNU General Public License v2
35 +
36 +EAPI=6
37 +VIM_VERSION="8.1"
38 +PYTHON_COMPAT=( python{2_7,3_5,3_6,3_7} )
39 +PYTHON_REQ_USE="threads(+)"
40 +USE_RUBY="ruby24 ruby25 ruby26"
41 +
42 +inherit vim-doc flag-o-matic bash-completion-r1 python-single-r1 ruby-single desktop xdg-utils
43 +
44 +if [[ ${PV} == 9999* ]] ; then
45 + inherit git-r3
46 + EGIT_REPO_URI="https://github.com/vim/vim.git"
47 +else
48 + SRC_URI="https://github.com/vim/vim/archive/v${PV}.tar.gz -> ${P}.tar.gz
49 + https://dev.gentoo.org/~radhermit/vim/vim-8.0.0938-gentoo-patches.tar.bz2"
50 + KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~mips ~ppc ~ppc64 ~sh ~sparc ~x86 ~ppc-aix ~x64-cygwin ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos ~m68k-mint ~sparc-solaris ~sparc64-solaris ~x64-solaris ~x86-solaris"
51 +fi
52 +
53 +DESCRIPTION="Vim, an improved vi-style text editor"
54 +HOMEPAGE="https://vim.sourceforge.io/ https://github.com/vim/vim"
55 +
56 +SLOT="0"
57 +LICENSE="vim"
58 +IUSE="X acl cscope debug gpm lua luajit minimal nls perl python racket ruby selinux sound tcl terminal vim-pager"
59 +REQUIRED_USE="
60 + python? ( ${PYTHON_REQUIRED_USE} )
61 + vim-pager? ( !minimal )
62 +"
63 +
64 +RDEPEND="
65 + >=app-eselect/eselect-vi-1.1
66 + >=sys-libs/ncurses-5.2-r2:0=
67 + nls? ( virtual/libintl )
68 + acl? ( kernel_linux? ( sys-apps/acl ) )
69 + cscope? ( dev-util/cscope )
70 + gpm? ( >=sys-libs/gpm-1.19.3 )
71 + lua? (
72 + luajit? ( dev-lang/luajit:2= )
73 + !luajit? ( dev-lang/lua:0[deprecated] )
74 + )
75 + !minimal? ( ~app-editors/vim-core-${PV} )
76 + vim-pager? ( app-editors/vim-core[-minimal] )
77 + perl? ( dev-lang/perl:= )
78 + python? ( ${PYTHON_DEPS} )
79 + racket? ( dev-scheme/racket )
80 + ruby? ( ${RUBY_DEPS} )
81 + selinux? ( sys-libs/libselinux )
82 + sound? ( media-libs/libcanberra )
83 + tcl? ( dev-lang/tcl:0= )
84 + X? ( x11-libs/libXt )
85 +"
86 +
87 +DEPEND="
88 + ${RDEPEND}
89 + sys-devel/autoconf
90 + nls? ( sys-devel/gettext )
91 +"
92 +
93 +pkg_setup() {
94 + # people with broken alphabets run into trouble. bug 82186.
95 + unset LANG LC_ALL
96 + export LC_COLLATE="C"
97 +
98 + # Gnome sandbox silliness. bug #114475.
99 + mkdir -p "${T}"/home || die "mkdir failed"
100 + export HOME="${T}"/home
101 +
102 + use python && python-single-r1_pkg_setup
103 +}
104 +
105 +src_prepare() {
106 + if [[ ${PV} != 9999* ]] ; then
107 + # Gentoo patches to fix runtime issues, cross-compile errors, etc
108 + eapply "${WORKDIR}"/patches/
109 + fi
110 +
111 + # Fixup a script to use awk instead of nawk
112 + sed -i -e \
113 + '1s|.*|#!'"${EPREFIX}"'/usr/bin/awk -f|' \
114 + "${S}"/runtime/tools/mve.awk || die "mve.awk sed failed"
115 +
116 + # Read vimrc and gvimrc from /etc/vim
117 + echo '#define SYS_VIMRC_FILE "'${EPREFIX}'/etc/vim/vimrc"' \
118 + >> "${S}"/src/feature.h || die "echo failed"
119 + echo '#define SYS_GVIMRC_FILE "'${EPREFIX}'/etc/vim/gvimrc"' \
120 + >> "${S}"/src/feature.h || die "echo failed"
121 +
122 + # Use exuberant ctags which installs as /usr/bin/exuberant-ctags.
123 + # Hopefully this pattern won't break for a while at least.
124 + # This fixes bug 29398 (27 Sep 2003 agriffis)
125 + sed -i -e \
126 + 's/\<ctags\("\| [-*.]\)/exuberant-&/g' \
127 + "${S}"/runtime/doc/syntax.txt \
128 + "${S}"/runtime/doc/tagsrch.txt \
129 + "${S}"/runtime/doc/usr_29.txt \
130 + "${S}"/runtime/menu.vim \
131 + "${S}"/src/configure.ac || die 'sed failed'
132 +
133 + # Don't be fooled by /usr/include/libc.h. When found, vim thinks
134 + # this is NeXT, but it's actually just a file in dev-libs/9libs
135 + # This fixes bug 43885 (20 Mar 2004 agriffis)
136 + sed -i -e \
137 + 's/ libc\.h / /' \
138 + "${S}"/src/configure.ac || die 'sed failed'
139 +
140 + # gcc on sparc32 has this, uhm, interesting problem with detecting EOF
141 + # correctly. To avoid some really entertaining error messages about stuff
142 + # which isn't even in the source file being invalid, we'll do some trickery
143 + # to make the error never occur. bug 66162 (02 October 2004 ciaranm)
144 + find "${S}" -name '*.c' | while read c; do
145 + echo >> "$c" || die "echo failed"
146 + done
147 +
148 + # conditionally make the manpager.sh script
149 + if use vim-pager; then
150 + cat > "${S}"/runtime/macros/manpager.sh <<-_EOF_ || die "cat EOF failed"
151 + #!/bin/sh
152 + sed -e 's/\x1B\[[[:digit:]]\+m//g' | col -b | \\
153 + vim \\
154 + -c 'let no_plugin_maps = 1' \\
155 + -c 'set nolist nomod ft=man ts=8' \\
156 + -c 'let g:showmarks_enable=0' \\
157 + -c 'runtime! macros/less.vim' -
158 + _EOF_
159 + fi
160 +
161 + # Try to avoid sandbox problems. Bug #114475.
162 + if [[ -d "${S}"/src/po ]]; then
163 + sed -i -e \
164 + '/-S check.vim/s,..VIM.,ln -s $(VIM) testvim \; ./testvim -X,' \
165 + "${S}"/src/po/Makefile || die "sed failed"
166 + fi
167 +
168 + cp -v "${S}"/src/config.mk.dist "${S}"/src/auto/config.mk || die "cp failed"
169 +
170 + sed -i -e \
171 + "s:\\\$(PERLLIB)/ExtUtils/xsubpp:${EPREFIX}/usr/bin/xsubpp:" \
172 + "${S}"/src/Makefile || die 'sed for ExtUtils-ParseXS failed'
173 +
174 + eapply_user
175 +}
176 +
177 +src_configure() {
178 + local myconf=()
179 +
180 + # Fix bug 37354: Disallow -funroll-all-loops on amd64
181 + # Bug 57859 suggests that we want to do this for all archs
182 + filter-flags -funroll-all-loops
183 +
184 + # Fix bug 76331: -O3 causes problems, use -O2 instead. We'll do this for
185 + # everyone since previous flag filtering bugs have turned out to affect
186 + # multiple archs...
187 + replace-flags -O3 -O2
188 +
189 + # Fix bug 18245: Prevent "make" from the following chain:
190 + # (1) Notice configure.ac is newer than auto/configure
191 + # (2) Rebuild auto/configure
192 + # (3) Notice auto/configure is newer than auto/config.mk
193 + # (4) Run ./configure (with wrong args) to remake auto/config.mk
194 + sed -i 's# auto/config\.mk:#:#' src/Makefile || die "Makefile sed failed"
195 + rm src/auto/configure || die "rm failed"
196 + emake -j1 -C src autoconf
197 +
198 + # This should fix a sandbox violation (see bug 24447). The hvc
199 + # things are for ppc64, see bug 86433.
200 + for file in /dev/pty/s* /dev/console /dev/hvc/* /dev/hvc*; do
201 + if [[ -e "${file}" ]]; then
202 + addwrite $file
203 + fi
204 + done
205 +
206 + if use minimal; then
207 + myconf=(
208 + --with-features=tiny
209 + --disable-nls
210 + --disable-canberra
211 + --disable-acl
212 + --enable-gui=no
213 + --without-x
214 + --disable-darwin
215 + --disable-luainterp
216 + --disable-perlinterp
217 + --disable-pythoninterp
218 + --disable-mzschemeinterp
219 + --disable-rubyinterp
220 + --disable-selinux
221 + --disable-tclinterp
222 + --disable-gpm
223 + )
224 + else
225 + use debug && append-flags "-DDEBUG"
226 +
227 + myconf=(
228 + --with-features=huge
229 + $(use_enable sound canberra)
230 + $(use_enable acl)
231 + $(use_enable cscope)
232 + $(use_enable gpm)
233 + $(use_enable lua luainterp)
234 + $(usex lua "--with-lua-prefix=${EPREFIX}/usr" "")
235 + $(use_with luajit)
236 + $(use_enable nls)
237 + $(use_enable perl perlinterp)
238 + $(use_enable python pythoninterp)
239 + $(use_enable python python3interp)
240 + $(use_with python python-command $(type -P $(eselect python show --python2)))
241 + $(use_with python python3-command $(type -P $(eselect python show --python3)))
242 + $(use_enable racket mzschemeinterp)
243 + $(use_enable ruby rubyinterp)
244 + $(use_enable selinux)
245 + $(use_enable tcl tclinterp)
246 + $(use_enable terminal)
247 + )
248 +
249 + # --with-features=huge forces on cscope even if we --disable it. We need
250 + # to sed this out to avoid screwiness. (1 Sep 2004 ciaranm)
251 + if ! use cscope; then
252 + sed -i -e \
253 + '/# define FEAT_CSCOPE/d' src/feature.h || die "sed failed"
254 + fi
255 +
256 + # don't test USE=X here ... see bug #19115
257 + # but need to provide a way to link against X ... see bug #20093
258 + myconf+=(
259 + --enable-gui=no
260 + --disable-darwin
261 + $(use_with X x)
262 + )
263 + fi
264 +
265 + # let package manager strip binaries
266 + export ac_cv_prog_STRIP="$(type -P true ) faking strip"
267 +
268 + # keep prefix env contained within the EPREFIX
269 + use prefix && myconf+=( --without-local-dir )
270 +
271 + econf \
272 + --with-modified-by=Gentoo-${PVR} \
273 + "${myconf[@]}"
274 +}
275 +
276 +src_compile() {
277 + # The following allows emake to be used
278 + emake -j1 -C src auto/osdef.h objects
279 +
280 + emake
281 +}
282 +
283 +src_test() {
284 + einfo
285 + einfo "Starting vim tests. Several error messages will be shown"
286 + einfo "while the tests run. This is normal behaviour and does not"
287 + einfo "indicate a fault."
288 + einfo
289 + ewarn "If the tests fail, your terminal may be left in a strange"
290 + ewarn "state. Usually, running 'reset' will fix this."
291 + einfo
292 +
293 + # Don't let vim talk to X
294 + unset DISPLAY
295 +
296 + emake -j1 -C src/testdir nongui
297 +}
298 +
299 +# Call eselect vi update with --if-unset
300 +# to respect user's choice (bug 187449)
301 +eselect_vi_update() {
302 + einfo "Calling eselect vi update..."
303 + eselect vi update --if-unset
304 + eend $?
305 +}
306 +
307 +src_install() {
308 + local vimfiles=/usr/share/vim/vim${VIM_VERSION/.}
309 +
310 + # Note: Do not install symlinks for 'vi', 'ex', or 'view', as these are
311 + # managed by eselect-vi
312 + dobin src/vim
313 + dosym vim /usr/bin/vimdiff
314 + dosym vim /usr/bin/rvim
315 + dosym vim /usr/bin/rview
316 + if use vim-pager ; then
317 + dosym ${vimfiles}/macros/less.sh /usr/bin/vimpager
318 + dosym ${vimfiles}/macros/manpager.sh /usr/bin/vimmanpager
319 + insinto ${vimfiles}/macros
320 + doins runtime/macros/manpager.sh
321 + fperms a+x ${vimfiles}/macros/manpager.sh
322 + fi
323 +
324 + domenu runtime/vim.desktop
325 +
326 + newbashcomp "${FILESDIR}"/${PN}-completion ${PN}
327 +
328 + # keep in sync with 'complete ... -F' list
329 + bashcomp_alias vim ex vi view rvim rview vimdiff
330 +}
331 +
332 +pkg_postinst() {
333 + # Update documentation tags (from vim-doc.eclass)
334 + update_vim_helptags
335 +
336 + # Call eselect vi update
337 + eselect_vi_update
338 +
339 + # update desktop file mime cache
340 + xdg_desktop_database_update
341 +}
342 +
343 +pkg_postrm() {
344 + # Update documentation tags (from vim-doc.eclass)
345 + update_vim_helptags
346 +
347 + # Call eselect vi update
348 + eselect_vi_update
349 +
350 + # update desktop file mime cache
351 + xdg_desktop_database_update
352 +}