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-core/, app-editors/vim-core/files/
Date: Tue, 28 Feb 2017 00:57:07
Message-Id: 1488243380.47fe6b8a958035ce211bc6745d280b20b55c1729.radhermit@gentoo
1 commit: 47fe6b8a958035ce211bc6745d280b20b55c1729
2 Author: Tim Harder <radhermit <AT> gentoo <DOT> org>
3 AuthorDate: Tue Feb 28 00:27:28 2017 +0000
4 Commit: Tim Harder <radhermit <AT> gentoo <DOT> org>
5 CommitDate: Tue Feb 28 00:56:20 2017 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=47fe6b8a
7
8 app-editors/vim-core: remove old
9
10 app-editors/vim-core/Manifest | 5 -
11 app-editors/vim-core/files/vimrc-r4 | 200 --------------------
12 app-editors/vim-core/vim-core-7.4.2102.ebuild | 220 ----------------------
13 app-editors/vim-core/vim-core-7.4.769.ebuild | 223 -----------------------
14 app-editors/vim-core/vim-core-8.0.0005-r1.ebuild | 218 ----------------------
15 app-editors/vim-core/vim-core-8.0.0005.ebuild | 218 ----------------------
16 6 files changed, 1084 deletions(-)
17
18 diff --git a/app-editors/vim-core/Manifest b/app-editors/vim-core/Manifest
19 index 8c67463e45..e8b3c1f39e 100644
20 --- a/app-editors/vim-core/Manifest
21 +++ b/app-editors/vim-core/Manifest
22 @@ -1,7 +1,2 @@
23 -DIST vim-7.4.2102-gentoo-patches.tar.bz2 2308 SHA256 1928059fe173b3abf66a96a8205c2e46b5320639d62385aeeae760e99820da67 SHA512 4e678b214fc7b1be89728b8151335ca8af332e8b0c0e25c27287a38ad5ccf14d5dcf82d5dd86af9aa502df4fae986aba98104f150b49a880e34f8283e8e63574 WHIRLPOOL 8a53a8980418f16f8c7883409dea49cfc758fc29dcfaab36f1bd6ae53b32211870a95361c8b63cdfe50795ea11958b113c9909ed6d29de5cb3696efc6ff7888b
24 -DIST vim-7.4.2102.tar.gz 12838026 SHA256 19c059b2d0e61effcd288e2a18969017cbbc031cf19fe775b3f4b4c42bda2578 SHA512 9cf80b1c9e2dd8713b9ba33c39917a8771c7378ae59c2dc1809bf0cabc4545547ad0a5b9f0b87cef2b34f6d1f72b135d1217495716fc482a70a16e1097bd88a2 WHIRLPOOL 301d41e9bf9a6a220776d6e32ab2918c6a8aaf33862725fba9c738e0c99921e631d8c2fdfd9bc2dc9a214a9124ecfa113081a86addf79b023e8421471843f869
25 -DIST vim-7.4.542-gentoo-patches.tar.bz2 3307 SHA256 0eb635f13e199de77846e0d363a473882f2186f138158271fabf0975747a2f3d SHA512 446c66764dac2533cc2f2b3d50481971d4c63a4e81d94c545862a1be620179fdcd81a79f2d81737d1188812a6ad41d90e2a752a05acf6913e7a71464f7cecdd9 WHIRLPOOL cfca8feef0eb8096897ef751afb0427acddd008530ded6cf908fcff51be9713da4ea3e5e613d544c5caba400d664ae19ca70925df3a218bec5c8be6f69aadda2
26 -DIST vim-7.4.769.tar.gz 12189043 SHA256 c89568f3dfcefd773bfbb0958c1cf58a0b0ceedb9d0c264250b379a77ad02e9e SHA512 00048c1d579c409767308c991e5de4ed54e9e50db7e97b0d148f0667742d5e46047c702bee693a5caf13a1603548ab783f7fa846574841d807ffbaa97d7f611e WHIRLPOOL 28ada4763250bbed6f9a1768e81a79b75db64f0ef25296c5d4825f21d21d6e88ff24d488e841e6ba492e363da6d3a3e75e9ec2f2881a731e7ed261c7d21ffd3c
27 -DIST vim-8.0.0005.tar.gz 12909267 SHA256 4ad6b4e8fad6412724a665d974e1be3138a9562a5f4f4aab17debf709c1d3ad3 SHA512 3d62557c6929e554c50f8043658665b907b235f180d8917288fc1434237856df7fa098ecb1823e6edea9e5735564cb55869e535350e52fd8c22423480a49438d WHIRLPOOL a80eec04afb2a797837874ec4b035268a20be7cefa487e44e8e441fb518d46cd7e16a263a6256f49e23e60e737b14dc6a7d93d7c3e579d3da13ccee48536b41b
28 DIST vim-8.0.0106-gentoo-patches.tar.bz2 2281 SHA256 9823a91b050eb4b001cc50f508d2ad03c7c256ed49183c1af7582318667f48d4 SHA512 39edd9f518c230d2b0486b18aa155572a9eada4a5e21108573d6e66e2eef1276f23b77d766648f018c9cf973a7d03712d8861be6ea13255d7b389912d554a47a WHIRLPOOL d6d01e3944d56762a2a999ee631f89e212360aa030ddd16ea96e32d518ec171e04d8565dcb89e804248d53e4c6e06b19be239ad2316ea88bb57364815b85d26b
29 DIST vim-8.0.0106.tar.gz 12945768 SHA256 cbace3e7a2db3df73720c4181fa4cdbf7df94310522b1c7a4fd7d6afeaa1e145 SHA512 4e40d9ba8ba694d951be78c653d8fcfebe2b3cc460986ef8e3478f81f2dfd5e4b3c2bc5d22082536b9c275e41beeac343cee0aa1e4de125b71fe95c772e26c20 WHIRLPOOL 569a8f50ebdb7f380f675ed0a4b4aa5e7e226303a8e92db2a8e81f5d8acc0e466620c60c160e2204f3af615b91ca2481eb9716f9c2e6dbdb416050d758a49f09
30
31 diff --git a/app-editors/vim-core/files/vimrc-r4 b/app-editors/vim-core/files/vimrc-r4
32 deleted file mode 100644
33 index 07fffcceab..0000000000
34 --- a/app-editors/vim-core/files/vimrc-r4
35 +++ /dev/null
36 @@ -1,200 +0,0 @@
37 -scriptencoding utf-8
38 -" ^^ Please leave the above line at the start of the file.
39 -
40 -" Default configuration file for Vim
41 -" $Id$
42 -
43 -" Written by Aron Griffis <agriffis@g.o>
44 -" Modified by Ryan Phillips <rphillips@g.o>
45 -" Modified some more by Ciaran McCreesh <ciaranm@g.o>
46 -" Added Redhat's vimrc info by Seemant Kulleen <seemant@g.o>
47 -
48 -" You can override any of these settings on a global basis via the
49 -" "/etc/vim/vimrc.local" file, and on a per-user basis via "~/.vimrc". You may
50 -" need to create these.
51 -
52 -" {{{ General settings
53 -" The following are some sensible defaults for Vim for most users.
54 -" We attempt to change as little as possible from Vim's defaults,
55 -" deviating only where it makes sense
56 -set nocompatible " Use Vim defaults (much better!)
57 -set bs=2 " Allow backspacing over everything in insert mode
58 -set ai " Always set auto-indenting on
59 -set history=50 " keep 50 lines of command history
60 -set ruler " Show the cursor position all the time
61 -
62 -set viminfo='20,\"500 " Keep a .viminfo file.
63 -
64 -" Don't use Ex mode, use Q for formatting
65 -map Q gq
66 -
67 -" When doing tab completion, give the following files lower priority. You may
68 -" wish to set 'wildignore' to completely ignore files, and 'wildmenu' to enable
69 -" enhanced tab completion. These can be done in the user vimrc file.
70 -set suffixes+=.info,.aux,.log,.dvi,.bbl,.out,.o,.lo
71 -
72 -" When displaying line numbers, don't use an annoyingly wide number column. This
73 -" doesn't enable line numbers -- :set number will do that. The value given is a
74 -" minimum width to use for the number column, not a fixed size.
75 -if v:version >= 700
76 - set numberwidth=3
77 -endif
78 -" }}}
79 -
80 -" {{{ Modeline settings
81 -" We don't allow modelines by default. See bug #14088 and bug #73715.
82 -" If you're not concerned about these, you can enable them on a per-user
83 -" basis by adding "set modeline" to your ~/.vimrc file.
84 -set nomodeline
85 -" }}}
86 -
87 -" {{{ Locale settings
88 -" Try to come up with some nice sane GUI fonts. Also try to set a sensible
89 -" value for fileencodings based upon locale. These can all be overridden in
90 -" the user vimrc file.
91 -if v:lang =~? "^ko"
92 - set fileencodings=euc-kr
93 - set guifontset=-*-*-medium-r-normal--16-*-*-*-*-*-*-*
94 -elseif v:lang =~? "^ja_JP"
95 - set fileencodings=euc-jp
96 - set guifontset=-misc-fixed-medium-r-normal--14-*-*-*-*-*-*-*
97 -elseif v:lang =~? "^zh_TW"
98 - set fileencodings=big5
99 - set guifontset=-sony-fixed-medium-r-normal--16-150-75-75-c-80-iso8859-1,-taipei-fixed-medium-r-normal--16-150-75-75-c-160-big5-0
100 -elseif v:lang =~? "^zh_CN"
101 - set fileencodings=gb2312
102 - set guifontset=*-r-*
103 -endif
104 -
105 -" If we have a BOM, always honour that rather than trying to guess.
106 -if &fileencodings !~? "ucs-bom"
107 - set fileencodings^=ucs-bom
108 -endif
109 -
110 -" Always check for UTF-8 when trying to determine encodings.
111 -if &fileencodings !~? "utf-8"
112 - " If we have to add this, the default encoding is not Unicode.
113 - " We use this fact later to revert to the default encoding in plaintext/empty
114 - " files.
115 - let g:added_fenc_utf8 = 1
116 - set fileencodings+=utf-8
117 -endif
118 -
119 -" Make sure we have a sane fallback for encoding detection
120 -if &fileencodings !~? "default"
121 - set fileencodings+=default
122 -endif
123 -" }}}
124 -
125 -" {{{ Syntax highlighting settings
126 -" Switch syntax highlighting on, when the terminal has colors
127 -" Also switch on highlighting the last used search pattern.
128 -if &t_Co > 2 || has("gui_running")
129 - syntax on
130 - set hlsearch
131 -endif
132 -" }}}
133 -
134 -" {{{ Terminal fixes
135 -if &term ==? "xterm"
136 - set t_Sb=^[4%dm
137 - set t_Sf=^[3%dm
138 - set ttymouse=xterm2
139 -endif
140 -
141 -if &term ==? "gnome" && has("eval")
142 - " Set useful keys that vim doesn't discover via termcap but are in the
143 - " builtin xterm termcap. See bug #122562. We use exec to avoid having to
144 - " include raw escapes in the file.
145 - exec "set <C-Left>=\eO5D"
146 - exec "set <C-Right>=\eO5C"
147 -endif
148 -" }}}
149 -
150 -" {{{ Filetype plugin settings
151 -" Enable plugin-provided filetype settings, but only if the ftplugin
152 -" directory exists (which it won't on livecds, for example).
153 -if isdirectory(expand("$VIMRUNTIME/ftplugin"))
154 - filetype plugin on
155 -
156 - " Uncomment the next line (or copy to your ~/.vimrc) for plugin-provided
157 - " indent settings. Some people don't like these, so we won't turn them on by
158 - " default.
159 - " filetype indent on
160 -endif
161 -" }}}
162 -
163 -" {{{ Fix &shell, see bug #101665.
164 -if "" == &shell
165 - if executable("@GENTOO_PORTAGE_EPREFIX@/bin/bash")
166 - set shell=@GENTOO_PORTAGE_EPREFIX@/bin/bash
167 - elseif executable("@GENTOO_PORTAGE_EPREFIX@/bin/sh")
168 - set shell=@GENTOO_PORTAGE_EPREFIX@/bin/sh
169 - endif
170 -endif
171 -"}}}
172 -
173 -" {{{ Our default /bin/sh is bash, not ksh, so syntax highlighting for .sh
174 -" files should default to bash. See :help sh-syntax and bug #101819.
175 -if has("eval")
176 - let is_bash=1
177 -endif
178 -" }}}
179 -
180 -" {{{ Autocommands
181 -if has("autocmd")
182 -
183 -augroup gentoo
184 - au!
185 -
186 - " Gentoo-specific settings for ebuilds. These are the federally-mandated
187 - " required tab settings. See the following for more information:
188 - " http://www.gentoo.org/proj/en/devrel/handbook/handbook.xml
189 - " Note that the rules below are very minimal and don't cover everything.
190 - " Better to emerge app-vim/gentoo-syntax, which provides full syntax,
191 - " filetype and indent settings for all things Gentoo.
192 - au BufRead,BufNewFile *.e{build,class} let is_bash=1|setfiletype sh
193 - au BufRead,BufNewFile *.e{build,class} set ts=4 sw=4 noexpandtab
194 -
195 - " In text files, limit the width of text to 78 characters, but be careful
196 - " that we don't override the user's setting.
197 - autocmd BufNewFile,BufRead *.txt
198 - \ if &tw == 0 && ! exists("g:leave_my_textwidth_alone") |
199 - \ setlocal textwidth=78 |
200 - \ endif
201 -
202 - " When editing a file, always jump to the last cursor position
203 - autocmd BufReadPost *
204 - \ if ! exists("g:leave_my_cursor_position_alone") |
205 - \ if line("'\"") > 0 && line ("'\"") <= line("$") |
206 - \ exe "normal g'\"" |
207 - \ endif |
208 - \ endif
209 -
210 - " When editing a crontab file, set backupcopy to yes rather than auto. See
211 - " :help crontab and bug #53437.
212 - autocmd FileType crontab set backupcopy=yes
213 -
214 - " If we previously detected that the default encoding is not UTF-8
215 - " (g:added_fenc_utf8), assume that a file with only ASCII characters (or no
216 - " characters at all) isn't a Unicode file, but is in the default encoding.
217 - " Except of course if a byte-order mark is in effect.
218 - autocmd BufReadPost *
219 - \ if exists("g:added_fenc_utf8") && &fileencoding == "utf-8" &&
220 - \ ! &bomb && search('[\x80-\xFF]','nw') == 0 && &modifiable |
221 - \ set fileencoding= |
222 - \ endif
223 -
224 -augroup END
225 -
226 -endif " has("autocmd")
227 -" }}}
228 -
229 -" {{{ vimrc.local
230 -if filereadable("@GENTOO_PORTAGE_EPREFIX@/etc/vim/vimrc.local")
231 - source @GENTOO_PORTAGE_EPREFIX@/etc/vim/vimrc.local
232 -endif
233 -" }}}
234 -
235 -" vim: set fenc=utf-8 tw=80 sw=2 sts=2 et foldmethod=marker :
236 -
237
238 diff --git a/app-editors/vim-core/vim-core-7.4.2102.ebuild b/app-editors/vim-core/vim-core-7.4.2102.ebuild
239 deleted file mode 100644
240 index 4d1ec30b60..0000000000
241 --- a/app-editors/vim-core/vim-core-7.4.2102.ebuild
242 +++ /dev/null
243 @@ -1,220 +0,0 @@
244 -# Copyright 1999-2017 Gentoo Foundation
245 -# Distributed under the terms of the GNU General Public License v2
246 -# $Id$
247 -
248 -EAPI=6
249 -VIM_VERSION="7.4"
250 -inherit eutils vim-doc flag-o-matic versionator bash-completion-r1 prefix
251 -
252 -if [[ ${PV} == 9999* ]] ; then
253 - inherit git-r3
254 - EGIT_REPO_URI="https://github.com/vim/vim.git"
255 - EGIT_CHECKOUT_DIR=${WORKDIR}/vim-${PV}
256 -else
257 - SRC_URI="https://github.com/vim/vim/archive/v${PV}.tar.gz -> vim-${PV}.tar.gz
258 - https://dev.gentoo.org/~radhermit/vim/vim-7.4.2102-gentoo-patches.tar.bz2"
259 - KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~m68k ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86 ~ppc-aix ~amd64-fbsd ~sparc-fbsd ~x86-fbsd ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos ~m68k-mint ~sparc-solaris ~sparc64-solaris ~x64-solaris ~x86-solaris"
260 -fi
261 -
262 -DESCRIPTION="vim and gvim shared files"
263 -HOMEPAGE="http://www.vim.org/ https://github.com/vim/vim"
264 -
265 -SLOT="0"
266 -LICENSE="vim"
267 -IUSE="nls acl minimal"
268 -
269 -DEPEND="sys-devel/autoconf"
270 -PDEPEND="!minimal? ( app-vim/gentoo-syntax )"
271 -
272 -S=${WORKDIR}/vim-${PV}
273 -
274 -pkg_setup() {
275 - # people with broken alphabets run into trouble. bug 82186.
276 - unset LANG LC_ALL
277 - export LC_COLLATE="C"
278 -
279 - # Gnome sandbox silliness. bug #114475.
280 - mkdir -p "${T}"/home
281 - export HOME="${T}"/home
282 -}
283 -
284 -src_prepare() {
285 - if [[ ${PV} != 9999* ]] ; then
286 - # Gentoo patches to fix runtime issues, cross-compile errors, etc
287 - eapply "${WORKDIR}"/patches
288 - fi
289 -
290 - # Fixup a script to use awk instead of nawk
291 - sed -i '1s|.*|#!'"${EPREFIX}"'/usr/bin/awk -f|' "${S}"/runtime/tools/mve.awk \
292 - || die "mve.awk sed failed"
293 -
294 - # Read vimrc and gvimrc from /etc/vim
295 - echo '#define SYS_VIMRC_FILE "'${EPREFIX}'/etc/vim/vimrc"' >> "${S}"/src/feature.h
296 - echo '#define SYS_GVIMRC_FILE "'${EPREFIX}'/etc/vim/gvimrc"' >> "${S}"/src/feature.h
297 -
298 - # Use exuberant ctags which installs as /usr/bin/exuberant-ctags.
299 - # Hopefully this pattern won't break for a while at least.
300 - # This fixes bug 29398 (27 Sep 2003 agriffis)
301 - sed -i 's/\<ctags\("\| [-*.]\)/exuberant-&/g' \
302 - "${S}"/runtime/doc/syntax.txt \
303 - "${S}"/runtime/doc/tagsrch.txt \
304 - "${S}"/runtime/doc/usr_29.txt \
305 - "${S}"/runtime/menu.vim \
306 - "${S}"/src/configure.in || die 'sed failed'
307 -
308 - # Don't be fooled by /usr/include/libc.h. When found, vim thinks
309 - # this is NeXT, but it's actually just a file in dev-libs/9libs
310 - # This fixes bug 43885 (20 Mar 2004 agriffis)
311 - sed -i 's/ libc\.h / /' "${S}"/src/configure.in || die 'sed failed'
312 -
313 - # gcc on sparc32 has this, uhm, interesting problem with detecting EOF
314 - # correctly. To avoid some really entertaining error messages about stuff
315 - # which isn't even in the source file being invalid, we'll do some trickery
316 - # to make the error never occur. bug 66162 (02 October 2004 ciaranm)
317 - find "${S}" -name '*.c' | while read c ; do echo >> "$c" ; done
318 -
319 - # Try to avoid sandbox problems. Bug #114475.
320 - if [[ -d "${S}"/src/po ]] ; then
321 - sed -i -e \
322 - '/-S check.vim/s,..VIM.,ln -s $(VIM) testvim \; ./testvim -X,' \
323 - "${S}"/src/po/Makefile
324 - fi
325 -
326 - if version_is_at_least 7.3.122 ; then
327 - cp "${S}"/src/config.mk.dist "${S}"/src/auto/config.mk
328 - fi
329 -
330 - # Bug #378107 - Build properly with >=perl-core/ExtUtils-ParseXS-3.20.0
331 - if version_is_at_least 7.3 ; then
332 - sed -i "s:\\\$(PERLLIB)/ExtUtils/xsubpp:${EPREFIX}/usr/bin/xsubpp:" \
333 - "${S}"/src/Makefile || die 'sed for ExtUtils-ParseXS failed'
334 - fi
335 -
336 - default
337 -}
338 -
339 -src_configure() {
340 - local myconf
341 -
342 - # Fix bug 37354: Disallow -funroll-all-loops on amd64
343 - # Bug 57859 suggests that we want to do this for all archs
344 - filter-flags -funroll-all-loops
345 -
346 - # Fix bug 76331: -O3 causes problems, use -O2 instead. We'll do this for
347 - # everyone since previous flag filtering bugs have turned out to affect
348 - # multiple archs...
349 - replace-flags -O3 -O2
350 -
351 - # Fix bug 18245: Prevent "make" from the following chain:
352 - # (1) Notice configure.in is newer than auto/configure
353 - # (2) Rebuild auto/configure
354 - # (3) Notice auto/configure is newer than auto/config.mk
355 - # (4) Run ./configure (with wrong args) to remake auto/config.mk
356 - sed -i 's# auto/config\.mk:#:#' src/Makefile || die "Makefile sed failed"
357 - rm -f src/auto/configure
358 - emake -j1 -C src autoconf
359 -
360 - # This should fix a sandbox violation (see bug 24447). The hvc
361 - # things are for ppc64, see bug 86433.
362 - for file in /dev/pty/s* /dev/console /dev/hvc/* /dev/hvc* ; do
363 - [[ -e ${file} ]] && addwrite $file
364 - done
365 -
366 - # Let Portage do the stripping. Some people like that.
367 - export ac_cv_prog_STRIP="$(type -P true ) faking strip"
368 -
369 - # Keep Gentoo Prefix env contained within the EPREFIX
370 - use prefix && myconf+=" --without-local-dir"
371 -
372 - econf \
373 - --with-modified-by=Gentoo-${PVR} \
374 - --enable-gui=no \
375 - --without-x \
376 - --disable-darwin \
377 - --disable-perlinterp \
378 - --disable-pythoninterp \
379 - --disable-rubyinterp \
380 - --disable-gpm \
381 - --disable-selinux \
382 - $(use_enable nls) \
383 - $(use_enable acl) \
384 - ${myconf}
385 -}
386 -
387 -src_compile() {
388 - # The following allows emake to be used
389 - emake -j1 -C src auto/osdef.h objects
390 -
391 - emake tools
392 -}
393 -
394 -src_test() { :; }
395 -
396 -src_install() {
397 - local vimfiles=/usr/share/vim/vim${VIM_VERSION/.}
398 -
399 - dodir /usr/{bin,share/{man/man1,vim}}
400 - cd src || die "cd src failed"
401 - emake \
402 - installruntime \
403 - installmanlinks \
404 - installmacros \
405 - installtutor \
406 - installtutorbin \
407 - installtools \
408 - install-languages \
409 - install-icons \
410 - DESTDIR="${D}" \
411 - BINDIR="${EPREFIX}"/usr/bin \
412 - MANDIR="${EPREFIX}"/usr/share/man \
413 - DATADIR="${EPREFIX}"/usr/share
414 -
415 - keepdir ${vimfiles}/keymap
416 -
417 - # default vimrc is installed by vim-core since it applies to
418 - # both vim and gvim
419 - insinto /etc/vim/
420 - newins "${FILESDIR}"/vimrc-r4 vimrc
421 - eprefixify "${ED}"/etc/vim/vimrc
422 -
423 - if use minimal ; then
424 - # To save space, install only a subset of the files.
425 - # Helps minimalize the livecd, bug 65144.
426 - eshopts_push -s extglob
427 -
428 - rm -fr "${ED}${vimfiles}"/{compiler,doc,ftplugin,indent}
429 - rm -fr "${ED}${vimfiles}"/{macros,print,tools,tutor}
430 - rm "${ED}"/usr/bin/vimtutor
431 -
432 - local keep_colors="default"
433 - ignore=$(rm -fr "${ED}${vimfiles}"/colors/!(${keep_colors}).vim )
434 -
435 - local keep_syntax="conf|crontab|fstab|inittab|resolv|sshdconfig"
436 - # tinkering with the next line might make bad things happen ...
437 - keep_syntax="${keep_syntax}|syntax|nosyntax|synload"
438 - ignore=$(rm -fr "${ED}${vimfiles}"/syntax/!(${keep_syntax}).vim )
439 -
440 - eshopts_pop
441 - fi
442 -
443 - # These files might have slight security issues, so we won't
444 - # install them. See bug #77841. We don't mind if these don't
445 - # exist.
446 - rm "${ED}${vimfiles}"/tools/{vimspell.sh,tcltags} 2>/dev/null
447 -
448 - newbashcomp "${FILESDIR}"/xxd-completion xxd
449 -
450 - # We shouldn't be installing the ex or view man page symlinks, as they
451 - # are managed by eselect-vi
452 - rm -f "${ED}"/usr/share/man/man1/{ex,view}.1
453 -}
454 -
455 -pkg_postinst() {
456 - # Update documentation tags (from vim-doc.eclass)
457 - update_vim_helptags
458 -}
459 -
460 -pkg_postrm() {
461 - # Update documentation tags (from vim-doc.eclass)
462 - update_vim_helptags
463 -}
464
465 diff --git a/app-editors/vim-core/vim-core-7.4.769.ebuild b/app-editors/vim-core/vim-core-7.4.769.ebuild
466 deleted file mode 100644
467 index 17f992ad5e..0000000000
468 --- a/app-editors/vim-core/vim-core-7.4.769.ebuild
469 +++ /dev/null
470 @@ -1,223 +0,0 @@
471 -# Copyright 1999-2017 Gentoo Foundation
472 -# Distributed under the terms of the GNU General Public License v2
473 -# $Id$
474 -
475 -EAPI=5
476 -VIM_VERSION="7.4"
477 -inherit eutils vim-doc flag-o-matic versionator bash-completion-r1 prefix
478 -
479 -if [[ ${PV} == 9999* ]] ; then
480 - inherit git-r3
481 - EGIT_REPO_URI="https://github.com/vim/vim.git"
482 - EGIT_CHECKOUT_DIR=${WORKDIR}/vim-${PV}
483 -else
484 - SRC_URI="https://github.com/vim/vim/archive/v${PV}.tar.gz -> vim-${PV}.tar.gz
485 - https://dev.gentoo.org/~radhermit/vim/vim-7.4.542-gentoo-patches.tar.bz2"
486 - KEYWORDS="alpha amd64 arm arm64 hppa ia64 m68k ~mips ppc ppc64 s390 sh sparc x86 ~ppc-aix ~amd64-fbsd ~sparc-fbsd ~x86-fbsd ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos ~m68k-mint ~sparc-solaris ~sparc64-solaris ~x64-solaris ~x86-solaris"
487 -fi
488 -
489 -DESCRIPTION="vim and gvim shared files"
490 -HOMEPAGE="http://www.vim.org/"
491 -
492 -SLOT="0"
493 -LICENSE="vim"
494 -IUSE="nls acl minimal"
495 -
496 -DEPEND="sys-devel/autoconf"
497 -PDEPEND="!minimal? ( app-vim/gentoo-syntax )"
498 -
499 -S=${WORKDIR}/vim-${PV}
500 -
501 -pkg_setup() {
502 - # people with broken alphabets run into trouble. bug 82186.
503 - unset LANG LC_ALL
504 - export LC_COLLATE="C"
505 -
506 - # Gnome sandbox silliness. bug #114475.
507 - mkdir -p "${T}"/home
508 - export HOME="${T}"/home
509 -}
510 -
511 -src_prepare() {
512 - if [[ ${PV} != 9999* ]] ; then
513 - if [[ -d "${WORKDIR}"/patches/ ]]; then
514 - # Gentoo patches to fix runtime issues, cross-compile errors, etc
515 - EPATCH_SUFFIX="patch" EPATCH_FORCE="yes" \
516 - epatch "${WORKDIR}"/patches/
517 - fi
518 - fi
519 -
520 - # Fixup a script to use awk instead of nawk
521 - sed -i '1s|.*|#!'"${EPREFIX}"'/usr/bin/awk -f|' "${S}"/runtime/tools/mve.awk \
522 - || die "mve.awk sed failed"
523 -
524 - # Read vimrc and gvimrc from /etc/vim
525 - echo '#define SYS_VIMRC_FILE "'${EPREFIX}'/etc/vim/vimrc"' >> "${S}"/src/feature.h
526 - echo '#define SYS_GVIMRC_FILE "'${EPREFIX}'/etc/vim/gvimrc"' >> "${S}"/src/feature.h
527 -
528 - # Use exuberant ctags which installs as /usr/bin/exuberant-ctags.
529 - # Hopefully this pattern won't break for a while at least.
530 - # This fixes bug 29398 (27 Sep 2003 agriffis)
531 - sed -i 's/\<ctags\("\| [-*.]\)/exuberant-&/g' \
532 - "${S}"/runtime/doc/syntax.txt \
533 - "${S}"/runtime/doc/tagsrch.txt \
534 - "${S}"/runtime/doc/usr_29.txt \
535 - "${S}"/runtime/menu.vim \
536 - "${S}"/src/configure.in || die 'sed failed'
537 -
538 - # Don't be fooled by /usr/include/libc.h. When found, vim thinks
539 - # this is NeXT, but it's actually just a file in dev-libs/9libs
540 - # This fixes bug 43885 (20 Mar 2004 agriffis)
541 - sed -i 's/ libc\.h / /' "${S}"/src/configure.in || die 'sed failed'
542 -
543 - # gcc on sparc32 has this, uhm, interesting problem with detecting EOF
544 - # correctly. To avoid some really entertaining error messages about stuff
545 - # which isn't even in the source file being invalid, we'll do some trickery
546 - # to make the error never occur. bug 66162 (02 October 2004 ciaranm)
547 - find "${S}" -name '*.c' | while read c ; do echo >> "$c" ; done
548 -
549 - # Try to avoid sandbox problems. Bug #114475.
550 - if [[ -d "${S}"/src/po ]] ; then
551 - sed -i -e \
552 - '/-S check.vim/s,..VIM.,ln -s $(VIM) testvim \; ./testvim -X,' \
553 - "${S}"/src/po/Makefile
554 - fi
555 -
556 - if version_is_at_least 7.3.122 ; then
557 - cp "${S}"/src/config.mk.dist "${S}"/src/auto/config.mk
558 - fi
559 -
560 - # Bug #378107 - Build properly with >=perl-core/ExtUtils-ParseXS-3.20.0
561 - if version_is_at_least 7.3 ; then
562 - sed -i "s:\\\$(PERLLIB)/ExtUtils/xsubpp:${EPREFIX}/usr/bin/xsubpp:" \
563 - "${S}"/src/Makefile || die 'sed for ExtUtils-ParseXS failed'
564 - fi
565 -
566 - epatch_user
567 -}
568 -
569 -src_configure() {
570 - local myconf
571 -
572 - # Fix bug 37354: Disallow -funroll-all-loops on amd64
573 - # Bug 57859 suggests that we want to do this for all archs
574 - filter-flags -funroll-all-loops
575 -
576 - # Fix bug 76331: -O3 causes problems, use -O2 instead. We'll do this for
577 - # everyone since previous flag filtering bugs have turned out to affect
578 - # multiple archs...
579 - replace-flags -O3 -O2
580 -
581 - # Fix bug 18245: Prevent "make" from the following chain:
582 - # (1) Notice configure.in is newer than auto/configure
583 - # (2) Rebuild auto/configure
584 - # (3) Notice auto/configure is newer than auto/config.mk
585 - # (4) Run ./configure (with wrong args) to remake auto/config.mk
586 - sed -i 's# auto/config\.mk:#:#' src/Makefile || die "Makefile sed failed"
587 - rm -f src/auto/configure
588 - emake -j1 -C src autoconf
589 -
590 - # This should fix a sandbox violation (see bug 24447). The hvc
591 - # things are for ppc64, see bug 86433.
592 - for file in /dev/pty/s* /dev/console /dev/hvc/* /dev/hvc* ; do
593 - [[ -e ${file} ]] && addwrite $file
594 - done
595 -
596 - # Let Portage do the stripping. Some people like that.
597 - export ac_cv_prog_STRIP="$(type -P true ) faking strip"
598 -
599 - # Keep Gentoo Prefix env contained within the EPREFIX
600 - use prefix && myconf+=" --without-local-dir"
601 -
602 - econf \
603 - --with-modified-by=Gentoo-${PVR} \
604 - --enable-gui=no \
605 - --without-x \
606 - --disable-darwin \
607 - --disable-perlinterp \
608 - --disable-pythoninterp \
609 - --disable-rubyinterp \
610 - --disable-gpm \
611 - --disable-selinux \
612 - $(use_enable nls) \
613 - $(use_enable acl) \
614 - ${myconf}
615 -}
616 -
617 -src_compile() {
618 - # The following allows emake to be used
619 - emake -j1 -C src auto/osdef.h objects
620 -
621 - emake tools
622 -}
623 -
624 -src_test() { :; }
625 -
626 -src_install() {
627 - local vimfiles=/usr/share/vim/vim${VIM_VERSION/.}
628 -
629 - dodir /usr/{bin,share/{man/man1,vim}}
630 - cd src || die "cd src failed"
631 - emake \
632 - installruntime \
633 - installmanlinks \
634 - installmacros \
635 - installtutor \
636 - installtutorbin \
637 - installtools \
638 - install-languages \
639 - install-icons \
640 - DESTDIR="${D}" \
641 - BINDIR="${EPREFIX}"/usr/bin \
642 - MANDIR="${EPREFIX}"/usr/share/man \
643 - DATADIR="${EPREFIX}"/usr/share
644 -
645 - keepdir ${vimfiles}/keymap
646 -
647 - # default vimrc is installed by vim-core since it applies to
648 - # both vim and gvim
649 - insinto /etc/vim/
650 - newins "${FILESDIR}"/vimrc-r4 vimrc
651 - eprefixify "${ED}"/etc/vim/vimrc
652 -
653 - if use minimal ; then
654 - # To save space, install only a subset of the files.
655 - # Helps minimalize the livecd, bug 65144.
656 - eshopts_push -s extglob
657 -
658 - rm -fr "${ED}${vimfiles}"/{compiler,doc,ftplugin,indent}
659 - rm -fr "${ED}${vimfiles}"/{macros,print,tools,tutor}
660 - rm "${ED}"/usr/bin/vimtutor
661 -
662 - local keep_colors="default"
663 - ignore=$(rm -fr "${ED}${vimfiles}"/colors/!(${keep_colors}).vim )
664 -
665 - local keep_syntax="conf|crontab|fstab|inittab|resolv|sshdconfig"
666 - # tinkering with the next line might make bad things happen ...
667 - keep_syntax="${keep_syntax}|syntax|nosyntax|synload"
668 - ignore=$(rm -fr "${ED}${vimfiles}"/syntax/!(${keep_syntax}).vim )
669 -
670 - eshopts_pop
671 - fi
672 -
673 - # These files might have slight security issues, so we won't
674 - # install them. See bug #77841. We don't mind if these don't
675 - # exist.
676 - rm "${ED}${vimfiles}"/tools/{vimspell.sh,tcltags} 2>/dev/null
677 -
678 - newbashcomp "${FILESDIR}"/xxd-completion xxd
679 -
680 - # We shouldn't be installing the ex or view man page symlinks, as they
681 - # are managed by eselect-vi
682 - rm -f "${ED}"/usr/share/man/man1/{ex,view}.1
683 -}
684 -
685 -pkg_postinst() {
686 - # Update documentation tags (from vim-doc.eclass)
687 - update_vim_helptags
688 -}
689 -
690 -pkg_postrm() {
691 - # Update documentation tags (from vim-doc.eclass)
692 - update_vim_helptags
693 -}
694
695 diff --git a/app-editors/vim-core/vim-core-8.0.0005-r1.ebuild b/app-editors/vim-core/vim-core-8.0.0005-r1.ebuild
696 deleted file mode 100644
697 index fdae9f5cba..0000000000
698 --- a/app-editors/vim-core/vim-core-8.0.0005-r1.ebuild
699 +++ /dev/null
700 @@ -1,218 +0,0 @@
701 -# Copyright 1999-2017 Gentoo Foundation
702 -# Distributed under the terms of the GNU General Public License v2
703 -# $Id$
704 -
705 -EAPI=6
706 -VIM_VERSION="8.0"
707 -inherit eutils vim-doc flag-o-matic versionator bash-completion-r1 prefix
708 -
709 -if [[ ${PV} == 9999* ]] ; then
710 - inherit git-r3
711 - EGIT_REPO_URI="https://github.com/vim/vim.git"
712 - EGIT_CHECKOUT_DIR=${WORKDIR}/vim-${PV}
713 -else
714 - SRC_URI="https://github.com/vim/vim/archive/v${PV}.tar.gz -> vim-${PV}.tar.gz
715 - https://dev.gentoo.org/~radhermit/vim/vim-7.4.2102-gentoo-patches.tar.bz2"
716 - KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~m68k ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86 ~ppc-aix ~amd64-fbsd ~sparc-fbsd ~x86-fbsd ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos ~m68k-mint ~sparc-solaris ~sparc64-solaris ~x64-solaris ~x86-solaris"
717 -fi
718 -
719 -DESCRIPTION="vim and gvim shared files"
720 -HOMEPAGE="http://www.vim.org/ https://github.com/vim/vim"
721 -
722 -SLOT="0"
723 -LICENSE="vim"
724 -IUSE="nls acl minimal"
725 -
726 -DEPEND="sys-devel/autoconf"
727 -PDEPEND="!minimal? ( app-vim/gentoo-syntax )"
728 -
729 -S=${WORKDIR}/vim-${PV}
730 -
731 -pkg_setup() {
732 - # people with broken alphabets run into trouble. bug 82186.
733 - unset LANG LC_ALL
734 - export LC_COLLATE="C"
735 -
736 - # Gnome sandbox silliness. bug #114475.
737 - mkdir -p "${T}"/home
738 - export HOME="${T}"/home
739 -}
740 -
741 -src_prepare() {
742 - if [[ ${PV} != 9999* ]] ; then
743 - # Gentoo patches to fix runtime issues, cross-compile errors, etc
744 - eapply "${WORKDIR}"/patches
745 - fi
746 -
747 - # Fixup a script to use awk instead of nawk
748 - sed -i '1s|.*|#!'"${EPREFIX}"'/usr/bin/awk -f|' "${S}"/runtime/tools/mve.awk \
749 - || die "mve.awk sed failed"
750 -
751 - # Read vimrc and gvimrc from /etc/vim
752 - echo '#define SYS_VIMRC_FILE "'${EPREFIX}'/etc/vim/vimrc"' >> "${S}"/src/feature.h
753 - echo '#define SYS_GVIMRC_FILE "'${EPREFIX}'/etc/vim/gvimrc"' >> "${S}"/src/feature.h
754 -
755 - # Use exuberant ctags which installs as /usr/bin/exuberant-ctags.
756 - # Hopefully this pattern won't break for a while at least.
757 - # This fixes bug 29398 (27 Sep 2003 agriffis)
758 - sed -i 's/\<ctags\("\| [-*.]\)/exuberant-&/g' \
759 - "${S}"/runtime/doc/syntax.txt \
760 - "${S}"/runtime/doc/tagsrch.txt \
761 - "${S}"/runtime/doc/usr_29.txt \
762 - "${S}"/runtime/menu.vim \
763 - "${S}"/src/configure.in || die 'sed failed'
764 -
765 - # Don't be fooled by /usr/include/libc.h. When found, vim thinks
766 - # this is NeXT, but it's actually just a file in dev-libs/9libs
767 - # This fixes bug 43885 (20 Mar 2004 agriffis)
768 - sed -i 's/ libc\.h / /' "${S}"/src/configure.in || die 'sed failed'
769 -
770 - # gcc on sparc32 has this, uhm, interesting problem with detecting EOF
771 - # correctly. To avoid some really entertaining error messages about stuff
772 - # which isn't even in the source file being invalid, we'll do some trickery
773 - # to make the error never occur. bug 66162 (02 October 2004 ciaranm)
774 - find "${S}" -name '*.c' | while read c ; do echo >> "$c" ; done
775 -
776 - # Try to avoid sandbox problems. Bug #114475.
777 - if [[ -d "${S}"/src/po ]] ; then
778 - sed -i -e \
779 - '/-S check.vim/s,..VIM.,ln -s $(VIM) testvim \; ./testvim -X,' \
780 - "${S}"/src/po/Makefile
781 - fi
782 -
783 - if version_is_at_least 7.3.122 ; then
784 - cp "${S}"/src/config.mk.dist "${S}"/src/auto/config.mk
785 - fi
786 -
787 - # Bug #378107 - Build properly with >=perl-core/ExtUtils-ParseXS-3.20.0
788 - if version_is_at_least 7.3 ; then
789 - sed -i "s:\\\$(PERLLIB)/ExtUtils/xsubpp:${EPREFIX}/usr/bin/xsubpp:" \
790 - "${S}"/src/Makefile || die 'sed for ExtUtils-ParseXS failed'
791 - fi
792 -
793 - eapply_user
794 -}
795 -
796 -src_configure() {
797 - local myconf
798 -
799 - # Fix bug 37354: Disallow -funroll-all-loops on amd64
800 - # Bug 57859 suggests that we want to do this for all archs
801 - filter-flags -funroll-all-loops
802 -
803 - # Fix bug 76331: -O3 causes problems, use -O2 instead. We'll do this for
804 - # everyone since previous flag filtering bugs have turned out to affect
805 - # multiple archs...
806 - replace-flags -O3 -O2
807 -
808 - # Fix bug 18245: Prevent "make" from the following chain:
809 - # (1) Notice configure.in is newer than auto/configure
810 - # (2) Rebuild auto/configure
811 - # (3) Notice auto/configure is newer than auto/config.mk
812 - # (4) Run ./configure (with wrong args) to remake auto/config.mk
813 - sed -i 's# auto/config\.mk:#:#' src/Makefile || die "Makefile sed failed"
814 - rm -f src/auto/configure
815 - emake -j1 -C src autoconf
816 -
817 - # This should fix a sandbox violation (see bug 24447). The hvc
818 - # things are for ppc64, see bug 86433.
819 - for file in /dev/pty/s* /dev/console /dev/hvc/* /dev/hvc* ; do
820 - [[ -e ${file} ]] && addwrite $file
821 - done
822 -
823 - # Let Portage do the stripping. Some people like that.
824 - export ac_cv_prog_STRIP="$(type -P true ) faking strip"
825 -
826 - # Keep Gentoo Prefix env contained within the EPREFIX
827 - use prefix && myconf+=" --without-local-dir"
828 -
829 - econf \
830 - --with-modified-by=Gentoo-${PVR} \
831 - --enable-gui=no \
832 - --without-x \
833 - --disable-darwin \
834 - --disable-perlinterp \
835 - --disable-pythoninterp \
836 - --disable-rubyinterp \
837 - --disable-gpm \
838 - --disable-selinux \
839 - $(use_enable nls) \
840 - $(use_enable acl) \
841 - ${myconf}
842 -}
843 -
844 -src_compile() {
845 - # The following allows emake to be used
846 - emake -j1 -C src auto/osdef.h objects
847 -
848 - emake tools
849 -}
850 -
851 -src_test() { :; }
852 -
853 -src_install() {
854 - local vimfiles=/usr/share/vim/vim${VIM_VERSION/.}
855 -
856 - dodir /usr/{bin,share/{man/man1,vim}}
857 - emake -C src \
858 - installruntime \
859 - installmanlinks \
860 - installmacros \
861 - installtutor \
862 - installtutorbin \
863 - installtools \
864 - install-languages \
865 - DESTDIR="${D}" \
866 - BINDIR="${EPREFIX}"/usr/bin \
867 - MANDIR="${EPREFIX}"/usr/share/man \
868 - DATADIR="${EPREFIX}"/usr/share
869 -
870 - keepdir ${vimfiles}/keymap
871 -
872 - # default vimrc is installed by vim-core since it applies to
873 - # both vim and gvim
874 - insinto /etc/vim/
875 - newins "${FILESDIR}"/vimrc-r5 vimrc
876 - eprefixify "${ED}"/etc/vim/vimrc
877 -
878 - if use minimal ; then
879 - # To save space, install only a subset of the files.
880 - # Helps minimalize the livecd, bug 65144.
881 - eshopts_push -s extglob
882 -
883 - rm -fr "${ED}${vimfiles}"/{compiler,doc,ftplugin,indent}
884 - rm -fr "${ED}${vimfiles}"/{macros,print,tools,tutor}
885 - rm "${ED}"/usr/bin/vimtutor
886 -
887 - local keep_colors="default"
888 - ignore=$(rm -fr "${ED}${vimfiles}"/colors/!(${keep_colors}).vim )
889 -
890 - local keep_syntax="conf|crontab|fstab|inittab|resolv|sshdconfig"
891 - # tinkering with the next line might make bad things happen ...
892 - keep_syntax="${keep_syntax}|syntax|nosyntax|synload"
893 - ignore=$(rm -fr "${ED}${vimfiles}"/syntax/!(${keep_syntax}).vim )
894 -
895 - eshopts_pop
896 - fi
897 -
898 - # These files might have slight security issues, so we won't
899 - # install them. See bug #77841. We don't mind if these don't
900 - # exist.
901 - rm "${ED}${vimfiles}"/tools/{vimspell.sh,tcltags} 2>/dev/null
902 -
903 - newbashcomp "${FILESDIR}"/xxd-completion xxd
904 -
905 - # We shouldn't be installing the ex or view man page symlinks, as they
906 - # are managed by eselect-vi
907 - rm -f "${ED}"/usr/share/man/man1/{ex,view}.1
908 -}
909 -
910 -pkg_postinst() {
911 - # Update documentation tags (from vim-doc.eclass)
912 - update_vim_helptags
913 -}
914 -
915 -pkg_postrm() {
916 - # Update documentation tags (from vim-doc.eclass)
917 - update_vim_helptags
918 -}
919
920 diff --git a/app-editors/vim-core/vim-core-8.0.0005.ebuild b/app-editors/vim-core/vim-core-8.0.0005.ebuild
921 deleted file mode 100644
922 index 4fdfe19784..0000000000
923 --- a/app-editors/vim-core/vim-core-8.0.0005.ebuild
924 +++ /dev/null
925 @@ -1,218 +0,0 @@
926 -# Copyright 1999-2017 Gentoo Foundation
927 -# Distributed under the terms of the GNU General Public License v2
928 -# $Id$
929 -
930 -EAPI=6
931 -VIM_VERSION="8.0"
932 -inherit eutils vim-doc flag-o-matic versionator bash-completion-r1 prefix
933 -
934 -if [[ ${PV} == 9999* ]] ; then
935 - inherit git-r3
936 - EGIT_REPO_URI="https://github.com/vim/vim.git"
937 - EGIT_CHECKOUT_DIR=${WORKDIR}/vim-${PV}
938 -else
939 - SRC_URI="https://github.com/vim/vim/archive/v${PV}.tar.gz -> vim-${PV}.tar.gz
940 - https://dev.gentoo.org/~radhermit/vim/vim-7.4.2102-gentoo-patches.tar.bz2"
941 - KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~m68k ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86 ~ppc-aix ~amd64-fbsd ~sparc-fbsd ~x86-fbsd ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos ~m68k-mint ~sparc-solaris ~sparc64-solaris ~x64-solaris ~x86-solaris"
942 -fi
943 -
944 -DESCRIPTION="vim and gvim shared files"
945 -HOMEPAGE="http://www.vim.org/ https://github.com/vim/vim"
946 -
947 -SLOT="0"
948 -LICENSE="vim"
949 -IUSE="nls acl minimal"
950 -
951 -DEPEND="sys-devel/autoconf"
952 -PDEPEND="!minimal? ( app-vim/gentoo-syntax )"
953 -
954 -S=${WORKDIR}/vim-${PV}
955 -
956 -pkg_setup() {
957 - # people with broken alphabets run into trouble. bug 82186.
958 - unset LANG LC_ALL
959 - export LC_COLLATE="C"
960 -
961 - # Gnome sandbox silliness. bug #114475.
962 - mkdir -p "${T}"/home
963 - export HOME="${T}"/home
964 -}
965 -
966 -src_prepare() {
967 - if [[ ${PV} != 9999* ]] ; then
968 - # Gentoo patches to fix runtime issues, cross-compile errors, etc
969 - eapply "${WORKDIR}"/patches
970 - fi
971 -
972 - # Fixup a script to use awk instead of nawk
973 - sed -i '1s|.*|#!'"${EPREFIX}"'/usr/bin/awk -f|' "${S}"/runtime/tools/mve.awk \
974 - || die "mve.awk sed failed"
975 -
976 - # Read vimrc and gvimrc from /etc/vim
977 - echo '#define SYS_VIMRC_FILE "'${EPREFIX}'/etc/vim/vimrc"' >> "${S}"/src/feature.h
978 - echo '#define SYS_GVIMRC_FILE "'${EPREFIX}'/etc/vim/gvimrc"' >> "${S}"/src/feature.h
979 -
980 - # Use exuberant ctags which installs as /usr/bin/exuberant-ctags.
981 - # Hopefully this pattern won't break for a while at least.
982 - # This fixes bug 29398 (27 Sep 2003 agriffis)
983 - sed -i 's/\<ctags\("\| [-*.]\)/exuberant-&/g' \
984 - "${S}"/runtime/doc/syntax.txt \
985 - "${S}"/runtime/doc/tagsrch.txt \
986 - "${S}"/runtime/doc/usr_29.txt \
987 - "${S}"/runtime/menu.vim \
988 - "${S}"/src/configure.in || die 'sed failed'
989 -
990 - # Don't be fooled by /usr/include/libc.h. When found, vim thinks
991 - # this is NeXT, but it's actually just a file in dev-libs/9libs
992 - # This fixes bug 43885 (20 Mar 2004 agriffis)
993 - sed -i 's/ libc\.h / /' "${S}"/src/configure.in || die 'sed failed'
994 -
995 - # gcc on sparc32 has this, uhm, interesting problem with detecting EOF
996 - # correctly. To avoid some really entertaining error messages about stuff
997 - # which isn't even in the source file being invalid, we'll do some trickery
998 - # to make the error never occur. bug 66162 (02 October 2004 ciaranm)
999 - find "${S}" -name '*.c' | while read c ; do echo >> "$c" ; done
1000 -
1001 - # Try to avoid sandbox problems. Bug #114475.
1002 - if [[ -d "${S}"/src/po ]] ; then
1003 - sed -i -e \
1004 - '/-S check.vim/s,..VIM.,ln -s $(VIM) testvim \; ./testvim -X,' \
1005 - "${S}"/src/po/Makefile
1006 - fi
1007 -
1008 - if version_is_at_least 7.3.122 ; then
1009 - cp "${S}"/src/config.mk.dist "${S}"/src/auto/config.mk
1010 - fi
1011 -
1012 - # Bug #378107 - Build properly with >=perl-core/ExtUtils-ParseXS-3.20.0
1013 - if version_is_at_least 7.3 ; then
1014 - sed -i "s:\\\$(PERLLIB)/ExtUtils/xsubpp:${EPREFIX}/usr/bin/xsubpp:" \
1015 - "${S}"/src/Makefile || die 'sed for ExtUtils-ParseXS failed'
1016 - fi
1017 -
1018 - eapply_user
1019 -}
1020 -
1021 -src_configure() {
1022 - local myconf
1023 -
1024 - # Fix bug 37354: Disallow -funroll-all-loops on amd64
1025 - # Bug 57859 suggests that we want to do this for all archs
1026 - filter-flags -funroll-all-loops
1027 -
1028 - # Fix bug 76331: -O3 causes problems, use -O2 instead. We'll do this for
1029 - # everyone since previous flag filtering bugs have turned out to affect
1030 - # multiple archs...
1031 - replace-flags -O3 -O2
1032 -
1033 - # Fix bug 18245: Prevent "make" from the following chain:
1034 - # (1) Notice configure.in is newer than auto/configure
1035 - # (2) Rebuild auto/configure
1036 - # (3) Notice auto/configure is newer than auto/config.mk
1037 - # (4) Run ./configure (with wrong args) to remake auto/config.mk
1038 - sed -i 's# auto/config\.mk:#:#' src/Makefile || die "Makefile sed failed"
1039 - rm -f src/auto/configure
1040 - emake -j1 -C src autoconf
1041 -
1042 - # This should fix a sandbox violation (see bug 24447). The hvc
1043 - # things are for ppc64, see bug 86433.
1044 - for file in /dev/pty/s* /dev/console /dev/hvc/* /dev/hvc* ; do
1045 - [[ -e ${file} ]] && addwrite $file
1046 - done
1047 -
1048 - # Let Portage do the stripping. Some people like that.
1049 - export ac_cv_prog_STRIP="$(type -P true ) faking strip"
1050 -
1051 - # Keep Gentoo Prefix env contained within the EPREFIX
1052 - use prefix && myconf+=" --without-local-dir"
1053 -
1054 - econf \
1055 - --with-modified-by=Gentoo-${PVR} \
1056 - --enable-gui=no \
1057 - --without-x \
1058 - --disable-darwin \
1059 - --disable-perlinterp \
1060 - --disable-pythoninterp \
1061 - --disable-rubyinterp \
1062 - --disable-gpm \
1063 - --disable-selinux \
1064 - $(use_enable nls) \
1065 - $(use_enable acl) \
1066 - ${myconf}
1067 -}
1068 -
1069 -src_compile() {
1070 - # The following allows emake to be used
1071 - emake -j1 -C src auto/osdef.h objects
1072 -
1073 - emake tools
1074 -}
1075 -
1076 -src_test() { :; }
1077 -
1078 -src_install() {
1079 - local vimfiles=/usr/share/vim/vim${VIM_VERSION/.}
1080 -
1081 - dodir /usr/{bin,share/{man/man1,vim}}
1082 - emake -C src \
1083 - installruntime \
1084 - installmanlinks \
1085 - installmacros \
1086 - installtutor \
1087 - installtutorbin \
1088 - installtools \
1089 - install-languages \
1090 - DESTDIR="${D}" \
1091 - BINDIR="${EPREFIX}"/usr/bin \
1092 - MANDIR="${EPREFIX}"/usr/share/man \
1093 - DATADIR="${EPREFIX}"/usr/share
1094 -
1095 - keepdir ${vimfiles}/keymap
1096 -
1097 - # default vimrc is installed by vim-core since it applies to
1098 - # both vim and gvim
1099 - insinto /etc/vim/
1100 - newins "${FILESDIR}"/vimrc-r4 vimrc
1101 - eprefixify "${ED}"/etc/vim/vimrc
1102 -
1103 - if use minimal ; then
1104 - # To save space, install only a subset of the files.
1105 - # Helps minimalize the livecd, bug 65144.
1106 - eshopts_push -s extglob
1107 -
1108 - rm -fr "${ED}${vimfiles}"/{compiler,doc,ftplugin,indent}
1109 - rm -fr "${ED}${vimfiles}"/{macros,print,tools,tutor}
1110 - rm "${ED}"/usr/bin/vimtutor
1111 -
1112 - local keep_colors="default"
1113 - ignore=$(rm -fr "${ED}${vimfiles}"/colors/!(${keep_colors}).vim )
1114 -
1115 - local keep_syntax="conf|crontab|fstab|inittab|resolv|sshdconfig"
1116 - # tinkering with the next line might make bad things happen ...
1117 - keep_syntax="${keep_syntax}|syntax|nosyntax|synload"
1118 - ignore=$(rm -fr "${ED}${vimfiles}"/syntax/!(${keep_syntax}).vim )
1119 -
1120 - eshopts_pop
1121 - fi
1122 -
1123 - # These files might have slight security issues, so we won't
1124 - # install them. See bug #77841. We don't mind if these don't
1125 - # exist.
1126 - rm "${ED}${vimfiles}"/tools/{vimspell.sh,tcltags} 2>/dev/null
1127 -
1128 - newbashcomp "${FILESDIR}"/xxd-completion xxd
1129 -
1130 - # We shouldn't be installing the ex or view man page symlinks, as they
1131 - # are managed by eselect-vi
1132 - rm -f "${ED}"/usr/share/man/man1/{ex,view}.1
1133 -}
1134 -
1135 -pkg_postinst() {
1136 - # Update documentation tags (from vim-doc.eclass)
1137 - update_vim_helptags
1138 -}
1139 -
1140 -pkg_postrm() {
1141 - # Update documentation tags (from vim-doc.eclass)
1142 - update_vim_helptags
1143 -}