1 |
commit: e380ffe8d135faa24a151dbd8efc6777d6599b75 |
2 |
Author: Aaron Bauman <bman <AT> gentoo <DOT> org> |
3 |
AuthorDate: Tue Jan 24 04:40:22 2017 +0000 |
4 |
Commit: Patrice Clement <monsieurp <AT> gentoo <DOT> org> |
5 |
CommitDate: Tue Jan 24 09:32:14 2017 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=e380ffe8 |
7 |
|
8 |
app-editors/{g,}vim: remove vulnerable versions. |
9 |
|
10 |
Gentoo-Bug: https://bugs.gentoo.org/600650 |
11 |
Closes: https://github.com/gentoo/gentoo/pull/3615 |
12 |
|
13 |
app-editors/gvim/Manifest | 5 - |
14 |
app-editors/gvim/gvim-7.4.2102.ebuild | 390 -------------------------------- |
15 |
app-editors/gvim/gvim-7.4.769.ebuild | 414 ---------------------------------- |
16 |
app-editors/gvim/gvim-8.0.0005.ebuild | 408 --------------------------------- |
17 |
app-editors/vim/Manifest | 5 - |
18 |
app-editors/vim/vim-7.4.2102.ebuild | 349 ---------------------------- |
19 |
app-editors/vim/vim-7.4.769.ebuild | 384 ------------------------------- |
20 |
app-editors/vim/vim-8.0.0005.ebuild | 349 ---------------------------- |
21 |
8 files changed, 2304 deletions(-) |
22 |
|
23 |
diff --git a/app-editors/gvim/Manifest b/app-editors/gvim/Manifest |
24 |
index 8c67463..e8b3c1f 100644 |
25 |
--- a/app-editors/gvim/Manifest |
26 |
+++ b/app-editors/gvim/Manifest |
27 |
@@ -1,7 +1,2 @@ |
28 |
-DIST vim-7.4.2102-gentoo-patches.tar.bz2 2308 SHA256 1928059fe173b3abf66a96a8205c2e46b5320639d62385aeeae760e99820da67 SHA512 4e678b214fc7b1be89728b8151335ca8af332e8b0c0e25c27287a38ad5ccf14d5dcf82d5dd86af9aa502df4fae986aba98104f150b49a880e34f8283e8e63574 WHIRLPOOL 8a53a8980418f16f8c7883409dea49cfc758fc29dcfaab36f1bd6ae53b32211870a95361c8b63cdfe50795ea11958b113c9909ed6d29de5cb3696efc6ff7888b |
29 |
-DIST vim-7.4.2102.tar.gz 12838026 SHA256 19c059b2d0e61effcd288e2a18969017cbbc031cf19fe775b3f4b4c42bda2578 SHA512 9cf80b1c9e2dd8713b9ba33c39917a8771c7378ae59c2dc1809bf0cabc4545547ad0a5b9f0b87cef2b34f6d1f72b135d1217495716fc482a70a16e1097bd88a2 WHIRLPOOL 301d41e9bf9a6a220776d6e32ab2918c6a8aaf33862725fba9c738e0c99921e631d8c2fdfd9bc2dc9a214a9124ecfa113081a86addf79b023e8421471843f869 |
30 |
-DIST vim-7.4.542-gentoo-patches.tar.bz2 3307 SHA256 0eb635f13e199de77846e0d363a473882f2186f138158271fabf0975747a2f3d SHA512 446c66764dac2533cc2f2b3d50481971d4c63a4e81d94c545862a1be620179fdcd81a79f2d81737d1188812a6ad41d90e2a752a05acf6913e7a71464f7cecdd9 WHIRLPOOL cfca8feef0eb8096897ef751afb0427acddd008530ded6cf908fcff51be9713da4ea3e5e613d544c5caba400d664ae19ca70925df3a218bec5c8be6f69aadda2 |
31 |
-DIST vim-7.4.769.tar.gz 12189043 SHA256 c89568f3dfcefd773bfbb0958c1cf58a0b0ceedb9d0c264250b379a77ad02e9e SHA512 00048c1d579c409767308c991e5de4ed54e9e50db7e97b0d148f0667742d5e46047c702bee693a5caf13a1603548ab783f7fa846574841d807ffbaa97d7f611e WHIRLPOOL 28ada4763250bbed6f9a1768e81a79b75db64f0ef25296c5d4825f21d21d6e88ff24d488e841e6ba492e363da6d3a3e75e9ec2f2881a731e7ed261c7d21ffd3c |
32 |
-DIST vim-8.0.0005.tar.gz 12909267 SHA256 4ad6b4e8fad6412724a665d974e1be3138a9562a5f4f4aab17debf709c1d3ad3 SHA512 3d62557c6929e554c50f8043658665b907b235f180d8917288fc1434237856df7fa098ecb1823e6edea9e5735564cb55869e535350e52fd8c22423480a49438d WHIRLPOOL a80eec04afb2a797837874ec4b035268a20be7cefa487e44e8e441fb518d46cd7e16a263a6256f49e23e60e737b14dc6a7d93d7c3e579d3da13ccee48536b41b |
33 |
DIST vim-8.0.0106-gentoo-patches.tar.bz2 2281 SHA256 9823a91b050eb4b001cc50f508d2ad03c7c256ed49183c1af7582318667f48d4 SHA512 39edd9f518c230d2b0486b18aa155572a9eada4a5e21108573d6e66e2eef1276f23b77d766648f018c9cf973a7d03712d8861be6ea13255d7b389912d554a47a WHIRLPOOL d6d01e3944d56762a2a999ee631f89e212360aa030ddd16ea96e32d518ec171e04d8565dcb89e804248d53e4c6e06b19be239ad2316ea88bb57364815b85d26b |
34 |
DIST vim-8.0.0106.tar.gz 12945768 SHA256 cbace3e7a2db3df73720c4181fa4cdbf7df94310522b1c7a4fd7d6afeaa1e145 SHA512 4e40d9ba8ba694d951be78c653d8fcfebe2b3cc460986ef8e3478f81f2dfd5e4b3c2bc5d22082536b9c275e41beeac343cee0aa1e4de125b71fe95c772e26c20 WHIRLPOOL 569a8f50ebdb7f380f675ed0a4b4aa5e7e226303a8e92db2a8e81f5d8acc0e466620c60c160e2204f3af615b91ca2481eb9716f9c2e6dbdb416050d758a49f09 |
35 |
|
36 |
diff --git a/app-editors/gvim/gvim-7.4.2102.ebuild b/app-editors/gvim/gvim-7.4.2102.ebuild |
37 |
deleted file mode 100644 |
38 |
index 3b11e6a..00000000 |
39 |
--- a/app-editors/gvim/gvim-7.4.2102.ebuild |
40 |
+++ /dev/null |
41 |
@@ -1,390 +0,0 @@ |
42 |
-# Copyright 1999-2016 Gentoo Foundation |
43 |
-# Distributed under the terms of the GNU General Public License v2 |
44 |
-# $Id$ |
45 |
- |
46 |
-EAPI=6 |
47 |
-VIM_VERSION="7.4" |
48 |
-PYTHON_COMPAT=( python{2_7,3_4,3_5} ) |
49 |
-PYTHON_REQ_USE=threads |
50 |
-inherit eutils vim-doc flag-o-matic fdo-mime versionator bash-completion-r1 prefix python-r1 |
51 |
- |
52 |
-if [[ ${PV} == 9999* ]] ; then |
53 |
- inherit git-r3 |
54 |
- EGIT_REPO_URI="https://github.com/vim/vim.git" |
55 |
- EGIT_CHECKOUT_DIR=${WORKDIR}/vim-${PV} |
56 |
-else |
57 |
- SRC_URI="https://github.com/vim/vim/archive/v${PV}.tar.gz -> vim-${PV}.tar.gz |
58 |
- https://dev.gentoo.org/~radhermit/vim/vim-7.4.2102-gentoo-patches.tar.bz2" |
59 |
- KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~ppc ~ppc64 ~sparc ~x86 ~x86-fbsd ~x86-interix ~amd64-linux ~x86-linux ~ppc-macos ~x86-macos ~x86-solaris" |
60 |
-fi |
61 |
- |
62 |
-DESCRIPTION="GUI version of the Vim text editor" |
63 |
-HOMEPAGE="http://www.vim.org/ https://github.com/vim/vim" |
64 |
- |
65 |
-SLOT="0" |
66 |
-LICENSE="vim" |
67 |
-IUSE="acl aqua cscope debug gnome gtk lua luajit motif neXt netbeans nls perl python racket ruby selinux session tcl" |
68 |
-REQUIRED_USE=" |
69 |
- luajit? ( lua ) |
70 |
- python? ( |
71 |
- || ( $(python_gen_useflags '*') ) |
72 |
- ?? ( $(python_gen_useflags 'python2*') ) |
73 |
- ?? ( $(python_gen_useflags 'python3*') ) |
74 |
- ) |
75 |
-" |
76 |
- |
77 |
-RDEPEND=" |
78 |
- ~app-editors/vim-core-${PV} |
79 |
- >=app-eselect/eselect-vi-1.1 |
80 |
- >=sys-libs/ncurses-5.2-r2:0= |
81 |
- x11-libs/libXext |
82 |
- x11-libs/libXt |
83 |
- acl? ( kernel_linux? ( sys-apps/acl ) ) |
84 |
- !aqua? ( |
85 |
- gtk? ( |
86 |
- >=x11-libs/gtk+-2.6:2 |
87 |
- x11-libs/libXft |
88 |
- gnome? ( >=gnome-base/libgnomeui-2.6 ) |
89 |
- ) |
90 |
- !gtk? ( |
91 |
- motif? ( >=x11-libs/motif-2.3:0 ) |
92 |
- !motif? ( |
93 |
- neXt? ( x11-libs/neXtaw ) |
94 |
- !neXt? ( x11-libs/libXaw ) |
95 |
- ) |
96 |
- ) |
97 |
- ) |
98 |
- cscope? ( dev-util/cscope ) |
99 |
- lua? ( |
100 |
- luajit? ( dev-lang/luajit:2= ) |
101 |
- !luajit? ( dev-lang/lua:0[deprecated] ) |
102 |
- ) |
103 |
- nls? ( virtual/libintl ) |
104 |
- perl? ( dev-lang/perl:= ) |
105 |
- python? ( ${PYTHON_DEPS} ) |
106 |
- racket? ( dev-scheme/racket ) |
107 |
- ruby? ( || ( dev-lang/ruby:2.3 dev-lang/ruby:2.2 dev-lang/ruby:2.1 dev-lang/ruby:2.0 ) ) |
108 |
- selinux? ( sys-libs/libselinux ) |
109 |
- session? ( x11-libs/libSM ) |
110 |
- tcl? ( dev-lang/tcl:0= ) |
111 |
-" |
112 |
-DEPEND="${RDEPEND} |
113 |
- dev-util/ctags |
114 |
- sys-devel/autoconf |
115 |
- virtual/pkgconfig |
116 |
- nls? ( sys-devel/gettext ) |
117 |
-" |
118 |
- |
119 |
-S=${WORKDIR}/vim-${PV} |
120 |
- |
121 |
-pkg_setup() { |
122 |
- # people with broken alphabets run into trouble. bug 82186. |
123 |
- unset LANG LC_ALL |
124 |
- export LC_COLLATE="C" |
125 |
- |
126 |
- # Gnome sandbox silliness. bug #114475. |
127 |
- mkdir -p "${T}"/home |
128 |
- export HOME="${T}"/home |
129 |
-} |
130 |
- |
131 |
-src_prepare() { |
132 |
- if [[ ${PV} != 9999* ]] ; then |
133 |
- # Gentoo patches to fix runtime issues, cross-compile errors, etc |
134 |
- eapply "${WORKDIR}"/patches/ |
135 |
- fi |
136 |
- |
137 |
- # Fixup a script to use awk instead of nawk |
138 |
- sed -i '1s|.*|#!'"${EPREFIX}"'/usr/bin/awk -f|' "${S}"/runtime/tools/mve.awk \ |
139 |
- || die "mve.awk sed failed" |
140 |
- |
141 |
- # Read vimrc and gvimrc from /etc/vim |
142 |
- echo '#define SYS_VIMRC_FILE "'${EPREFIX}'/etc/vim/vimrc"' >> "${S}"/src/feature.h |
143 |
- echo '#define SYS_GVIMRC_FILE "'${EPREFIX}'/etc/vim/gvimrc"' >> "${S}"/src/feature.h |
144 |
- |
145 |
- # Use exuberant ctags which installs as /usr/bin/exuberant-ctags. |
146 |
- # Hopefully this pattern won't break for a while at least. |
147 |
- # This fixes bug 29398 (27 Sep 2003 agriffis) |
148 |
- sed -i 's/\<ctags\("\| [-*.]\)/exuberant-&/g' \ |
149 |
- "${S}"/runtime/doc/syntax.txt \ |
150 |
- "${S}"/runtime/doc/tagsrch.txt \ |
151 |
- "${S}"/runtime/doc/usr_29.txt \ |
152 |
- "${S}"/runtime/menu.vim \ |
153 |
- "${S}"/src/configure.in || die 'sed failed' |
154 |
- |
155 |
- # Don't be fooled by /usr/include/libc.h. When found, vim thinks |
156 |
- # this is NeXT, but it's actually just a file in dev-libs/9libs |
157 |
- # This fixes bug 43885 (20 Mar 2004 agriffis) |
158 |
- sed -i 's/ libc\.h / /' "${S}"/src/configure.in || die 'sed failed' |
159 |
- |
160 |
- # gcc on sparc32 has this, uhm, interesting problem with detecting EOF |
161 |
- # correctly. To avoid some really entertaining error messages about stuff |
162 |
- # which isn't even in the source file being invalid, we'll do some trickery |
163 |
- # to make the error never occur. bug 66162 (02 October 2004 ciaranm) |
164 |
- find "${S}" -name '*.c' | while read c ; do echo >> "$c" ; done |
165 |
- |
166 |
- # Try to avoid sandbox problems. Bug #114475. |
167 |
- if [[ -d "${S}"/src/po ]] ; then |
168 |
- sed -i '/-S check.vim/s,..VIM.,ln -s $(VIM) testvim \; ./testvim -X,' \ |
169 |
- "${S}"/src/po/Makefile |
170 |
- fi |
171 |
- |
172 |
- if version_is_at_least 7.3.122 ; then |
173 |
- cp "${S}"/src/config.mk.dist "${S}"/src/auto/config.mk |
174 |
- fi |
175 |
- |
176 |
- # Bug #378107 - Build properly with >=perl-core/ExtUtils-ParseXS-3.20.0 |
177 |
- if version_is_at_least 7.3 ; then |
178 |
- sed -i "s:\\\$(PERLLIB)/ExtUtils/xsubpp:${EPREFIX}/usr/bin/xsubpp:" \ |
179 |
- "${S}"/src/Makefile || die 'sed for ExtUtils-ParseXS failed' |
180 |
- fi |
181 |
- |
182 |
- default |
183 |
-} |
184 |
- |
185 |
-src_configure() { |
186 |
- local myconf=() |
187 |
- |
188 |
- # Fix bug 37354: Disallow -funroll-all-loops on amd64 |
189 |
- # Bug 57859 suggests that we want to do this for all archs |
190 |
- filter-flags -funroll-all-loops |
191 |
- |
192 |
- # Fix bug 76331: -O3 causes problems, use -O2 instead. We'll do this for |
193 |
- # everyone since previous flag filtering bugs have turned out to affect |
194 |
- # multiple archs... |
195 |
- replace-flags -O3 -O2 |
196 |
- |
197 |
- # Fix bug 18245: Prevent "make" from the following chain: |
198 |
- # (1) Notice configure.in is newer than auto/configure |
199 |
- # (2) Rebuild auto/configure |
200 |
- # (3) Notice auto/configure is newer than auto/config.mk |
201 |
- # (4) Run ./configure (with wrong args) to remake auto/config.mk |
202 |
- sed -i 's# auto/config\.mk:#:#' src/Makefile || die "Makefile sed failed" |
203 |
- rm -f src/auto/configure |
204 |
- emake -j1 -C src autoconf |
205 |
- |
206 |
- # This should fix a sandbox violation (see bug 24447). The hvc |
207 |
- # things are for ppc64, see bug 86433. |
208 |
- for file in /dev/pty/s* /dev/console /dev/hvc/* /dev/hvc* ; do |
209 |
- [[ -e ${file} ]] && addwrite $file |
210 |
- done |
211 |
- |
212 |
- use debug && append-flags "-DDEBUG" |
213 |
- |
214 |
- myconf=( |
215 |
- --with-features=huge |
216 |
- --disable-gpm |
217 |
- --enable-multibyte |
218 |
- $(use_enable acl) |
219 |
- $(use_enable cscope) |
220 |
- $(use_enable lua luainterp) |
221 |
- $(use_with luajit) |
222 |
- $(use_enable netbeans) |
223 |
- $(use_enable nls) |
224 |
- $(use_enable perl perlinterp) |
225 |
- $(use_enable racket mzschemeinterp) |
226 |
- $(use_enable ruby rubyinterp) |
227 |
- $(use_enable selinux) |
228 |
- $(use_enable session xsmp) |
229 |
- $(use_enable tcl tclinterp) |
230 |
- ) |
231 |
- |
232 |
- if use python ; then |
233 |
- py_add_interp() { |
234 |
- local v |
235 |
- |
236 |
- [[ ${EPYTHON} == python3* ]] && v=3 |
237 |
- myconf+=( |
238 |
- --enable-python${v}interp |
239 |
- vi_cv_path_python${v}="${PYTHON}" |
240 |
- ) |
241 |
- } |
242 |
- |
243 |
- python_foreach_impl py_add_interp |
244 |
- else |
245 |
- myconf+=( |
246 |
- --disable-pythoninterp |
247 |
- --disable-python3interp |
248 |
- ) |
249 |
- fi |
250 |
- |
251 |
- # --with-features=huge forces on cscope even if we --disable it. We need |
252 |
- # to sed this out to avoid screwiness. (1 Sep 2004 ciaranm) |
253 |
- if ! use cscope ; then |
254 |
- sed -i '/# define FEAT_CSCOPE/d' src/feature.h || \ |
255 |
- die "couldn't disable cscope" |
256 |
- fi |
257 |
- |
258 |
- # gvim's GUI preference order is as follows: |
259 |
- # aqua CARBON (not tested) |
260 |
- # -aqua gtk gnome GNOME2 |
261 |
- # -aqua gtk -gnome GTK2 |
262 |
- # -aqua -gtk motif MOTIF |
263 |
- # -aqua -gtk -motif neXt NEXTAW |
264 |
- # -aqua -gtk -motif -neXt ATHENA |
265 |
- echo ; echo |
266 |
- if use aqua ; then |
267 |
- einfo "Building gvim with the Carbon GUI" |
268 |
- myconf+=( |
269 |
- --enable-darwin |
270 |
- --enable-gui=carbon |
271 |
- ) |
272 |
- elif use gtk ; then |
273 |
- myconf+=( --enable-gtk2-check ) |
274 |
- if use gnome ; then |
275 |
- einfo "Building gvim with the Gnome 2 GUI" |
276 |
- myconf+=( --enable-gui=gnome2 ) |
277 |
- else |
278 |
- einfo "Building gvim with the gtk+-2 GUI" |
279 |
- myconf+=( --enable-gui=gtk2 ) |
280 |
- fi |
281 |
- elif use motif ; then |
282 |
- einfo "Building gvim with the MOTIF GUI" |
283 |
- myconf+=( --enable-gui=motif ) |
284 |
- elif use neXt ; then |
285 |
- einfo "Building gvim with the neXtaw GUI" |
286 |
- myconf+=( --enable-gui=nextaw ) |
287 |
- else |
288 |
- einfo "Building gvim with the Athena GUI" |
289 |
- myconf+=( --enable-gui=athena ) |
290 |
- fi |
291 |
- echo ; echo |
292 |
- |
293 |
- # Let Portage do the stripping. Some people like that. |
294 |
- export ac_cv_prog_STRIP="$(type -P true ) faking strip" |
295 |
- |
296 |
- # Keep Gentoo Prefix env contained within the EPREFIX |
297 |
- use prefix && myconf+=( --without-local-dir ) |
298 |
- |
299 |
- if [[ ${CHOST} == *-interix* ]]; then |
300 |
- # avoid finding of this function, to avoid having to patch either |
301 |
- # configure or the source, which would be much more hackish. |
302 |
- # after all vim does it right, only interix is badly broken (again) |
303 |
- export ac_cv_func_sigaction=no |
304 |
- fi |
305 |
- |
306 |
- econf \ |
307 |
- --with-modified-by=Gentoo-${PVR} \ |
308 |
- --with-vim-name=gvim \ |
309 |
- --with-x \ |
310 |
- "${myconf[@]}" |
311 |
-} |
312 |
- |
313 |
-src_compile() { |
314 |
- # The following allows emake to be used |
315 |
- emake -j1 -C src auto/osdef.h objects |
316 |
- |
317 |
- emake |
318 |
-} |
319 |
- |
320 |
-src_test() { |
321 |
- echo |
322 |
- einfo "Starting vim tests. Several error messages will be shown" |
323 |
- einfo "while the tests run. This is normal behaviour and does not" |
324 |
- einfo "indicate a fault." |
325 |
- echo |
326 |
- ewarn "If the tests fail, your terminal may be left in a strange" |
327 |
- ewarn "state. Usually, running 'reset' will fix this." |
328 |
- echo |
329 |
- |
330 |
- # Don't let vim talk to X |
331 |
- unset DISPLAY |
332 |
- |
333 |
- # Make gvim not try to connect to X. See :help gui-x11-start in vim for how |
334 |
- # this evil trickery works. |
335 |
- ln -s "${S}"/src/gvim "${S}"/src/testvim || die |
336 |
- |
337 |
- # Make sure our VIMPROG is used. |
338 |
- sed -i 's:\.\./vim:../testvim:' src/testdir/test49.vim || die |
339 |
- |
340 |
- # Don't do additional GUI tests. |
341 |
- emake -j1 VIMPROG=../testvim -C src/testdir nongui |
342 |
-} |
343 |
- |
344 |
-# Make convenience symlinks, hopefully without stepping on toes. Some |
345 |
-# of these links are "owned" by the vim ebuild when it is installed, |
346 |
-# but they might be good for gvim as well (see bug 45828) |
347 |
-update_vim_symlinks() { |
348 |
- local f syms |
349 |
- syms="vimdiff rvim rview" |
350 |
- einfo "Calling eselect vi update..." |
351 |
- # Call this with --if-unset to respect user's choice (bug 187449) |
352 |
- eselect vi update --if-unset |
353 |
- |
354 |
- # Make or remove convenience symlink, vim -> gvim |
355 |
- if [[ -f "${EROOT}"/usr/bin/gvim ]]; then |
356 |
- ln -s gvim "${EROOT}"/usr/bin/vim 2>/dev/null |
357 |
- elif [[ -L "${EROOT}"/usr/bin/vim && ! -f "${EROOT}"/usr/bin/vim ]]; then |
358 |
- rm "${EROOT}"/usr/bin/vim |
359 |
- fi |
360 |
- |
361 |
- # Make or remove convenience symlinks to vim |
362 |
- if [[ -f "${EROOT}"/usr/bin/vim ]]; then |
363 |
- for f in ${syms}; do |
364 |
- ln -s vim "${EROOT}"/usr/bin/${f} 2>/dev/null |
365 |
- done |
366 |
- else |
367 |
- for f in ${syms}; do |
368 |
- if [[ -L "${EROOT}"/usr/bin/${f} && ! -f "${EROOT}"/usr/bin/${f} ]]; then |
369 |
- rm -f "${EROOT}"/usr/bin/${f} |
370 |
- fi |
371 |
- done |
372 |
- fi |
373 |
- |
374 |
- # This will still break if you merge then remove the vi package, |
375 |
- # but there's only so much you can do, eh? Unfortunately we don't |
376 |
- # have triggers like are done in rpm-land. |
377 |
-} |
378 |
- |
379 |
-src_install() { |
380 |
- local vimfiles=/usr/share/vim/vim${VIM_VERSION/.} |
381 |
- |
382 |
- dobin src/gvim |
383 |
- dosym gvim /usr/bin/gvimdiff |
384 |
- dosym gvim /usr/bin/evim |
385 |
- dosym gvim /usr/bin/eview |
386 |
- dosym gvim /usr/bin/gview |
387 |
- dosym gvim /usr/bin/rgvim |
388 |
- dosym gvim /usr/bin/rgview |
389 |
- |
390 |
- dodir /usr/share/man/man1 |
391 |
- echo ".so vim.1" > "${ED}"/usr/share/man/man1/gvim.1 |
392 |
- echo ".so vim.1" > "${ED}"/usr/share/man/man1/gview.1 |
393 |
- echo ".so vimdiff.1" > "${ED}"/usr/share/man/man1/gvimdiff.1 |
394 |
- |
395 |
- insinto /etc/vim |
396 |
- newins "${FILESDIR}"/gvimrc-r1 gvimrc |
397 |
- eprefixify "${ED}"/etc/vim/gvimrc |
398 |
- |
399 |
- newmenu "${FILESDIR}"/gvim.desktop-r2 gvim.desktop |
400 |
- doicon "${FILESDIR}"/gvim.xpm |
401 |
- doicon -s scalable "${FILESDIR}"/gvim.svg |
402 |
- |
403 |
- # bash completion script, bug #79018. |
404 |
- newbashcomp "${FILESDIR}"/${PN}-completion ${PN} |
405 |
- |
406 |
- # We shouldn't be installing the ex or view man page symlinks, as they |
407 |
- # are managed by eselect-vi |
408 |
- rm -f "${ED}"/usr/share/man/man1/{ex,view}.1 |
409 |
-} |
410 |
- |
411 |
-pkg_postinst() { |
412 |
- # Update documentation tags (from vim-doc.eclass) |
413 |
- update_vim_helptags |
414 |
- |
415 |
- # Update fdo mime stuff, bug #78394 |
416 |
- fdo-mime_mime_database_update |
417 |
- |
418 |
- # Make convenience symlinks |
419 |
- update_vim_symlinks |
420 |
-} |
421 |
- |
422 |
-pkg_postrm() { |
423 |
- # Update documentation tags (from vim-doc.eclass) |
424 |
- update_vim_helptags |
425 |
- |
426 |
- # Update fdo mime stuff, bug #78394 |
427 |
- fdo-mime_mime_database_update |
428 |
- |
429 |
- # Make convenience symlinks |
430 |
- update_vim_symlinks |
431 |
-} |
432 |
|
433 |
diff --git a/app-editors/gvim/gvim-7.4.769.ebuild b/app-editors/gvim/gvim-7.4.769.ebuild |
434 |
deleted file mode 100644 |
435 |
index 9cd936c..00000000 |
436 |
--- a/app-editors/gvim/gvim-7.4.769.ebuild |
437 |
+++ /dev/null |
438 |
@@ -1,414 +0,0 @@ |
439 |
-# Copyright 1999-2015 Gentoo Foundation |
440 |
-# Distributed under the terms of the GNU General Public License v2 |
441 |
-# $Id$ |
442 |
- |
443 |
-EAPI=5 |
444 |
-VIM_VERSION="7.4" |
445 |
-PYTHON_COMPAT=( python{2_7,3_4} ) |
446 |
-PYTHON_REQ_USE=threads |
447 |
-inherit eutils vim-doc flag-o-matic fdo-mime versionator bash-completion-r1 prefix python-r1 |
448 |
- |
449 |
-if [[ ${PV} == 9999* ]] ; then |
450 |
- inherit git-r3 |
451 |
- EGIT_REPO_URI="https://github.com/vim/vim.git" |
452 |
- EGIT_CHECKOUT_DIR=${WORKDIR}/vim-${PV} |
453 |
-else |
454 |
- SRC_URI="https://github.com/vim/vim/archive/v${PV}.tar.gz -> vim-${PV}.tar.gz |
455 |
- https://dev.gentoo.org/~radhermit/vim/vim-7.4.542-gentoo-patches.tar.bz2" |
456 |
- KEYWORDS="alpha amd64 arm hppa ia64 ppc ppc64 sparc x86 ~x86-fbsd ~x86-interix ~amd64-linux ~x86-linux ~ppc-macos ~x86-macos ~x86-solaris" |
457 |
-fi |
458 |
- |
459 |
-DESCRIPTION="GUI version of the Vim text editor" |
460 |
-HOMEPAGE="http://www.vim.org/" |
461 |
- |
462 |
-SLOT="0" |
463 |
-LICENSE="vim" |
464 |
-IUSE="acl aqua cscope debug gnome gtk lua luajit motif neXt netbeans nls perl python racket ruby selinux session tcl" |
465 |
-REQUIRED_USE=" |
466 |
- luajit? ( lua ) |
467 |
- python? ( |
468 |
- || ( $(python_gen_useflags '*') ) |
469 |
- ?? ( $(python_gen_useflags 'python2*') ) |
470 |
- ?? ( $(python_gen_useflags 'python3*') ) |
471 |
- ) |
472 |
-" |
473 |
- |
474 |
-RDEPEND=" |
475 |
- ~app-editors/vim-core-${PV} |
476 |
- >=app-eselect/eselect-vi-1.1 |
477 |
- >=sys-libs/ncurses-5.2-r2 |
478 |
- x11-libs/libXext |
479 |
- x11-libs/libXt |
480 |
- acl? ( kernel_linux? ( sys-apps/acl ) ) |
481 |
- !aqua? ( |
482 |
- gtk? ( |
483 |
- >=x11-libs/gtk+-2.6:2 |
484 |
- x11-libs/libXft |
485 |
- gnome? ( >=gnome-base/libgnomeui-2.6 ) |
486 |
- ) |
487 |
- !gtk? ( |
488 |
- motif? ( >=x11-libs/motif-2.3:0 ) |
489 |
- !motif? ( |
490 |
- neXt? ( x11-libs/neXtaw ) |
491 |
- !neXt? ( x11-libs/libXaw ) |
492 |
- ) |
493 |
- ) |
494 |
- ) |
495 |
- cscope? ( dev-util/cscope ) |
496 |
- lua? ( |
497 |
- luajit? ( dev-lang/luajit:2= ) |
498 |
- !luajit? ( dev-lang/lua:0[deprecated] ) |
499 |
- ) |
500 |
- nls? ( virtual/libintl ) |
501 |
- perl? ( dev-lang/perl:= ) |
502 |
- python? ( ${PYTHON_DEPS} ) |
503 |
- racket? ( dev-scheme/racket ) |
504 |
- ruby? ( || ( dev-lang/ruby:2.2 dev-lang/ruby:2.1 dev-lang/ruby:2.0 ) ) |
505 |
- selinux? ( sys-libs/libselinux ) |
506 |
- session? ( x11-libs/libSM ) |
507 |
- tcl? ( dev-lang/tcl:0= ) |
508 |
-" |
509 |
-DEPEND="${RDEPEND} |
510 |
- dev-util/ctags |
511 |
- sys-devel/autoconf |
512 |
- virtual/pkgconfig |
513 |
- nls? ( sys-devel/gettext ) |
514 |
-" |
515 |
- |
516 |
-S=${WORKDIR}/vim-${PV} |
517 |
- |
518 |
-pkg_setup() { |
519 |
- # people with broken alphabets run into trouble. bug 82186. |
520 |
- unset LANG LC_ALL |
521 |
- export LC_COLLATE="C" |
522 |
- |
523 |
- # Gnome sandbox silliness. bug #114475. |
524 |
- mkdir -p "${T}"/home |
525 |
- export HOME="${T}"/home |
526 |
-} |
527 |
- |
528 |
-src_prepare() { |
529 |
- if [[ ${PV} != 9999* ]] ; then |
530 |
- if [[ -d "${WORKDIR}"/patches/ ]]; then |
531 |
- # Gentoo patches to fix runtime issues, cross-compile errors, etc |
532 |
- EPATCH_SUFFIX="patch" EPATCH_FORCE="yes" \ |
533 |
- epatch "${WORKDIR}"/patches/ |
534 |
- fi |
535 |
- fi |
536 |
- |
537 |
- # Fixup a script to use awk instead of nawk |
538 |
- sed -i '1s|.*|#!'"${EPREFIX}"'/usr/bin/awk -f|' "${S}"/runtime/tools/mve.awk \ |
539 |
- || die "mve.awk sed failed" |
540 |
- |
541 |
- # Read vimrc and gvimrc from /etc/vim |
542 |
- echo '#define SYS_VIMRC_FILE "'${EPREFIX}'/etc/vim/vimrc"' >> "${S}"/src/feature.h |
543 |
- echo '#define SYS_GVIMRC_FILE "'${EPREFIX}'/etc/vim/gvimrc"' >> "${S}"/src/feature.h |
544 |
- |
545 |
- # Use exuberant ctags which installs as /usr/bin/exuberant-ctags. |
546 |
- # Hopefully this pattern won't break for a while at least. |
547 |
- # This fixes bug 29398 (27 Sep 2003 agriffis) |
548 |
- sed -i 's/\<ctags\("\| [-*.]\)/exuberant-&/g' \ |
549 |
- "${S}"/runtime/doc/syntax.txt \ |
550 |
- "${S}"/runtime/doc/tagsrch.txt \ |
551 |
- "${S}"/runtime/doc/usr_29.txt \ |
552 |
- "${S}"/runtime/menu.vim \ |
553 |
- "${S}"/src/configure.in || die 'sed failed' |
554 |
- |
555 |
- # Don't be fooled by /usr/include/libc.h. When found, vim thinks |
556 |
- # this is NeXT, but it's actually just a file in dev-libs/9libs |
557 |
- # This fixes bug 43885 (20 Mar 2004 agriffis) |
558 |
- sed -i 's/ libc\.h / /' "${S}"/src/configure.in || die 'sed failed' |
559 |
- |
560 |
- # gcc on sparc32 has this, uhm, interesting problem with detecting EOF |
561 |
- # correctly. To avoid some really entertaining error messages about stuff |
562 |
- # which isn't even in the source file being invalid, we'll do some trickery |
563 |
- # to make the error never occur. bug 66162 (02 October 2004 ciaranm) |
564 |
- find "${S}" -name '*.c' | while read c ; do echo >> "$c" ; done |
565 |
- |
566 |
- # Try to avoid sandbox problems. Bug #114475. |
567 |
- if [[ -d "${S}"/src/po ]] ; then |
568 |
- sed -i '/-S check.vim/s,..VIM.,ln -s $(VIM) testvim \; ./testvim -X,' \ |
569 |
- "${S}"/src/po/Makefile |
570 |
- fi |
571 |
- |
572 |
- if version_is_at_least 7.3.122 ; then |
573 |
- cp "${S}"/src/config.mk.dist "${S}"/src/auto/config.mk |
574 |
- fi |
575 |
- |
576 |
- # Bug #378107 - Build properly with >=perl-core/ExtUtils-ParseXS-3.20.0 |
577 |
- if version_is_at_least 7.3 ; then |
578 |
- sed -i "s:\\\$(PERLLIB)/ExtUtils/xsubpp:${EPREFIX}/usr/bin/xsubpp:" \ |
579 |
- "${S}"/src/Makefile || die 'sed for ExtUtils-ParseXS failed' |
580 |
- fi |
581 |
- |
582 |
- epatch_user |
583 |
-} |
584 |
- |
585 |
-src_configure() { |
586 |
- local myconf=() |
587 |
- |
588 |
- # Fix bug 37354: Disallow -funroll-all-loops on amd64 |
589 |
- # Bug 57859 suggests that we want to do this for all archs |
590 |
- filter-flags -funroll-all-loops |
591 |
- |
592 |
- # Fix bug 76331: -O3 causes problems, use -O2 instead. We'll do this for |
593 |
- # everyone since previous flag filtering bugs have turned out to affect |
594 |
- # multiple archs... |
595 |
- replace-flags -O3 -O2 |
596 |
- |
597 |
- # Fix bug 18245: Prevent "make" from the following chain: |
598 |
- # (1) Notice configure.in is newer than auto/configure |
599 |
- # (2) Rebuild auto/configure |
600 |
- # (3) Notice auto/configure is newer than auto/config.mk |
601 |
- # (4) Run ./configure (with wrong args) to remake auto/config.mk |
602 |
- sed -i 's# auto/config\.mk:#:#' src/Makefile || die "Makefile sed failed" |
603 |
- rm -f src/auto/configure |
604 |
- emake -j1 -C src autoconf |
605 |
- |
606 |
- # This should fix a sandbox violation (see bug 24447). The hvc |
607 |
- # things are for ppc64, see bug 86433. |
608 |
- for file in /dev/pty/s* /dev/console /dev/hvc/* /dev/hvc* ; do |
609 |
- [[ -e ${file} ]] && addwrite $file |
610 |
- done |
611 |
- |
612 |
- use debug && append-flags "-DDEBUG" |
613 |
- |
614 |
- myconf=( |
615 |
- --with-features=huge |
616 |
- --disable-gpm |
617 |
- --enable-multibyte |
618 |
- $(use_enable acl) |
619 |
- $(use_enable cscope) |
620 |
- $(use_enable lua luainterp) |
621 |
- $(use_with luajit) |
622 |
- $(use_enable netbeans) |
623 |
- $(use_enable nls) |
624 |
- $(use_enable perl perlinterp) |
625 |
- $(use_enable racket mzschemeinterp) |
626 |
- $(use_enable ruby rubyinterp) |
627 |
- $(use_enable selinux) |
628 |
- $(use_enable session xsmp) |
629 |
- $(use_enable tcl tclinterp) |
630 |
- ) |
631 |
- |
632 |
- if use python ; then |
633 |
- py_add_interp() { |
634 |
- local v |
635 |
- |
636 |
- [[ ${EPYTHON} == python3* ]] && v=3 |
637 |
- myconf+=( |
638 |
- --enable-python${v}interp |
639 |
- vi_cv_path_python${v}="${PYTHON}" |
640 |
- ) |
641 |
- } |
642 |
- |
643 |
- python_foreach_impl py_add_interp |
644 |
- else |
645 |
- myconf+=( |
646 |
- --disable-pythoninterp |
647 |
- --disable-python3interp |
648 |
- ) |
649 |
- fi |
650 |
- |
651 |
- # --with-features=huge forces on cscope even if we --disable it. We need |
652 |
- # to sed this out to avoid screwiness. (1 Sep 2004 ciaranm) |
653 |
- if ! use cscope ; then |
654 |
- sed -i '/# define FEAT_CSCOPE/d' src/feature.h || \ |
655 |
- die "couldn't disable cscope" |
656 |
- fi |
657 |
- |
658 |
- # gvim's GUI preference order is as follows: |
659 |
- # aqua CARBON (not tested) |
660 |
- # -aqua gtk gnome GNOME2 |
661 |
- # -aqua gtk -gnome GTK2 |
662 |
- # -aqua -gtk motif MOTIF |
663 |
- # -aqua -gtk -motif neXt NEXTAW |
664 |
- # -aqua -gtk -motif -neXt ATHENA |
665 |
- echo ; echo |
666 |
- if use aqua ; then |
667 |
- einfo "Building gvim with the Carbon GUI" |
668 |
- myconf+=( |
669 |
- --enable-darwin |
670 |
- --enable-gui=carbon |
671 |
- ) |
672 |
- elif use gtk ; then |
673 |
- myconf+=( --enable-gtk2-check ) |
674 |
- if use gnome ; then |
675 |
- einfo "Building gvim with the Gnome 2 GUI" |
676 |
- myconf+=( --enable-gui=gnome2 ) |
677 |
- else |
678 |
- einfo "Building gvim with the gtk+-2 GUI" |
679 |
- myconf+=( --enable-gui=gtk2 ) |
680 |
- fi |
681 |
- elif use motif ; then |
682 |
- einfo "Building gvim with the MOTIF GUI" |
683 |
- myconf+=( --enable-gui=motif ) |
684 |
- elif use neXt ; then |
685 |
- einfo "Building gvim with the neXtaw GUI" |
686 |
- myconf+=( --enable-gui=nextaw ) |
687 |
- else |
688 |
- einfo "Building gvim with the Athena GUI" |
689 |
- myconf+=( --enable-gui=athena ) |
690 |
- fi |
691 |
- echo ; echo |
692 |
- |
693 |
- # Let Portage do the stripping. Some people like that. |
694 |
- export ac_cv_prog_STRIP="$(type -P true ) faking strip" |
695 |
- |
696 |
- # Keep Gentoo Prefix env contained within the EPREFIX |
697 |
- use prefix && myconf+=( --without-local-dir ) |
698 |
- |
699 |
- if [[ ${CHOST} == *-interix* ]]; then |
700 |
- # avoid finding of this function, to avoid having to patch either |
701 |
- # configure or the source, which would be much more hackish. |
702 |
- # after all vim does it right, only interix is badly broken (again) |
703 |
- export ac_cv_func_sigaction=no |
704 |
- fi |
705 |
- |
706 |
- econf \ |
707 |
- --with-modified-by=Gentoo-${PVR} \ |
708 |
- --with-vim-name=gvim \ |
709 |
- --with-x \ |
710 |
- "${myconf[@]}" |
711 |
-} |
712 |
- |
713 |
-src_compile() { |
714 |
- # The following allows emake to be used |
715 |
- emake -j1 -C src auto/osdef.h objects |
716 |
- |
717 |
- emake |
718 |
-} |
719 |
- |
720 |
-src_test() { |
721 |
- echo |
722 |
- einfo "Starting vim tests. Several error messages will be shown" |
723 |
- einfo "while the tests run. This is normal behaviour and does not" |
724 |
- einfo "indicate a fault." |
725 |
- echo |
726 |
- ewarn "If the tests fail, your terminal may be left in a strange" |
727 |
- ewarn "state. Usually, running 'reset' will fix this." |
728 |
- echo |
729 |
- |
730 |
- # Don't let vim talk to X |
731 |
- unset DISPLAY |
732 |
- |
733 |
- # We've got to call make test from within testdir, since the Makefiles |
734 |
- # don't pass through our VIMPROG argument |
735 |
- cd "${S}"/src/testdir |
736 |
- |
737 |
- # Test 49 won't work inside a portage environment |
738 |
- einfo "Test 49 isn't sandbox-friendly, so it will be skipped." |
739 |
- sed -i 's~test49.out~~g' Makefile |
740 |
- |
741 |
- # We don't want to rebuild vim before running the tests |
742 |
- sed -i 's,: \$(VIMPROG),: ,' Makefile |
743 |
- |
744 |
- # Make gvim not try to connect to X. See :help gui-x11-start |
745 |
- # in vim for how this evil trickery works. |
746 |
- ln -s "${S}"/src/gvim "${S}"/src/testvim |
747 |
- |
748 |
- # Don't try to do the additional GUI test |
749 |
- emake -j1 VIMPROG=../testvim nongui |
750 |
-} |
751 |
- |
752 |
-# Make convenience symlinks, hopefully without stepping on toes. Some |
753 |
-# of these links are "owned" by the vim ebuild when it is installed, |
754 |
-# but they might be good for gvim as well (see bug 45828) |
755 |
-update_vim_symlinks() { |
756 |
- local f syms |
757 |
- syms="vimdiff rvim rview" |
758 |
- einfo "Calling eselect vi update..." |
759 |
- # Call this with --if-unset to respect user's choice (bug 187449) |
760 |
- eselect vi update --if-unset |
761 |
- |
762 |
- # Make or remove convenience symlink, vim -> gvim |
763 |
- if [[ -f "${EROOT}"/usr/bin/gvim ]]; then |
764 |
- ln -s gvim "${EROOT}"/usr/bin/vim 2>/dev/null |
765 |
- elif [[ -L "${EROOT}"/usr/bin/vim && ! -f "${EROOT}"/usr/bin/vim ]]; then |
766 |
- rm "${EROOT}"/usr/bin/vim |
767 |
- fi |
768 |
- |
769 |
- # Make or remove convenience symlinks to vim |
770 |
- if [[ -f "${EROOT}"/usr/bin/vim ]]; then |
771 |
- for f in ${syms}; do |
772 |
- ln -s vim "${EROOT}"/usr/bin/${f} 2>/dev/null |
773 |
- done |
774 |
- else |
775 |
- for f in ${syms}; do |
776 |
- if [[ -L "${EROOT}"/usr/bin/${f} && ! -f "${EROOT}"/usr/bin/${f} ]]; then |
777 |
- rm -f "${EROOT}"/usr/bin/${f} |
778 |
- fi |
779 |
- done |
780 |
- fi |
781 |
- |
782 |
- # This will still break if you merge then remove the vi package, |
783 |
- # but there's only so much you can do, eh? Unfortunately we don't |
784 |
- # have triggers like are done in rpm-land. |
785 |
-} |
786 |
- |
787 |
-src_install() { |
788 |
- local vimfiles=/usr/share/vim/vim${VIM_VERSION/.} |
789 |
- |
790 |
- dobin src/gvim |
791 |
- dosym gvim /usr/bin/gvimdiff |
792 |
- dosym gvim /usr/bin/evim |
793 |
- dosym gvim /usr/bin/eview |
794 |
- dosym gvim /usr/bin/gview |
795 |
- dosym gvim /usr/bin/rgvim |
796 |
- dosym gvim /usr/bin/rgview |
797 |
- |
798 |
- dodir /usr/share/man/man1 |
799 |
- echo ".so vim.1" > "${ED}"/usr/share/man/man1/gvim.1 |
800 |
- echo ".so vim.1" > "${ED}"/usr/share/man/man1/gview.1 |
801 |
- echo ".so vimdiff.1" > "${ED}"/usr/share/man/man1/gvimdiff.1 |
802 |
- |
803 |
- insinto /etc/vim |
804 |
- newins "${FILESDIR}"/gvimrc-r1 gvimrc |
805 |
- eprefixify "${ED}"/etc/vim/gvimrc |
806 |
- |
807 |
- newmenu "${FILESDIR}"/gvim.desktop-r2 gvim.desktop |
808 |
- doicon "${FILESDIR}"/gvim.xpm |
809 |
- doicon -s scalable "${FILESDIR}"/gvim.svg |
810 |
- |
811 |
- # bash completion script, bug #79018. |
812 |
- newbashcomp "${FILESDIR}"/${PN}-completion ${PN} |
813 |
- |
814 |
- # We shouldn't be installing the ex or view man page symlinks, as they |
815 |
- # are managed by eselect-vi |
816 |
- rm -f "${ED}"/usr/share/man/man1/{ex,view}.1 |
817 |
-} |
818 |
- |
819 |
-pkg_postinst() { |
820 |
- # Update documentation tags (from vim-doc.eclass) |
821 |
- update_vim_helptags |
822 |
- |
823 |
- # Update fdo mime stuff, bug #78394 |
824 |
- fdo-mime_mime_database_update |
825 |
- |
826 |
- if [[ -z ${REPLACING_VERSIONS} ]] ; then |
827 |
- echo |
828 |
- elog "Vim 7 includes an integrated spell checker. You need to install" |
829 |
- elog "word list files before you can use it. There are ebuilds for" |
830 |
- elog "some of these named app-vim/vim-spell-*. If your language of" |
831 |
- elog "choice is not included, please consult vim-spell.eclass for" |
832 |
- elog "instructions on how to make a package." |
833 |
- echo |
834 |
- ewarn "Note that the English word lists are no longer installed by" |
835 |
- ewarn "default." |
836 |
- echo |
837 |
- fi |
838 |
- |
839 |
- # Make convenience symlinks |
840 |
- update_vim_symlinks |
841 |
-} |
842 |
- |
843 |
-pkg_postrm() { |
844 |
- # Update documentation tags (from vim-doc.eclass) |
845 |
- update_vim_helptags |
846 |
- |
847 |
- # Update fdo mime stuff, bug #78394 |
848 |
- fdo-mime_mime_database_update |
849 |
- |
850 |
- # Make convenience symlinks |
851 |
- update_vim_symlinks |
852 |
-} |
853 |
|
854 |
diff --git a/app-editors/gvim/gvim-8.0.0005.ebuild b/app-editors/gvim/gvim-8.0.0005.ebuild |
855 |
deleted file mode 100644 |
856 |
index 8dd474d..00000000 |
857 |
--- a/app-editors/gvim/gvim-8.0.0005.ebuild |
858 |
+++ /dev/null |
859 |
@@ -1,408 +0,0 @@ |
860 |
-# Copyright 1999-2016 Gentoo Foundation |
861 |
-# Distributed under the terms of the GNU General Public License v2 |
862 |
-# $Id$ |
863 |
- |
864 |
-EAPI=6 |
865 |
-VIM_VERSION="8.0" |
866 |
-PYTHON_COMPAT=( python{2_7,3_4,3_5} ) |
867 |
-PYTHON_REQ_USE=threads |
868 |
-inherit eutils vim-doc flag-o-matic fdo-mime gnome2-utils versionator bash-completion-r1 prefix python-r1 |
869 |
- |
870 |
-if [[ ${PV} == 9999* ]] ; then |
871 |
- inherit git-r3 |
872 |
- EGIT_REPO_URI="https://github.com/vim/vim.git" |
873 |
- EGIT_CHECKOUT_DIR=${WORKDIR}/vim-${PV} |
874 |
-else |
875 |
- SRC_URI="https://github.com/vim/vim/archive/v${PV}.tar.gz -> vim-${PV}.tar.gz |
876 |
- https://dev.gentoo.org/~radhermit/vim/vim-7.4.2102-gentoo-patches.tar.bz2" |
877 |
- KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~ppc ~ppc64 ~sparc ~x86 ~x86-fbsd ~x86-interix ~amd64-linux ~x86-linux ~ppc-macos ~x86-macos ~x86-solaris" |
878 |
-fi |
879 |
- |
880 |
-DESCRIPTION="GUI version of the Vim text editor" |
881 |
-HOMEPAGE="http://www.vim.org/ https://github.com/vim/vim" |
882 |
- |
883 |
-SLOT="0" |
884 |
-LICENSE="vim" |
885 |
-IUSE="acl aqua cscope debug gnome gtk gtk3 lua luajit motif neXt netbeans nls perl python racket ruby selinux session tcl" |
886 |
-REQUIRED_USE=" |
887 |
- luajit? ( lua ) |
888 |
- python? ( |
889 |
- || ( $(python_gen_useflags '*') ) |
890 |
- ?? ( $(python_gen_useflags 'python2*') ) |
891 |
- ?? ( $(python_gen_useflags 'python3*') ) |
892 |
- ) |
893 |
-" |
894 |
- |
895 |
-RDEPEND=" |
896 |
- ~app-editors/vim-core-${PV} |
897 |
- >=app-eselect/eselect-vi-1.1 |
898 |
- >=sys-libs/ncurses-5.2-r2:0= |
899 |
- x11-libs/libICE |
900 |
- x11-libs/libSM |
901 |
- x11-libs/libXext |
902 |
- x11-libs/libXt |
903 |
- acl? ( kernel_linux? ( sys-apps/acl ) ) |
904 |
- !aqua? ( |
905 |
- gtk3? ( |
906 |
- x11-libs/gtk+:3 |
907 |
- x11-libs/libXft |
908 |
- ) |
909 |
- !gtk3? ( |
910 |
- gtk? ( |
911 |
- >=x11-libs/gtk+-2.6:2 |
912 |
- x11-libs/libXft |
913 |
- gnome? ( >=gnome-base/libgnomeui-2.6 ) |
914 |
- ) |
915 |
- !gtk? ( |
916 |
- motif? ( >=x11-libs/motif-2.3:0 ) |
917 |
- !motif? ( |
918 |
- neXt? ( x11-libs/neXtaw ) |
919 |
- !neXt? ( x11-libs/libXaw ) |
920 |
- ) |
921 |
- ) |
922 |
- ) |
923 |
- ) |
924 |
- cscope? ( dev-util/cscope ) |
925 |
- lua? ( |
926 |
- luajit? ( dev-lang/luajit:2= ) |
927 |
- !luajit? ( dev-lang/lua:0[deprecated] ) |
928 |
- ) |
929 |
- nls? ( virtual/libintl ) |
930 |
- perl? ( dev-lang/perl:= ) |
931 |
- python? ( ${PYTHON_DEPS} ) |
932 |
- racket? ( dev-scheme/racket ) |
933 |
- ruby? ( || ( dev-lang/ruby:2.3 dev-lang/ruby:2.2 dev-lang/ruby:2.1 dev-lang/ruby:2.0 ) ) |
934 |
- selinux? ( sys-libs/libselinux ) |
935 |
- session? ( x11-libs/libSM ) |
936 |
- tcl? ( dev-lang/tcl:0= ) |
937 |
-" |
938 |
-DEPEND="${RDEPEND} |
939 |
- dev-util/ctags |
940 |
- sys-devel/autoconf |
941 |
- virtual/pkgconfig |
942 |
- nls? ( sys-devel/gettext ) |
943 |
-" |
944 |
- |
945 |
-S=${WORKDIR}/vim-${PV} |
946 |
- |
947 |
-pkg_setup() { |
948 |
- # people with broken alphabets run into trouble. bug 82186. |
949 |
- unset LANG LC_ALL |
950 |
- export LC_COLLATE="C" |
951 |
- |
952 |
- # Gnome sandbox silliness. bug #114475. |
953 |
- mkdir -p "${T}"/home |
954 |
- export HOME="${T}"/home |
955 |
-} |
956 |
- |
957 |
-src_prepare() { |
958 |
- if [[ ${PV} != 9999* ]] ; then |
959 |
- # Gentoo patches to fix runtime issues, cross-compile errors, etc |
960 |
- eapply "${WORKDIR}"/patches/ |
961 |
- fi |
962 |
- |
963 |
- # Fixup a script to use awk instead of nawk |
964 |
- sed -i '1s|.*|#!'"${EPREFIX}"'/usr/bin/awk -f|' "${S}"/runtime/tools/mve.awk \ |
965 |
- || die "mve.awk sed failed" |
966 |
- |
967 |
- # Read vimrc and gvimrc from /etc/vim |
968 |
- echo '#define SYS_VIMRC_FILE "'${EPREFIX}'/etc/vim/vimrc"' >> "${S}"/src/feature.h |
969 |
- echo '#define SYS_GVIMRC_FILE "'${EPREFIX}'/etc/vim/gvimrc"' >> "${S}"/src/feature.h |
970 |
- |
971 |
- # Use exuberant ctags which installs as /usr/bin/exuberant-ctags. |
972 |
- # Hopefully this pattern won't break for a while at least. |
973 |
- # This fixes bug 29398 (27 Sep 2003 agriffis) |
974 |
- sed -i 's/\<ctags\("\| [-*.]\)/exuberant-&/g' \ |
975 |
- "${S}"/runtime/doc/syntax.txt \ |
976 |
- "${S}"/runtime/doc/tagsrch.txt \ |
977 |
- "${S}"/runtime/doc/usr_29.txt \ |
978 |
- "${S}"/runtime/menu.vim \ |
979 |
- "${S}"/src/configure.in || die 'sed failed' |
980 |
- |
981 |
- # Don't be fooled by /usr/include/libc.h. When found, vim thinks |
982 |
- # this is NeXT, but it's actually just a file in dev-libs/9libs |
983 |
- # This fixes bug 43885 (20 Mar 2004 agriffis) |
984 |
- sed -i 's/ libc\.h / /' "${S}"/src/configure.in || die 'sed failed' |
985 |
- |
986 |
- # gcc on sparc32 has this, uhm, interesting problem with detecting EOF |
987 |
- # correctly. To avoid some really entertaining error messages about stuff |
988 |
- # which isn't even in the source file being invalid, we'll do some trickery |
989 |
- # to make the error never occur. bug 66162 (02 October 2004 ciaranm) |
990 |
- find "${S}" -name '*.c' | while read c ; do echo >> "$c" ; done |
991 |
- |
992 |
- # Try to avoid sandbox problems. Bug #114475. |
993 |
- if [[ -d "${S}"/src/po ]] ; then |
994 |
- sed -i '/-S check.vim/s,..VIM.,ln -s $(VIM) testvim \; ./testvim -X,' \ |
995 |
- "${S}"/src/po/Makefile |
996 |
- fi |
997 |
- |
998 |
- if version_is_at_least 7.3.122 ; then |
999 |
- cp "${S}"/src/config.mk.dist "${S}"/src/auto/config.mk |
1000 |
- fi |
1001 |
- |
1002 |
- # Bug #378107 - Build properly with >=perl-core/ExtUtils-ParseXS-3.20.0 |
1003 |
- if version_is_at_least 7.3 ; then |
1004 |
- sed -i "s:\\\$(PERLLIB)/ExtUtils/xsubpp:${EPREFIX}/usr/bin/xsubpp:" \ |
1005 |
- "${S}"/src/Makefile || die 'sed for ExtUtils-ParseXS failed' |
1006 |
- fi |
1007 |
- |
1008 |
- eapply_user |
1009 |
-} |
1010 |
- |
1011 |
-src_configure() { |
1012 |
- local myconf=() |
1013 |
- |
1014 |
- # Fix bug 37354: Disallow -funroll-all-loops on amd64 |
1015 |
- # Bug 57859 suggests that we want to do this for all archs |
1016 |
- filter-flags -funroll-all-loops |
1017 |
- |
1018 |
- # Fix bug 76331: -O3 causes problems, use -O2 instead. We'll do this for |
1019 |
- # everyone since previous flag filtering bugs have turned out to affect |
1020 |
- # multiple archs... |
1021 |
- replace-flags -O3 -O2 |
1022 |
- |
1023 |
- # Fix bug 18245: Prevent "make" from the following chain: |
1024 |
- # (1) Notice configure.in is newer than auto/configure |
1025 |
- # (2) Rebuild auto/configure |
1026 |
- # (3) Notice auto/configure is newer than auto/config.mk |
1027 |
- # (4) Run ./configure (with wrong args) to remake auto/config.mk |
1028 |
- sed -i 's# auto/config\.mk:#:#' src/Makefile || die "Makefile sed failed" |
1029 |
- rm -f src/auto/configure |
1030 |
- emake -j1 -C src autoconf |
1031 |
- |
1032 |
- # This should fix a sandbox violation (see bug 24447). The hvc |
1033 |
- # things are for ppc64, see bug 86433. |
1034 |
- for file in /dev/pty/s* /dev/console /dev/hvc/* /dev/hvc* ; do |
1035 |
- [[ -e ${file} ]] && addwrite $file |
1036 |
- done |
1037 |
- |
1038 |
- use debug && append-flags "-DDEBUG" |
1039 |
- |
1040 |
- myconf=( |
1041 |
- --with-features=huge |
1042 |
- --disable-gpm |
1043 |
- --enable-multibyte |
1044 |
- $(use_enable acl) |
1045 |
- $(use_enable cscope) |
1046 |
- $(use_enable lua luainterp) |
1047 |
- $(use_with luajit) |
1048 |
- $(use_enable netbeans) |
1049 |
- $(use_enable nls) |
1050 |
- $(use_enable perl perlinterp) |
1051 |
- $(use_enable racket mzschemeinterp) |
1052 |
- $(use_enable ruby rubyinterp) |
1053 |
- $(use_enable selinux) |
1054 |
- $(use_enable session xsmp) |
1055 |
- $(use_enable tcl tclinterp) |
1056 |
- ) |
1057 |
- |
1058 |
- if use python ; then |
1059 |
- py_add_interp() { |
1060 |
- local v |
1061 |
- |
1062 |
- [[ ${EPYTHON} == python3* ]] && v=3 |
1063 |
- myconf+=( |
1064 |
- --enable-python${v}interp |
1065 |
- vi_cv_path_python${v}="${PYTHON}" |
1066 |
- ) |
1067 |
- } |
1068 |
- |
1069 |
- python_foreach_impl py_add_interp |
1070 |
- else |
1071 |
- myconf+=( |
1072 |
- --disable-pythoninterp |
1073 |
- --disable-python3interp |
1074 |
- ) |
1075 |
- fi |
1076 |
- |
1077 |
- # --with-features=huge forces on cscope even if we --disable it. We need |
1078 |
- # to sed this out to avoid screwiness. (1 Sep 2004 ciaranm) |
1079 |
- if ! use cscope ; then |
1080 |
- sed -i '/# define FEAT_CSCOPE/d' src/feature.h || \ |
1081 |
- die "couldn't disable cscope" |
1082 |
- fi |
1083 |
- |
1084 |
- # gvim's GUI preference order is as follows: |
1085 |
- # aqua CARBON (not tested) |
1086 |
- # -aqua gtk3 GTK3 |
1087 |
- # -aqua -gtk3 gnome GNOME2 |
1088 |
- # -aqua -gtk3 -gnome gtk GTK2 |
1089 |
- # -aqua -gtk -gtk3 motif MOTIF |
1090 |
- # -aqua -gtk -gtk3 -motif neXt NEXTAW |
1091 |
- # -aqua -gtk -gtk3 -motif -neXt ATHENA |
1092 |
- echo ; echo |
1093 |
- if use aqua ; then |
1094 |
- einfo "Building gvim with the Carbon GUI" |
1095 |
- myconf+=( |
1096 |
- --enable-darwin |
1097 |
- --enable-gui=carbon |
1098 |
- ) |
1099 |
- elif use gtk3 ; then |
1100 |
- myconf+=( --enable-gtk3-check ) |
1101 |
- einfo "Building gvim with the gtk+-3 GUI" |
1102 |
- myconf+=( --enable-gui=gtk3 ) |
1103 |
- elif use gtk ; then |
1104 |
- myconf+=( --enable-gtk2-check ) |
1105 |
- if use gnome ; then |
1106 |
- einfo "Building gvim with the Gnome 2 GUI" |
1107 |
- myconf+=( --enable-gui=gnome2 ) |
1108 |
- else |
1109 |
- einfo "Building gvim with the gtk+-2 GUI" |
1110 |
- myconf+=( --enable-gui=gtk2 ) |
1111 |
- fi |
1112 |
- elif use motif ; then |
1113 |
- einfo "Building gvim with the MOTIF GUI" |
1114 |
- myconf+=( --enable-gui=motif ) |
1115 |
- elif use neXt ; then |
1116 |
- einfo "Building gvim with the neXtaw GUI" |
1117 |
- myconf+=( --enable-gui=nextaw ) |
1118 |
- else |
1119 |
- einfo "Building gvim with the Athena GUI" |
1120 |
- myconf+=( --enable-gui=athena ) |
1121 |
- fi |
1122 |
- echo ; echo |
1123 |
- |
1124 |
- # let package manager strip binaries |
1125 |
- export ac_cv_prog_STRIP="$(type -P true ) faking strip" |
1126 |
- |
1127 |
- # keep prefix env contained within the EPREFIX |
1128 |
- use prefix && myconf+=( --without-local-dir ) |
1129 |
- |
1130 |
- if [[ ${CHOST} == *-interix* ]]; then |
1131 |
- # avoid finding of this function, to avoid having to patch either |
1132 |
- # configure or the source, which would be much more hackish. |
1133 |
- # after all vim does it right, only interix is badly broken (again) |
1134 |
- export ac_cv_func_sigaction=no |
1135 |
- fi |
1136 |
- |
1137 |
- econf \ |
1138 |
- --with-modified-by=Gentoo-${PVR} \ |
1139 |
- --with-vim-name=gvim \ |
1140 |
- --with-x \ |
1141 |
- "${myconf[@]}" |
1142 |
-} |
1143 |
- |
1144 |
-src_compile() { |
1145 |
- # The following allows emake to be used |
1146 |
- emake -j1 -C src auto/osdef.h objects |
1147 |
- |
1148 |
- emake |
1149 |
-} |
1150 |
- |
1151 |
-src_test() { |
1152 |
- echo |
1153 |
- einfo "Starting vim tests. Several error messages will be shown" |
1154 |
- einfo "while the tests run. This is normal behaviour and does not" |
1155 |
- einfo "indicate a fault." |
1156 |
- echo |
1157 |
- ewarn "If the tests fail, your terminal may be left in a strange" |
1158 |
- ewarn "state. Usually, running 'reset' will fix this." |
1159 |
- echo |
1160 |
- |
1161 |
- # Don't let vim talk to X |
1162 |
- unset DISPLAY |
1163 |
- |
1164 |
- # Make gvim not try to connect to X. See :help gui-x11-start in vim for how |
1165 |
- # this evil trickery works. |
1166 |
- ln -s "${S}"/src/gvim "${S}"/src/testvim || die |
1167 |
- |
1168 |
- # Make sure our VIMPROG is used. |
1169 |
- sed -i 's:\.\./vim:../testvim:' src/testdir/test49.vim || die |
1170 |
- |
1171 |
- # Don't do additional GUI tests. |
1172 |
- emake -j1 VIMPROG=../testvim -C src/testdir nongui |
1173 |
-} |
1174 |
- |
1175 |
-# Make convenience symlinks, hopefully without stepping on toes. Some |
1176 |
-# of these links are "owned" by the vim ebuild when it is installed, |
1177 |
-# but they might be good for gvim as well (see bug 45828) |
1178 |
-update_vim_symlinks() { |
1179 |
- local f syms |
1180 |
- syms="vimdiff rvim rview" |
1181 |
- einfo "Calling eselect vi update..." |
1182 |
- # Call this with --if-unset to respect user's choice (bug 187449) |
1183 |
- eselect vi update --if-unset |
1184 |
- |
1185 |
- # Make or remove convenience symlink, vim -> gvim |
1186 |
- if [[ -f "${EROOT}"/usr/bin/gvim ]]; then |
1187 |
- ln -s gvim "${EROOT}"/usr/bin/vim 2>/dev/null |
1188 |
- elif [[ -L "${EROOT}"/usr/bin/vim && ! -f "${EROOT}"/usr/bin/vim ]]; then |
1189 |
- rm "${EROOT}"/usr/bin/vim |
1190 |
- fi |
1191 |
- |
1192 |
- # Make or remove convenience symlinks to vim |
1193 |
- if [[ -f "${EROOT}"/usr/bin/vim ]]; then |
1194 |
- for f in ${syms}; do |
1195 |
- ln -s vim "${EROOT}"/usr/bin/${f} 2>/dev/null |
1196 |
- done |
1197 |
- else |
1198 |
- for f in ${syms}; do |
1199 |
- if [[ -L "${EROOT}"/usr/bin/${f} && ! -f "${EROOT}"/usr/bin/${f} ]]; then |
1200 |
- rm -f "${EROOT}"/usr/bin/${f} |
1201 |
- fi |
1202 |
- done |
1203 |
- fi |
1204 |
- |
1205 |
- # This will still break if you merge then remove the vi package, |
1206 |
- # but there's only so much you can do, eh? Unfortunately we don't |
1207 |
- # have triggers like are done in rpm-land. |
1208 |
-} |
1209 |
- |
1210 |
-src_install() { |
1211 |
- local vimfiles=/usr/share/vim/vim${VIM_VERSION/.} |
1212 |
- |
1213 |
- dobin src/gvim |
1214 |
- dosym gvim /usr/bin/gvimdiff |
1215 |
- dosym gvim /usr/bin/evim |
1216 |
- dosym gvim /usr/bin/eview |
1217 |
- dosym gvim /usr/bin/gview |
1218 |
- dosym gvim /usr/bin/rgvim |
1219 |
- dosym gvim /usr/bin/rgview |
1220 |
- |
1221 |
- emake -C src DESTDIR="${D}" DATADIR="${EPREFIX}"/usr/share install-icons |
1222 |
- |
1223 |
- dodir /usr/share/man/man1 |
1224 |
- echo ".so vim.1" > "${ED}"/usr/share/man/man1/gvim.1 |
1225 |
- echo ".so vim.1" > "${ED}"/usr/share/man/man1/gview.1 |
1226 |
- echo ".so vimdiff.1" > "${ED}"/usr/share/man/man1/gvimdiff.1 |
1227 |
- |
1228 |
- insinto /etc/vim |
1229 |
- newins "${FILESDIR}"/gvimrc-r1 gvimrc |
1230 |
- eprefixify "${ED}"/etc/vim/gvimrc |
1231 |
- |
1232 |
- doicon -s scalable "${FILESDIR}"/gvim.svg |
1233 |
- |
1234 |
- # bash completion script, bug #79018. |
1235 |
- newbashcomp "${FILESDIR}"/${PN}-completion ${PN} |
1236 |
- |
1237 |
- # don't install vim desktop file |
1238 |
- rm "${ED}"/usr/share/applications/vim.desktop || die "failed to remove vim.desktop" |
1239 |
-} |
1240 |
- |
1241 |
-pkg_postinst() { |
1242 |
- # Update documentation tags (from vim-doc.eclass) |
1243 |
- update_vim_helptags |
1244 |
- |
1245 |
- # Update fdo mime stuff, bug #78394 |
1246 |
- fdo-mime_desktop_database_update |
1247 |
- |
1248 |
- # Update icon cache |
1249 |
- gnome2_icon_cache_update |
1250 |
- |
1251 |
- # Make convenience symlinks |
1252 |
- update_vim_symlinks |
1253 |
-} |
1254 |
- |
1255 |
-pkg_postrm() { |
1256 |
- # Update documentation tags (from vim-doc.eclass) |
1257 |
- update_vim_helptags |
1258 |
- |
1259 |
- # Update fdo mime stuff, bug #78394 |
1260 |
- fdo-mime_desktop_database_update |
1261 |
- |
1262 |
- # Update icon cache |
1263 |
- gnome2_icon_cache_update |
1264 |
- |
1265 |
- # Make convenience symlinks |
1266 |
- update_vim_symlinks |
1267 |
-} |
1268 |
|
1269 |
diff --git a/app-editors/vim/Manifest b/app-editors/vim/Manifest |
1270 |
index 8c67463..e8b3c1f 100644 |
1271 |
--- a/app-editors/vim/Manifest |
1272 |
+++ b/app-editors/vim/Manifest |
1273 |
@@ -1,7 +1,2 @@ |
1274 |
-DIST vim-7.4.2102-gentoo-patches.tar.bz2 2308 SHA256 1928059fe173b3abf66a96a8205c2e46b5320639d62385aeeae760e99820da67 SHA512 4e678b214fc7b1be89728b8151335ca8af332e8b0c0e25c27287a38ad5ccf14d5dcf82d5dd86af9aa502df4fae986aba98104f150b49a880e34f8283e8e63574 WHIRLPOOL 8a53a8980418f16f8c7883409dea49cfc758fc29dcfaab36f1bd6ae53b32211870a95361c8b63cdfe50795ea11958b113c9909ed6d29de5cb3696efc6ff7888b |
1275 |
-DIST vim-7.4.2102.tar.gz 12838026 SHA256 19c059b2d0e61effcd288e2a18969017cbbc031cf19fe775b3f4b4c42bda2578 SHA512 9cf80b1c9e2dd8713b9ba33c39917a8771c7378ae59c2dc1809bf0cabc4545547ad0a5b9f0b87cef2b34f6d1f72b135d1217495716fc482a70a16e1097bd88a2 WHIRLPOOL 301d41e9bf9a6a220776d6e32ab2918c6a8aaf33862725fba9c738e0c99921e631d8c2fdfd9bc2dc9a214a9124ecfa113081a86addf79b023e8421471843f869 |
1276 |
-DIST vim-7.4.542-gentoo-patches.tar.bz2 3307 SHA256 0eb635f13e199de77846e0d363a473882f2186f138158271fabf0975747a2f3d SHA512 446c66764dac2533cc2f2b3d50481971d4c63a4e81d94c545862a1be620179fdcd81a79f2d81737d1188812a6ad41d90e2a752a05acf6913e7a71464f7cecdd9 WHIRLPOOL cfca8feef0eb8096897ef751afb0427acddd008530ded6cf908fcff51be9713da4ea3e5e613d544c5caba400d664ae19ca70925df3a218bec5c8be6f69aadda2 |
1277 |
-DIST vim-7.4.769.tar.gz 12189043 SHA256 c89568f3dfcefd773bfbb0958c1cf58a0b0ceedb9d0c264250b379a77ad02e9e SHA512 00048c1d579c409767308c991e5de4ed54e9e50db7e97b0d148f0667742d5e46047c702bee693a5caf13a1603548ab783f7fa846574841d807ffbaa97d7f611e WHIRLPOOL 28ada4763250bbed6f9a1768e81a79b75db64f0ef25296c5d4825f21d21d6e88ff24d488e841e6ba492e363da6d3a3e75e9ec2f2881a731e7ed261c7d21ffd3c |
1278 |
-DIST vim-8.0.0005.tar.gz 12909267 SHA256 4ad6b4e8fad6412724a665d974e1be3138a9562a5f4f4aab17debf709c1d3ad3 SHA512 3d62557c6929e554c50f8043658665b907b235f180d8917288fc1434237856df7fa098ecb1823e6edea9e5735564cb55869e535350e52fd8c22423480a49438d WHIRLPOOL a80eec04afb2a797837874ec4b035268a20be7cefa487e44e8e441fb518d46cd7e16a263a6256f49e23e60e737b14dc6a7d93d7c3e579d3da13ccee48536b41b |
1279 |
DIST vim-8.0.0106-gentoo-patches.tar.bz2 2281 SHA256 9823a91b050eb4b001cc50f508d2ad03c7c256ed49183c1af7582318667f48d4 SHA512 39edd9f518c230d2b0486b18aa155572a9eada4a5e21108573d6e66e2eef1276f23b77d766648f018c9cf973a7d03712d8861be6ea13255d7b389912d554a47a WHIRLPOOL d6d01e3944d56762a2a999ee631f89e212360aa030ddd16ea96e32d518ec171e04d8565dcb89e804248d53e4c6e06b19be239ad2316ea88bb57364815b85d26b |
1280 |
DIST vim-8.0.0106.tar.gz 12945768 SHA256 cbace3e7a2db3df73720c4181fa4cdbf7df94310522b1c7a4fd7d6afeaa1e145 SHA512 4e40d9ba8ba694d951be78c653d8fcfebe2b3cc460986ef8e3478f81f2dfd5e4b3c2bc5d22082536b9c275e41beeac343cee0aa1e4de125b71fe95c772e26c20 WHIRLPOOL 569a8f50ebdb7f380f675ed0a4b4aa5e7e226303a8e92db2a8e81f5d8acc0e466620c60c160e2204f3af615b91ca2481eb9716f9c2e6dbdb416050d758a49f09 |
1281 |
|
1282 |
diff --git a/app-editors/vim/vim-7.4.2102.ebuild b/app-editors/vim/vim-7.4.2102.ebuild |
1283 |
deleted file mode 100644 |
1284 |
index 3defc6f..00000000 |
1285 |
--- a/app-editors/vim/vim-7.4.2102.ebuild |
1286 |
+++ /dev/null |
1287 |
@@ -1,349 +0,0 @@ |
1288 |
-# Copyright 1999-2016 Gentoo Foundation |
1289 |
-# Distributed under the terms of the GNU General Public License v2 |
1290 |
-# $Id$ |
1291 |
- |
1292 |
-EAPI=6 |
1293 |
-VIM_VERSION="7.4" |
1294 |
-PYTHON_COMPAT=( python{2_7,3_4,3_5} ) |
1295 |
-PYTHON_REQ_USE=threads |
1296 |
-inherit eutils vim-doc flag-o-matic fdo-mime versionator bash-completion-r1 python-r1 |
1297 |
- |
1298 |
-if [[ ${PV} == 9999* ]] ; then |
1299 |
- inherit git-r3 |
1300 |
- EGIT_REPO_URI="https://github.com/vim/vim.git" |
1301 |
-else |
1302 |
- SRC_URI="https://github.com/vim/vim/archive/v${PV}.tar.gz -> ${P}.tar.gz |
1303 |
- https://dev.gentoo.org/~radhermit/vim/vim-7.4.2102-gentoo-patches.tar.bz2" |
1304 |
- KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~m68k ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86 ~ppc-aix ~amd64-fbsd ~sparc-fbsd ~x86-fbsd ~x64-freebsd ~x86-freebsd ~hppa-hpux ~ia64-hpux ~x86-interix ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos ~m68k-mint ~sparc-solaris ~sparc64-solaris ~x64-solaris ~x86-solaris" |
1305 |
-fi |
1306 |
- |
1307 |
-DESCRIPTION="Vim, an improved vi-style text editor" |
1308 |
-HOMEPAGE="http://www.vim.org/ https://github.com/vim/vim" |
1309 |
- |
1310 |
-SLOT="0" |
1311 |
-LICENSE="vim" |
1312 |
-IUSE="X acl cscope debug gpm lua luajit minimal nls perl python racket ruby selinux tcl vim-pager" |
1313 |
-REQUIRED_USE=" |
1314 |
- luajit? ( lua ) |
1315 |
- python? ( |
1316 |
- || ( $(python_gen_useflags '*') ) |
1317 |
- ?? ( $(python_gen_useflags 'python2*') ) |
1318 |
- ?? ( $(python_gen_useflags 'python3*') ) |
1319 |
- ) |
1320 |
-" |
1321 |
- |
1322 |
-RDEPEND=" |
1323 |
- >=app-eselect/eselect-vi-1.1 |
1324 |
- >=sys-libs/ncurses-5.2-r2:0= |
1325 |
- nls? ( virtual/libintl ) |
1326 |
- acl? ( kernel_linux? ( sys-apps/acl ) ) |
1327 |
- cscope? ( dev-util/cscope ) |
1328 |
- gpm? ( >=sys-libs/gpm-1.19.3 ) |
1329 |
- lua? ( |
1330 |
- luajit? ( dev-lang/luajit:2= ) |
1331 |
- !luajit? ( dev-lang/lua:0[deprecated] ) |
1332 |
- ) |
1333 |
- !minimal? ( |
1334 |
- ~app-editors/vim-core-${PV} |
1335 |
- dev-util/ctags |
1336 |
- ) |
1337 |
- perl? ( dev-lang/perl:= ) |
1338 |
- python? ( ${PYTHON_DEPS} ) |
1339 |
- racket? ( dev-scheme/racket ) |
1340 |
- ruby? ( || ( dev-lang/ruby:2.3 dev-lang/ruby:2.2 dev-lang/ruby:2.1 dev-lang/ruby:2.0 ) ) |
1341 |
- selinux? ( sys-libs/libselinux ) |
1342 |
- tcl? ( dev-lang/tcl:0= ) |
1343 |
- X? ( x11-libs/libXt ) |
1344 |
-" |
1345 |
-DEPEND="${RDEPEND} |
1346 |
- sys-devel/autoconf |
1347 |
- nls? ( sys-devel/gettext ) |
1348 |
-" |
1349 |
- |
1350 |
-pkg_setup() { |
1351 |
- # people with broken alphabets run into trouble. bug 82186. |
1352 |
- unset LANG LC_ALL |
1353 |
- export LC_COLLATE="C" |
1354 |
- |
1355 |
- # Gnome sandbox silliness. bug #114475. |
1356 |
- mkdir -p "${T}"/home |
1357 |
- export HOME="${T}"/home |
1358 |
-} |
1359 |
- |
1360 |
-src_prepare() { |
1361 |
- if [[ ${PV} != 9999* ]] ; then |
1362 |
- # Gentoo patches to fix runtime issues, cross-compile errors, etc |
1363 |
- eapply "${WORKDIR}"/patches/ |
1364 |
- fi |
1365 |
- |
1366 |
- # Fixup a script to use awk instead of nawk |
1367 |
- sed -i '1s|.*|#!'"${EPREFIX}"'/usr/bin/awk -f|' "${S}"/runtime/tools/mve.awk \ |
1368 |
- || die "mve.awk sed failed" |
1369 |
- |
1370 |
- # Read vimrc and gvimrc from /etc/vim |
1371 |
- echo '#define SYS_VIMRC_FILE "'${EPREFIX}'/etc/vim/vimrc"' >> "${S}"/src/feature.h |
1372 |
- echo '#define SYS_GVIMRC_FILE "'${EPREFIX}'/etc/vim/gvimrc"' >> "${S}"/src/feature.h |
1373 |
- |
1374 |
- # Use exuberant ctags which installs as /usr/bin/exuberant-ctags. |
1375 |
- # Hopefully this pattern won't break for a while at least. |
1376 |
- # This fixes bug 29398 (27 Sep 2003 agriffis) |
1377 |
- sed -i 's/\<ctags\("\| [-*.]\)/exuberant-&/g' \ |
1378 |
- "${S}"/runtime/doc/syntax.txt \ |
1379 |
- "${S}"/runtime/doc/tagsrch.txt \ |
1380 |
- "${S}"/runtime/doc/usr_29.txt \ |
1381 |
- "${S}"/runtime/menu.vim \ |
1382 |
- "${S}"/src/configure.in || die 'sed failed' |
1383 |
- |
1384 |
- # Don't be fooled by /usr/include/libc.h. When found, vim thinks |
1385 |
- # this is NeXT, but it's actually just a file in dev-libs/9libs |
1386 |
- # This fixes bug 43885 (20 Mar 2004 agriffis) |
1387 |
- sed -i 's/ libc\.h / /' "${S}"/src/configure.in || die 'sed failed' |
1388 |
- |
1389 |
- # gcc on sparc32 has this, uhm, interesting problem with detecting EOF |
1390 |
- # correctly. To avoid some really entertaining error messages about stuff |
1391 |
- # which isn't even in the source file being invalid, we'll do some trickery |
1392 |
- # to make the error never occur. bug 66162 (02 October 2004 ciaranm) |
1393 |
- find "${S}" -name '*.c' | while read c ; do echo >> "$c" ; done |
1394 |
- |
1395 |
- # conditionally make the manpager.sh script |
1396 |
- if use vim-pager ; then |
1397 |
- cat <<-END > "${S}"/runtime/macros/manpager.sh |
1398 |
- #!/bin/sh |
1399 |
- sed -e 's/\x1B\[[[:digit:]]\+m//g' | col -b | \\ |
1400 |
- vim \\ |
1401 |
- -c 'let no_plugin_maps = 1' \\ |
1402 |
- -c 'set nolist nomod ft=man ts=8' \\ |
1403 |
- -c 'let g:showmarks_enable=0' \\ |
1404 |
- -c 'runtime! macros/less.vim' - |
1405 |
- END |
1406 |
- fi |
1407 |
- |
1408 |
- # Try to avoid sandbox problems. Bug #114475. |
1409 |
- if [[ -d "${S}"/src/po ]] ; then |
1410 |
- sed -i '/-S check.vim/s,..VIM.,ln -s $(VIM) testvim \; ./testvim -X,' \ |
1411 |
- "${S}"/src/po/Makefile |
1412 |
- fi |
1413 |
- |
1414 |
- if version_is_at_least 7.3.122 ; then |
1415 |
- cp "${S}"/src/config.mk.dist "${S}"/src/auto/config.mk |
1416 |
- fi |
1417 |
- |
1418 |
- # Bug #378107 - Build properly with >=perl-core/ExtUtils-ParseXS-3.20.0 |
1419 |
- if version_is_at_least 7.3 ; then |
1420 |
- sed -i "s:\\\$(PERLLIB)/ExtUtils/xsubpp:${EPREFIX}/usr/bin/xsubpp:" \ |
1421 |
- "${S}"/src/Makefile || die 'sed for ExtUtils-ParseXS failed' |
1422 |
- fi |
1423 |
- |
1424 |
- default |
1425 |
-} |
1426 |
- |
1427 |
-src_configure() { |
1428 |
- local myconf=() |
1429 |
- |
1430 |
- # Fix bug 37354: Disallow -funroll-all-loops on amd64 |
1431 |
- # Bug 57859 suggests that we want to do this for all archs |
1432 |
- filter-flags -funroll-all-loops |
1433 |
- |
1434 |
- # Fix bug 76331: -O3 causes problems, use -O2 instead. We'll do this for |
1435 |
- # everyone since previous flag filtering bugs have turned out to affect |
1436 |
- # multiple archs... |
1437 |
- replace-flags -O3 -O2 |
1438 |
- |
1439 |
- # Fix bug 18245: Prevent "make" from the following chain: |
1440 |
- # (1) Notice configure.in is newer than auto/configure |
1441 |
- # (2) Rebuild auto/configure |
1442 |
- # (3) Notice auto/configure is newer than auto/config.mk |
1443 |
- # (4) Run ./configure (with wrong args) to remake auto/config.mk |
1444 |
- sed -i 's# auto/config\.mk:#:#' src/Makefile || die "Makefile sed failed" |
1445 |
- rm -f src/auto/configure |
1446 |
- emake -j1 -C src autoconf |
1447 |
- |
1448 |
- # This should fix a sandbox violation (see bug 24447). The hvc |
1449 |
- # things are for ppc64, see bug 86433. |
1450 |
- for file in /dev/pty/s* /dev/console /dev/hvc/* /dev/hvc* ; do |
1451 |
- [[ -e ${file} ]] && addwrite $file |
1452 |
- done |
1453 |
- |
1454 |
- if use minimal ; then |
1455 |
- myconf=( |
1456 |
- --with-features=tiny |
1457 |
- --disable-nls |
1458 |
- --disable-multibyte |
1459 |
- --disable-acl |
1460 |
- --enable-gui=no |
1461 |
- --without-x |
1462 |
- --disable-darwin |
1463 |
- --disable-luainterp |
1464 |
- --disable-perlinterp |
1465 |
- --disable-pythoninterp |
1466 |
- --disable-mzschemeinterp |
1467 |
- --disable-rubyinterp |
1468 |
- --disable-selinux |
1469 |
- --disable-tclinterp |
1470 |
- --disable-gpm |
1471 |
- ) |
1472 |
- else |
1473 |
- use debug && append-flags "-DDEBUG" |
1474 |
- |
1475 |
- myconf=( |
1476 |
- --with-features=huge |
1477 |
- --enable-multibyte |
1478 |
- $(use_enable acl) |
1479 |
- $(use_enable cscope) |
1480 |
- $(use_enable gpm) |
1481 |
- $(use_enable lua luainterp) |
1482 |
- $(usex lua "--with-lua-prefix=${EPREFIX}/usr" "") |
1483 |
- $(use_with luajit) |
1484 |
- $(use_enable nls) |
1485 |
- $(use_enable perl perlinterp) |
1486 |
- $(use_enable racket mzschemeinterp) |
1487 |
- $(use_enable ruby rubyinterp) |
1488 |
- $(use_enable selinux) |
1489 |
- $(use_enable tcl tclinterp) |
1490 |
- ) |
1491 |
- |
1492 |
- if use python ; then |
1493 |
- py_add_interp() { |
1494 |
- local v |
1495 |
- |
1496 |
- [[ ${EPYTHON} == python3* ]] && v=3 |
1497 |
- myconf+=( |
1498 |
- --enable-python${v}interp |
1499 |
- vi_cv_path_python${v}="${PYTHON}" |
1500 |
- ) |
1501 |
- } |
1502 |
- |
1503 |
- python_foreach_impl py_add_interp |
1504 |
- else |
1505 |
- myconf+=( |
1506 |
- --disable-pythoninterp |
1507 |
- --disable-python3interp |
1508 |
- ) |
1509 |
- fi |
1510 |
- |
1511 |
- # --with-features=huge forces on cscope even if we --disable it. We need |
1512 |
- # to sed this out to avoid screwiness. (1 Sep 2004 ciaranm) |
1513 |
- if ! use cscope ; then |
1514 |
- sed -i '/# define FEAT_CSCOPE/d' src/feature.h || \ |
1515 |
- die "couldn't disable cscope" |
1516 |
- fi |
1517 |
- |
1518 |
- # don't test USE=X here ... see bug #19115 |
1519 |
- # but need to provide a way to link against X ... see bug #20093 |
1520 |
- myconf+=( |
1521 |
- --enable-gui=no |
1522 |
- --disable-darwin |
1523 |
- $(use_with X x) |
1524 |
- ) |
1525 |
- fi |
1526 |
- |
1527 |
- # Let Portage do the stripping. Some people like that. |
1528 |
- export ac_cv_prog_STRIP="$(type -P true ) faking strip" |
1529 |
- |
1530 |
- # Keep Gentoo Prefix env contained within the EPREFIX |
1531 |
- use prefix && myconf+=( --without-local-dir ) |
1532 |
- |
1533 |
- econf \ |
1534 |
- --with-modified-by=Gentoo-${PVR} \ |
1535 |
- "${myconf[@]}" |
1536 |
-} |
1537 |
- |
1538 |
-src_compile() { |
1539 |
- # The following allows emake to be used |
1540 |
- emake -j1 -C src auto/osdef.h objects |
1541 |
- |
1542 |
- emake |
1543 |
-} |
1544 |
- |
1545 |
-src_test() { |
1546 |
- echo |
1547 |
- einfo "Starting vim tests. Several error messages will be shown" |
1548 |
- einfo "while the tests run. This is normal behaviour and does not" |
1549 |
- einfo "indicate a fault." |
1550 |
- echo |
1551 |
- ewarn "If the tests fail, your terminal may be left in a strange" |
1552 |
- ewarn "state. Usually, running 'reset' will fix this." |
1553 |
- echo |
1554 |
- |
1555 |
- # Don't let vim talk to X |
1556 |
- unset DISPLAY |
1557 |
- |
1558 |
- emake -j1 -C src/testdir nongui |
1559 |
-} |
1560 |
- |
1561 |
-# Make convenience symlinks, hopefully without stepping on toes. Some |
1562 |
-# of these links are "owned" by the vim ebuild when it is installed, |
1563 |
-# but they might be good for gvim as well (see bug 45828) |
1564 |
-update_vim_symlinks() { |
1565 |
- local f syms |
1566 |
- syms="vimdiff rvim rview" |
1567 |
- einfo "Calling eselect vi update..." |
1568 |
- # Call this with --if-unset to respect user's choice (bug 187449) |
1569 |
- eselect vi update --if-unset |
1570 |
- |
1571 |
- # Make or remove convenience symlink, vim -> gvim |
1572 |
- if [[ -f "${EROOT}"/usr/bin/gvim ]]; then |
1573 |
- ln -s gvim "${EROOT}"/usr/bin/vim 2>/dev/null |
1574 |
- elif [[ -L "${EROOT}"/usr/bin/vim && ! -f "${EROOT}"/usr/bin/vim ]]; then |
1575 |
- rm "${EROOT}"/usr/bin/vim |
1576 |
- fi |
1577 |
- |
1578 |
- # Make or remove convenience symlinks to vim |
1579 |
- if [[ -f "${EROOT}"/usr/bin/vim ]]; then |
1580 |
- for f in ${syms}; do |
1581 |
- ln -s vim "${EROOT}"/usr/bin/${f} 2>/dev/null |
1582 |
- done |
1583 |
- else |
1584 |
- for f in ${syms}; do |
1585 |
- if [[ -L "${EROOT}"/usr/bin/${f} && ! -f "${EROOT}"/usr/bin/${f} ]]; then |
1586 |
- rm -f "${EROOT}"/usr/bin/${f} |
1587 |
- fi |
1588 |
- done |
1589 |
- fi |
1590 |
- |
1591 |
- # This will still break if you merge then remove the vi package, |
1592 |
- # but there's only so much you can do, eh? Unfortunately we don't |
1593 |
- # have triggers like are done in rpm-land. |
1594 |
-} |
1595 |
- |
1596 |
-src_install() { |
1597 |
- local vimfiles=/usr/share/vim/vim${VIM_VERSION/.} |
1598 |
- |
1599 |
- # Note: Do not install symlinks for 'vi', 'ex', or 'view', as these are |
1600 |
- # managed by eselect-vi |
1601 |
- dobin src/vim |
1602 |
- dosym vim /usr/bin/vimdiff |
1603 |
- dosym vim /usr/bin/rvim |
1604 |
- dosym vim /usr/bin/rview |
1605 |
- if use vim-pager ; then |
1606 |
- dosym ${vimfiles}/macros/less.sh /usr/bin/vimpager |
1607 |
- dosym ${vimfiles}/macros/manpager.sh /usr/bin/vimmanpager |
1608 |
- insinto ${vimfiles}/macros |
1609 |
- doins runtime/macros/manpager.sh |
1610 |
- fperms a+x ${vimfiles}/macros/manpager.sh |
1611 |
- fi |
1612 |
- |
1613 |
- newbashcomp "${FILESDIR}"/${PN}-completion ${PN} |
1614 |
- # keep in sync with 'complete ... -F' list |
1615 |
- bashcomp_alias vim ex vi view rvim rview vimdiff |
1616 |
- |
1617 |
- # We shouldn't be installing the ex or view man page symlinks, as they |
1618 |
- # are managed by eselect-vi |
1619 |
- rm -f "${ED}"/usr/share/man/man1/{ex,view}.1 |
1620 |
-} |
1621 |
- |
1622 |
-pkg_postinst() { |
1623 |
- # Update documentation tags (from vim-doc.eclass) |
1624 |
- update_vim_helptags |
1625 |
- |
1626 |
- # Make convenience symlinks |
1627 |
- update_vim_symlinks |
1628 |
-} |
1629 |
- |
1630 |
-pkg_postrm() { |
1631 |
- # Update documentation tags (from vim-doc.eclass) |
1632 |
- update_vim_helptags |
1633 |
- |
1634 |
- # Make convenience symlinks |
1635 |
- update_vim_symlinks |
1636 |
-} |
1637 |
|
1638 |
diff --git a/app-editors/vim/vim-7.4.769.ebuild b/app-editors/vim/vim-7.4.769.ebuild |
1639 |
deleted file mode 100644 |
1640 |
index 829553f..00000000 |
1641 |
--- a/app-editors/vim/vim-7.4.769.ebuild |
1642 |
+++ /dev/null |
1643 |
@@ -1,384 +0,0 @@ |
1644 |
-# Copyright 1999-2016 Gentoo Foundation |
1645 |
-# Distributed under the terms of the GNU General Public License v2 |
1646 |
-# $Id$ |
1647 |
- |
1648 |
-EAPI=5 |
1649 |
-VIM_VERSION="7.4" |
1650 |
-PYTHON_COMPAT=( python{2_7,3_4} ) |
1651 |
-PYTHON_REQ_USE=threads |
1652 |
-inherit eutils vim-doc flag-o-matic fdo-mime versionator bash-completion-r1 python-r1 |
1653 |
- |
1654 |
-if [[ ${PV} == 9999* ]] ; then |
1655 |
- inherit git-r3 |
1656 |
- EGIT_REPO_URI="https://github.com/vim/vim.git" |
1657 |
-else |
1658 |
- SRC_URI="https://github.com/vim/vim/archive/v${PV}.tar.gz -> ${P}.tar.gz |
1659 |
- https://dev.gentoo.org/~radhermit/vim/vim-7.4.542-gentoo-patches.tar.bz2" |
1660 |
- KEYWORDS="alpha amd64 arm arm64 hppa ia64 m68k ~mips ppc ppc64 s390 sh sparc x86 ~ppc-aix ~amd64-fbsd ~sparc-fbsd ~x86-fbsd ~x64-freebsd ~x86-freebsd ~hppa-hpux ~ia64-hpux ~x86-interix ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos ~m68k-mint ~sparc-solaris ~sparc64-solaris ~x64-solaris ~x86-solaris" |
1661 |
-fi |
1662 |
- |
1663 |
-DESCRIPTION="Vim, an improved vi-style text editor" |
1664 |
-HOMEPAGE="http://www.vim.org/" |
1665 |
- |
1666 |
-SLOT="0" |
1667 |
-LICENSE="vim" |
1668 |
-IUSE="X acl cscope debug gpm lua luajit minimal nls perl python racket ruby selinux tcl vim-pager" |
1669 |
-REQUIRED_USE=" |
1670 |
- luajit? ( lua ) |
1671 |
- python? ( |
1672 |
- || ( $(python_gen_useflags '*') ) |
1673 |
- ?? ( $(python_gen_useflags 'python2*') ) |
1674 |
- ?? ( $(python_gen_useflags 'python3*') ) |
1675 |
- ) |
1676 |
-" |
1677 |
- |
1678 |
-RDEPEND=" |
1679 |
- >=app-eselect/eselect-vi-1.1 |
1680 |
- >=sys-libs/ncurses-5.2-r2 |
1681 |
- nls? ( virtual/libintl ) |
1682 |
- acl? ( kernel_linux? ( sys-apps/acl ) ) |
1683 |
- cscope? ( dev-util/cscope ) |
1684 |
- gpm? ( >=sys-libs/gpm-1.19.3 ) |
1685 |
- lua? ( |
1686 |
- luajit? ( dev-lang/luajit:2= ) |
1687 |
- !luajit? ( dev-lang/lua:0[deprecated] ) |
1688 |
- ) |
1689 |
- !minimal? ( |
1690 |
- ~app-editors/vim-core-${PV} |
1691 |
- dev-util/ctags |
1692 |
- ) |
1693 |
- perl? ( dev-lang/perl:= ) |
1694 |
- python? ( ${PYTHON_DEPS} ) |
1695 |
- racket? ( dev-scheme/racket ) |
1696 |
- ruby? ( || ( dev-lang/ruby:2.2 dev-lang/ruby:2.1 dev-lang/ruby:2.0 ) ) |
1697 |
- selinux? ( sys-libs/libselinux ) |
1698 |
- tcl? ( dev-lang/tcl:0= ) |
1699 |
- X? ( x11-libs/libXt ) |
1700 |
-" |
1701 |
-DEPEND="${RDEPEND} |
1702 |
- sys-devel/autoconf |
1703 |
- nls? ( sys-devel/gettext ) |
1704 |
-" |
1705 |
- |
1706 |
-pkg_setup() { |
1707 |
- # people with broken alphabets run into trouble. bug 82186. |
1708 |
- unset LANG LC_ALL |
1709 |
- export LC_COLLATE="C" |
1710 |
- |
1711 |
- # Gnome sandbox silliness. bug #114475. |
1712 |
- mkdir -p "${T}"/home |
1713 |
- export HOME="${T}"/home |
1714 |
-} |
1715 |
- |
1716 |
-src_prepare() { |
1717 |
- if [[ ${PV} != 9999* ]] ; then |
1718 |
- if [[ -d "${WORKDIR}"/patches/ ]]; then |
1719 |
- # Gentoo patches to fix runtime issues, cross-compile errors, etc |
1720 |
- EPATCH_SUFFIX="patch" EPATCH_FORCE="yes" \ |
1721 |
- epatch "${WORKDIR}"/patches/ |
1722 |
- fi |
1723 |
- fi |
1724 |
- |
1725 |
- # Fixup a script to use awk instead of nawk |
1726 |
- sed -i '1s|.*|#!'"${EPREFIX}"'/usr/bin/awk -f|' "${S}"/runtime/tools/mve.awk \ |
1727 |
- || die "mve.awk sed failed" |
1728 |
- |
1729 |
- # Read vimrc and gvimrc from /etc/vim |
1730 |
- echo '#define SYS_VIMRC_FILE "'${EPREFIX}'/etc/vim/vimrc"' >> "${S}"/src/feature.h |
1731 |
- echo '#define SYS_GVIMRC_FILE "'${EPREFIX}'/etc/vim/gvimrc"' >> "${S}"/src/feature.h |
1732 |
- |
1733 |
- # Use exuberant ctags which installs as /usr/bin/exuberant-ctags. |
1734 |
- # Hopefully this pattern won't break for a while at least. |
1735 |
- # This fixes bug 29398 (27 Sep 2003 agriffis) |
1736 |
- sed -i 's/\<ctags\("\| [-*.]\)/exuberant-&/g' \ |
1737 |
- "${S}"/runtime/doc/syntax.txt \ |
1738 |
- "${S}"/runtime/doc/tagsrch.txt \ |
1739 |
- "${S}"/runtime/doc/usr_29.txt \ |
1740 |
- "${S}"/runtime/menu.vim \ |
1741 |
- "${S}"/src/configure.in || die 'sed failed' |
1742 |
- |
1743 |
- # Don't be fooled by /usr/include/libc.h. When found, vim thinks |
1744 |
- # this is NeXT, but it's actually just a file in dev-libs/9libs |
1745 |
- # This fixes bug 43885 (20 Mar 2004 agriffis) |
1746 |
- sed -i 's/ libc\.h / /' "${S}"/src/configure.in || die 'sed failed' |
1747 |
- |
1748 |
- # gcc on sparc32 has this, uhm, interesting problem with detecting EOF |
1749 |
- # correctly. To avoid some really entertaining error messages about stuff |
1750 |
- # which isn't even in the source file being invalid, we'll do some trickery |
1751 |
- # to make the error never occur. bug 66162 (02 October 2004 ciaranm) |
1752 |
- find "${S}" -name '*.c' | while read c ; do echo >> "$c" ; done |
1753 |
- |
1754 |
- # conditionally make the manpager.sh script |
1755 |
- if use vim-pager ; then |
1756 |
- cat <<-END > "${S}"/runtime/macros/manpager.sh |
1757 |
- #!/bin/sh |
1758 |
- sed -e 's/\x1B\[[[:digit:]]\+m//g' | col -b | \\ |
1759 |
- vim \\ |
1760 |
- -c 'let no_plugin_maps = 1' \\ |
1761 |
- -c 'set nolist nomod ft=man ts=8' \\ |
1762 |
- -c 'let g:showmarks_enable=0' \\ |
1763 |
- -c 'runtime! macros/less.vim' - |
1764 |
- END |
1765 |
- fi |
1766 |
- |
1767 |
- # Try to avoid sandbox problems. Bug #114475. |
1768 |
- if [[ -d "${S}"/src/po ]] ; then |
1769 |
- sed -i '/-S check.vim/s,..VIM.,ln -s $(VIM) testvim \; ./testvim -X,' \ |
1770 |
- "${S}"/src/po/Makefile |
1771 |
- fi |
1772 |
- |
1773 |
- if version_is_at_least 7.3.122 ; then |
1774 |
- cp "${S}"/src/config.mk.dist "${S}"/src/auto/config.mk |
1775 |
- fi |
1776 |
- |
1777 |
- # Bug #378107 - Build properly with >=perl-core/ExtUtils-ParseXS-3.20.0 |
1778 |
- if version_is_at_least 7.3 ; then |
1779 |
- sed -i "s:\\\$(PERLLIB)/ExtUtils/xsubpp:${EPREFIX}/usr/bin/xsubpp:" \ |
1780 |
- "${S}"/src/Makefile || die 'sed for ExtUtils-ParseXS failed' |
1781 |
- fi |
1782 |
- |
1783 |
- epatch_user |
1784 |
-} |
1785 |
- |
1786 |
-src_configure() { |
1787 |
- local myconf=() |
1788 |
- |
1789 |
- # Fix bug 37354: Disallow -funroll-all-loops on amd64 |
1790 |
- # Bug 57859 suggests that we want to do this for all archs |
1791 |
- filter-flags -funroll-all-loops |
1792 |
- |
1793 |
- # Fix bug 76331: -O3 causes problems, use -O2 instead. We'll do this for |
1794 |
- # everyone since previous flag filtering bugs have turned out to affect |
1795 |
- # multiple archs... |
1796 |
- replace-flags -O3 -O2 |
1797 |
- |
1798 |
- # Fix bug 18245: Prevent "make" from the following chain: |
1799 |
- # (1) Notice configure.in is newer than auto/configure |
1800 |
- # (2) Rebuild auto/configure |
1801 |
- # (3) Notice auto/configure is newer than auto/config.mk |
1802 |
- # (4) Run ./configure (with wrong args) to remake auto/config.mk |
1803 |
- sed -i 's# auto/config\.mk:#:#' src/Makefile || die "Makefile sed failed" |
1804 |
- rm -f src/auto/configure |
1805 |
- emake -j1 -C src autoconf |
1806 |
- |
1807 |
- # This should fix a sandbox violation (see bug 24447). The hvc |
1808 |
- # things are for ppc64, see bug 86433. |
1809 |
- for file in /dev/pty/s* /dev/console /dev/hvc/* /dev/hvc* ; do |
1810 |
- [[ -e ${file} ]] && addwrite $file |
1811 |
- done |
1812 |
- |
1813 |
- if use minimal ; then |
1814 |
- myconf=( |
1815 |
- --with-features=tiny |
1816 |
- --disable-nls |
1817 |
- --disable-multibyte |
1818 |
- --disable-acl |
1819 |
- --enable-gui=no |
1820 |
- --without-x |
1821 |
- --disable-darwin |
1822 |
- --disable-luainterp |
1823 |
- --disable-perlinterp |
1824 |
- --disable-pythoninterp |
1825 |
- --disable-mzschemeinterp |
1826 |
- --disable-rubyinterp |
1827 |
- --disable-selinux |
1828 |
- --disable-tclinterp |
1829 |
- --disable-gpm |
1830 |
- ) |
1831 |
- else |
1832 |
- use debug && append-flags "-DDEBUG" |
1833 |
- |
1834 |
- myconf=( |
1835 |
- --with-features=huge |
1836 |
- --enable-multibyte |
1837 |
- $(use_enable acl) |
1838 |
- $(use_enable cscope) |
1839 |
- $(use_enable gpm) |
1840 |
- $(use_enable lua luainterp) |
1841 |
- $(usex lua "--with-lua-prefix=${EPREFIX}/usr" "") |
1842 |
- $(use_with luajit) |
1843 |
- $(use_enable nls) |
1844 |
- $(use_enable perl perlinterp) |
1845 |
- $(use_enable racket mzschemeinterp) |
1846 |
- $(use_enable ruby rubyinterp) |
1847 |
- $(use_enable selinux) |
1848 |
- $(use_enable tcl tclinterp) |
1849 |
- ) |
1850 |
- |
1851 |
- if use python ; then |
1852 |
- py_add_interp() { |
1853 |
- local v |
1854 |
- |
1855 |
- [[ ${EPYTHON} == python3* ]] && v=3 |
1856 |
- myconf+=( |
1857 |
- --enable-python${v}interp |
1858 |
- vi_cv_path_python${v}="${PYTHON}" |
1859 |
- ) |
1860 |
- } |
1861 |
- |
1862 |
- python_foreach_impl py_add_interp |
1863 |
- else |
1864 |
- myconf+=( |
1865 |
- --disable-pythoninterp |
1866 |
- --disable-python3interp |
1867 |
- ) |
1868 |
- fi |
1869 |
- |
1870 |
- # --with-features=huge forces on cscope even if we --disable it. We need |
1871 |
- # to sed this out to avoid screwiness. (1 Sep 2004 ciaranm) |
1872 |
- if ! use cscope ; then |
1873 |
- sed -i '/# define FEAT_CSCOPE/d' src/feature.h || \ |
1874 |
- die "couldn't disable cscope" |
1875 |
- fi |
1876 |
- |
1877 |
- # don't test USE=X here ... see bug #19115 |
1878 |
- # but need to provide a way to link against X ... see bug #20093 |
1879 |
- myconf+=( |
1880 |
- --enable-gui=no |
1881 |
- --disable-darwin |
1882 |
- $(use_with X x) |
1883 |
- ) |
1884 |
- fi |
1885 |
- |
1886 |
- # Let Portage do the stripping. Some people like that. |
1887 |
- export ac_cv_prog_STRIP="$(type -P true ) faking strip" |
1888 |
- |
1889 |
- # Keep Gentoo Prefix env contained within the EPREFIX |
1890 |
- use prefix && myconf+=( --without-local-dir ) |
1891 |
- |
1892 |
- econf \ |
1893 |
- --with-modified-by=Gentoo-${PVR} \ |
1894 |
- "${myconf[@]}" |
1895 |
-} |
1896 |
- |
1897 |
-src_compile() { |
1898 |
- # The following allows emake to be used |
1899 |
- emake -j1 -C src auto/osdef.h objects |
1900 |
- |
1901 |
- emake |
1902 |
-} |
1903 |
- |
1904 |
-src_test() { |
1905 |
- echo |
1906 |
- einfo "Starting vim tests. Several error messages will be shown" |
1907 |
- einfo "while the tests run. This is normal behaviour and does not" |
1908 |
- einfo "indicate a fault." |
1909 |
- echo |
1910 |
- ewarn "If the tests fail, your terminal may be left in a strange" |
1911 |
- ewarn "state. Usually, running 'reset' will fix this." |
1912 |
- echo |
1913 |
- |
1914 |
- # Don't let vim talk to X |
1915 |
- unset DISPLAY |
1916 |
- |
1917 |
- # We've got to call make test from within testdir, since the Makefiles |
1918 |
- # don't pass through our VIMPROG argument |
1919 |
- cd "${S}"/src/testdir |
1920 |
- |
1921 |
- # Test 49 won't work inside a portage environment |
1922 |
- einfo "Test 49 isn't sandbox-friendly, so it will be skipped." |
1923 |
- sed -i 's~test49.out~~g' Makefile |
1924 |
- |
1925 |
- # We don't want to rebuild vim before running the tests |
1926 |
- sed -i 's,: \$(VIMPROG),: ,' Makefile |
1927 |
- |
1928 |
- # Don't try to do the additional GUI test |
1929 |
- emake -j1 VIMPROG=../vim nongui |
1930 |
-} |
1931 |
- |
1932 |
-# Make convenience symlinks, hopefully without stepping on toes. Some |
1933 |
-# of these links are "owned" by the vim ebuild when it is installed, |
1934 |
-# but they might be good for gvim as well (see bug 45828) |
1935 |
-update_vim_symlinks() { |
1936 |
- local f syms |
1937 |
- syms="vimdiff rvim rview" |
1938 |
- einfo "Calling eselect vi update..." |
1939 |
- # Call this with --if-unset to respect user's choice (bug 187449) |
1940 |
- eselect vi update --if-unset |
1941 |
- |
1942 |
- # Make or remove convenience symlink, vim -> gvim |
1943 |
- if [[ -f "${EROOT}"/usr/bin/gvim ]]; then |
1944 |
- ln -s gvim "${EROOT}"/usr/bin/vim 2>/dev/null |
1945 |
- elif [[ -L "${EROOT}"/usr/bin/vim && ! -f "${EROOT}"/usr/bin/vim ]]; then |
1946 |
- rm "${EROOT}"/usr/bin/vim |
1947 |
- fi |
1948 |
- |
1949 |
- # Make or remove convenience symlinks to vim |
1950 |
- if [[ -f "${EROOT}"/usr/bin/vim ]]; then |
1951 |
- for f in ${syms}; do |
1952 |
- ln -s vim "${EROOT}"/usr/bin/${f} 2>/dev/null |
1953 |
- done |
1954 |
- else |
1955 |
- for f in ${syms}; do |
1956 |
- if [[ -L "${EROOT}"/usr/bin/${f} && ! -f "${EROOT}"/usr/bin/${f} ]]; then |
1957 |
- rm -f "${EROOT}"/usr/bin/${f} |
1958 |
- fi |
1959 |
- done |
1960 |
- fi |
1961 |
- |
1962 |
- # This will still break if you merge then remove the vi package, |
1963 |
- # but there's only so much you can do, eh? Unfortunately we don't |
1964 |
- # have triggers like are done in rpm-land. |
1965 |
-} |
1966 |
- |
1967 |
-src_install() { |
1968 |
- local vimfiles=/usr/share/vim/vim${VIM_VERSION/.} |
1969 |
- |
1970 |
- # Note: Do not install symlinks for 'vi', 'ex', or 'view', as these are |
1971 |
- # managed by eselect-vi |
1972 |
- dobin src/vim |
1973 |
- dosym vim /usr/bin/vimdiff |
1974 |
- dosym vim /usr/bin/rvim |
1975 |
- dosym vim /usr/bin/rview |
1976 |
- if use vim-pager ; then |
1977 |
- dosym ${vimfiles}/macros/less.sh /usr/bin/vimpager |
1978 |
- dosym ${vimfiles}/macros/manpager.sh /usr/bin/vimmanpager |
1979 |
- insinto ${vimfiles}/macros |
1980 |
- doins runtime/macros/manpager.sh |
1981 |
- fperms a+x ${vimfiles}/macros/manpager.sh |
1982 |
- fi |
1983 |
- |
1984 |
- newbashcomp "${FILESDIR}"/${PN}-completion ${PN} |
1985 |
- # keep in sync with 'complete ... -F' list |
1986 |
- bashcomp_alias vim ex vi view rvim rview vimdiff |
1987 |
- |
1988 |
- # We shouldn't be installing the ex or view man page symlinks, as they |
1989 |
- # are managed by eselect-vi |
1990 |
- rm -f "${ED}"/usr/share/man/man1/{ex,view}.1 |
1991 |
-} |
1992 |
- |
1993 |
-pkg_postinst() { |
1994 |
- # Update documentation tags (from vim-doc.eclass) |
1995 |
- update_vim_helptags |
1996 |
- |
1997 |
- if [[ -z ${REPLACING_VERSIONS} ]] ; then |
1998 |
- if use X ; then |
1999 |
- echo |
2000 |
- elog "The 'X' USE flag enables vim <-> X communication, like" |
2001 |
- elog "updating the xterm titlebar. It does not install a GUI." |
2002 |
- fi |
2003 |
- echo |
2004 |
- elog "To install a GUI version of vim, use the app-editors/gvim" |
2005 |
- elog "package." |
2006 |
- echo |
2007 |
- elog "Vim 7 includes an integrated spell checker. You need to install" |
2008 |
- elog "word list files before you can use it. There are ebuilds for" |
2009 |
- elog "some of these named app-vim/vim-spell-*. If your language of" |
2010 |
- elog "choice is not included, please consult vim-spell.eclass for" |
2011 |
- elog "instructions on how to make a package." |
2012 |
- echo |
2013 |
- ewarn "Note that the English word lists are no longer installed by" |
2014 |
- ewarn "default." |
2015 |
- fi |
2016 |
- |
2017 |
- # Make convenience symlinks |
2018 |
- update_vim_symlinks |
2019 |
-} |
2020 |
- |
2021 |
-pkg_postrm() { |
2022 |
- # Update documentation tags (from vim-doc.eclass) |
2023 |
- update_vim_helptags |
2024 |
- |
2025 |
- # Make convenience symlinks |
2026 |
- update_vim_symlinks |
2027 |
-} |
2028 |
|
2029 |
diff --git a/app-editors/vim/vim-8.0.0005.ebuild b/app-editors/vim/vim-8.0.0005.ebuild |
2030 |
deleted file mode 100644 |
2031 |
index bc0ca8d..00000000 |
2032 |
--- a/app-editors/vim/vim-8.0.0005.ebuild |
2033 |
+++ /dev/null |
2034 |
@@ -1,349 +0,0 @@ |
2035 |
-# Copyright 1999-2016 Gentoo Foundation |
2036 |
-# Distributed under the terms of the GNU General Public License v2 |
2037 |
-# $Id$ |
2038 |
- |
2039 |
-EAPI=6 |
2040 |
-VIM_VERSION="8.0" |
2041 |
-PYTHON_COMPAT=( python{2_7,3_4,3_5} ) |
2042 |
-PYTHON_REQ_USE=threads |
2043 |
-inherit eutils vim-doc flag-o-matic fdo-mime versionator bash-completion-r1 python-r1 |
2044 |
- |
2045 |
-if [[ ${PV} == 9999* ]] ; then |
2046 |
- inherit git-r3 |
2047 |
- EGIT_REPO_URI="https://github.com/vim/vim.git" |
2048 |
-else |
2049 |
- SRC_URI="https://github.com/vim/vim/archive/v${PV}.tar.gz -> ${P}.tar.gz |
2050 |
- https://dev.gentoo.org/~radhermit/vim/vim-7.4.2102-gentoo-patches.tar.bz2" |
2051 |
- KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~m68k ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86 ~ppc-aix ~amd64-fbsd ~sparc-fbsd ~x86-fbsd ~x64-freebsd ~x86-freebsd ~hppa-hpux ~ia64-hpux ~x86-interix ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos ~m68k-mint ~sparc-solaris ~sparc64-solaris ~x64-solaris ~x86-solaris" |
2052 |
-fi |
2053 |
- |
2054 |
-DESCRIPTION="Vim, an improved vi-style text editor" |
2055 |
-HOMEPAGE="http://www.vim.org/ https://github.com/vim/vim" |
2056 |
- |
2057 |
-SLOT="0" |
2058 |
-LICENSE="vim" |
2059 |
-IUSE="X acl cscope debug gpm lua luajit minimal nls perl python racket ruby selinux tcl vim-pager" |
2060 |
-REQUIRED_USE=" |
2061 |
- luajit? ( lua ) |
2062 |
- python? ( |
2063 |
- || ( $(python_gen_useflags '*') ) |
2064 |
- ?? ( $(python_gen_useflags 'python2*') ) |
2065 |
- ?? ( $(python_gen_useflags 'python3*') ) |
2066 |
- ) |
2067 |
-" |
2068 |
- |
2069 |
-RDEPEND=" |
2070 |
- >=app-eselect/eselect-vi-1.1 |
2071 |
- >=sys-libs/ncurses-5.2-r2:0= |
2072 |
- nls? ( virtual/libintl ) |
2073 |
- acl? ( kernel_linux? ( sys-apps/acl ) ) |
2074 |
- cscope? ( dev-util/cscope ) |
2075 |
- gpm? ( >=sys-libs/gpm-1.19.3 ) |
2076 |
- lua? ( |
2077 |
- luajit? ( dev-lang/luajit:2= ) |
2078 |
- !luajit? ( dev-lang/lua:0[deprecated] ) |
2079 |
- ) |
2080 |
- !minimal? ( |
2081 |
- ~app-editors/vim-core-${PV} |
2082 |
- dev-util/ctags |
2083 |
- ) |
2084 |
- perl? ( dev-lang/perl:= ) |
2085 |
- python? ( ${PYTHON_DEPS} ) |
2086 |
- racket? ( dev-scheme/racket ) |
2087 |
- ruby? ( || ( dev-lang/ruby:2.3 dev-lang/ruby:2.2 dev-lang/ruby:2.1 dev-lang/ruby:2.0 ) ) |
2088 |
- selinux? ( sys-libs/libselinux ) |
2089 |
- tcl? ( dev-lang/tcl:0= ) |
2090 |
- X? ( x11-libs/libXt ) |
2091 |
-" |
2092 |
-DEPEND="${RDEPEND} |
2093 |
- sys-devel/autoconf |
2094 |
- nls? ( sys-devel/gettext ) |
2095 |
-" |
2096 |
- |
2097 |
-pkg_setup() { |
2098 |
- # people with broken alphabets run into trouble. bug 82186. |
2099 |
- unset LANG LC_ALL |
2100 |
- export LC_COLLATE="C" |
2101 |
- |
2102 |
- # Gnome sandbox silliness. bug #114475. |
2103 |
- mkdir -p "${T}"/home |
2104 |
- export HOME="${T}"/home |
2105 |
-} |
2106 |
- |
2107 |
-src_prepare() { |
2108 |
- if [[ ${PV} != 9999* ]] ; then |
2109 |
- # Gentoo patches to fix runtime issues, cross-compile errors, etc |
2110 |
- eapply "${WORKDIR}"/patches/ |
2111 |
- fi |
2112 |
- |
2113 |
- # Fixup a script to use awk instead of nawk |
2114 |
- sed -i '1s|.*|#!'"${EPREFIX}"'/usr/bin/awk -f|' "${S}"/runtime/tools/mve.awk \ |
2115 |
- || die "mve.awk sed failed" |
2116 |
- |
2117 |
- # Read vimrc and gvimrc from /etc/vim |
2118 |
- echo '#define SYS_VIMRC_FILE "'${EPREFIX}'/etc/vim/vimrc"' >> "${S}"/src/feature.h |
2119 |
- echo '#define SYS_GVIMRC_FILE "'${EPREFIX}'/etc/vim/gvimrc"' >> "${S}"/src/feature.h |
2120 |
- |
2121 |
- # Use exuberant ctags which installs as /usr/bin/exuberant-ctags. |
2122 |
- # Hopefully this pattern won't break for a while at least. |
2123 |
- # This fixes bug 29398 (27 Sep 2003 agriffis) |
2124 |
- sed -i 's/\<ctags\("\| [-*.]\)/exuberant-&/g' \ |
2125 |
- "${S}"/runtime/doc/syntax.txt \ |
2126 |
- "${S}"/runtime/doc/tagsrch.txt \ |
2127 |
- "${S}"/runtime/doc/usr_29.txt \ |
2128 |
- "${S}"/runtime/menu.vim \ |
2129 |
- "${S}"/src/configure.in || die 'sed failed' |
2130 |
- |
2131 |
- # Don't be fooled by /usr/include/libc.h. When found, vim thinks |
2132 |
- # this is NeXT, but it's actually just a file in dev-libs/9libs |
2133 |
- # This fixes bug 43885 (20 Mar 2004 agriffis) |
2134 |
- sed -i 's/ libc\.h / /' "${S}"/src/configure.in || die 'sed failed' |
2135 |
- |
2136 |
- # gcc on sparc32 has this, uhm, interesting problem with detecting EOF |
2137 |
- # correctly. To avoid some really entertaining error messages about stuff |
2138 |
- # which isn't even in the source file being invalid, we'll do some trickery |
2139 |
- # to make the error never occur. bug 66162 (02 October 2004 ciaranm) |
2140 |
- find "${S}" -name '*.c' | while read c ; do echo >> "$c" ; done |
2141 |
- |
2142 |
- # conditionally make the manpager.sh script |
2143 |
- if use vim-pager ; then |
2144 |
- cat <<-END > "${S}"/runtime/macros/manpager.sh |
2145 |
- #!/bin/sh |
2146 |
- sed -e 's/\x1B\[[[:digit:]]\+m//g' | col -b | \\ |
2147 |
- vim \\ |
2148 |
- -c 'let no_plugin_maps = 1' \\ |
2149 |
- -c 'set nolist nomod ft=man ts=8' \\ |
2150 |
- -c 'let g:showmarks_enable=0' \\ |
2151 |
- -c 'runtime! macros/less.vim' - |
2152 |
- END |
2153 |
- fi |
2154 |
- |
2155 |
- # Try to avoid sandbox problems. Bug #114475. |
2156 |
- if [[ -d "${S}"/src/po ]] ; then |
2157 |
- sed -i '/-S check.vim/s,..VIM.,ln -s $(VIM) testvim \; ./testvim -X,' \ |
2158 |
- "${S}"/src/po/Makefile |
2159 |
- fi |
2160 |
- |
2161 |
- if version_is_at_least 7.3.122 ; then |
2162 |
- cp "${S}"/src/config.mk.dist "${S}"/src/auto/config.mk |
2163 |
- fi |
2164 |
- |
2165 |
- # Bug #378107 - Build properly with >=perl-core/ExtUtils-ParseXS-3.20.0 |
2166 |
- if version_is_at_least 7.3 ; then |
2167 |
- sed -i "s:\\\$(PERLLIB)/ExtUtils/xsubpp:${EPREFIX}/usr/bin/xsubpp:" \ |
2168 |
- "${S}"/src/Makefile || die 'sed for ExtUtils-ParseXS failed' |
2169 |
- fi |
2170 |
- |
2171 |
- eapply_user |
2172 |
-} |
2173 |
- |
2174 |
-src_configure() { |
2175 |
- local myconf=() |
2176 |
- |
2177 |
- # Fix bug 37354: Disallow -funroll-all-loops on amd64 |
2178 |
- # Bug 57859 suggests that we want to do this for all archs |
2179 |
- filter-flags -funroll-all-loops |
2180 |
- |
2181 |
- # Fix bug 76331: -O3 causes problems, use -O2 instead. We'll do this for |
2182 |
- # everyone since previous flag filtering bugs have turned out to affect |
2183 |
- # multiple archs... |
2184 |
- replace-flags -O3 -O2 |
2185 |
- |
2186 |
- # Fix bug 18245: Prevent "make" from the following chain: |
2187 |
- # (1) Notice configure.in is newer than auto/configure |
2188 |
- # (2) Rebuild auto/configure |
2189 |
- # (3) Notice auto/configure is newer than auto/config.mk |
2190 |
- # (4) Run ./configure (with wrong args) to remake auto/config.mk |
2191 |
- sed -i 's# auto/config\.mk:#:#' src/Makefile || die "Makefile sed failed" |
2192 |
- rm -f src/auto/configure |
2193 |
- emake -j1 -C src autoconf |
2194 |
- |
2195 |
- # This should fix a sandbox violation (see bug 24447). The hvc |
2196 |
- # things are for ppc64, see bug 86433. |
2197 |
- for file in /dev/pty/s* /dev/console /dev/hvc/* /dev/hvc* ; do |
2198 |
- [[ -e ${file} ]] && addwrite $file |
2199 |
- done |
2200 |
- |
2201 |
- if use minimal ; then |
2202 |
- myconf=( |
2203 |
- --with-features=tiny |
2204 |
- --disable-nls |
2205 |
- --disable-multibyte |
2206 |
- --disable-acl |
2207 |
- --enable-gui=no |
2208 |
- --without-x |
2209 |
- --disable-darwin |
2210 |
- --disable-luainterp |
2211 |
- --disable-perlinterp |
2212 |
- --disable-pythoninterp |
2213 |
- --disable-mzschemeinterp |
2214 |
- --disable-rubyinterp |
2215 |
- --disable-selinux |
2216 |
- --disable-tclinterp |
2217 |
- --disable-gpm |
2218 |
- ) |
2219 |
- else |
2220 |
- use debug && append-flags "-DDEBUG" |
2221 |
- |
2222 |
- myconf=( |
2223 |
- --with-features=huge |
2224 |
- --enable-multibyte |
2225 |
- $(use_enable acl) |
2226 |
- $(use_enable cscope) |
2227 |
- $(use_enable gpm) |
2228 |
- $(use_enable lua luainterp) |
2229 |
- $(usex lua "--with-lua-prefix=${EPREFIX}/usr" "") |
2230 |
- $(use_with luajit) |
2231 |
- $(use_enable nls) |
2232 |
- $(use_enable perl perlinterp) |
2233 |
- $(use_enable racket mzschemeinterp) |
2234 |
- $(use_enable ruby rubyinterp) |
2235 |
- $(use_enable selinux) |
2236 |
- $(use_enable tcl tclinterp) |
2237 |
- ) |
2238 |
- |
2239 |
- if use python ; then |
2240 |
- py_add_interp() { |
2241 |
- local v |
2242 |
- |
2243 |
- [[ ${EPYTHON} == python3* ]] && v=3 |
2244 |
- myconf+=( |
2245 |
- --enable-python${v}interp |
2246 |
- vi_cv_path_python${v}="${PYTHON}" |
2247 |
- ) |
2248 |
- } |
2249 |
- |
2250 |
- python_foreach_impl py_add_interp |
2251 |
- else |
2252 |
- myconf+=( |
2253 |
- --disable-pythoninterp |
2254 |
- --disable-python3interp |
2255 |
- ) |
2256 |
- fi |
2257 |
- |
2258 |
- # --with-features=huge forces on cscope even if we --disable it. We need |
2259 |
- # to sed this out to avoid screwiness. (1 Sep 2004 ciaranm) |
2260 |
- if ! use cscope ; then |
2261 |
- sed -i '/# define FEAT_CSCOPE/d' src/feature.h || \ |
2262 |
- die "couldn't disable cscope" |
2263 |
- fi |
2264 |
- |
2265 |
- # don't test USE=X here ... see bug #19115 |
2266 |
- # but need to provide a way to link against X ... see bug #20093 |
2267 |
- myconf+=( |
2268 |
- --enable-gui=no |
2269 |
- --disable-darwin |
2270 |
- $(use_with X x) |
2271 |
- ) |
2272 |
- fi |
2273 |
- |
2274 |
- # let package manager strip binaries |
2275 |
- export ac_cv_prog_STRIP="$(type -P true ) faking strip" |
2276 |
- |
2277 |
- # keep prefix env contained within the EPREFIX |
2278 |
- use prefix && myconf+=( --without-local-dir ) |
2279 |
- |
2280 |
- econf \ |
2281 |
- --with-modified-by=Gentoo-${PVR} \ |
2282 |
- "${myconf[@]}" |
2283 |
-} |
2284 |
- |
2285 |
-src_compile() { |
2286 |
- # The following allows emake to be used |
2287 |
- emake -j1 -C src auto/osdef.h objects |
2288 |
- |
2289 |
- emake |
2290 |
-} |
2291 |
- |
2292 |
-src_test() { |
2293 |
- echo |
2294 |
- einfo "Starting vim tests. Several error messages will be shown" |
2295 |
- einfo "while the tests run. This is normal behaviour and does not" |
2296 |
- einfo "indicate a fault." |
2297 |
- echo |
2298 |
- ewarn "If the tests fail, your terminal may be left in a strange" |
2299 |
- ewarn "state. Usually, running 'reset' will fix this." |
2300 |
- echo |
2301 |
- |
2302 |
- # Don't let vim talk to X |
2303 |
- unset DISPLAY |
2304 |
- |
2305 |
- emake -j1 -C src/testdir nongui |
2306 |
-} |
2307 |
- |
2308 |
-# Make convenience symlinks, hopefully without stepping on toes. Some |
2309 |
-# of these links are "owned" by the vim ebuild when it is installed, |
2310 |
-# but they might be good for gvim as well (see bug 45828) |
2311 |
-update_vim_symlinks() { |
2312 |
- local f syms |
2313 |
- syms="vimdiff rvim rview" |
2314 |
- einfo "Calling eselect vi update..." |
2315 |
- # Call this with --if-unset to respect user's choice (bug 187449) |
2316 |
- eselect vi update --if-unset |
2317 |
- |
2318 |
- # Make or remove convenience symlink, vim -> gvim |
2319 |
- if [[ -f "${EROOT}"/usr/bin/gvim ]]; then |
2320 |
- ln -s gvim "${EROOT}"/usr/bin/vim 2>/dev/null |
2321 |
- elif [[ -L "${EROOT}"/usr/bin/vim && ! -f "${EROOT}"/usr/bin/vim ]]; then |
2322 |
- rm "${EROOT}"/usr/bin/vim |
2323 |
- fi |
2324 |
- |
2325 |
- # Make or remove convenience symlinks to vim |
2326 |
- if [[ -f "${EROOT}"/usr/bin/vim ]]; then |
2327 |
- for f in ${syms}; do |
2328 |
- ln -s vim "${EROOT}"/usr/bin/${f} 2>/dev/null |
2329 |
- done |
2330 |
- else |
2331 |
- for f in ${syms}; do |
2332 |
- if [[ -L "${EROOT}"/usr/bin/${f} && ! -f "${EROOT}"/usr/bin/${f} ]]; then |
2333 |
- rm -f "${EROOT}"/usr/bin/${f} |
2334 |
- fi |
2335 |
- done |
2336 |
- fi |
2337 |
- |
2338 |
- # This will still break if you merge then remove the vi package, |
2339 |
- # but there's only so much you can do, eh? Unfortunately we don't |
2340 |
- # have triggers like are done in rpm-land. |
2341 |
-} |
2342 |
- |
2343 |
-src_install() { |
2344 |
- local vimfiles=/usr/share/vim/vim${VIM_VERSION/.} |
2345 |
- |
2346 |
- # Note: Do not install symlinks for 'vi', 'ex', or 'view', as these are |
2347 |
- # managed by eselect-vi |
2348 |
- dobin src/vim |
2349 |
- dosym vim /usr/bin/vimdiff |
2350 |
- dosym vim /usr/bin/rvim |
2351 |
- dosym vim /usr/bin/rview |
2352 |
- if use vim-pager ; then |
2353 |
- dosym ${vimfiles}/macros/less.sh /usr/bin/vimpager |
2354 |
- dosym ${vimfiles}/macros/manpager.sh /usr/bin/vimmanpager |
2355 |
- insinto ${vimfiles}/macros |
2356 |
- doins runtime/macros/manpager.sh |
2357 |
- fperms a+x ${vimfiles}/macros/manpager.sh |
2358 |
- fi |
2359 |
- |
2360 |
- newbashcomp "${FILESDIR}"/${PN}-completion ${PN} |
2361 |
- # keep in sync with 'complete ... -F' list |
2362 |
- bashcomp_alias vim ex vi view rvim rview vimdiff |
2363 |
- |
2364 |
- # We shouldn't be installing the ex or view man page symlinks, as they |
2365 |
- # are managed by eselect-vi |
2366 |
- rm -f "${ED}"/usr/share/man/man1/{ex,view}.1 |
2367 |
-} |
2368 |
- |
2369 |
-pkg_postinst() { |
2370 |
- # Update documentation tags (from vim-doc.eclass) |
2371 |
- update_vim_helptags |
2372 |
- |
2373 |
- # Make convenience symlinks |
2374 |
- update_vim_symlinks |
2375 |
-} |
2376 |
- |
2377 |
-pkg_postrm() { |
2378 |
- # Update documentation tags (from vim-doc.eclass) |
2379 |
- update_vim_helptags |
2380 |
- |
2381 |
- # Make convenience symlinks |
2382 |
- update_vim_symlinks |
2383 |
-} |