Gentoo Archives: gentoo-commits

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