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: Thu, 20 Sep 2018 05:31:37
Message-Id: 1537421453.9c7c8109974f4c428e7b49f6e476386e187c8193.radhermit@gentoo
1 commit: 9c7c8109974f4c428e7b49f6e476386e187c8193
2 Author: Tim Harder <radhermit <AT> gentoo <DOT> org>
3 AuthorDate: Thu Sep 20 05:28:20 2018 +0000
4 Commit: Tim Harder <radhermit <AT> gentoo <DOT> org>
5 CommitDate: Thu Sep 20 05:30:53 2018 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=9c7c8109
7
8 app-editors/vim: remove old
9
10 app-editors/vim/Manifest | 2 -
11 app-editors/vim/vim-8.0.1428.ebuild | 309 ------------------------------------
12 app-editors/vim/vim-8.0.1645.ebuild | 309 ------------------------------------
13 3 files changed, 620 deletions(-)
14
15 diff --git a/app-editors/vim/Manifest b/app-editors/vim/Manifest
16 index 4bc82fa45ce..100f5698d8f 100644
17 --- a/app-editors/vim/Manifest
18 +++ b/app-editors/vim/Manifest
19 @@ -1,7 +1,5 @@
20 DIST vim-8.0.0938-gentoo-patches.tar.bz2 2316 BLAKE2B 05a87f32fc5cc65e7f5e4e5a87c654b2040ad39f1555ddde7e0e6f473dc8b520916a795406bb6bbeaf5e7ae8748aacebe7a9679461e48802e69417e945eea827 SHA512 a6062be5e6a5c5b437081312df5742353242b5171bf26da04aa6ca216d2b142b2411a88bc1edd460d28e00a59a210c8e1729e801fac6f1efd86bb2e437a56a2b
21 DIST vim-8.0.1298.tar.gz 13395459 BLAKE2B 4b6e3c4443cd675dc3727e8609b89c422f66c7d32908b5136ee312d48427568a8236214c85135242269b6575e0e1336b0973395a6372664435f8bae4d7bee843 SHA512 7704c493359c1a922f876e4d6f3b4ad265d8ce974a59d51a39e5a4424251105250ffc803bcf6c6750daeb5e6376cbbfd24557b075eacf2b0274d7c432db2f681
22 -DIST vim-8.0.1428.tar.gz 13415243 BLAKE2B 88f86c371d0a644212b9e4dc1a15d61244847037f36262a225c361bfc2799b741c128de21ac92bb3fb4a4955894e46d34dc01baa7cbf58f1371d772b36887103 SHA512 f635c53c7e2ca808dc1cb424e6e4b16d8c41c66a86c3c7584444dab3d2482904795fea7c071d65862ae6ac6b2b66b7ad5ac832e1e30f4624d46f220c6f41e2e9
23 -DIST vim-8.0.1645.tar.gz 13535252 BLAKE2B a5c7463e85eed12825bdf46d15eb7e7513d62831eba76cbb90af875010b33662b7a6ef2c4c5cecddface415d75e97caf0a670e69835ecd3b4a89704f3b18b905 SHA512 367b9e205e776f84fcfbb92725afd5e7aa66898110d46dbea1a33f7b74c239559e829b5104c45360539c8f2b23c375ed59ccea7ee35a5dd10770400d9a7be085
24 DIST vim-8.0.1699.tar.gz 13546105 BLAKE2B cabf29d5a89c55e2fe3bc5e39eb499412f5907ddf856f8644b466f1e0fbffefff3cd801b6bc5e49e62ffdf8805b0556058b9a913015a9f9fbe1a4f580132fd49 SHA512 b0fe8e1dc05fdc3758896caf4746da40988ca7604d77dbe78c47525cbf8f0d7e6c05f690687268eda581009050d4e02e93fb4d30734cbbab4cfd6a8a1488c1e7
25 DIST vim-8.1.0034.tar.gz 13652586 BLAKE2B 98dac6b37c04ea8c15f0b0e2e4145d6529138e0532e92751fd07be04a2180519135d386dfc19e7f12c8eb37b3e15ee81ba357680d453afab56d96299b69cb511 SHA512 b2b85035c6c60a09e903d8f6deb500e42ab8bfc2f9a5b959d0055a8e02dab3a91d5460fd5028e6634c5ef6ab034186b7155e341fa25e84b9851290708e892d19
26 DIST vim-8.1.0412.tar.gz 13857501 BLAKE2B 6925184359b8b36cb546c9fcba4bb01755455aa87171ea7328ece411a5a5ced45096b8bef8561059bbff9a3ade565e0648fd18dd091d6faad0eb8a67321337a5 SHA512 3f458c039a636d7d3e398f8aa9cba4b4ae650c00038618c4776959b6feb0a1e3ac56be2912c3d85cba8e8f301661a62d71acd34a4dd75dc4dc000a94bf1b237e
27
28 diff --git a/app-editors/vim/vim-8.0.1428.ebuild b/app-editors/vim/vim-8.0.1428.ebuild
29 deleted file mode 100644
30 index ca2b1f9cfe2..00000000000
31 --- a/app-editors/vim/vim-8.0.1428.ebuild
32 +++ /dev/null
33 @@ -1,309 +0,0 @@
34 -# Copyright 1999-2018 Gentoo Foundation
35 -# Distributed under the terms of the GNU General Public License v2
36 -
37 -EAPI=6
38 -VIM_VERSION="8.0"
39 -PYTHON_COMPAT=( python{2_7,3_4,3_5,3_6} )
40 -PYTHON_REQ_USE=threads
41 -inherit vim-doc flag-o-matic versionator bash-completion-r1 python-single-r1
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 ~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 - luajit? ( lua )
60 - python? ( ${PYTHON_REQUIRED_USE} )
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? (
75 - ~app-editors/vim-core-${PV}
76 - dev-util/ctags
77 - )
78 - perl? ( dev-lang/perl:= )
79 - python? ( ${PYTHON_DEPS} )
80 - racket? ( dev-scheme/racket )
81 - ruby? ( || ( dev-lang/ruby:2.4 dev-lang/ruby:2.3 ) )
82 - selinux? ( sys-libs/libselinux )
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-multibyte
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 - --enable-multibyte
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_enable racket mzschemeinterp)
241 - $(use_enable ruby rubyinterp)
242 - $(use_enable selinux)
243 - $(use_enable tcl tclinterp)
244 - $(use_enable terminal)
245 - )
246 -
247 - # --with-features=huge forces on cscope even if we --disable it. We need
248 - # to sed this out to avoid screwiness. (1 Sep 2004 ciaranm)
249 - if ! use cscope; then
250 - sed -i -e \
251 - '/# define FEAT_CSCOPE/d' src/feature.h || die "sed failed"
252 - fi
253 -
254 - # don't test USE=X here ... see bug #19115
255 - # but need to provide a way to link against X ... see bug #20093
256 - myconf+=(
257 - --enable-gui=no
258 - --disable-darwin
259 - $(use_with X x)
260 - )
261 - fi
262 -
263 - # let package manager strip binaries
264 - export ac_cv_prog_STRIP="$(type -P true ) faking strip"
265 -
266 - # keep prefix env contained within the EPREFIX
267 - use prefix && myconf+=( --without-local-dir )
268 -
269 - econf \
270 - --with-modified-by=Gentoo-${PVR} \
271 - "${myconf[@]}"
272 -}
273 -
274 -src_compile() {
275 - # The following allows emake to be used
276 - emake -j1 -C src auto/osdef.h objects
277 -
278 - emake
279 -}
280 -
281 -src_test() {
282 - einfo
283 - einfo "Starting vim tests. Several error messages will be shown"
284 - einfo "while the tests run. This is normal behaviour and does not"
285 - einfo "indicate a fault."
286 - einfo
287 - ewarn "If the tests fail, your terminal may be left in a strange"
288 - ewarn "state. Usually, running 'reset' will fix this."
289 - einfo
290 -
291 - # Don't let vim talk to X
292 - unset DISPLAY
293 -
294 - emake -j1 -C src/testdir nongui
295 -}
296 -
297 -# Call eselect vi update with --if-unset
298 -# to respect user's choice (bug 187449)
299 -eselect_vi_update() {
300 - einfo "Calling eselect vi update..."
301 - eselect vi update --if-unset
302 - eend $?
303 -}
304 -
305 -src_install() {
306 - local vimfiles=/usr/share/vim/vim${VIM_VERSION/.}
307 -
308 - # Note: Do not install symlinks for 'vi', 'ex', or 'view', as these are
309 - # managed by eselect-vi
310 - dobin src/vim
311 - dosym vim /usr/bin/vimdiff
312 - dosym vim /usr/bin/rvim
313 - dosym vim /usr/bin/rview
314 - if use vim-pager ; then
315 - dosym ${vimfiles}/macros/less.sh /usr/bin/vimpager
316 - dosym ${vimfiles}/macros/manpager.sh /usr/bin/vimmanpager
317 - insinto ${vimfiles}/macros
318 - doins runtime/macros/manpager.sh
319 - fperms a+x ${vimfiles}/macros/manpager.sh
320 - fi
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 -
336 -pkg_postrm() {
337 - # Update documentation tags (from vim-doc.eclass)
338 - update_vim_helptags
339 -
340 - # Call eselect vi update
341 - eselect_vi_update
342 -}
343
344 diff --git a/app-editors/vim/vim-8.0.1645.ebuild b/app-editors/vim/vim-8.0.1645.ebuild
345 deleted file mode 100644
346 index f3345e1a842..00000000000
347 --- a/app-editors/vim/vim-8.0.1645.ebuild
348 +++ /dev/null
349 @@ -1,309 +0,0 @@
350 -# Copyright 1999-2018 Gentoo Foundation
351 -# Distributed under the terms of the GNU General Public License v2
352 -
353 -EAPI=6
354 -VIM_VERSION="8.0"
355 -PYTHON_COMPAT=( python{2_7,3_4,3_5,3_6} )
356 -PYTHON_REQ_USE=threads
357 -inherit vim-doc flag-o-matic versionator bash-completion-r1 python-single-r1
358 -
359 -if [[ ${PV} == 9999* ]] ; then
360 - inherit git-r3
361 - EGIT_REPO_URI="https://github.com/vim/vim.git"
362 -else
363 - SRC_URI="https://github.com/vim/vim/archive/v${PV}.tar.gz -> ${P}.tar.gz
364 - https://dev.gentoo.org/~radhermit/vim/vim-8.0.0938-gentoo-patches.tar.bz2"
365 - KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~m68k ~mips ~ppc ~ppc64 ~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"
366 -fi
367 -
368 -DESCRIPTION="Vim, an improved vi-style text editor"
369 -HOMEPAGE="https://vim.sourceforge.io/ https://github.com/vim/vim"
370 -
371 -SLOT="0"
372 -LICENSE="vim"
373 -IUSE="X acl cscope debug gpm lua luajit minimal nls perl python racket ruby selinux tcl terminal vim-pager"
374 -REQUIRED_USE="
375 - luajit? ( lua )
376 - python? ( ${PYTHON_REQUIRED_USE} )
377 -"
378 -
379 -RDEPEND="
380 - >=app-eselect/eselect-vi-1.1
381 - >=sys-libs/ncurses-5.2-r2:0=
382 - nls? ( virtual/libintl )
383 - acl? ( kernel_linux? ( sys-apps/acl ) )
384 - cscope? ( dev-util/cscope )
385 - gpm? ( >=sys-libs/gpm-1.19.3 )
386 - lua? (
387 - luajit? ( dev-lang/luajit:2= )
388 - !luajit? ( dev-lang/lua:0[deprecated] )
389 - )
390 - !minimal? (
391 - ~app-editors/vim-core-${PV}
392 - dev-util/ctags
393 - )
394 - perl? ( dev-lang/perl:= )
395 - python? ( ${PYTHON_DEPS} )
396 - racket? ( dev-scheme/racket )
397 - ruby? ( || ( dev-lang/ruby:2.5 dev-lang/ruby:2.4 dev-lang/ruby:2.3 ) )
398 - selinux? ( sys-libs/libselinux )
399 - tcl? ( dev-lang/tcl:0= )
400 - X? ( x11-libs/libXt )
401 -"
402 -
403 -DEPEND="
404 - ${RDEPEND}
405 - sys-devel/autoconf
406 - nls? ( sys-devel/gettext )
407 -"
408 -
409 -pkg_setup() {
410 - # people with broken alphabets run into trouble. bug 82186.
411 - unset LANG LC_ALL
412 - export LC_COLLATE="C"
413 -
414 - # Gnome sandbox silliness. bug #114475.
415 - mkdir -p "${T}"/home || die "mkdir failed"
416 - export HOME="${T}"/home
417 -
418 - use python && python-single-r1_pkg_setup
419 -}
420 -
421 -src_prepare() {
422 - if [[ ${PV} != 9999* ]] ; then
423 - # Gentoo patches to fix runtime issues, cross-compile errors, etc
424 - eapply "${WORKDIR}"/patches/
425 - fi
426 -
427 - # Fixup a script to use awk instead of nawk
428 - sed -i -e \
429 - '1s|.*|#!'"${EPREFIX}"'/usr/bin/awk -f|' \
430 - "${S}"/runtime/tools/mve.awk || die "mve.awk sed failed"
431 -
432 - # Read vimrc and gvimrc from /etc/vim
433 - echo '#define SYS_VIMRC_FILE "'${EPREFIX}'/etc/vim/vimrc"' \
434 - >> "${S}"/src/feature.h || die "echo failed"
435 - echo '#define SYS_GVIMRC_FILE "'${EPREFIX}'/etc/vim/gvimrc"' \
436 - >> "${S}"/src/feature.h || die "echo failed"
437 -
438 - # Use exuberant ctags which installs as /usr/bin/exuberant-ctags.
439 - # Hopefully this pattern won't break for a while at least.
440 - # This fixes bug 29398 (27 Sep 2003 agriffis)
441 - sed -i -e \
442 - 's/\<ctags\("\| [-*.]\)/exuberant-&/g' \
443 - "${S}"/runtime/doc/syntax.txt \
444 - "${S}"/runtime/doc/tagsrch.txt \
445 - "${S}"/runtime/doc/usr_29.txt \
446 - "${S}"/runtime/menu.vim \
447 - "${S}"/src/configure.ac || die 'sed failed'
448 -
449 - # Don't be fooled by /usr/include/libc.h. When found, vim thinks
450 - # this is NeXT, but it's actually just a file in dev-libs/9libs
451 - # This fixes bug 43885 (20 Mar 2004 agriffis)
452 - sed -i -e \
453 - 's/ libc\.h / /' \
454 - "${S}"/src/configure.ac || die 'sed failed'
455 -
456 - # gcc on sparc32 has this, uhm, interesting problem with detecting EOF
457 - # correctly. To avoid some really entertaining error messages about stuff
458 - # which isn't even in the source file being invalid, we'll do some trickery
459 - # to make the error never occur. bug 66162 (02 October 2004 ciaranm)
460 - find "${S}" -name '*.c' | while read c; do
461 - echo >> "$c" || die "echo failed"
462 - done
463 -
464 - # conditionally make the manpager.sh script
465 - if use vim-pager; then
466 - cat > "${S}"/runtime/macros/manpager.sh <<-_EOF_ || die "cat EOF failed"
467 - #!/bin/sh
468 - sed -e 's/\x1B\[[[:digit:]]\+m//g' | col -b | \\
469 - vim \\
470 - -c 'let no_plugin_maps = 1' \\
471 - -c 'set nolist nomod ft=man ts=8' \\
472 - -c 'let g:showmarks_enable=0' \\
473 - -c 'runtime! macros/less.vim' -
474 - _EOF_
475 - fi
476 -
477 - # Try to avoid sandbox problems. Bug #114475.
478 - if [[ -d "${S}"/src/po ]]; then
479 - sed -i -e \
480 - '/-S check.vim/s,..VIM.,ln -s $(VIM) testvim \; ./testvim -X,' \
481 - "${S}"/src/po/Makefile || die "sed failed"
482 - fi
483 -
484 - cp -v "${S}"/src/config.mk.dist "${S}"/src/auto/config.mk || die "cp failed"
485 -
486 - sed -i -e \
487 - "s:\\\$(PERLLIB)/ExtUtils/xsubpp:${EPREFIX}/usr/bin/xsubpp:" \
488 - "${S}"/src/Makefile || die 'sed for ExtUtils-ParseXS failed'
489 -
490 - eapply_user
491 -}
492 -
493 -src_configure() {
494 - local myconf=()
495 -
496 - # Fix bug 37354: Disallow -funroll-all-loops on amd64
497 - # Bug 57859 suggests that we want to do this for all archs
498 - filter-flags -funroll-all-loops
499 -
500 - # Fix bug 76331: -O3 causes problems, use -O2 instead. We'll do this for
501 - # everyone since previous flag filtering bugs have turned out to affect
502 - # multiple archs...
503 - replace-flags -O3 -O2
504 -
505 - # Fix bug 18245: Prevent "make" from the following chain:
506 - # (1) Notice configure.ac is newer than auto/configure
507 - # (2) Rebuild auto/configure
508 - # (3) Notice auto/configure is newer than auto/config.mk
509 - # (4) Run ./configure (with wrong args) to remake auto/config.mk
510 - sed -i 's# auto/config\.mk:#:#' src/Makefile || die "Makefile sed failed"
511 - rm src/auto/configure || die "rm failed"
512 - emake -j1 -C src autoconf
513 -
514 - # This should fix a sandbox violation (see bug 24447). The hvc
515 - # things are for ppc64, see bug 86433.
516 - for file in /dev/pty/s* /dev/console /dev/hvc/* /dev/hvc*; do
517 - if [[ -e "${file}" ]]; then
518 - addwrite $file
519 - fi
520 - done
521 -
522 - if use minimal; then
523 - myconf=(
524 - --with-features=tiny
525 - --disable-nls
526 - --disable-multibyte
527 - --disable-acl
528 - --enable-gui=no
529 - --without-x
530 - --disable-darwin
531 - --disable-luainterp
532 - --disable-perlinterp
533 - --disable-pythoninterp
534 - --disable-mzschemeinterp
535 - --disable-rubyinterp
536 - --disable-selinux
537 - --disable-tclinterp
538 - --disable-gpm
539 - )
540 - else
541 - use debug && append-flags "-DDEBUG"
542 -
543 - myconf=(
544 - --with-features=huge
545 - --enable-multibyte
546 - $(use_enable acl)
547 - $(use_enable cscope)
548 - $(use_enable gpm)
549 - $(use_enable lua luainterp)
550 - $(usex lua "--with-lua-prefix=${EPREFIX}/usr" "")
551 - $(use_with luajit)
552 - $(use_enable nls)
553 - $(use_enable perl perlinterp)
554 - $(use_enable python pythoninterp)
555 - $(use_enable python python3interp)
556 - $(use_enable racket mzschemeinterp)
557 - $(use_enable ruby rubyinterp)
558 - $(use_enable selinux)
559 - $(use_enable tcl tclinterp)
560 - $(use_enable terminal)
561 - )
562 -
563 - # --with-features=huge forces on cscope even if we --disable it. We need
564 - # to sed this out to avoid screwiness. (1 Sep 2004 ciaranm)
565 - if ! use cscope; then
566 - sed -i -e \
567 - '/# define FEAT_CSCOPE/d' src/feature.h || die "sed failed"
568 - fi
569 -
570 - # don't test USE=X here ... see bug #19115
571 - # but need to provide a way to link against X ... see bug #20093
572 - myconf+=(
573 - --enable-gui=no
574 - --disable-darwin
575 - $(use_with X x)
576 - )
577 - fi
578 -
579 - # let package manager strip binaries
580 - export ac_cv_prog_STRIP="$(type -P true ) faking strip"
581 -
582 - # keep prefix env contained within the EPREFIX
583 - use prefix && myconf+=( --without-local-dir )
584 -
585 - econf \
586 - --with-modified-by=Gentoo-${PVR} \
587 - "${myconf[@]}"
588 -}
589 -
590 -src_compile() {
591 - # The following allows emake to be used
592 - emake -j1 -C src auto/osdef.h objects
593 -
594 - emake
595 -}
596 -
597 -src_test() {
598 - einfo
599 - einfo "Starting vim tests. Several error messages will be shown"
600 - einfo "while the tests run. This is normal behaviour and does not"
601 - einfo "indicate a fault."
602 - einfo
603 - ewarn "If the tests fail, your terminal may be left in a strange"
604 - ewarn "state. Usually, running 'reset' will fix this."
605 - einfo
606 -
607 - # Don't let vim talk to X
608 - unset DISPLAY
609 -
610 - emake -j1 -C src/testdir nongui
611 -}
612 -
613 -# Call eselect vi update with --if-unset
614 -# to respect user's choice (bug 187449)
615 -eselect_vi_update() {
616 - einfo "Calling eselect vi update..."
617 - eselect vi update --if-unset
618 - eend $?
619 -}
620 -
621 -src_install() {
622 - local vimfiles=/usr/share/vim/vim${VIM_VERSION/.}
623 -
624 - # Note: Do not install symlinks for 'vi', 'ex', or 'view', as these are
625 - # managed by eselect-vi
626 - dobin src/vim
627 - dosym vim /usr/bin/vimdiff
628 - dosym vim /usr/bin/rvim
629 - dosym vim /usr/bin/rview
630 - if use vim-pager ; then
631 - dosym ${vimfiles}/macros/less.sh /usr/bin/vimpager
632 - dosym ${vimfiles}/macros/manpager.sh /usr/bin/vimmanpager
633 - insinto ${vimfiles}/macros
634 - doins runtime/macros/manpager.sh
635 - fperms a+x ${vimfiles}/macros/manpager.sh
636 - fi
637 -
638 - newbashcomp "${FILESDIR}"/${PN}-completion ${PN}
639 -
640 - # keep in sync with 'complete ... -F' list
641 - bashcomp_alias vim ex vi view rvim rview vimdiff
642 -}
643 -
644 -pkg_postinst() {
645 - # Update documentation tags (from vim-doc.eclass)
646 - update_vim_helptags
647 -
648 - # Call eselect vi update
649 - eselect_vi_update
650 -}
651 -
652 -pkg_postrm() {
653 - # Update documentation tags (from vim-doc.eclass)
654 - update_vim_helptags
655 -
656 - # Call eselect vi update
657 - eselect_vi_update
658 -}