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