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: Mon, 29 Jul 2019 08:13:28
Message-Id: 1564387996.b76af96881a33194caad11211a3261aeee20dc96.radhermit@gentoo
1 commit: b76af96881a33194caad11211a3261aeee20dc96
2 Author: Tim Harder <radhermit <AT> gentoo <DOT> org>
3 AuthorDate: Mon Jul 29 08:08:11 2019 +0000
4 Commit: Tim Harder <radhermit <AT> gentoo <DOT> org>
5 CommitDate: Mon Jul 29 08:13:16 2019 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=b76af968
7
8 app-editors/vim: remove old
9
10 Signed-off-by: Tim Harder <radhermit <AT> gentoo.org>
11
12 app-editors/vim/Manifest | 7 -
13 app-editors/vim/vim-8.0.1298.ebuild | 309 -------------------------------
14 app-editors/vim/vim-8.0.1699.ebuild | 311 --------------------------------
15 app-editors/vim/vim-8.1.0034.ebuild | 311 --------------------------------
16 app-editors/vim/vim-8.1.0412-r1.ebuild | 313 --------------------------------
17 app-editors/vim/vim-8.1.0412.ebuild | 313 --------------------------------
18 app-editors/vim/vim-8.1.0648-r1.ebuild | 321 ---------------------------------
19 app-editors/vim/vim-8.1.0648.ebuild | 319 --------------------------------
20 app-editors/vim/vim-8.1.1155.ebuild | 318 --------------------------------
21 app-editors/vim/vim-8.1.1312.ebuild | 317 --------------------------------
22 10 files changed, 2839 deletions(-)
23
24 diff --git a/app-editors/vim/Manifest b/app-editors/vim/Manifest
25 index a7579ec0549..6ba358e2d5b 100644
26 --- a/app-editors/vim/Manifest
27 +++ b/app-editors/vim/Manifest
28 @@ -1,9 +1,2 @@
29 DIST vim-8.0.0938-gentoo-patches.tar.bz2 2316 BLAKE2B 05a87f32fc5cc65e7f5e4e5a87c654b2040ad39f1555ddde7e0e6f473dc8b520916a795406bb6bbeaf5e7ae8748aacebe7a9679461e48802e69417e945eea827 SHA512 a6062be5e6a5c5b437081312df5742353242b5171bf26da04aa6ca216d2b142b2411a88bc1edd460d28e00a59a210c8e1729e801fac6f1efd86bb2e437a56a2b
30 -DIST vim-8.0.1298.tar.gz 13395459 BLAKE2B 4b6e3c4443cd675dc3727e8609b89c422f66c7d32908b5136ee312d48427568a8236214c85135242269b6575e0e1336b0973395a6372664435f8bae4d7bee843 SHA512 7704c493359c1a922f876e4d6f3b4ad265d8ce974a59d51a39e5a4424251105250ffc803bcf6c6750daeb5e6376cbbfd24557b075eacf2b0274d7c432db2f681
31 -DIST vim-8.0.1699.tar.gz 13546105 BLAKE2B cabf29d5a89c55e2fe3bc5e39eb499412f5907ddf856f8644b466f1e0fbffefff3cd801b6bc5e49e62ffdf8805b0556058b9a913015a9f9fbe1a4f580132fd49 SHA512 b0fe8e1dc05fdc3758896caf4746da40988ca7604d77dbe78c47525cbf8f0d7e6c05f690687268eda581009050d4e02e93fb4d30734cbbab4cfd6a8a1488c1e7
32 -DIST vim-8.1.0034.tar.gz 13652586 BLAKE2B 98dac6b37c04ea8c15f0b0e2e4145d6529138e0532e92751fd07be04a2180519135d386dfc19e7f12c8eb37b3e15ee81ba357680d453afab56d96299b69cb511 SHA512 b2b85035c6c60a09e903d8f6deb500e42ab8bfc2f9a5b959d0055a8e02dab3a91d5460fd5028e6634c5ef6ab034186b7155e341fa25e84b9851290708e892d19
33 -DIST vim-8.1.0412.tar.gz 13857501 BLAKE2B 6925184359b8b36cb546c9fcba4bb01755455aa87171ea7328ece411a5a5ced45096b8bef8561059bbff9a3ade565e0648fd18dd091d6faad0eb8a67321337a5 SHA512 3f458c039a636d7d3e398f8aa9cba4b4ae650c00038618c4776959b6feb0a1e3ac56be2912c3d85cba8e8f301661a62d71acd34a4dd75dc4dc000a94bf1b237e
34 -DIST vim-8.1.0648.tar.gz 14061964 BLAKE2B 79bf52d8574167471c93942904dc2b4ad5648ec365561494bbad45c779154b75b0fff1d90229516e938371f1eaa5808659cb2181b150c4c13bf8501bd9987b38 SHA512 d41676a6bb6bc442f4946ca021b2835d7ea0e54fbefe1bfc728241e1bf203cc696b707fcca6f25c877660283a790cefa4259fbd14de88fd4db7390701189c454
35 -DIST vim-8.1.1155.tar.gz 14141750 BLAKE2B f15470768fbdc4e02552b8711626c3ad9647ec5b74ebaa3f82a4f32c050405ef0cf3f29d1e5bdbb4de008bf16262b8cdc81ff153e2694a184523cd913624e8e0 SHA512 0cdc42090958f4c91c13aeeefac0abc4feaa629d8b90c04bd01d5e23efefe21e6316e1b2c3b6015ecf9577573faea9a1b6660de8a2959642e65582dbe9c7f5c6
36 -DIST vim-8.1.1312.tar.gz 14167114 BLAKE2B a69688023ccb2b22028ae6b5387ae45ee8755bb22d82c91525a22e81c1d9bef253b43d2c56c3e70fb330a348612067df9d4c5edf043cb8555c319141e52b716d SHA512 8f38a73c8971199da3477cf291a13e180c99616f0e75b48e9cf68fbf301c91384690666a662f1800afc65241237378ca174cfd0efaa71cbb11932a0ff425b91e
37 DIST vim-8.1.1486.tar.gz 14318109 BLAKE2B 6054df175a32e9ed36873802a4a669cc46e034bac879cb829e45ece53f9440e97cccad47e370ebdef8dc1bb963e8e8c84bd517a3a6561705786dcab7e2368d21 SHA512 0a521d74c60f2a32e8a11e16f256e2e99fb9c00f478cd8d7a9328315abbd445796153f03884ab2b240905260317809a33afb64627b9a71ac8d6db1cbd4026d20
38
39 diff --git a/app-editors/vim/vim-8.0.1298.ebuild b/app-editors/vim/vim-8.0.1298.ebuild
40 deleted file mode 100644
41 index 125373219b5..00000000000
42 --- a/app-editors/vim/vim-8.0.1298.ebuild
43 +++ /dev/null
44 @@ -1,309 +0,0 @@
45 -# Copyright 1999-2019 Gentoo Authors
46 -# Distributed under the terms of the GNU General Public License v2
47 -
48 -EAPI=6
49 -VIM_VERSION="8.0"
50 -PYTHON_COMPAT=( python{2_7,3_5,3_6} )
51 -PYTHON_REQ_USE=threads
52 -inherit vim-doc flag-o-matic versionator bash-completion-r1 python-single-r1
53 -
54 -if [[ ${PV} == 9999* ]] ; then
55 - inherit git-r3
56 - EGIT_REPO_URI="https://github.com/vim/vim.git"
57 -else
58 - SRC_URI="https://github.com/vim/vim/archive/v${PV}.tar.gz -> ${P}.tar.gz
59 - https://dev.gentoo.org/~radhermit/vim/vim-8.0.0938-gentoo-patches.tar.bz2"
60 - 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"
61 -fi
62 -
63 -DESCRIPTION="Vim, an improved vi-style text editor"
64 -HOMEPAGE="https://vim.sourceforge.io/ https://github.com/vim/vim"
65 -
66 -SLOT="0"
67 -LICENSE="vim"
68 -IUSE="X acl cscope debug gpm lua luajit minimal nls perl python racket ruby selinux tcl terminal vim-pager"
69 -REQUIRED_USE="
70 - luajit? ( lua )
71 - python? ( ${PYTHON_REQUIRED_USE} )
72 -"
73 -
74 -RDEPEND="
75 - >=app-eselect/eselect-vi-1.1
76 - >=sys-libs/ncurses-5.2-r2:0=
77 - nls? ( virtual/libintl )
78 - acl? ( kernel_linux? ( sys-apps/acl ) )
79 - cscope? ( dev-util/cscope )
80 - gpm? ( >=sys-libs/gpm-1.19.3 )
81 - lua? (
82 - luajit? ( dev-lang/luajit:2= )
83 - !luajit? ( dev-lang/lua:0[deprecated] )
84 - )
85 - !minimal? (
86 - ~app-editors/vim-core-${PV}
87 - dev-util/ctags
88 - )
89 - perl? ( dev-lang/perl:= )
90 - python? ( ${PYTHON_DEPS} )
91 - racket? ( dev-scheme/racket )
92 - ruby? ( || ( dev-lang/ruby:2.4 dev-lang/ruby:2.3 ) )
93 - selinux? ( sys-libs/libselinux )
94 - tcl? ( dev-lang/tcl:0= )
95 - X? ( x11-libs/libXt )
96 -"
97 -
98 -DEPEND="
99 - ${RDEPEND}
100 - sys-devel/autoconf
101 - nls? ( sys-devel/gettext )
102 -"
103 -
104 -pkg_setup() {
105 - # people with broken alphabets run into trouble. bug 82186.
106 - unset LANG LC_ALL
107 - export LC_COLLATE="C"
108 -
109 - # Gnome sandbox silliness. bug #114475.
110 - mkdir -p "${T}"/home || die "mkdir failed"
111 - export HOME="${T}"/home
112 -
113 - use python && python-single-r1_pkg_setup
114 -}
115 -
116 -src_prepare() {
117 - if [[ ${PV} != 9999* ]] ; then
118 - # Gentoo patches to fix runtime issues, cross-compile errors, etc
119 - eapply "${WORKDIR}"/patches/
120 - fi
121 -
122 - # Fixup a script to use awk instead of nawk
123 - sed -i -e \
124 - '1s|.*|#!'"${EPREFIX}"'/usr/bin/awk -f|' \
125 - "${S}"/runtime/tools/mve.awk || die "mve.awk sed failed"
126 -
127 - # Read vimrc and gvimrc from /etc/vim
128 - echo '#define SYS_VIMRC_FILE "'${EPREFIX}'/etc/vim/vimrc"' \
129 - >> "${S}"/src/feature.h || die "echo failed"
130 - echo '#define SYS_GVIMRC_FILE "'${EPREFIX}'/etc/vim/gvimrc"' \
131 - >> "${S}"/src/feature.h || die "echo failed"
132 -
133 - # Use exuberant ctags which installs as /usr/bin/exuberant-ctags.
134 - # Hopefully this pattern won't break for a while at least.
135 - # This fixes bug 29398 (27 Sep 2003 agriffis)
136 - sed -i -e \
137 - 's/\<ctags\("\| [-*.]\)/exuberant-&/g' \
138 - "${S}"/runtime/doc/syntax.txt \
139 - "${S}"/runtime/doc/tagsrch.txt \
140 - "${S}"/runtime/doc/usr_29.txt \
141 - "${S}"/runtime/menu.vim \
142 - "${S}"/src/configure.ac || die 'sed failed'
143 -
144 - # Don't be fooled by /usr/include/libc.h. When found, vim thinks
145 - # this is NeXT, but it's actually just a file in dev-libs/9libs
146 - # This fixes bug 43885 (20 Mar 2004 agriffis)
147 - sed -i -e \
148 - 's/ libc\.h / /' \
149 - "${S}"/src/configure.ac || die 'sed failed'
150 -
151 - # gcc on sparc32 has this, uhm, interesting problem with detecting EOF
152 - # correctly. To avoid some really entertaining error messages about stuff
153 - # which isn't even in the source file being invalid, we'll do some trickery
154 - # to make the error never occur. bug 66162 (02 October 2004 ciaranm)
155 - find "${S}" -name '*.c' | while read c; do
156 - echo >> "$c" || die "echo failed"
157 - done
158 -
159 - # conditionally make the manpager.sh script
160 - if use vim-pager; then
161 - cat > "${S}"/runtime/macros/manpager.sh <<-_EOF_ || die "cat EOF failed"
162 - #!/bin/sh
163 - sed -e 's/\x1B\[[[:digit:]]\+m//g' | col -b | \\
164 - vim \\
165 - -c 'let no_plugin_maps = 1' \\
166 - -c 'set nolist nomod ft=man ts=8' \\
167 - -c 'let g:showmarks_enable=0' \\
168 - -c 'runtime! macros/less.vim' -
169 - _EOF_
170 - fi
171 -
172 - # Try to avoid sandbox problems. Bug #114475.
173 - if [[ -d "${S}"/src/po ]]; then
174 - sed -i -e \
175 - '/-S check.vim/s,..VIM.,ln -s $(VIM) testvim \; ./testvim -X,' \
176 - "${S}"/src/po/Makefile || die "sed failed"
177 - fi
178 -
179 - cp -v "${S}"/src/config.mk.dist "${S}"/src/auto/config.mk || die "cp failed"
180 -
181 - sed -i -e \
182 - "s:\\\$(PERLLIB)/ExtUtils/xsubpp:${EPREFIX}/usr/bin/xsubpp:" \
183 - "${S}"/src/Makefile || die 'sed for ExtUtils-ParseXS failed'
184 -
185 - eapply_user
186 -}
187 -
188 -src_configure() {
189 - local myconf=()
190 -
191 - # Fix bug 37354: Disallow -funroll-all-loops on amd64
192 - # Bug 57859 suggests that we want to do this for all archs
193 - filter-flags -funroll-all-loops
194 -
195 - # Fix bug 76331: -O3 causes problems, use -O2 instead. We'll do this for
196 - # everyone since previous flag filtering bugs have turned out to affect
197 - # multiple archs...
198 - replace-flags -O3 -O2
199 -
200 - # Fix bug 18245: Prevent "make" from the following chain:
201 - # (1) Notice configure.ac is newer than auto/configure
202 - # (2) Rebuild auto/configure
203 - # (3) Notice auto/configure is newer than auto/config.mk
204 - # (4) Run ./configure (with wrong args) to remake auto/config.mk
205 - sed -i 's# auto/config\.mk:#:#' src/Makefile || die "Makefile sed failed"
206 - rm src/auto/configure || die "rm failed"
207 - emake -j1 -C src autoconf
208 -
209 - # This should fix a sandbox violation (see bug 24447). The hvc
210 - # things are for ppc64, see bug 86433.
211 - for file in /dev/pty/s* /dev/console /dev/hvc/* /dev/hvc*; do
212 - if [[ -e "${file}" ]]; then
213 - addwrite $file
214 - fi
215 - done
216 -
217 - if use minimal; then
218 - myconf=(
219 - --with-features=tiny
220 - --disable-nls
221 - --disable-multibyte
222 - --disable-acl
223 - --enable-gui=no
224 - --without-x
225 - --disable-darwin
226 - --disable-luainterp
227 - --disable-perlinterp
228 - --disable-pythoninterp
229 - --disable-mzschemeinterp
230 - --disable-rubyinterp
231 - --disable-selinux
232 - --disable-tclinterp
233 - --disable-gpm
234 - )
235 - else
236 - use debug && append-flags "-DDEBUG"
237 -
238 - myconf=(
239 - --with-features=huge
240 - --enable-multibyte
241 - $(use_enable acl)
242 - $(use_enable cscope)
243 - $(use_enable gpm)
244 - $(use_enable lua luainterp)
245 - $(usex lua "--with-lua-prefix=${EPREFIX}/usr" "")
246 - $(use_with luajit)
247 - $(use_enable nls)
248 - $(use_enable perl perlinterp)
249 - $(use_enable python pythoninterp)
250 - $(use_enable python python3interp)
251 - $(use_enable racket mzschemeinterp)
252 - $(use_enable ruby rubyinterp)
253 - $(use_enable selinux)
254 - $(use_enable tcl tclinterp)
255 - $(use_enable terminal)
256 - )
257 -
258 - # --with-features=huge forces on cscope even if we --disable it. We need
259 - # to sed this out to avoid screwiness. (1 Sep 2004 ciaranm)
260 - if ! use cscope; then
261 - sed -i -e \
262 - '/# define FEAT_CSCOPE/d' src/feature.h || die "sed failed"
263 - fi
264 -
265 - # don't test USE=X here ... see bug #19115
266 - # but need to provide a way to link against X ... see bug #20093
267 - myconf+=(
268 - --enable-gui=no
269 - --disable-darwin
270 - $(use_with X x)
271 - )
272 - fi
273 -
274 - # let package manager strip binaries
275 - export ac_cv_prog_STRIP="$(type -P true ) faking strip"
276 -
277 - # keep prefix env contained within the EPREFIX
278 - use prefix && myconf+=( --without-local-dir )
279 -
280 - econf \
281 - --with-modified-by=Gentoo-${PVR} \
282 - "${myconf[@]}"
283 -}
284 -
285 -src_compile() {
286 - # The following allows emake to be used
287 - emake -j1 -C src auto/osdef.h objects
288 -
289 - emake
290 -}
291 -
292 -src_test() {
293 - einfo
294 - einfo "Starting vim tests. Several error messages will be shown"
295 - einfo "while the tests run. This is normal behaviour and does not"
296 - einfo "indicate a fault."
297 - einfo
298 - ewarn "If the tests fail, your terminal may be left in a strange"
299 - ewarn "state. Usually, running 'reset' will fix this."
300 - einfo
301 -
302 - # Don't let vim talk to X
303 - unset DISPLAY
304 -
305 - emake -j1 -C src/testdir nongui
306 -}
307 -
308 -# Call eselect vi update with --if-unset
309 -# to respect user's choice (bug 187449)
310 -eselect_vi_update() {
311 - einfo "Calling eselect vi update..."
312 - eselect vi update --if-unset
313 - eend $?
314 -}
315 -
316 -src_install() {
317 - local vimfiles=/usr/share/vim/vim${VIM_VERSION/.}
318 -
319 - # Note: Do not install symlinks for 'vi', 'ex', or 'view', as these are
320 - # managed by eselect-vi
321 - dobin src/vim
322 - dosym vim /usr/bin/vimdiff
323 - dosym vim /usr/bin/rvim
324 - dosym vim /usr/bin/rview
325 - if use vim-pager ; then
326 - dosym ${vimfiles}/macros/less.sh /usr/bin/vimpager
327 - dosym ${vimfiles}/macros/manpager.sh /usr/bin/vimmanpager
328 - insinto ${vimfiles}/macros
329 - doins runtime/macros/manpager.sh
330 - fperms a+x ${vimfiles}/macros/manpager.sh
331 - fi
332 -
333 - newbashcomp "${FILESDIR}"/${PN}-completion ${PN}
334 -
335 - # keep in sync with 'complete ... -F' list
336 - bashcomp_alias vim ex vi view rvim rview vimdiff
337 -}
338 -
339 -pkg_postinst() {
340 - # Update documentation tags (from vim-doc.eclass)
341 - update_vim_helptags
342 -
343 - # Call eselect vi update
344 - eselect_vi_update
345 -}
346 -
347 -pkg_postrm() {
348 - # Update documentation tags (from vim-doc.eclass)
349 - update_vim_helptags
350 -
351 - # Call eselect vi update
352 - eselect_vi_update
353 -}
354
355 diff --git a/app-editors/vim/vim-8.0.1699.ebuild b/app-editors/vim/vim-8.0.1699.ebuild
356 deleted file mode 100644
357 index 1b6769d2a69..00000000000
358 --- a/app-editors/vim/vim-8.0.1699.ebuild
359 +++ /dev/null
360 @@ -1,311 +0,0 @@
361 -# Copyright 1999-2019 Gentoo Authors
362 -# Distributed under the terms of the GNU General Public License v2
363 -
364 -EAPI=6
365 -VIM_VERSION="8.0"
366 -PYTHON_COMPAT=( python{2_7,3_5,3_6} )
367 -PYTHON_REQ_USE="threads"
368 -USE_RUBY="ruby23 ruby24 ruby25"
369 -
370 -inherit vim-doc flag-o-matic versionator bash-completion-r1 python-single-r1 ruby-single
371 -
372 -if [[ ${PV} == 9999* ]] ; then
373 - inherit git-r3
374 - EGIT_REPO_URI="https://github.com/vim/vim.git"
375 -else
376 - SRC_URI="https://github.com/vim/vim/archive/v${PV}.tar.gz -> ${P}.tar.gz
377 - https://dev.gentoo.org/~radhermit/vim/vim-8.0.0938-gentoo-patches.tar.bz2"
378 - 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"
379 -fi
380 -
381 -DESCRIPTION="Vim, an improved vi-style text editor"
382 -HOMEPAGE="https://vim.sourceforge.io/ https://github.com/vim/vim"
383 -
384 -SLOT="0"
385 -LICENSE="vim"
386 -IUSE="X acl cscope debug gpm lua luajit minimal nls perl python racket ruby selinux tcl terminal vim-pager"
387 -REQUIRED_USE="
388 - luajit? ( lua )
389 - python? ( ${PYTHON_REQUIRED_USE} )
390 -"
391 -
392 -RDEPEND="
393 - >=app-eselect/eselect-vi-1.1
394 - >=sys-libs/ncurses-5.2-r2:0=
395 - nls? ( virtual/libintl )
396 - acl? ( kernel_linux? ( sys-apps/acl ) )
397 - cscope? ( dev-util/cscope )
398 - gpm? ( >=sys-libs/gpm-1.19.3 )
399 - lua? (
400 - luajit? ( dev-lang/luajit:2= )
401 - !luajit? ( dev-lang/lua:0[deprecated] )
402 - )
403 - !minimal? (
404 - ~app-editors/vim-core-${PV}
405 - dev-util/ctags
406 - )
407 - perl? ( dev-lang/perl:= )
408 - python? ( ${PYTHON_DEPS} )
409 - racket? ( dev-scheme/racket )
410 - ruby? ( ${RUBY_DEPS} )
411 - selinux? ( sys-libs/libselinux )
412 - tcl? ( dev-lang/tcl:0= )
413 - X? ( x11-libs/libXt )
414 -"
415 -
416 -DEPEND="
417 - ${RDEPEND}
418 - sys-devel/autoconf
419 - nls? ( sys-devel/gettext )
420 -"
421 -
422 -pkg_setup() {
423 - # people with broken alphabets run into trouble. bug 82186.
424 - unset LANG LC_ALL
425 - export LC_COLLATE="C"
426 -
427 - # Gnome sandbox silliness. bug #114475.
428 - mkdir -p "${T}"/home || die "mkdir failed"
429 - export HOME="${T}"/home
430 -
431 - use python && python-single-r1_pkg_setup
432 -}
433 -
434 -src_prepare() {
435 - if [[ ${PV} != 9999* ]] ; then
436 - # Gentoo patches to fix runtime issues, cross-compile errors, etc
437 - eapply "${WORKDIR}"/patches/
438 - fi
439 -
440 - # Fixup a script to use awk instead of nawk
441 - sed -i -e \
442 - '1s|.*|#!'"${EPREFIX}"'/usr/bin/awk -f|' \
443 - "${S}"/runtime/tools/mve.awk || die "mve.awk sed failed"
444 -
445 - # Read vimrc and gvimrc from /etc/vim
446 - echo '#define SYS_VIMRC_FILE "'${EPREFIX}'/etc/vim/vimrc"' \
447 - >> "${S}"/src/feature.h || die "echo failed"
448 - echo '#define SYS_GVIMRC_FILE "'${EPREFIX}'/etc/vim/gvimrc"' \
449 - >> "${S}"/src/feature.h || die "echo failed"
450 -
451 - # Use exuberant ctags which installs as /usr/bin/exuberant-ctags.
452 - # Hopefully this pattern won't break for a while at least.
453 - # This fixes bug 29398 (27 Sep 2003 agriffis)
454 - sed -i -e \
455 - 's/\<ctags\("\| [-*.]\)/exuberant-&/g' \
456 - "${S}"/runtime/doc/syntax.txt \
457 - "${S}"/runtime/doc/tagsrch.txt \
458 - "${S}"/runtime/doc/usr_29.txt \
459 - "${S}"/runtime/menu.vim \
460 - "${S}"/src/configure.ac || die 'sed failed'
461 -
462 - # Don't be fooled by /usr/include/libc.h. When found, vim thinks
463 - # this is NeXT, but it's actually just a file in dev-libs/9libs
464 - # This fixes bug 43885 (20 Mar 2004 agriffis)
465 - sed -i -e \
466 - 's/ libc\.h / /' \
467 - "${S}"/src/configure.ac || die 'sed failed'
468 -
469 - # gcc on sparc32 has this, uhm, interesting problem with detecting EOF
470 - # correctly. To avoid some really entertaining error messages about stuff
471 - # which isn't even in the source file being invalid, we'll do some trickery
472 - # to make the error never occur. bug 66162 (02 October 2004 ciaranm)
473 - find "${S}" -name '*.c' | while read c; do
474 - echo >> "$c" || die "echo failed"
475 - done
476 -
477 - # conditionally make the manpager.sh script
478 - if use vim-pager; then
479 - cat > "${S}"/runtime/macros/manpager.sh <<-_EOF_ || die "cat EOF failed"
480 - #!/bin/sh
481 - sed -e 's/\x1B\[[[:digit:]]\+m//g' | col -b | \\
482 - vim \\
483 - -c 'let no_plugin_maps = 1' \\
484 - -c 'set nolist nomod ft=man ts=8' \\
485 - -c 'let g:showmarks_enable=0' \\
486 - -c 'runtime! macros/less.vim' -
487 - _EOF_
488 - fi
489 -
490 - # Try to avoid sandbox problems. Bug #114475.
491 - if [[ -d "${S}"/src/po ]]; then
492 - sed -i -e \
493 - '/-S check.vim/s,..VIM.,ln -s $(VIM) testvim \; ./testvim -X,' \
494 - "${S}"/src/po/Makefile || die "sed failed"
495 - fi
496 -
497 - cp -v "${S}"/src/config.mk.dist "${S}"/src/auto/config.mk || die "cp failed"
498 -
499 - sed -i -e \
500 - "s:\\\$(PERLLIB)/ExtUtils/xsubpp:${EPREFIX}/usr/bin/xsubpp:" \
501 - "${S}"/src/Makefile || die 'sed for ExtUtils-ParseXS failed'
502 -
503 - eapply_user
504 -}
505 -
506 -src_configure() {
507 - local myconf=()
508 -
509 - # Fix bug 37354: Disallow -funroll-all-loops on amd64
510 - # Bug 57859 suggests that we want to do this for all archs
511 - filter-flags -funroll-all-loops
512 -
513 - # Fix bug 76331: -O3 causes problems, use -O2 instead. We'll do this for
514 - # everyone since previous flag filtering bugs have turned out to affect
515 - # multiple archs...
516 - replace-flags -O3 -O2
517 -
518 - # Fix bug 18245: Prevent "make" from the following chain:
519 - # (1) Notice configure.ac is newer than auto/configure
520 - # (2) Rebuild auto/configure
521 - # (3) Notice auto/configure is newer than auto/config.mk
522 - # (4) Run ./configure (with wrong args) to remake auto/config.mk
523 - sed -i 's# auto/config\.mk:#:#' src/Makefile || die "Makefile sed failed"
524 - rm src/auto/configure || die "rm failed"
525 - emake -j1 -C src autoconf
526 -
527 - # This should fix a sandbox violation (see bug 24447). The hvc
528 - # things are for ppc64, see bug 86433.
529 - for file in /dev/pty/s* /dev/console /dev/hvc/* /dev/hvc*; do
530 - if [[ -e "${file}" ]]; then
531 - addwrite $file
532 - fi
533 - done
534 -
535 - if use minimal; then
536 - myconf=(
537 - --with-features=tiny
538 - --disable-nls
539 - --disable-multibyte
540 - --disable-acl
541 - --enable-gui=no
542 - --without-x
543 - --disable-darwin
544 - --disable-luainterp
545 - --disable-perlinterp
546 - --disable-pythoninterp
547 - --disable-mzschemeinterp
548 - --disable-rubyinterp
549 - --disable-selinux
550 - --disable-tclinterp
551 - --disable-gpm
552 - )
553 - else
554 - use debug && append-flags "-DDEBUG"
555 -
556 - myconf=(
557 - --with-features=huge
558 - --enable-multibyte
559 - $(use_enable acl)
560 - $(use_enable cscope)
561 - $(use_enable gpm)
562 - $(use_enable lua luainterp)
563 - $(usex lua "--with-lua-prefix=${EPREFIX}/usr" "")
564 - $(use_with luajit)
565 - $(use_enable nls)
566 - $(use_enable perl perlinterp)
567 - $(use_enable python pythoninterp)
568 - $(use_enable python python3interp)
569 - $(use_enable racket mzschemeinterp)
570 - $(use_enable ruby rubyinterp)
571 - $(use_enable selinux)
572 - $(use_enable tcl tclinterp)
573 - $(use_enable terminal)
574 - )
575 -
576 - # --with-features=huge forces on cscope even if we --disable it. We need
577 - # to sed this out to avoid screwiness. (1 Sep 2004 ciaranm)
578 - if ! use cscope; then
579 - sed -i -e \
580 - '/# define FEAT_CSCOPE/d' src/feature.h || die "sed failed"
581 - fi
582 -
583 - # don't test USE=X here ... see bug #19115
584 - # but need to provide a way to link against X ... see bug #20093
585 - myconf+=(
586 - --enable-gui=no
587 - --disable-darwin
588 - $(use_with X x)
589 - )
590 - fi
591 -
592 - # let package manager strip binaries
593 - export ac_cv_prog_STRIP="$(type -P true ) faking strip"
594 -
595 - # keep prefix env contained within the EPREFIX
596 - use prefix && myconf+=( --without-local-dir )
597 -
598 - econf \
599 - --with-modified-by=Gentoo-${PVR} \
600 - "${myconf[@]}"
601 -}
602 -
603 -src_compile() {
604 - # The following allows emake to be used
605 - emake -j1 -C src auto/osdef.h objects
606 -
607 - emake
608 -}
609 -
610 -src_test() {
611 - einfo
612 - einfo "Starting vim tests. Several error messages will be shown"
613 - einfo "while the tests run. This is normal behaviour and does not"
614 - einfo "indicate a fault."
615 - einfo
616 - ewarn "If the tests fail, your terminal may be left in a strange"
617 - ewarn "state. Usually, running 'reset' will fix this."
618 - einfo
619 -
620 - # Don't let vim talk to X
621 - unset DISPLAY
622 -
623 - emake -j1 -C src/testdir nongui
624 -}
625 -
626 -# Call eselect vi update with --if-unset
627 -# to respect user's choice (bug 187449)
628 -eselect_vi_update() {
629 - einfo "Calling eselect vi update..."
630 - eselect vi update --if-unset
631 - eend $?
632 -}
633 -
634 -src_install() {
635 - local vimfiles=/usr/share/vim/vim${VIM_VERSION/.}
636 -
637 - # Note: Do not install symlinks for 'vi', 'ex', or 'view', as these are
638 - # managed by eselect-vi
639 - dobin src/vim
640 - dosym vim /usr/bin/vimdiff
641 - dosym vim /usr/bin/rvim
642 - dosym vim /usr/bin/rview
643 - if use vim-pager ; then
644 - dosym ${vimfiles}/macros/less.sh /usr/bin/vimpager
645 - dosym ${vimfiles}/macros/manpager.sh /usr/bin/vimmanpager
646 - insinto ${vimfiles}/macros
647 - doins runtime/macros/manpager.sh
648 - fperms a+x ${vimfiles}/macros/manpager.sh
649 - fi
650 -
651 - newbashcomp "${FILESDIR}"/${PN}-completion ${PN}
652 -
653 - # keep in sync with 'complete ... -F' list
654 - bashcomp_alias vim ex vi view rvim rview vimdiff
655 -}
656 -
657 -pkg_postinst() {
658 - # Update documentation tags (from vim-doc.eclass)
659 - update_vim_helptags
660 -
661 - # Call eselect vi update
662 - eselect_vi_update
663 -}
664 -
665 -pkg_postrm() {
666 - # Update documentation tags (from vim-doc.eclass)
667 - update_vim_helptags
668 -
669 - # Call eselect vi update
670 - eselect_vi_update
671 -}
672
673 diff --git a/app-editors/vim/vim-8.1.0034.ebuild b/app-editors/vim/vim-8.1.0034.ebuild
674 deleted file mode 100644
675 index 5cab0795025..00000000000
676 --- a/app-editors/vim/vim-8.1.0034.ebuild
677 +++ /dev/null
678 @@ -1,311 +0,0 @@
679 -# Copyright 1999-2019 Gentoo Authors
680 -# Distributed under the terms of the GNU General Public License v2
681 -
682 -EAPI=6
683 -VIM_VERSION="8.1"
684 -PYTHON_COMPAT=( python{2_7,3_5,3_6} )
685 -PYTHON_REQ_USE="threads"
686 -USE_RUBY="ruby23 ruby24 ruby25"
687 -
688 -inherit vim-doc flag-o-matic versionator bash-completion-r1 python-single-r1 ruby-single
689 -
690 -if [[ ${PV} == 9999* ]] ; then
691 - inherit git-r3
692 - EGIT_REPO_URI="https://github.com/vim/vim.git"
693 -else
694 - SRC_URI="https://github.com/vim/vim/archive/v${PV}.tar.gz -> ${P}.tar.gz
695 - https://dev.gentoo.org/~radhermit/vim/vim-8.0.0938-gentoo-patches.tar.bz2"
696 - 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"
697 -fi
698 -
699 -DESCRIPTION="Vim, an improved vi-style text editor"
700 -HOMEPAGE="https://vim.sourceforge.io/ https://github.com/vim/vim"
701 -
702 -SLOT="0"
703 -LICENSE="vim"
704 -IUSE="X acl cscope debug gpm lua luajit minimal nls perl python racket ruby selinux tcl terminal vim-pager"
705 -REQUIRED_USE="
706 - luajit? ( lua )
707 - python? ( ${PYTHON_REQUIRED_USE} )
708 -"
709 -
710 -RDEPEND="
711 - >=app-eselect/eselect-vi-1.1
712 - >=sys-libs/ncurses-5.2-r2:0=
713 - nls? ( virtual/libintl )
714 - acl? ( kernel_linux? ( sys-apps/acl ) )
715 - cscope? ( dev-util/cscope )
716 - gpm? ( >=sys-libs/gpm-1.19.3 )
717 - lua? (
718 - luajit? ( dev-lang/luajit:2= )
719 - !luajit? ( dev-lang/lua:0[deprecated] )
720 - )
721 - !minimal? (
722 - ~app-editors/vim-core-${PV}
723 - dev-util/ctags
724 - )
725 - perl? ( dev-lang/perl:= )
726 - python? ( ${PYTHON_DEPS} )
727 - racket? ( dev-scheme/racket )
728 - ruby? ( ${RUBY_DEPS} )
729 - selinux? ( sys-libs/libselinux )
730 - tcl? ( dev-lang/tcl:0= )
731 - X? ( x11-libs/libXt )
732 -"
733 -
734 -DEPEND="
735 - ${RDEPEND}
736 - sys-devel/autoconf
737 - nls? ( sys-devel/gettext )
738 -"
739 -
740 -pkg_setup() {
741 - # people with broken alphabets run into trouble. bug 82186.
742 - unset LANG LC_ALL
743 - export LC_COLLATE="C"
744 -
745 - # Gnome sandbox silliness. bug #114475.
746 - mkdir -p "${T}"/home || die "mkdir failed"
747 - export HOME="${T}"/home
748 -
749 - use python && python-single-r1_pkg_setup
750 -}
751 -
752 -src_prepare() {
753 - if [[ ${PV} != 9999* ]] ; then
754 - # Gentoo patches to fix runtime issues, cross-compile errors, etc
755 - eapply "${WORKDIR}"/patches/
756 - fi
757 -
758 - # Fixup a script to use awk instead of nawk
759 - sed -i -e \
760 - '1s|.*|#!'"${EPREFIX}"'/usr/bin/awk -f|' \
761 - "${S}"/runtime/tools/mve.awk || die "mve.awk sed failed"
762 -
763 - # Read vimrc and gvimrc from /etc/vim
764 - echo '#define SYS_VIMRC_FILE "'${EPREFIX}'/etc/vim/vimrc"' \
765 - >> "${S}"/src/feature.h || die "echo failed"
766 - echo '#define SYS_GVIMRC_FILE "'${EPREFIX}'/etc/vim/gvimrc"' \
767 - >> "${S}"/src/feature.h || die "echo failed"
768 -
769 - # Use exuberant ctags which installs as /usr/bin/exuberant-ctags.
770 - # Hopefully this pattern won't break for a while at least.
771 - # This fixes bug 29398 (27 Sep 2003 agriffis)
772 - sed -i -e \
773 - 's/\<ctags\("\| [-*.]\)/exuberant-&/g' \
774 - "${S}"/runtime/doc/syntax.txt \
775 - "${S}"/runtime/doc/tagsrch.txt \
776 - "${S}"/runtime/doc/usr_29.txt \
777 - "${S}"/runtime/menu.vim \
778 - "${S}"/src/configure.ac || die 'sed failed'
779 -
780 - # Don't be fooled by /usr/include/libc.h. When found, vim thinks
781 - # this is NeXT, but it's actually just a file in dev-libs/9libs
782 - # This fixes bug 43885 (20 Mar 2004 agriffis)
783 - sed -i -e \
784 - 's/ libc\.h / /' \
785 - "${S}"/src/configure.ac || die 'sed failed'
786 -
787 - # gcc on sparc32 has this, uhm, interesting problem with detecting EOF
788 - # correctly. To avoid some really entertaining error messages about stuff
789 - # which isn't even in the source file being invalid, we'll do some trickery
790 - # to make the error never occur. bug 66162 (02 October 2004 ciaranm)
791 - find "${S}" -name '*.c' | while read c; do
792 - echo >> "$c" || die "echo failed"
793 - done
794 -
795 - # conditionally make the manpager.sh script
796 - if use vim-pager; then
797 - cat > "${S}"/runtime/macros/manpager.sh <<-_EOF_ || die "cat EOF failed"
798 - #!/bin/sh
799 - sed -e 's/\x1B\[[[:digit:]]\+m//g' | col -b | \\
800 - vim \\
801 - -c 'let no_plugin_maps = 1' \\
802 - -c 'set nolist nomod ft=man ts=8' \\
803 - -c 'let g:showmarks_enable=0' \\
804 - -c 'runtime! macros/less.vim' -
805 - _EOF_
806 - fi
807 -
808 - # Try to avoid sandbox problems. Bug #114475.
809 - if [[ -d "${S}"/src/po ]]; then
810 - sed -i -e \
811 - '/-S check.vim/s,..VIM.,ln -s $(VIM) testvim \; ./testvim -X,' \
812 - "${S}"/src/po/Makefile || die "sed failed"
813 - fi
814 -
815 - cp -v "${S}"/src/config.mk.dist "${S}"/src/auto/config.mk || die "cp failed"
816 -
817 - sed -i -e \
818 - "s:\\\$(PERLLIB)/ExtUtils/xsubpp:${EPREFIX}/usr/bin/xsubpp:" \
819 - "${S}"/src/Makefile || die 'sed for ExtUtils-ParseXS failed'
820 -
821 - eapply_user
822 -}
823 -
824 -src_configure() {
825 - local myconf=()
826 -
827 - # Fix bug 37354: Disallow -funroll-all-loops on amd64
828 - # Bug 57859 suggests that we want to do this for all archs
829 - filter-flags -funroll-all-loops
830 -
831 - # Fix bug 76331: -O3 causes problems, use -O2 instead. We'll do this for
832 - # everyone since previous flag filtering bugs have turned out to affect
833 - # multiple archs...
834 - replace-flags -O3 -O2
835 -
836 - # Fix bug 18245: Prevent "make" from the following chain:
837 - # (1) Notice configure.ac is newer than auto/configure
838 - # (2) Rebuild auto/configure
839 - # (3) Notice auto/configure is newer than auto/config.mk
840 - # (4) Run ./configure (with wrong args) to remake auto/config.mk
841 - sed -i 's# auto/config\.mk:#:#' src/Makefile || die "Makefile sed failed"
842 - rm src/auto/configure || die "rm failed"
843 - emake -j1 -C src autoconf
844 -
845 - # This should fix a sandbox violation (see bug 24447). The hvc
846 - # things are for ppc64, see bug 86433.
847 - for file in /dev/pty/s* /dev/console /dev/hvc/* /dev/hvc*; do
848 - if [[ -e "${file}" ]]; then
849 - addwrite $file
850 - fi
851 - done
852 -
853 - if use minimal; then
854 - myconf=(
855 - --with-features=tiny
856 - --disable-nls
857 - --disable-multibyte
858 - --disable-acl
859 - --enable-gui=no
860 - --without-x
861 - --disable-darwin
862 - --disable-luainterp
863 - --disable-perlinterp
864 - --disable-pythoninterp
865 - --disable-mzschemeinterp
866 - --disable-rubyinterp
867 - --disable-selinux
868 - --disable-tclinterp
869 - --disable-gpm
870 - )
871 - else
872 - use debug && append-flags "-DDEBUG"
873 -
874 - myconf=(
875 - --with-features=huge
876 - --enable-multibyte
877 - $(use_enable acl)
878 - $(use_enable cscope)
879 - $(use_enable gpm)
880 - $(use_enable lua luainterp)
881 - $(usex lua "--with-lua-prefix=${EPREFIX}/usr" "")
882 - $(use_with luajit)
883 - $(use_enable nls)
884 - $(use_enable perl perlinterp)
885 - $(use_enable python pythoninterp)
886 - $(use_enable python python3interp)
887 - $(use_enable racket mzschemeinterp)
888 - $(use_enable ruby rubyinterp)
889 - $(use_enable selinux)
890 - $(use_enable tcl tclinterp)
891 - $(use_enable terminal)
892 - )
893 -
894 - # --with-features=huge forces on cscope even if we --disable it. We need
895 - # to sed this out to avoid screwiness. (1 Sep 2004 ciaranm)
896 - if ! use cscope; then
897 - sed -i -e \
898 - '/# define FEAT_CSCOPE/d' src/feature.h || die "sed failed"
899 - fi
900 -
901 - # don't test USE=X here ... see bug #19115
902 - # but need to provide a way to link against X ... see bug #20093
903 - myconf+=(
904 - --enable-gui=no
905 - --disable-darwin
906 - $(use_with X x)
907 - )
908 - fi
909 -
910 - # let package manager strip binaries
911 - export ac_cv_prog_STRIP="$(type -P true ) faking strip"
912 -
913 - # keep prefix env contained within the EPREFIX
914 - use prefix && myconf+=( --without-local-dir )
915 -
916 - econf \
917 - --with-modified-by=Gentoo-${PVR} \
918 - "${myconf[@]}"
919 -}
920 -
921 -src_compile() {
922 - # The following allows emake to be used
923 - emake -j1 -C src auto/osdef.h objects
924 -
925 - emake
926 -}
927 -
928 -src_test() {
929 - einfo
930 - einfo "Starting vim tests. Several error messages will be shown"
931 - einfo "while the tests run. This is normal behaviour and does not"
932 - einfo "indicate a fault."
933 - einfo
934 - ewarn "If the tests fail, your terminal may be left in a strange"
935 - ewarn "state. Usually, running 'reset' will fix this."
936 - einfo
937 -
938 - # Don't let vim talk to X
939 - unset DISPLAY
940 -
941 - emake -j1 -C src/testdir nongui
942 -}
943 -
944 -# Call eselect vi update with --if-unset
945 -# to respect user's choice (bug 187449)
946 -eselect_vi_update() {
947 - einfo "Calling eselect vi update..."
948 - eselect vi update --if-unset
949 - eend $?
950 -}
951 -
952 -src_install() {
953 - local vimfiles=/usr/share/vim/vim${VIM_VERSION/.}
954 -
955 - # Note: Do not install symlinks for 'vi', 'ex', or 'view', as these are
956 - # managed by eselect-vi
957 - dobin src/vim
958 - dosym vim /usr/bin/vimdiff
959 - dosym vim /usr/bin/rvim
960 - dosym vim /usr/bin/rview
961 - if use vim-pager ; then
962 - dosym ${vimfiles}/macros/less.sh /usr/bin/vimpager
963 - dosym ${vimfiles}/macros/manpager.sh /usr/bin/vimmanpager
964 - insinto ${vimfiles}/macros
965 - doins runtime/macros/manpager.sh
966 - fperms a+x ${vimfiles}/macros/manpager.sh
967 - fi
968 -
969 - newbashcomp "${FILESDIR}"/${PN}-completion ${PN}
970 -
971 - # keep in sync with 'complete ... -F' list
972 - bashcomp_alias vim ex vi view rvim rview vimdiff
973 -}
974 -
975 -pkg_postinst() {
976 - # Update documentation tags (from vim-doc.eclass)
977 - update_vim_helptags
978 -
979 - # Call eselect vi update
980 - eselect_vi_update
981 -}
982 -
983 -pkg_postrm() {
984 - # Update documentation tags (from vim-doc.eclass)
985 - update_vim_helptags
986 -
987 - # Call eselect vi update
988 - eselect_vi_update
989 -}
990
991 diff --git a/app-editors/vim/vim-8.1.0412-r1.ebuild b/app-editors/vim/vim-8.1.0412-r1.ebuild
992 deleted file mode 100644
993 index b59f4445304..00000000000
994 --- a/app-editors/vim/vim-8.1.0412-r1.ebuild
995 +++ /dev/null
996 @@ -1,313 +0,0 @@
997 -# Copyright 1999-2019 Gentoo Authors
998 -# Distributed under the terms of the GNU General Public License v2
999 -
1000 -EAPI=7
1001 -VIM_VERSION="8.1"
1002 -PYTHON_COMPAT=( python{2_7,3_5,3_6,3_7} )
1003 -PYTHON_REQ_USE="threads(+)"
1004 -USE_RUBY="ruby23 ruby24 ruby25"
1005 -
1006 -inherit vim-doc flag-o-matic bash-completion-r1 python-single-r1 ruby-single desktop
1007 -
1008 -if [[ ${PV} == 9999* ]] ; then
1009 - inherit git-r3
1010 - EGIT_REPO_URI="https://github.com/vim/vim.git"
1011 -else
1012 - SRC_URI="https://github.com/vim/vim/archive/v${PV}.tar.gz -> ${P}.tar.gz
1013 - https://dev.gentoo.org/~radhermit/vim/vim-8.0.0938-gentoo-patches.tar.bz2"
1014 - 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"
1015 -fi
1016 -
1017 -DESCRIPTION="Vim, an improved vi-style text editor"
1018 -HOMEPAGE="https://vim.sourceforge.io/ https://github.com/vim/vim"
1019 -
1020 -SLOT="0"
1021 -LICENSE="vim"
1022 -IUSE="X acl cscope debug gpm lua luajit minimal nls perl python racket ruby selinux tcl terminal vim-pager"
1023 -REQUIRED_USE="
1024 - luajit? ( lua )
1025 - python? ( ${PYTHON_REQUIRED_USE} )
1026 -"
1027 -
1028 -RDEPEND="
1029 - >=app-eselect/eselect-vi-1.1
1030 - >=sys-libs/ncurses-5.2-r2:0=
1031 - nls? ( virtual/libintl )
1032 - acl? ( kernel_linux? ( sys-apps/acl ) )
1033 - cscope? ( dev-util/cscope )
1034 - gpm? ( >=sys-libs/gpm-1.19.3 )
1035 - lua? (
1036 - luajit? ( dev-lang/luajit:2= )
1037 - !luajit? ( dev-lang/lua:0[deprecated] )
1038 - )
1039 - !minimal? (
1040 - ~app-editors/vim-core-${PV}
1041 - dev-util/ctags
1042 - )
1043 - perl? ( dev-lang/perl:= )
1044 - python? ( ${PYTHON_DEPS} )
1045 - racket? ( dev-scheme/racket )
1046 - ruby? ( ${RUBY_DEPS} )
1047 - selinux? ( sys-libs/libselinux )
1048 - tcl? ( dev-lang/tcl:0= )
1049 - X? ( x11-libs/libXt )
1050 -"
1051 -
1052 -DEPEND="
1053 - ${RDEPEND}
1054 - sys-devel/autoconf
1055 - nls? ( sys-devel/gettext )
1056 -"
1057 -
1058 -pkg_setup() {
1059 - # people with broken alphabets run into trouble. bug 82186.
1060 - unset LANG LC_ALL
1061 - export LC_COLLATE="C"
1062 -
1063 - # Gnome sandbox silliness. bug #114475.
1064 - mkdir -p "${T}"/home || die "mkdir failed"
1065 - export HOME="${T}"/home
1066 -
1067 - use python && python-single-r1_pkg_setup
1068 -}
1069 -
1070 -src_prepare() {
1071 - if [[ ${PV} != 9999* ]] ; then
1072 - # Gentoo patches to fix runtime issues, cross-compile errors, etc
1073 - eapply "${WORKDIR}"/patches/
1074 - fi
1075 -
1076 - # Fixup a script to use awk instead of nawk
1077 - sed -i -e \
1078 - '1s|.*|#!'"${EPREFIX}"'/usr/bin/awk -f|' \
1079 - "${S}"/runtime/tools/mve.awk || die "mve.awk sed failed"
1080 -
1081 - # Read vimrc and gvimrc from /etc/vim
1082 - echo '#define SYS_VIMRC_FILE "'${EPREFIX}'/etc/vim/vimrc"' \
1083 - >> "${S}"/src/feature.h || die "echo failed"
1084 - echo '#define SYS_GVIMRC_FILE "'${EPREFIX}'/etc/vim/gvimrc"' \
1085 - >> "${S}"/src/feature.h || die "echo failed"
1086 -
1087 - # Use exuberant ctags which installs as /usr/bin/exuberant-ctags.
1088 - # Hopefully this pattern won't break for a while at least.
1089 - # This fixes bug 29398 (27 Sep 2003 agriffis)
1090 - sed -i -e \
1091 - 's/\<ctags\("\| [-*.]\)/exuberant-&/g' \
1092 - "${S}"/runtime/doc/syntax.txt \
1093 - "${S}"/runtime/doc/tagsrch.txt \
1094 - "${S}"/runtime/doc/usr_29.txt \
1095 - "${S}"/runtime/menu.vim \
1096 - "${S}"/src/configure.ac || die 'sed failed'
1097 -
1098 - # Don't be fooled by /usr/include/libc.h. When found, vim thinks
1099 - # this is NeXT, but it's actually just a file in dev-libs/9libs
1100 - # This fixes bug 43885 (20 Mar 2004 agriffis)
1101 - sed -i -e \
1102 - 's/ libc\.h / /' \
1103 - "${S}"/src/configure.ac || die 'sed failed'
1104 -
1105 - # gcc on sparc32 has this, uhm, interesting problem with detecting EOF
1106 - # correctly. To avoid some really entertaining error messages about stuff
1107 - # which isn't even in the source file being invalid, we'll do some trickery
1108 - # to make the error never occur. bug 66162 (02 October 2004 ciaranm)
1109 - find "${S}" -name '*.c' | while read c; do
1110 - echo >> "$c" || die "echo failed"
1111 - done
1112 -
1113 - # conditionally make the manpager.sh script
1114 - if use vim-pager; then
1115 - cat > "${S}"/runtime/macros/manpager.sh <<-_EOF_ || die "cat EOF failed"
1116 - #!/bin/sh
1117 - sed -e 's/\x1B\[[[:digit:]]\+m//g' | col -b | \\
1118 - vim \\
1119 - -c 'let no_plugin_maps = 1' \\
1120 - -c 'set nolist nomod ft=man ts=8' \\
1121 - -c 'let g:showmarks_enable=0' \\
1122 - -c 'runtime! macros/less.vim' -
1123 - _EOF_
1124 - fi
1125 -
1126 - # Try to avoid sandbox problems. Bug #114475.
1127 - if [[ -d "${S}"/src/po ]]; then
1128 - sed -i -e \
1129 - '/-S check.vim/s,..VIM.,ln -s $(VIM) testvim \; ./testvim -X,' \
1130 - "${S}"/src/po/Makefile || die "sed failed"
1131 - fi
1132 -
1133 - cp -v "${S}"/src/config.mk.dist "${S}"/src/auto/config.mk || die "cp failed"
1134 -
1135 - sed -i -e \
1136 - "s:\\\$(PERLLIB)/ExtUtils/xsubpp:${EPREFIX}/usr/bin/xsubpp:" \
1137 - "${S}"/src/Makefile || die 'sed for ExtUtils-ParseXS failed'
1138 -
1139 - eapply_user
1140 -}
1141 -
1142 -src_configure() {
1143 - local myconf=()
1144 -
1145 - # Fix bug 37354: Disallow -funroll-all-loops on amd64
1146 - # Bug 57859 suggests that we want to do this for all archs
1147 - filter-flags -funroll-all-loops
1148 -
1149 - # Fix bug 76331: -O3 causes problems, use -O2 instead. We'll do this for
1150 - # everyone since previous flag filtering bugs have turned out to affect
1151 - # multiple archs...
1152 - replace-flags -O3 -O2
1153 -
1154 - # Fix bug 18245: Prevent "make" from the following chain:
1155 - # (1) Notice configure.ac is newer than auto/configure
1156 - # (2) Rebuild auto/configure
1157 - # (3) Notice auto/configure is newer than auto/config.mk
1158 - # (4) Run ./configure (with wrong args) to remake auto/config.mk
1159 - sed -i 's# auto/config\.mk:#:#' src/Makefile || die "Makefile sed failed"
1160 - rm src/auto/configure || die "rm failed"
1161 - emake -j1 -C src autoconf
1162 -
1163 - # This should fix a sandbox violation (see bug 24447). The hvc
1164 - # things are for ppc64, see bug 86433.
1165 - for file in /dev/pty/s* /dev/console /dev/hvc/* /dev/hvc*; do
1166 - if [[ -e "${file}" ]]; then
1167 - addwrite $file
1168 - fi
1169 - done
1170 -
1171 - if use minimal; then
1172 - myconf=(
1173 - --with-features=tiny
1174 - --disable-nls
1175 - --disable-multibyte
1176 - --disable-acl
1177 - --enable-gui=no
1178 - --without-x
1179 - --disable-darwin
1180 - --disable-luainterp
1181 - --disable-perlinterp
1182 - --disable-pythoninterp
1183 - --disable-mzschemeinterp
1184 - --disable-rubyinterp
1185 - --disable-selinux
1186 - --disable-tclinterp
1187 - --disable-gpm
1188 - )
1189 - else
1190 - use debug && append-flags "-DDEBUG"
1191 -
1192 - myconf=(
1193 - --with-features=huge
1194 - --enable-multibyte
1195 - $(use_enable acl)
1196 - $(use_enable cscope)
1197 - $(use_enable gpm)
1198 - $(use_enable lua luainterp)
1199 - $(usex lua "--with-lua-prefix=${EPREFIX}/usr" "")
1200 - $(use_with luajit)
1201 - $(use_enable nls)
1202 - $(use_enable perl perlinterp)
1203 - $(use_enable python pythoninterp)
1204 - $(use_enable python python3interp)
1205 - $(use_enable racket mzschemeinterp)
1206 - $(use_enable ruby rubyinterp)
1207 - $(use_enable selinux)
1208 - $(use_enable tcl tclinterp)
1209 - $(use_enable terminal)
1210 - )
1211 -
1212 - # --with-features=huge forces on cscope even if we --disable it. We need
1213 - # to sed this out to avoid screwiness. (1 Sep 2004 ciaranm)
1214 - if ! use cscope; then
1215 - sed -i -e \
1216 - '/# define FEAT_CSCOPE/d' src/feature.h || die "sed failed"
1217 - fi
1218 -
1219 - # don't test USE=X here ... see bug #19115
1220 - # but need to provide a way to link against X ... see bug #20093
1221 - myconf+=(
1222 - --enable-gui=no
1223 - --disable-darwin
1224 - $(use_with X x)
1225 - )
1226 - fi
1227 -
1228 - # let package manager strip binaries
1229 - export ac_cv_prog_STRIP="$(type -P true ) faking strip"
1230 -
1231 - # keep prefix env contained within the EPREFIX
1232 - use prefix && myconf+=( --without-local-dir )
1233 -
1234 - econf \
1235 - --with-modified-by=Gentoo-${PVR} \
1236 - "${myconf[@]}"
1237 -}
1238 -
1239 -src_compile() {
1240 - # The following allows emake to be used
1241 - emake -j1 -C src auto/osdef.h objects
1242 -
1243 - emake
1244 -}
1245 -
1246 -src_test() {
1247 - einfo
1248 - einfo "Starting vim tests. Several error messages will be shown"
1249 - einfo "while the tests run. This is normal behaviour and does not"
1250 - einfo "indicate a fault."
1251 - einfo
1252 - ewarn "If the tests fail, your terminal may be left in a strange"
1253 - ewarn "state. Usually, running 'reset' will fix this."
1254 - einfo
1255 -
1256 - # Don't let vim talk to X
1257 - unset DISPLAY
1258 -
1259 - emake -j1 -C src/testdir nongui
1260 -}
1261 -
1262 -# Call eselect vi update with --if-unset
1263 -# to respect user's choice (bug 187449)
1264 -eselect_vi_update() {
1265 - einfo "Calling eselect vi update..."
1266 - eselect vi update --if-unset
1267 - eend $?
1268 -}
1269 -
1270 -src_install() {
1271 - local vimfiles=/usr/share/vim/vim${VIM_VERSION/.}
1272 -
1273 - # Note: Do not install symlinks for 'vi', 'ex', or 'view', as these are
1274 - # managed by eselect-vi
1275 - dobin src/vim
1276 - dosym vim /usr/bin/vimdiff
1277 - dosym vim /usr/bin/rvim
1278 - dosym vim /usr/bin/rview
1279 - if use vim-pager ; then
1280 - dosym ${vimfiles}/macros/less.sh /usr/bin/vimpager
1281 - dosym ${vimfiles}/macros/manpager.sh /usr/bin/vimmanpager
1282 - insinto ${vimfiles}/macros
1283 - doins runtime/macros/manpager.sh
1284 - fperms a+x ${vimfiles}/macros/manpager.sh
1285 - fi
1286 -
1287 - domenu runtime/vim.desktop
1288 -
1289 - newbashcomp "${FILESDIR}"/${PN}-completion ${PN}
1290 -
1291 - # keep in sync with 'complete ... -F' list
1292 - bashcomp_alias vim ex vi view rvim rview vimdiff
1293 -}
1294 -
1295 -pkg_postinst() {
1296 - # Update documentation tags (from vim-doc.eclass)
1297 - update_vim_helptags
1298 -
1299 - # Call eselect vi update
1300 - eselect_vi_update
1301 -}
1302 -
1303 -pkg_postrm() {
1304 - # Update documentation tags (from vim-doc.eclass)
1305 - update_vim_helptags
1306 -
1307 - # Call eselect vi update
1308 - eselect_vi_update
1309 -}
1310
1311 diff --git a/app-editors/vim/vim-8.1.0412.ebuild b/app-editors/vim/vim-8.1.0412.ebuild
1312 deleted file mode 100644
1313 index 218a274d871..00000000000
1314 --- a/app-editors/vim/vim-8.1.0412.ebuild
1315 +++ /dev/null
1316 @@ -1,313 +0,0 @@
1317 -# Copyright 1999-2019 Gentoo Authors
1318 -# Distributed under the terms of the GNU General Public License v2
1319 -
1320 -EAPI=6
1321 -VIM_VERSION="8.1"
1322 -PYTHON_COMPAT=( python{2_7,3_5,3_6} )
1323 -PYTHON_REQ_USE="threads"
1324 -USE_RUBY="ruby23 ruby24 ruby25"
1325 -
1326 -inherit vim-doc flag-o-matic bash-completion-r1 python-single-r1 ruby-single desktop
1327 -
1328 -if [[ ${PV} == 9999* ]] ; then
1329 - inherit git-r3
1330 - EGIT_REPO_URI="https://github.com/vim/vim.git"
1331 -else
1332 - SRC_URI="https://github.com/vim/vim/archive/v${PV}.tar.gz -> ${P}.tar.gz
1333 - https://dev.gentoo.org/~radhermit/vim/vim-8.0.0938-gentoo-patches.tar.bz2"
1334 - 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"
1335 -fi
1336 -
1337 -DESCRIPTION="Vim, an improved vi-style text editor"
1338 -HOMEPAGE="https://vim.sourceforge.io/ https://github.com/vim/vim"
1339 -
1340 -SLOT="0"
1341 -LICENSE="vim"
1342 -IUSE="X acl cscope debug gpm lua luajit minimal nls perl python racket ruby selinux tcl terminal vim-pager"
1343 -REQUIRED_USE="
1344 - luajit? ( lua )
1345 - python? ( ${PYTHON_REQUIRED_USE} )
1346 -"
1347 -
1348 -RDEPEND="
1349 - >=app-eselect/eselect-vi-1.1
1350 - >=sys-libs/ncurses-5.2-r2:0=
1351 - nls? ( virtual/libintl )
1352 - acl? ( kernel_linux? ( sys-apps/acl ) )
1353 - cscope? ( dev-util/cscope )
1354 - gpm? ( >=sys-libs/gpm-1.19.3 )
1355 - lua? (
1356 - luajit? ( dev-lang/luajit:2= )
1357 - !luajit? ( dev-lang/lua:0[deprecated] )
1358 - )
1359 - !minimal? (
1360 - ~app-editors/vim-core-${PV}
1361 - dev-util/ctags
1362 - )
1363 - perl? ( dev-lang/perl:= )
1364 - python? ( ${PYTHON_DEPS} )
1365 - racket? ( dev-scheme/racket )
1366 - ruby? ( ${RUBY_DEPS} )
1367 - selinux? ( sys-libs/libselinux )
1368 - tcl? ( dev-lang/tcl:0= )
1369 - X? ( x11-libs/libXt )
1370 -"
1371 -
1372 -DEPEND="
1373 - ${RDEPEND}
1374 - sys-devel/autoconf
1375 - nls? ( sys-devel/gettext )
1376 -"
1377 -
1378 -pkg_setup() {
1379 - # people with broken alphabets run into trouble. bug 82186.
1380 - unset LANG LC_ALL
1381 - export LC_COLLATE="C"
1382 -
1383 - # Gnome sandbox silliness. bug #114475.
1384 - mkdir -p "${T}"/home || die "mkdir failed"
1385 - export HOME="${T}"/home
1386 -
1387 - use python && python-single-r1_pkg_setup
1388 -}
1389 -
1390 -src_prepare() {
1391 - if [[ ${PV} != 9999* ]] ; then
1392 - # Gentoo patches to fix runtime issues, cross-compile errors, etc
1393 - eapply "${WORKDIR}"/patches/
1394 - fi
1395 -
1396 - # Fixup a script to use awk instead of nawk
1397 - sed -i -e \
1398 - '1s|.*|#!'"${EPREFIX}"'/usr/bin/awk -f|' \
1399 - "${S}"/runtime/tools/mve.awk || die "mve.awk sed failed"
1400 -
1401 - # Read vimrc and gvimrc from /etc/vim
1402 - echo '#define SYS_VIMRC_FILE "'${EPREFIX}'/etc/vim/vimrc"' \
1403 - >> "${S}"/src/feature.h || die "echo failed"
1404 - echo '#define SYS_GVIMRC_FILE "'${EPREFIX}'/etc/vim/gvimrc"' \
1405 - >> "${S}"/src/feature.h || die "echo failed"
1406 -
1407 - # Use exuberant ctags which installs as /usr/bin/exuberant-ctags.
1408 - # Hopefully this pattern won't break for a while at least.
1409 - # This fixes bug 29398 (27 Sep 2003 agriffis)
1410 - sed -i -e \
1411 - 's/\<ctags\("\| [-*.]\)/exuberant-&/g' \
1412 - "${S}"/runtime/doc/syntax.txt \
1413 - "${S}"/runtime/doc/tagsrch.txt \
1414 - "${S}"/runtime/doc/usr_29.txt \
1415 - "${S}"/runtime/menu.vim \
1416 - "${S}"/src/configure.ac || die 'sed failed'
1417 -
1418 - # Don't be fooled by /usr/include/libc.h. When found, vim thinks
1419 - # this is NeXT, but it's actually just a file in dev-libs/9libs
1420 - # This fixes bug 43885 (20 Mar 2004 agriffis)
1421 - sed -i -e \
1422 - 's/ libc\.h / /' \
1423 - "${S}"/src/configure.ac || die 'sed failed'
1424 -
1425 - # gcc on sparc32 has this, uhm, interesting problem with detecting EOF
1426 - # correctly. To avoid some really entertaining error messages about stuff
1427 - # which isn't even in the source file being invalid, we'll do some trickery
1428 - # to make the error never occur. bug 66162 (02 October 2004 ciaranm)
1429 - find "${S}" -name '*.c' | while read c; do
1430 - echo >> "$c" || die "echo failed"
1431 - done
1432 -
1433 - # conditionally make the manpager.sh script
1434 - if use vim-pager; then
1435 - cat > "${S}"/runtime/macros/manpager.sh <<-_EOF_ || die "cat EOF failed"
1436 - #!/bin/sh
1437 - sed -e 's/\x1B\[[[:digit:]]\+m//g' | col -b | \\
1438 - vim \\
1439 - -c 'let no_plugin_maps = 1' \\
1440 - -c 'set nolist nomod ft=man ts=8' \\
1441 - -c 'let g:showmarks_enable=0' \\
1442 - -c 'runtime! macros/less.vim' -
1443 - _EOF_
1444 - fi
1445 -
1446 - # Try to avoid sandbox problems. Bug #114475.
1447 - if [[ -d "${S}"/src/po ]]; then
1448 - sed -i -e \
1449 - '/-S check.vim/s,..VIM.,ln -s $(VIM) testvim \; ./testvim -X,' \
1450 - "${S}"/src/po/Makefile || die "sed failed"
1451 - fi
1452 -
1453 - cp -v "${S}"/src/config.mk.dist "${S}"/src/auto/config.mk || die "cp failed"
1454 -
1455 - sed -i -e \
1456 - "s:\\\$(PERLLIB)/ExtUtils/xsubpp:${EPREFIX}/usr/bin/xsubpp:" \
1457 - "${S}"/src/Makefile || die 'sed for ExtUtils-ParseXS failed'
1458 -
1459 - eapply_user
1460 -}
1461 -
1462 -src_configure() {
1463 - local myconf=()
1464 -
1465 - # Fix bug 37354: Disallow -funroll-all-loops on amd64
1466 - # Bug 57859 suggests that we want to do this for all archs
1467 - filter-flags -funroll-all-loops
1468 -
1469 - # Fix bug 76331: -O3 causes problems, use -O2 instead. We'll do this for
1470 - # everyone since previous flag filtering bugs have turned out to affect
1471 - # multiple archs...
1472 - replace-flags -O3 -O2
1473 -
1474 - # Fix bug 18245: Prevent "make" from the following chain:
1475 - # (1) Notice configure.ac is newer than auto/configure
1476 - # (2) Rebuild auto/configure
1477 - # (3) Notice auto/configure is newer than auto/config.mk
1478 - # (4) Run ./configure (with wrong args) to remake auto/config.mk
1479 - sed -i 's# auto/config\.mk:#:#' src/Makefile || die "Makefile sed failed"
1480 - rm src/auto/configure || die "rm failed"
1481 - emake -j1 -C src autoconf
1482 -
1483 - # This should fix a sandbox violation (see bug 24447). The hvc
1484 - # things are for ppc64, see bug 86433.
1485 - for file in /dev/pty/s* /dev/console /dev/hvc/* /dev/hvc*; do
1486 - if [[ -e "${file}" ]]; then
1487 - addwrite $file
1488 - fi
1489 - done
1490 -
1491 - if use minimal; then
1492 - myconf=(
1493 - --with-features=tiny
1494 - --disable-nls
1495 - --disable-multibyte
1496 - --disable-acl
1497 - --enable-gui=no
1498 - --without-x
1499 - --disable-darwin
1500 - --disable-luainterp
1501 - --disable-perlinterp
1502 - --disable-pythoninterp
1503 - --disable-mzschemeinterp
1504 - --disable-rubyinterp
1505 - --disable-selinux
1506 - --disable-tclinterp
1507 - --disable-gpm
1508 - )
1509 - else
1510 - use debug && append-flags "-DDEBUG"
1511 -
1512 - myconf=(
1513 - --with-features=huge
1514 - --enable-multibyte
1515 - $(use_enable acl)
1516 - $(use_enable cscope)
1517 - $(use_enable gpm)
1518 - $(use_enable lua luainterp)
1519 - $(usex lua "--with-lua-prefix=${EPREFIX}/usr" "")
1520 - $(use_with luajit)
1521 - $(use_enable nls)
1522 - $(use_enable perl perlinterp)
1523 - $(use_enable python pythoninterp)
1524 - $(use_enable python python3interp)
1525 - $(use_enable racket mzschemeinterp)
1526 - $(use_enable ruby rubyinterp)
1527 - $(use_enable selinux)
1528 - $(use_enable tcl tclinterp)
1529 - $(use_enable terminal)
1530 - )
1531 -
1532 - # --with-features=huge forces on cscope even if we --disable it. We need
1533 - # to sed this out to avoid screwiness. (1 Sep 2004 ciaranm)
1534 - if ! use cscope; then
1535 - sed -i -e \
1536 - '/# define FEAT_CSCOPE/d' src/feature.h || die "sed failed"
1537 - fi
1538 -
1539 - # don't test USE=X here ... see bug #19115
1540 - # but need to provide a way to link against X ... see bug #20093
1541 - myconf+=(
1542 - --enable-gui=no
1543 - --disable-darwin
1544 - $(use_with X x)
1545 - )
1546 - fi
1547 -
1548 - # let package manager strip binaries
1549 - export ac_cv_prog_STRIP="$(type -P true ) faking strip"
1550 -
1551 - # keep prefix env contained within the EPREFIX
1552 - use prefix && myconf+=( --without-local-dir )
1553 -
1554 - econf \
1555 - --with-modified-by=Gentoo-${PVR} \
1556 - "${myconf[@]}"
1557 -}
1558 -
1559 -src_compile() {
1560 - # The following allows emake to be used
1561 - emake -j1 -C src auto/osdef.h objects
1562 -
1563 - emake
1564 -}
1565 -
1566 -src_test() {
1567 - einfo
1568 - einfo "Starting vim tests. Several error messages will be shown"
1569 - einfo "while the tests run. This is normal behaviour and does not"
1570 - einfo "indicate a fault."
1571 - einfo
1572 - ewarn "If the tests fail, your terminal may be left in a strange"
1573 - ewarn "state. Usually, running 'reset' will fix this."
1574 - einfo
1575 -
1576 - # Don't let vim talk to X
1577 - unset DISPLAY
1578 -
1579 - emake -j1 -C src/testdir nongui
1580 -}
1581 -
1582 -# Call eselect vi update with --if-unset
1583 -# to respect user's choice (bug 187449)
1584 -eselect_vi_update() {
1585 - einfo "Calling eselect vi update..."
1586 - eselect vi update --if-unset
1587 - eend $?
1588 -}
1589 -
1590 -src_install() {
1591 - local vimfiles=/usr/share/vim/vim${VIM_VERSION/.}
1592 -
1593 - # Note: Do not install symlinks for 'vi', 'ex', or 'view', as these are
1594 - # managed by eselect-vi
1595 - dobin src/vim
1596 - dosym vim /usr/bin/vimdiff
1597 - dosym vim /usr/bin/rvim
1598 - dosym vim /usr/bin/rview
1599 - if use vim-pager ; then
1600 - dosym ${vimfiles}/macros/less.sh /usr/bin/vimpager
1601 - dosym ${vimfiles}/macros/manpager.sh /usr/bin/vimmanpager
1602 - insinto ${vimfiles}/macros
1603 - doins runtime/macros/manpager.sh
1604 - fperms a+x ${vimfiles}/macros/manpager.sh
1605 - fi
1606 -
1607 - domenu runtime/vim.desktop
1608 -
1609 - newbashcomp "${FILESDIR}"/${PN}-completion ${PN}
1610 -
1611 - # keep in sync with 'complete ... -F' list
1612 - bashcomp_alias vim ex vi view rvim rview vimdiff
1613 -}
1614 -
1615 -pkg_postinst() {
1616 - # Update documentation tags (from vim-doc.eclass)
1617 - update_vim_helptags
1618 -
1619 - # Call eselect vi update
1620 - eselect_vi_update
1621 -}
1622 -
1623 -pkg_postrm() {
1624 - # Update documentation tags (from vim-doc.eclass)
1625 - update_vim_helptags
1626 -
1627 - # Call eselect vi update
1628 - eselect_vi_update
1629 -}
1630
1631 diff --git a/app-editors/vim/vim-8.1.0648-r1.ebuild b/app-editors/vim/vim-8.1.0648-r1.ebuild
1632 deleted file mode 100644
1633 index 9fc3bc1b7ff..00000000000
1634 --- a/app-editors/vim/vim-8.1.0648-r1.ebuild
1635 +++ /dev/null
1636 @@ -1,321 +0,0 @@
1637 -# Copyright 1999-2019 Gentoo Authors
1638 -# Distributed under the terms of the GNU General Public License v2
1639 -
1640 -EAPI=6
1641 -VIM_VERSION="8.1"
1642 -PYTHON_COMPAT=( python{2_7,3_5,3_6,3_7} )
1643 -PYTHON_REQ_USE="threads(+)"
1644 -USE_RUBY="ruby23 ruby24 ruby25"
1645 -
1646 -inherit vim-doc flag-o-matic bash-completion-r1 python-single-r1 ruby-single desktop xdg-utils
1647 -
1648 -if [[ ${PV} == 9999* ]] ; then
1649 - inherit git-r3
1650 - EGIT_REPO_URI="https://github.com/vim/vim.git"
1651 -else
1652 - SRC_URI="https://github.com/vim/vim/archive/v${PV}.tar.gz -> ${P}.tar.gz
1653 - https://dev.gentoo.org/~radhermit/vim/vim-8.0.0938-gentoo-patches.tar.bz2"
1654 - 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"
1655 -fi
1656 -
1657 -DESCRIPTION="Vim, an improved vi-style text editor"
1658 -HOMEPAGE="https://vim.sourceforge.io/ https://github.com/vim/vim"
1659 -
1660 -SLOT="0"
1661 -LICENSE="vim"
1662 -IUSE="X acl cscope debug gpm lua luajit minimal nls perl python racket ruby selinux tcl terminal vim-pager"
1663 -REQUIRED_USE="
1664 - luajit? ( lua )
1665 - python? ( ${PYTHON_REQUIRED_USE} )
1666 -"
1667 -
1668 -RDEPEND="
1669 - >=app-eselect/eselect-vi-1.1
1670 - >=sys-libs/ncurses-5.2-r2:0=
1671 - nls? ( virtual/libintl )
1672 - acl? ( kernel_linux? ( sys-apps/acl ) )
1673 - cscope? ( dev-util/cscope )
1674 - gpm? ( >=sys-libs/gpm-1.19.3 )
1675 - lua? (
1676 - luajit? ( dev-lang/luajit:2= )
1677 - !luajit? ( dev-lang/lua:0[deprecated] )
1678 - )
1679 - !minimal? (
1680 - ~app-editors/vim-core-${PV}
1681 - dev-util/ctags
1682 - )
1683 - perl? ( dev-lang/perl:= )
1684 - python? ( ${PYTHON_DEPS} )
1685 - racket? ( dev-scheme/racket )
1686 - ruby? ( ${RUBY_DEPS} )
1687 - selinux? ( sys-libs/libselinux )
1688 - tcl? ( dev-lang/tcl:0= )
1689 - X? ( x11-libs/libXt )
1690 -"
1691 -
1692 -DEPEND="
1693 - ${RDEPEND}
1694 - sys-devel/autoconf
1695 - nls? ( sys-devel/gettext )
1696 -"
1697 -
1698 -pkg_setup() {
1699 - # people with broken alphabets run into trouble. bug 82186.
1700 - unset LANG LC_ALL
1701 - export LC_COLLATE="C"
1702 -
1703 - # Gnome sandbox silliness. bug #114475.
1704 - mkdir -p "${T}"/home || die "mkdir failed"
1705 - export HOME="${T}"/home
1706 -
1707 - use python && python-single-r1_pkg_setup
1708 -}
1709 -
1710 -src_prepare() {
1711 - if [[ ${PV} != 9999* ]] ; then
1712 - # Gentoo patches to fix runtime issues, cross-compile errors, etc
1713 - eapply "${WORKDIR}"/patches/
1714 - fi
1715 -
1716 - # Fixup a script to use awk instead of nawk
1717 - sed -i -e \
1718 - '1s|.*|#!'"${EPREFIX}"'/usr/bin/awk -f|' \
1719 - "${S}"/runtime/tools/mve.awk || die "mve.awk sed failed"
1720 -
1721 - # Read vimrc and gvimrc from /etc/vim
1722 - echo '#define SYS_VIMRC_FILE "'${EPREFIX}'/etc/vim/vimrc"' \
1723 - >> "${S}"/src/feature.h || die "echo failed"
1724 - echo '#define SYS_GVIMRC_FILE "'${EPREFIX}'/etc/vim/gvimrc"' \
1725 - >> "${S}"/src/feature.h || die "echo failed"
1726 -
1727 - # Use exuberant ctags which installs as /usr/bin/exuberant-ctags.
1728 - # Hopefully this pattern won't break for a while at least.
1729 - # This fixes bug 29398 (27 Sep 2003 agriffis)
1730 - sed -i -e \
1731 - 's/\<ctags\("\| [-*.]\)/exuberant-&/g' \
1732 - "${S}"/runtime/doc/syntax.txt \
1733 - "${S}"/runtime/doc/tagsrch.txt \
1734 - "${S}"/runtime/doc/usr_29.txt \
1735 - "${S}"/runtime/menu.vim \
1736 - "${S}"/src/configure.ac || die 'sed failed'
1737 -
1738 - # Don't be fooled by /usr/include/libc.h. When found, vim thinks
1739 - # this is NeXT, but it's actually just a file in dev-libs/9libs
1740 - # This fixes bug 43885 (20 Mar 2004 agriffis)
1741 - sed -i -e \
1742 - 's/ libc\.h / /' \
1743 - "${S}"/src/configure.ac || die 'sed failed'
1744 -
1745 - # gcc on sparc32 has this, uhm, interesting problem with detecting EOF
1746 - # correctly. To avoid some really entertaining error messages about stuff
1747 - # which isn't even in the source file being invalid, we'll do some trickery
1748 - # to make the error never occur. bug 66162 (02 October 2004 ciaranm)
1749 - find "${S}" -name '*.c' | while read c; do
1750 - echo >> "$c" || die "echo failed"
1751 - done
1752 -
1753 - # conditionally make the manpager.sh script
1754 - if use vim-pager; then
1755 - cat > "${S}"/runtime/macros/manpager.sh <<-_EOF_ || die "cat EOF failed"
1756 - #!/bin/sh
1757 - sed -e 's/\x1B\[[[:digit:]]\+m//g' | col -b | \\
1758 - vim \\
1759 - -c 'let no_plugin_maps = 1' \\
1760 - -c 'set nolist nomod ft=man ts=8' \\
1761 - -c 'let g:showmarks_enable=0' \\
1762 - -c 'runtime! macros/less.vim' -
1763 - _EOF_
1764 - fi
1765 -
1766 - # Try to avoid sandbox problems. Bug #114475.
1767 - if [[ -d "${S}"/src/po ]]; then
1768 - sed -i -e \
1769 - '/-S check.vim/s,..VIM.,ln -s $(VIM) testvim \; ./testvim -X,' \
1770 - "${S}"/src/po/Makefile || die "sed failed"
1771 - fi
1772 -
1773 - cp -v "${S}"/src/config.mk.dist "${S}"/src/auto/config.mk || die "cp failed"
1774 -
1775 - sed -i -e \
1776 - "s:\\\$(PERLLIB)/ExtUtils/xsubpp:${EPREFIX}/usr/bin/xsubpp:" \
1777 - "${S}"/src/Makefile || die 'sed for ExtUtils-ParseXS failed'
1778 -
1779 - eapply_user
1780 -}
1781 -
1782 -src_configure() {
1783 - local myconf=()
1784 -
1785 - # Fix bug 37354: Disallow -funroll-all-loops on amd64
1786 - # Bug 57859 suggests that we want to do this for all archs
1787 - filter-flags -funroll-all-loops
1788 -
1789 - # Fix bug 76331: -O3 causes problems, use -O2 instead. We'll do this for
1790 - # everyone since previous flag filtering bugs have turned out to affect
1791 - # multiple archs...
1792 - replace-flags -O3 -O2
1793 -
1794 - # Fix bug 18245: Prevent "make" from the following chain:
1795 - # (1) Notice configure.ac is newer than auto/configure
1796 - # (2) Rebuild auto/configure
1797 - # (3) Notice auto/configure is newer than auto/config.mk
1798 - # (4) Run ./configure (with wrong args) to remake auto/config.mk
1799 - sed -i 's# auto/config\.mk:#:#' src/Makefile || die "Makefile sed failed"
1800 - rm src/auto/configure || die "rm failed"
1801 - emake -j1 -C src autoconf
1802 -
1803 - # This should fix a sandbox violation (see bug 24447). The hvc
1804 - # things are for ppc64, see bug 86433.
1805 - for file in /dev/pty/s* /dev/console /dev/hvc/* /dev/hvc*; do
1806 - if [[ -e "${file}" ]]; then
1807 - addwrite $file
1808 - fi
1809 - done
1810 -
1811 - if use minimal; then
1812 - myconf=(
1813 - --with-features=tiny
1814 - --disable-nls
1815 - --disable-multibyte
1816 - --disable-acl
1817 - --enable-gui=no
1818 - --without-x
1819 - --disable-darwin
1820 - --disable-luainterp
1821 - --disable-perlinterp
1822 - --disable-pythoninterp
1823 - --disable-mzschemeinterp
1824 - --disable-rubyinterp
1825 - --disable-selinux
1826 - --disable-tclinterp
1827 - --disable-gpm
1828 - )
1829 - else
1830 - use debug && append-flags "-DDEBUG"
1831 -
1832 - myconf=(
1833 - --with-features=huge
1834 - --enable-multibyte
1835 - $(use_enable acl)
1836 - $(use_enable cscope)
1837 - $(use_enable gpm)
1838 - $(use_enable lua luainterp)
1839 - $(usex lua "--with-lua-prefix=${EPREFIX}/usr" "")
1840 - $(use_with luajit)
1841 - $(use_enable nls)
1842 - $(use_enable perl perlinterp)
1843 - $(use_enable python pythoninterp)
1844 - $(use_enable python python3interp)
1845 - $(use_with python python-command $(type -P $(eselect python show --python2)))
1846 - $(use_with python python3-command $(type -P $(eselect python show --python3)))
1847 - $(use_enable racket mzschemeinterp)
1848 - $(use_enable ruby rubyinterp)
1849 - $(use_enable selinux)
1850 - $(use_enable tcl tclinterp)
1851 - $(use_enable terminal)
1852 - )
1853 -
1854 - # --with-features=huge forces on cscope even if we --disable it. We need
1855 - # to sed this out to avoid screwiness. (1 Sep 2004 ciaranm)
1856 - if ! use cscope; then
1857 - sed -i -e \
1858 - '/# define FEAT_CSCOPE/d' src/feature.h || die "sed failed"
1859 - fi
1860 -
1861 - # don't test USE=X here ... see bug #19115
1862 - # but need to provide a way to link against X ... see bug #20093
1863 - myconf+=(
1864 - --enable-gui=no
1865 - --disable-darwin
1866 - $(use_with X x)
1867 - )
1868 - fi
1869 -
1870 - # let package manager strip binaries
1871 - export ac_cv_prog_STRIP="$(type -P true ) faking strip"
1872 -
1873 - # keep prefix env contained within the EPREFIX
1874 - use prefix && myconf+=( --without-local-dir )
1875 -
1876 - econf \
1877 - --with-modified-by=Gentoo-${PVR} \
1878 - "${myconf[@]}"
1879 -}
1880 -
1881 -src_compile() {
1882 - # The following allows emake to be used
1883 - emake -j1 -C src auto/osdef.h objects
1884 -
1885 - emake
1886 -}
1887 -
1888 -src_test() {
1889 - einfo
1890 - einfo "Starting vim tests. Several error messages will be shown"
1891 - einfo "while the tests run. This is normal behaviour and does not"
1892 - einfo "indicate a fault."
1893 - einfo
1894 - ewarn "If the tests fail, your terminal may be left in a strange"
1895 - ewarn "state. Usually, running 'reset' will fix this."
1896 - einfo
1897 -
1898 - # Don't let vim talk to X
1899 - unset DISPLAY
1900 -
1901 - emake -j1 -C src/testdir nongui
1902 -}
1903 -
1904 -# Call eselect vi update with --if-unset
1905 -# to respect user's choice (bug 187449)
1906 -eselect_vi_update() {
1907 - einfo "Calling eselect vi update..."
1908 - eselect vi update --if-unset
1909 - eend $?
1910 -}
1911 -
1912 -src_install() {
1913 - local vimfiles=/usr/share/vim/vim${VIM_VERSION/.}
1914 -
1915 - # Note: Do not install symlinks for 'vi', 'ex', or 'view', as these are
1916 - # managed by eselect-vi
1917 - dobin src/vim
1918 - dosym vim /usr/bin/vimdiff
1919 - dosym vim /usr/bin/rvim
1920 - dosym vim /usr/bin/rview
1921 - if use vim-pager ; then
1922 - dosym ${vimfiles}/macros/less.sh /usr/bin/vimpager
1923 - dosym ${vimfiles}/macros/manpager.sh /usr/bin/vimmanpager
1924 - insinto ${vimfiles}/macros
1925 - doins runtime/macros/manpager.sh
1926 - fperms a+x ${vimfiles}/macros/manpager.sh
1927 - fi
1928 -
1929 - domenu runtime/vim.desktop
1930 -
1931 - newbashcomp "${FILESDIR}"/${PN}-completion ${PN}
1932 -
1933 - # keep in sync with 'complete ... -F' list
1934 - bashcomp_alias vim ex vi view rvim rview vimdiff
1935 -}
1936 -
1937 -pkg_postinst() {
1938 - # Update documentation tags (from vim-doc.eclass)
1939 - update_vim_helptags
1940 -
1941 - # Call eselect vi update
1942 - eselect_vi_update
1943 -
1944 - # update desktop file mime cache
1945 - xdg_desktop_database_update
1946 -}
1947 -
1948 -pkg_postrm() {
1949 - # Update documentation tags (from vim-doc.eclass)
1950 - update_vim_helptags
1951 -
1952 - # Call eselect vi update
1953 - eselect_vi_update
1954 -
1955 - # update desktop file mime cache
1956 - xdg_desktop_database_update
1957 -}
1958
1959 diff --git a/app-editors/vim/vim-8.1.0648.ebuild b/app-editors/vim/vim-8.1.0648.ebuild
1960 deleted file mode 100644
1961 index f5fef6d56a0..00000000000
1962 --- a/app-editors/vim/vim-8.1.0648.ebuild
1963 +++ /dev/null
1964 @@ -1,319 +0,0 @@
1965 -# Copyright 1999-2019 Gentoo Authors
1966 -# Distributed under the terms of the GNU General Public License v2
1967 -
1968 -EAPI=6
1969 -VIM_VERSION="8.1"
1970 -PYTHON_COMPAT=( python{2_7,3_5,3_6,3_7} )
1971 -PYTHON_REQ_USE="threads(+)"
1972 -USE_RUBY="ruby23 ruby24 ruby25"
1973 -
1974 -inherit vim-doc flag-o-matic bash-completion-r1 python-single-r1 ruby-single desktop xdg-utils
1975 -
1976 -if [[ ${PV} == 9999* ]] ; then
1977 - inherit git-r3
1978 - EGIT_REPO_URI="https://github.com/vim/vim.git"
1979 -else
1980 - SRC_URI="https://github.com/vim/vim/archive/v${PV}.tar.gz -> ${P}.tar.gz
1981 - https://dev.gentoo.org/~radhermit/vim/vim-8.0.0938-gentoo-patches.tar.bz2"
1982 - 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"
1983 -fi
1984 -
1985 -DESCRIPTION="Vim, an improved vi-style text editor"
1986 -HOMEPAGE="https://vim.sourceforge.io/ https://github.com/vim/vim"
1987 -
1988 -SLOT="0"
1989 -LICENSE="vim"
1990 -IUSE="X acl cscope debug gpm lua luajit minimal nls perl python racket ruby selinux tcl terminal vim-pager"
1991 -REQUIRED_USE="
1992 - luajit? ( lua )
1993 - python? ( ${PYTHON_REQUIRED_USE} )
1994 -"
1995 -
1996 -RDEPEND="
1997 - >=app-eselect/eselect-vi-1.1
1998 - >=sys-libs/ncurses-5.2-r2:0=
1999 - nls? ( virtual/libintl )
2000 - acl? ( kernel_linux? ( sys-apps/acl ) )
2001 - cscope? ( dev-util/cscope )
2002 - gpm? ( >=sys-libs/gpm-1.19.3 )
2003 - lua? (
2004 - luajit? ( dev-lang/luajit:2= )
2005 - !luajit? ( dev-lang/lua:0[deprecated] )
2006 - )
2007 - !minimal? (
2008 - ~app-editors/vim-core-${PV}
2009 - dev-util/ctags
2010 - )
2011 - perl? ( dev-lang/perl:= )
2012 - python? ( ${PYTHON_DEPS} )
2013 - racket? ( dev-scheme/racket )
2014 - ruby? ( ${RUBY_DEPS} )
2015 - selinux? ( sys-libs/libselinux )
2016 - tcl? ( dev-lang/tcl:0= )
2017 - X? ( x11-libs/libXt )
2018 -"
2019 -
2020 -DEPEND="
2021 - ${RDEPEND}
2022 - sys-devel/autoconf
2023 - nls? ( sys-devel/gettext )
2024 -"
2025 -
2026 -pkg_setup() {
2027 - # people with broken alphabets run into trouble. bug 82186.
2028 - unset LANG LC_ALL
2029 - export LC_COLLATE="C"
2030 -
2031 - # Gnome sandbox silliness. bug #114475.
2032 - mkdir -p "${T}"/home || die "mkdir failed"
2033 - export HOME="${T}"/home
2034 -
2035 - use python && python-single-r1_pkg_setup
2036 -}
2037 -
2038 -src_prepare() {
2039 - if [[ ${PV} != 9999* ]] ; then
2040 - # Gentoo patches to fix runtime issues, cross-compile errors, etc
2041 - eapply "${WORKDIR}"/patches/
2042 - fi
2043 -
2044 - # Fixup a script to use awk instead of nawk
2045 - sed -i -e \
2046 - '1s|.*|#!'"${EPREFIX}"'/usr/bin/awk -f|' \
2047 - "${S}"/runtime/tools/mve.awk || die "mve.awk sed failed"
2048 -
2049 - # Read vimrc and gvimrc from /etc/vim
2050 - echo '#define SYS_VIMRC_FILE "'${EPREFIX}'/etc/vim/vimrc"' \
2051 - >> "${S}"/src/feature.h || die "echo failed"
2052 - echo '#define SYS_GVIMRC_FILE "'${EPREFIX}'/etc/vim/gvimrc"' \
2053 - >> "${S}"/src/feature.h || die "echo failed"
2054 -
2055 - # Use exuberant ctags which installs as /usr/bin/exuberant-ctags.
2056 - # Hopefully this pattern won't break for a while at least.
2057 - # This fixes bug 29398 (27 Sep 2003 agriffis)
2058 - sed -i -e \
2059 - 's/\<ctags\("\| [-*.]\)/exuberant-&/g' \
2060 - "${S}"/runtime/doc/syntax.txt \
2061 - "${S}"/runtime/doc/tagsrch.txt \
2062 - "${S}"/runtime/doc/usr_29.txt \
2063 - "${S}"/runtime/menu.vim \
2064 - "${S}"/src/configure.ac || die 'sed failed'
2065 -
2066 - # Don't be fooled by /usr/include/libc.h. When found, vim thinks
2067 - # this is NeXT, but it's actually just a file in dev-libs/9libs
2068 - # This fixes bug 43885 (20 Mar 2004 agriffis)
2069 - sed -i -e \
2070 - 's/ libc\.h / /' \
2071 - "${S}"/src/configure.ac || die 'sed failed'
2072 -
2073 - # gcc on sparc32 has this, uhm, interesting problem with detecting EOF
2074 - # correctly. To avoid some really entertaining error messages about stuff
2075 - # which isn't even in the source file being invalid, we'll do some trickery
2076 - # to make the error never occur. bug 66162 (02 October 2004 ciaranm)
2077 - find "${S}" -name '*.c' | while read c; do
2078 - echo >> "$c" || die "echo failed"
2079 - done
2080 -
2081 - # conditionally make the manpager.sh script
2082 - if use vim-pager; then
2083 - cat > "${S}"/runtime/macros/manpager.sh <<-_EOF_ || die "cat EOF failed"
2084 - #!/bin/sh
2085 - sed -e 's/\x1B\[[[:digit:]]\+m//g' | col -b | \\
2086 - vim \\
2087 - -c 'let no_plugin_maps = 1' \\
2088 - -c 'set nolist nomod ft=man ts=8' \\
2089 - -c 'let g:showmarks_enable=0' \\
2090 - -c 'runtime! macros/less.vim' -
2091 - _EOF_
2092 - fi
2093 -
2094 - # Try to avoid sandbox problems. Bug #114475.
2095 - if [[ -d "${S}"/src/po ]]; then
2096 - sed -i -e \
2097 - '/-S check.vim/s,..VIM.,ln -s $(VIM) testvim \; ./testvim -X,' \
2098 - "${S}"/src/po/Makefile || die "sed failed"
2099 - fi
2100 -
2101 - cp -v "${S}"/src/config.mk.dist "${S}"/src/auto/config.mk || die "cp failed"
2102 -
2103 - sed -i -e \
2104 - "s:\\\$(PERLLIB)/ExtUtils/xsubpp:${EPREFIX}/usr/bin/xsubpp:" \
2105 - "${S}"/src/Makefile || die 'sed for ExtUtils-ParseXS failed'
2106 -
2107 - eapply_user
2108 -}
2109 -
2110 -src_configure() {
2111 - local myconf=()
2112 -
2113 - # Fix bug 37354: Disallow -funroll-all-loops on amd64
2114 - # Bug 57859 suggests that we want to do this for all archs
2115 - filter-flags -funroll-all-loops
2116 -
2117 - # Fix bug 76331: -O3 causes problems, use -O2 instead. We'll do this for
2118 - # everyone since previous flag filtering bugs have turned out to affect
2119 - # multiple archs...
2120 - replace-flags -O3 -O2
2121 -
2122 - # Fix bug 18245: Prevent "make" from the following chain:
2123 - # (1) Notice configure.ac is newer than auto/configure
2124 - # (2) Rebuild auto/configure
2125 - # (3) Notice auto/configure is newer than auto/config.mk
2126 - # (4) Run ./configure (with wrong args) to remake auto/config.mk
2127 - sed -i 's# auto/config\.mk:#:#' src/Makefile || die "Makefile sed failed"
2128 - rm src/auto/configure || die "rm failed"
2129 - emake -j1 -C src autoconf
2130 -
2131 - # This should fix a sandbox violation (see bug 24447). The hvc
2132 - # things are for ppc64, see bug 86433.
2133 - for file in /dev/pty/s* /dev/console /dev/hvc/* /dev/hvc*; do
2134 - if [[ -e "${file}" ]]; then
2135 - addwrite $file
2136 - fi
2137 - done
2138 -
2139 - if use minimal; then
2140 - myconf=(
2141 - --with-features=tiny
2142 - --disable-nls
2143 - --disable-multibyte
2144 - --disable-acl
2145 - --enable-gui=no
2146 - --without-x
2147 - --disable-darwin
2148 - --disable-luainterp
2149 - --disable-perlinterp
2150 - --disable-pythoninterp
2151 - --disable-mzschemeinterp
2152 - --disable-rubyinterp
2153 - --disable-selinux
2154 - --disable-tclinterp
2155 - --disable-gpm
2156 - )
2157 - else
2158 - use debug && append-flags "-DDEBUG"
2159 -
2160 - myconf=(
2161 - --with-features=huge
2162 - --enable-multibyte
2163 - $(use_enable acl)
2164 - $(use_enable cscope)
2165 - $(use_enable gpm)
2166 - $(use_enable lua luainterp)
2167 - $(usex lua "--with-lua-prefix=${EPREFIX}/usr" "")
2168 - $(use_with luajit)
2169 - $(use_enable nls)
2170 - $(use_enable perl perlinterp)
2171 - $(use_enable python pythoninterp)
2172 - $(use_enable python python3interp)
2173 - $(use_enable racket mzschemeinterp)
2174 - $(use_enable ruby rubyinterp)
2175 - $(use_enable selinux)
2176 - $(use_enable tcl tclinterp)
2177 - $(use_enable terminal)
2178 - )
2179 -
2180 - # --with-features=huge forces on cscope even if we --disable it. We need
2181 - # to sed this out to avoid screwiness. (1 Sep 2004 ciaranm)
2182 - if ! use cscope; then
2183 - sed -i -e \
2184 - '/# define FEAT_CSCOPE/d' src/feature.h || die "sed failed"
2185 - fi
2186 -
2187 - # don't test USE=X here ... see bug #19115
2188 - # but need to provide a way to link against X ... see bug #20093
2189 - myconf+=(
2190 - --enable-gui=no
2191 - --disable-darwin
2192 - $(use_with X x)
2193 - )
2194 - fi
2195 -
2196 - # let package manager strip binaries
2197 - export ac_cv_prog_STRIP="$(type -P true ) faking strip"
2198 -
2199 - # keep prefix env contained within the EPREFIX
2200 - use prefix && myconf+=( --without-local-dir )
2201 -
2202 - econf \
2203 - --with-modified-by=Gentoo-${PVR} \
2204 - "${myconf[@]}"
2205 -}
2206 -
2207 -src_compile() {
2208 - # The following allows emake to be used
2209 - emake -j1 -C src auto/osdef.h objects
2210 -
2211 - emake
2212 -}
2213 -
2214 -src_test() {
2215 - einfo
2216 - einfo "Starting vim tests. Several error messages will be shown"
2217 - einfo "while the tests run. This is normal behaviour and does not"
2218 - einfo "indicate a fault."
2219 - einfo
2220 - ewarn "If the tests fail, your terminal may be left in a strange"
2221 - ewarn "state. Usually, running 'reset' will fix this."
2222 - einfo
2223 -
2224 - # Don't let vim talk to X
2225 - unset DISPLAY
2226 -
2227 - emake -j1 -C src/testdir nongui
2228 -}
2229 -
2230 -# Call eselect vi update with --if-unset
2231 -# to respect user's choice (bug 187449)
2232 -eselect_vi_update() {
2233 - einfo "Calling eselect vi update..."
2234 - eselect vi update --if-unset
2235 - eend $?
2236 -}
2237 -
2238 -src_install() {
2239 - local vimfiles=/usr/share/vim/vim${VIM_VERSION/.}
2240 -
2241 - # Note: Do not install symlinks for 'vi', 'ex', or 'view', as these are
2242 - # managed by eselect-vi
2243 - dobin src/vim
2244 - dosym vim /usr/bin/vimdiff
2245 - dosym vim /usr/bin/rvim
2246 - dosym vim /usr/bin/rview
2247 - if use vim-pager ; then
2248 - dosym ${vimfiles}/macros/less.sh /usr/bin/vimpager
2249 - dosym ${vimfiles}/macros/manpager.sh /usr/bin/vimmanpager
2250 - insinto ${vimfiles}/macros
2251 - doins runtime/macros/manpager.sh
2252 - fperms a+x ${vimfiles}/macros/manpager.sh
2253 - fi
2254 -
2255 - domenu runtime/vim.desktop
2256 -
2257 - newbashcomp "${FILESDIR}"/${PN}-completion ${PN}
2258 -
2259 - # keep in sync with 'complete ... -F' list
2260 - bashcomp_alias vim ex vi view rvim rview vimdiff
2261 -}
2262 -
2263 -pkg_postinst() {
2264 - # Update documentation tags (from vim-doc.eclass)
2265 - update_vim_helptags
2266 -
2267 - # Call eselect vi update
2268 - eselect_vi_update
2269 -
2270 - # update desktop file mime cache
2271 - xdg_desktop_database_update
2272 -}
2273 -
2274 -pkg_postrm() {
2275 - # Update documentation tags (from vim-doc.eclass)
2276 - update_vim_helptags
2277 -
2278 - # Call eselect vi update
2279 - eselect_vi_update
2280 -
2281 - # update desktop file mime cache
2282 - xdg_desktop_database_update
2283 -}
2284
2285 diff --git a/app-editors/vim/vim-8.1.1155.ebuild b/app-editors/vim/vim-8.1.1155.ebuild
2286 deleted file mode 100644
2287 index 78412b5fb7f..00000000000
2288 --- a/app-editors/vim/vim-8.1.1155.ebuild
2289 +++ /dev/null
2290 @@ -1,318 +0,0 @@
2291 -# Copyright 1999-2019 Gentoo Authors
2292 -# Distributed under the terms of the GNU General Public License v2
2293 -
2294 -EAPI=6
2295 -VIM_VERSION="8.1"
2296 -PYTHON_COMPAT=( python{2_7,3_5,3_6,3_7} )
2297 -PYTHON_REQ_USE="threads(+)"
2298 -USE_RUBY="ruby24 ruby25 ruby26"
2299 -
2300 -inherit vim-doc flag-o-matic bash-completion-r1 python-single-r1 ruby-single desktop xdg-utils
2301 -
2302 -if [[ ${PV} == 9999* ]] ; then
2303 - inherit git-r3
2304 - EGIT_REPO_URI="https://github.com/vim/vim.git"
2305 -else
2306 - SRC_URI="https://github.com/vim/vim/archive/v${PV}.tar.gz -> ${P}.tar.gz
2307 - https://dev.gentoo.org/~radhermit/vim/vim-8.0.0938-gentoo-patches.tar.bz2"
2308 - 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"
2309 -fi
2310 -
2311 -DESCRIPTION="Vim, an improved vi-style text editor"
2312 -HOMEPAGE="https://vim.sourceforge.io/ https://github.com/vim/vim"
2313 -
2314 -SLOT="0"
2315 -LICENSE="vim"
2316 -IUSE="X acl cscope debug gpm lua luajit minimal nls perl python racket ruby selinux tcl terminal vim-pager"
2317 -REQUIRED_USE="
2318 - luajit? ( lua )
2319 - python? ( ${PYTHON_REQUIRED_USE} )
2320 - vim-pager? ( !minimal )
2321 -"
2322 -
2323 -RDEPEND="
2324 - >=app-eselect/eselect-vi-1.1
2325 - >=sys-libs/ncurses-5.2-r2:0=
2326 - nls? ( virtual/libintl )
2327 - acl? ( kernel_linux? ( sys-apps/acl ) )
2328 - cscope? ( dev-util/cscope )
2329 - gpm? ( >=sys-libs/gpm-1.19.3 )
2330 - lua? (
2331 - luajit? ( dev-lang/luajit:2= )
2332 - !luajit? ( dev-lang/lua:0[deprecated] )
2333 - )
2334 - !minimal? ( ~app-editors/vim-core-${PV} )
2335 - vim-pager? ( app-editors/vim-core[-minimal] )
2336 - perl? ( dev-lang/perl:= )
2337 - python? ( ${PYTHON_DEPS} )
2338 - racket? ( dev-scheme/racket )
2339 - ruby? ( ${RUBY_DEPS} )
2340 - selinux? ( sys-libs/libselinux )
2341 - tcl? ( dev-lang/tcl:0= )
2342 - X? ( x11-libs/libXt )
2343 -"
2344 -
2345 -DEPEND="
2346 - ${RDEPEND}
2347 - sys-devel/autoconf
2348 - nls? ( sys-devel/gettext )
2349 -"
2350 -
2351 -pkg_setup() {
2352 - # people with broken alphabets run into trouble. bug 82186.
2353 - unset LANG LC_ALL
2354 - export LC_COLLATE="C"
2355 -
2356 - # Gnome sandbox silliness. bug #114475.
2357 - mkdir -p "${T}"/home || die "mkdir failed"
2358 - export HOME="${T}"/home
2359 -
2360 - use python && python-single-r1_pkg_setup
2361 -}
2362 -
2363 -src_prepare() {
2364 - if [[ ${PV} != 9999* ]] ; then
2365 - # Gentoo patches to fix runtime issues, cross-compile errors, etc
2366 - eapply "${WORKDIR}"/patches/
2367 - fi
2368 -
2369 - # Fixup a script to use awk instead of nawk
2370 - sed -i -e \
2371 - '1s|.*|#!'"${EPREFIX}"'/usr/bin/awk -f|' \
2372 - "${S}"/runtime/tools/mve.awk || die "mve.awk sed failed"
2373 -
2374 - # Read vimrc and gvimrc from /etc/vim
2375 - echo '#define SYS_VIMRC_FILE "'${EPREFIX}'/etc/vim/vimrc"' \
2376 - >> "${S}"/src/feature.h || die "echo failed"
2377 - echo '#define SYS_GVIMRC_FILE "'${EPREFIX}'/etc/vim/gvimrc"' \
2378 - >> "${S}"/src/feature.h || die "echo failed"
2379 -
2380 - # Use exuberant ctags which installs as /usr/bin/exuberant-ctags.
2381 - # Hopefully this pattern won't break for a while at least.
2382 - # This fixes bug 29398 (27 Sep 2003 agriffis)
2383 - sed -i -e \
2384 - 's/\<ctags\("\| [-*.]\)/exuberant-&/g' \
2385 - "${S}"/runtime/doc/syntax.txt \
2386 - "${S}"/runtime/doc/tagsrch.txt \
2387 - "${S}"/runtime/doc/usr_29.txt \
2388 - "${S}"/runtime/menu.vim \
2389 - "${S}"/src/configure.ac || die 'sed failed'
2390 -
2391 - # Don't be fooled by /usr/include/libc.h. When found, vim thinks
2392 - # this is NeXT, but it's actually just a file in dev-libs/9libs
2393 - # This fixes bug 43885 (20 Mar 2004 agriffis)
2394 - sed -i -e \
2395 - 's/ libc\.h / /' \
2396 - "${S}"/src/configure.ac || die 'sed failed'
2397 -
2398 - # gcc on sparc32 has this, uhm, interesting problem with detecting EOF
2399 - # correctly. To avoid some really entertaining error messages about stuff
2400 - # which isn't even in the source file being invalid, we'll do some trickery
2401 - # to make the error never occur. bug 66162 (02 October 2004 ciaranm)
2402 - find "${S}" -name '*.c' | while read c; do
2403 - echo >> "$c" || die "echo failed"
2404 - done
2405 -
2406 - # conditionally make the manpager.sh script
2407 - if use vim-pager; then
2408 - cat > "${S}"/runtime/macros/manpager.sh <<-_EOF_ || die "cat EOF failed"
2409 - #!/bin/sh
2410 - sed -e 's/\x1B\[[[:digit:]]\+m//g' | col -b | \\
2411 - vim \\
2412 - -c 'let no_plugin_maps = 1' \\
2413 - -c 'set nolist nomod ft=man ts=8' \\
2414 - -c 'let g:showmarks_enable=0' \\
2415 - -c 'runtime! macros/less.vim' -
2416 - _EOF_
2417 - fi
2418 -
2419 - # Try to avoid sandbox problems. Bug #114475.
2420 - if [[ -d "${S}"/src/po ]]; then
2421 - sed -i -e \
2422 - '/-S check.vim/s,..VIM.,ln -s $(VIM) testvim \; ./testvim -X,' \
2423 - "${S}"/src/po/Makefile || die "sed failed"
2424 - fi
2425 -
2426 - cp -v "${S}"/src/config.mk.dist "${S}"/src/auto/config.mk || die "cp failed"
2427 -
2428 - sed -i -e \
2429 - "s:\\\$(PERLLIB)/ExtUtils/xsubpp:${EPREFIX}/usr/bin/xsubpp:" \
2430 - "${S}"/src/Makefile || die 'sed for ExtUtils-ParseXS failed'
2431 -
2432 - eapply_user
2433 -}
2434 -
2435 -src_configure() {
2436 - local myconf=( --enable-multibyte )
2437 -
2438 - # Fix bug 37354: Disallow -funroll-all-loops on amd64
2439 - # Bug 57859 suggests that we want to do this for all archs
2440 - filter-flags -funroll-all-loops
2441 -
2442 - # Fix bug 76331: -O3 causes problems, use -O2 instead. We'll do this for
2443 - # everyone since previous flag filtering bugs have turned out to affect
2444 - # multiple archs...
2445 - replace-flags -O3 -O2
2446 -
2447 - # Fix bug 18245: Prevent "make" from the following chain:
2448 - # (1) Notice configure.ac is newer than auto/configure
2449 - # (2) Rebuild auto/configure
2450 - # (3) Notice auto/configure is newer than auto/config.mk
2451 - # (4) Run ./configure (with wrong args) to remake auto/config.mk
2452 - sed -i 's# auto/config\.mk:#:#' src/Makefile || die "Makefile sed failed"
2453 - rm src/auto/configure || die "rm failed"
2454 - emake -j1 -C src autoconf
2455 -
2456 - # This should fix a sandbox violation (see bug 24447). The hvc
2457 - # things are for ppc64, see bug 86433.
2458 - for file in /dev/pty/s* /dev/console /dev/hvc/* /dev/hvc*; do
2459 - if [[ -e "${file}" ]]; then
2460 - addwrite $file
2461 - fi
2462 - done
2463 -
2464 - if use minimal; then
2465 - myconf=(
2466 - --with-features=tiny
2467 - --disable-nls
2468 - --disable-acl
2469 - --enable-gui=no
2470 - --without-x
2471 - --disable-darwin
2472 - --disable-luainterp
2473 - --disable-perlinterp
2474 - --disable-pythoninterp
2475 - --disable-mzschemeinterp
2476 - --disable-rubyinterp
2477 - --disable-selinux
2478 - --disable-tclinterp
2479 - --disable-gpm
2480 - )
2481 - else
2482 - use debug && append-flags "-DDEBUG"
2483 -
2484 - myconf=(
2485 - --with-features=huge
2486 - $(use_enable acl)
2487 - $(use_enable cscope)
2488 - $(use_enable gpm)
2489 - $(use_enable lua luainterp)
2490 - $(usex lua "--with-lua-prefix=${EPREFIX}/usr" "")
2491 - $(use_with luajit)
2492 - $(use_enable nls)
2493 - $(use_enable perl perlinterp)
2494 - $(use_enable python pythoninterp)
2495 - $(use_enable python python3interp)
2496 - $(use_with python python-command $(type -P $(eselect python show --python2)))
2497 - $(use_with python python3-command $(type -P $(eselect python show --python3)))
2498 - $(use_enable racket mzschemeinterp)
2499 - $(use_enable ruby rubyinterp)
2500 - $(use_enable selinux)
2501 - $(use_enable tcl tclinterp)
2502 - $(use_enable terminal)
2503 - )
2504 -
2505 - # --with-features=huge forces on cscope even if we --disable it. We need
2506 - # to sed this out to avoid screwiness. (1 Sep 2004 ciaranm)
2507 - if ! use cscope; then
2508 - sed -i -e \
2509 - '/# define FEAT_CSCOPE/d' src/feature.h || die "sed failed"
2510 - fi
2511 -
2512 - # don't test USE=X here ... see bug #19115
2513 - # but need to provide a way to link against X ... see bug #20093
2514 - myconf+=(
2515 - --enable-gui=no
2516 - --disable-darwin
2517 - $(use_with X x)
2518 - )
2519 - fi
2520 -
2521 - # let package manager strip binaries
2522 - export ac_cv_prog_STRIP="$(type -P true ) faking strip"
2523 -
2524 - # keep prefix env contained within the EPREFIX
2525 - use prefix && myconf+=( --without-local-dir )
2526 -
2527 - econf \
2528 - --with-modified-by=Gentoo-${PVR} \
2529 - "${myconf[@]}"
2530 -}
2531 -
2532 -src_compile() {
2533 - # The following allows emake to be used
2534 - emake -j1 -C src auto/osdef.h objects
2535 -
2536 - emake
2537 -}
2538 -
2539 -src_test() {
2540 - einfo
2541 - einfo "Starting vim tests. Several error messages will be shown"
2542 - einfo "while the tests run. This is normal behaviour and does not"
2543 - einfo "indicate a fault."
2544 - einfo
2545 - ewarn "If the tests fail, your terminal may be left in a strange"
2546 - ewarn "state. Usually, running 'reset' will fix this."
2547 - einfo
2548 -
2549 - # Don't let vim talk to X
2550 - unset DISPLAY
2551 -
2552 - emake -j1 -C src/testdir nongui
2553 -}
2554 -
2555 -# Call eselect vi update with --if-unset
2556 -# to respect user's choice (bug 187449)
2557 -eselect_vi_update() {
2558 - einfo "Calling eselect vi update..."
2559 - eselect vi update --if-unset
2560 - eend $?
2561 -}
2562 -
2563 -src_install() {
2564 - local vimfiles=/usr/share/vim/vim${VIM_VERSION/.}
2565 -
2566 - # Note: Do not install symlinks for 'vi', 'ex', or 'view', as these are
2567 - # managed by eselect-vi
2568 - dobin src/vim
2569 - dosym vim /usr/bin/vimdiff
2570 - dosym vim /usr/bin/rvim
2571 - dosym vim /usr/bin/rview
2572 - if use vim-pager ; then
2573 - dosym ${vimfiles}/macros/less.sh /usr/bin/vimpager
2574 - dosym ${vimfiles}/macros/manpager.sh /usr/bin/vimmanpager
2575 - insinto ${vimfiles}/macros
2576 - doins runtime/macros/manpager.sh
2577 - fperms a+x ${vimfiles}/macros/manpager.sh
2578 - fi
2579 -
2580 - domenu runtime/vim.desktop
2581 -
2582 - newbashcomp "${FILESDIR}"/${PN}-completion ${PN}
2583 -
2584 - # keep in sync with 'complete ... -F' list
2585 - bashcomp_alias vim ex vi view rvim rview vimdiff
2586 -}
2587 -
2588 -pkg_postinst() {
2589 - # Update documentation tags (from vim-doc.eclass)
2590 - update_vim_helptags
2591 -
2592 - # Call eselect vi update
2593 - eselect_vi_update
2594 -
2595 - # update desktop file mime cache
2596 - xdg_desktop_database_update
2597 -}
2598 -
2599 -pkg_postrm() {
2600 - # Update documentation tags (from vim-doc.eclass)
2601 - update_vim_helptags
2602 -
2603 - # Call eselect vi update
2604 - eselect_vi_update
2605 -
2606 - # update desktop file mime cache
2607 - xdg_desktop_database_update
2608 -}
2609
2610 diff --git a/app-editors/vim/vim-8.1.1312.ebuild b/app-editors/vim/vim-8.1.1312.ebuild
2611 deleted file mode 100644
2612 index aa0c429fd15..00000000000
2613 --- a/app-editors/vim/vim-8.1.1312.ebuild
2614 +++ /dev/null
2615 @@ -1,317 +0,0 @@
2616 -# Copyright 1999-2019 Gentoo Authors
2617 -# Distributed under the terms of the GNU General Public License v2
2618 -
2619 -EAPI=6
2620 -VIM_VERSION="8.1"
2621 -PYTHON_COMPAT=( python{2_7,3_5,3_6,3_7} )
2622 -PYTHON_REQ_USE="threads(+)"
2623 -USE_RUBY="ruby24 ruby25 ruby26"
2624 -
2625 -inherit vim-doc flag-o-matic bash-completion-r1 python-single-r1 ruby-single desktop xdg-utils
2626 -
2627 -if [[ ${PV} == 9999* ]] ; then
2628 - inherit git-r3
2629 - EGIT_REPO_URI="https://github.com/vim/vim.git"
2630 -else
2631 - SRC_URI="https://github.com/vim/vim/archive/v${PV}.tar.gz -> ${P}.tar.gz
2632 - https://dev.gentoo.org/~radhermit/vim/vim-8.0.0938-gentoo-patches.tar.bz2"
2633 - 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"
2634 -fi
2635 -
2636 -DESCRIPTION="Vim, an improved vi-style text editor"
2637 -HOMEPAGE="https://vim.sourceforge.io/ https://github.com/vim/vim"
2638 -
2639 -SLOT="0"
2640 -LICENSE="vim"
2641 -IUSE="X acl cscope debug gpm lua luajit minimal nls perl python racket ruby selinux tcl terminal vim-pager"
2642 -REQUIRED_USE="
2643 - python? ( ${PYTHON_REQUIRED_USE} )
2644 - vim-pager? ( !minimal )
2645 -"
2646 -
2647 -RDEPEND="
2648 - >=app-eselect/eselect-vi-1.1
2649 - >=sys-libs/ncurses-5.2-r2:0=
2650 - nls? ( virtual/libintl )
2651 - acl? ( kernel_linux? ( sys-apps/acl ) )
2652 - cscope? ( dev-util/cscope )
2653 - gpm? ( >=sys-libs/gpm-1.19.3 )
2654 - lua? (
2655 - luajit? ( dev-lang/luajit:2= )
2656 - !luajit? ( dev-lang/lua:0[deprecated] )
2657 - )
2658 - !minimal? ( ~app-editors/vim-core-${PV} )
2659 - vim-pager? ( app-editors/vim-core[-minimal] )
2660 - perl? ( dev-lang/perl:= )
2661 - python? ( ${PYTHON_DEPS} )
2662 - racket? ( dev-scheme/racket )
2663 - ruby? ( ${RUBY_DEPS} )
2664 - selinux? ( sys-libs/libselinux )
2665 - tcl? ( dev-lang/tcl:0= )
2666 - X? ( x11-libs/libXt )
2667 -"
2668 -
2669 -DEPEND="
2670 - ${RDEPEND}
2671 - sys-devel/autoconf
2672 - nls? ( sys-devel/gettext )
2673 -"
2674 -
2675 -pkg_setup() {
2676 - # people with broken alphabets run into trouble. bug 82186.
2677 - unset LANG LC_ALL
2678 - export LC_COLLATE="C"
2679 -
2680 - # Gnome sandbox silliness. bug #114475.
2681 - mkdir -p "${T}"/home || die "mkdir failed"
2682 - export HOME="${T}"/home
2683 -
2684 - use python && python-single-r1_pkg_setup
2685 -}
2686 -
2687 -src_prepare() {
2688 - if [[ ${PV} != 9999* ]] ; then
2689 - # Gentoo patches to fix runtime issues, cross-compile errors, etc
2690 - eapply "${WORKDIR}"/patches/
2691 - fi
2692 -
2693 - # Fixup a script to use awk instead of nawk
2694 - sed -i -e \
2695 - '1s|.*|#!'"${EPREFIX}"'/usr/bin/awk -f|' \
2696 - "${S}"/runtime/tools/mve.awk || die "mve.awk sed failed"
2697 -
2698 - # Read vimrc and gvimrc from /etc/vim
2699 - echo '#define SYS_VIMRC_FILE "'${EPREFIX}'/etc/vim/vimrc"' \
2700 - >> "${S}"/src/feature.h || die "echo failed"
2701 - echo '#define SYS_GVIMRC_FILE "'${EPREFIX}'/etc/vim/gvimrc"' \
2702 - >> "${S}"/src/feature.h || die "echo failed"
2703 -
2704 - # Use exuberant ctags which installs as /usr/bin/exuberant-ctags.
2705 - # Hopefully this pattern won't break for a while at least.
2706 - # This fixes bug 29398 (27 Sep 2003 agriffis)
2707 - sed -i -e \
2708 - 's/\<ctags\("\| [-*.]\)/exuberant-&/g' \
2709 - "${S}"/runtime/doc/syntax.txt \
2710 - "${S}"/runtime/doc/tagsrch.txt \
2711 - "${S}"/runtime/doc/usr_29.txt \
2712 - "${S}"/runtime/menu.vim \
2713 - "${S}"/src/configure.ac || die 'sed failed'
2714 -
2715 - # Don't be fooled by /usr/include/libc.h. When found, vim thinks
2716 - # this is NeXT, but it's actually just a file in dev-libs/9libs
2717 - # This fixes bug 43885 (20 Mar 2004 agriffis)
2718 - sed -i -e \
2719 - 's/ libc\.h / /' \
2720 - "${S}"/src/configure.ac || die 'sed failed'
2721 -
2722 - # gcc on sparc32 has this, uhm, interesting problem with detecting EOF
2723 - # correctly. To avoid some really entertaining error messages about stuff
2724 - # which isn't even in the source file being invalid, we'll do some trickery
2725 - # to make the error never occur. bug 66162 (02 October 2004 ciaranm)
2726 - find "${S}" -name '*.c' | while read c; do
2727 - echo >> "$c" || die "echo failed"
2728 - done
2729 -
2730 - # conditionally make the manpager.sh script
2731 - if use vim-pager; then
2732 - cat > "${S}"/runtime/macros/manpager.sh <<-_EOF_ || die "cat EOF failed"
2733 - #!/bin/sh
2734 - sed -e 's/\x1B\[[[:digit:]]\+m//g' | col -b | \\
2735 - vim \\
2736 - -c 'let no_plugin_maps = 1' \\
2737 - -c 'set nolist nomod ft=man ts=8' \\
2738 - -c 'let g:showmarks_enable=0' \\
2739 - -c 'runtime! macros/less.vim' -
2740 - _EOF_
2741 - fi
2742 -
2743 - # Try to avoid sandbox problems. Bug #114475.
2744 - if [[ -d "${S}"/src/po ]]; then
2745 - sed -i -e \
2746 - '/-S check.vim/s,..VIM.,ln -s $(VIM) testvim \; ./testvim -X,' \
2747 - "${S}"/src/po/Makefile || die "sed failed"
2748 - fi
2749 -
2750 - cp -v "${S}"/src/config.mk.dist "${S}"/src/auto/config.mk || die "cp failed"
2751 -
2752 - sed -i -e \
2753 - "s:\\\$(PERLLIB)/ExtUtils/xsubpp:${EPREFIX}/usr/bin/xsubpp:" \
2754 - "${S}"/src/Makefile || die 'sed for ExtUtils-ParseXS failed'
2755 -
2756 - eapply_user
2757 -}
2758 -
2759 -src_configure() {
2760 - local myconf=()
2761 -
2762 - # Fix bug 37354: Disallow -funroll-all-loops on amd64
2763 - # Bug 57859 suggests that we want to do this for all archs
2764 - filter-flags -funroll-all-loops
2765 -
2766 - # Fix bug 76331: -O3 causes problems, use -O2 instead. We'll do this for
2767 - # everyone since previous flag filtering bugs have turned out to affect
2768 - # multiple archs...
2769 - replace-flags -O3 -O2
2770 -
2771 - # Fix bug 18245: Prevent "make" from the following chain:
2772 - # (1) Notice configure.ac is newer than auto/configure
2773 - # (2) Rebuild auto/configure
2774 - # (3) Notice auto/configure is newer than auto/config.mk
2775 - # (4) Run ./configure (with wrong args) to remake auto/config.mk
2776 - sed -i 's# auto/config\.mk:#:#' src/Makefile || die "Makefile sed failed"
2777 - rm src/auto/configure || die "rm failed"
2778 - emake -j1 -C src autoconf
2779 -
2780 - # This should fix a sandbox violation (see bug 24447). The hvc
2781 - # things are for ppc64, see bug 86433.
2782 - for file in /dev/pty/s* /dev/console /dev/hvc/* /dev/hvc*; do
2783 - if [[ -e "${file}" ]]; then
2784 - addwrite $file
2785 - fi
2786 - done
2787 -
2788 - if use minimal; then
2789 - myconf=(
2790 - --with-features=tiny
2791 - --disable-nls
2792 - --disable-acl
2793 - --enable-gui=no
2794 - --without-x
2795 - --disable-darwin
2796 - --disable-luainterp
2797 - --disable-perlinterp
2798 - --disable-pythoninterp
2799 - --disable-mzschemeinterp
2800 - --disable-rubyinterp
2801 - --disable-selinux
2802 - --disable-tclinterp
2803 - --disable-gpm
2804 - )
2805 - else
2806 - use debug && append-flags "-DDEBUG"
2807 -
2808 - myconf=(
2809 - --with-features=huge
2810 - $(use_enable acl)
2811 - $(use_enable cscope)
2812 - $(use_enable gpm)
2813 - $(use_enable lua luainterp)
2814 - $(usex lua "--with-lua-prefix=${EPREFIX}/usr" "")
2815 - $(use_with luajit)
2816 - $(use_enable nls)
2817 - $(use_enable perl perlinterp)
2818 - $(use_enable python pythoninterp)
2819 - $(use_enable python python3interp)
2820 - $(use_with python python-command $(type -P $(eselect python show --python2)))
2821 - $(use_with python python3-command $(type -P $(eselect python show --python3)))
2822 - $(use_enable racket mzschemeinterp)
2823 - $(use_enable ruby rubyinterp)
2824 - $(use_enable selinux)
2825 - $(use_enable tcl tclinterp)
2826 - $(use_enable terminal)
2827 - )
2828 -
2829 - # --with-features=huge forces on cscope even if we --disable it. We need
2830 - # to sed this out to avoid screwiness. (1 Sep 2004 ciaranm)
2831 - if ! use cscope; then
2832 - sed -i -e \
2833 - '/# define FEAT_CSCOPE/d' src/feature.h || die "sed failed"
2834 - fi
2835 -
2836 - # don't test USE=X here ... see bug #19115
2837 - # but need to provide a way to link against X ... see bug #20093
2838 - myconf+=(
2839 - --enable-gui=no
2840 - --disable-darwin
2841 - $(use_with X x)
2842 - )
2843 - fi
2844 -
2845 - # let package manager strip binaries
2846 - export ac_cv_prog_STRIP="$(type -P true ) faking strip"
2847 -
2848 - # keep prefix env contained within the EPREFIX
2849 - use prefix && myconf+=( --without-local-dir )
2850 -
2851 - econf \
2852 - --with-modified-by=Gentoo-${PVR} \
2853 - "${myconf[@]}"
2854 -}
2855 -
2856 -src_compile() {
2857 - # The following allows emake to be used
2858 - emake -j1 -C src auto/osdef.h objects
2859 -
2860 - emake
2861 -}
2862 -
2863 -src_test() {
2864 - einfo
2865 - einfo "Starting vim tests. Several error messages will be shown"
2866 - einfo "while the tests run. This is normal behaviour and does not"
2867 - einfo "indicate a fault."
2868 - einfo
2869 - ewarn "If the tests fail, your terminal may be left in a strange"
2870 - ewarn "state. Usually, running 'reset' will fix this."
2871 - einfo
2872 -
2873 - # Don't let vim talk to X
2874 - unset DISPLAY
2875 -
2876 - emake -j1 -C src/testdir nongui
2877 -}
2878 -
2879 -# Call eselect vi update with --if-unset
2880 -# to respect user's choice (bug 187449)
2881 -eselect_vi_update() {
2882 - einfo "Calling eselect vi update..."
2883 - eselect vi update --if-unset
2884 - eend $?
2885 -}
2886 -
2887 -src_install() {
2888 - local vimfiles=/usr/share/vim/vim${VIM_VERSION/.}
2889 -
2890 - # Note: Do not install symlinks for 'vi', 'ex', or 'view', as these are
2891 - # managed by eselect-vi
2892 - dobin src/vim
2893 - dosym vim /usr/bin/vimdiff
2894 - dosym vim /usr/bin/rvim
2895 - dosym vim /usr/bin/rview
2896 - if use vim-pager ; then
2897 - dosym ${vimfiles}/macros/less.sh /usr/bin/vimpager
2898 - dosym ${vimfiles}/macros/manpager.sh /usr/bin/vimmanpager
2899 - insinto ${vimfiles}/macros
2900 - doins runtime/macros/manpager.sh
2901 - fperms a+x ${vimfiles}/macros/manpager.sh
2902 - fi
2903 -
2904 - domenu runtime/vim.desktop
2905 -
2906 - newbashcomp "${FILESDIR}"/${PN}-completion ${PN}
2907 -
2908 - # keep in sync with 'complete ... -F' list
2909 - bashcomp_alias vim ex vi view rvim rview vimdiff
2910 -}
2911 -
2912 -pkg_postinst() {
2913 - # Update documentation tags (from vim-doc.eclass)
2914 - update_vim_helptags
2915 -
2916 - # Call eselect vi update
2917 - eselect_vi_update
2918 -
2919 - # update desktop file mime cache
2920 - xdg_desktop_database_update
2921 -}
2922 -
2923 -pkg_postrm() {
2924 - # Update documentation tags (from vim-doc.eclass)
2925 - update_vim_helptags
2926 -
2927 - # Call eselect vi update
2928 - eselect_vi_update
2929 -
2930 - # update desktop file mime cache
2931 - xdg_desktop_database_update
2932 -}