1 |
commit: 96c1ef93a97fc3695ada93b5631102d9d657c731 |
2 |
Author: Tim Harder <radhermit <AT> gentoo <DOT> org> |
3 |
AuthorDate: Sun May 8 02:52:00 2016 +0000 |
4 |
Commit: Tim Harder <radhermit <AT> gentoo <DOT> org> |
5 |
CommitDate: Sun May 8 02:52:00 2016 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=96c1ef93 |
7 |
|
8 |
app-editors/vim: remove old |
9 |
|
10 |
app-editors/vim/Manifest | 3 - |
11 |
app-editors/vim/vim-7.4.1089.ebuild | 364 ------------------------------------ |
12 |
app-editors/vim/vim-7.4.1229.ebuild | 364 ------------------------------------ |
13 |
app-editors/vim/vim-7.4.1342.ebuild | 364 ------------------------------------ |
14 |
4 files changed, 1095 deletions(-) |
15 |
|
16 |
diff --git a/app-editors/vim/Manifest b/app-editors/vim/Manifest |
17 |
index 8f919f0..de808a2 100644 |
18 |
--- a/app-editors/vim/Manifest |
19 |
+++ b/app-editors/vim/Manifest |
20 |
@@ -1,6 +1,3 @@ |
21 |
-DIST vim-7.4.1089.tar.gz 12548552 SHA256 e52f7653a36b690441b47a273b1db72f0eb1e5f6729af25110a84088ca73e872 SHA512 0fca208152b3c33cebfba4c2a33a6e59643a8c2650863b56b5a5c1863eb20238c412453d9e53cf75feaef8a5ef8aa8b33b601670e39c1b3effc02ed193bbd91f WHIRLPOOL 87f61548b29755ab1a90999af99c46fc649589e6d2e132623c04a2fa24400738255648a43d79192b2b6eb2b34ed49dd8d439e65870025983738247368f2f8598 |
22 |
-DIST vim-7.4.1229.tar.gz 12576784 SHA256 8a782e97916d57c44dcd84d38002884e05f335311600d73500cee47908e1822d SHA512 ac139e828f95319d668091e79295f7be88011c9fe0417736d051c844ec49a50ebdcec6c655f839025ee78349c36891ce1ed27467ff31ec5d1b7fc1c3a70bf5dd WHIRLPOOL 8da7059a35fbebd3fc9a360c861c2fcde197b807fe0a0ed9864b7f5ed0419488a6308a520fd97d0690e9fd10a3974fcdf228dd5d81d5848679ca74f4554d784d |
23 |
-DIST vim-7.4.1342.tar.gz 12608839 SHA256 af2776a7bdc87748734391ab05d2f8280829f837b8e520d1372dcf52176bbc4c SHA512 ec288aae83b0f98a62366781940b82b10871adeab91ca2596584caaedd7eb29696e4fa0aa6fcb71c144959be700836a765e8c4fea3038f50f8f6a3abe340091a WHIRLPOOL fc51a1adc36d036cdfae81ef8ddccf086bcfb2680fa32158cbe3b0c7d171b713e7f7fdf66eb5b9fd61cc1fb102a5d76d9aba00296089b1602c17f0fffe187adf |
24 |
DIST vim-7.4.1583.tar.gz 12559634 SHA256 dbe697fcacca5c50535714a31dbd02e7691943491c4004a867edd4a6fcdc9cf5 SHA512 6e049ea8e711382fd4f69360afaeac904ad7721ccb7bf9990754983efd66963e1bc24919483ac8f4cbededcd22e1e58c2e246d524f059a0648600e49b550fc2b WHIRLPOOL a4e18bfa89b1a2620e96b6688cac41bed8d68d3adb7f8c7b3580a9ae40df0c39d612c051c73b2b91cf3d5d18348651e4bd4808f40b44132ebcc648bc554e451f |
25 |
DIST vim-7.4.1821.tar.gz 12565373 SHA256 452b6346f64b23ab0e7483091ddc09b62540f149fa786bdd14d6712d8b66e1cf SHA512 6bc3698c715860837ab264b9312207f85e0c2a603c15eca92678f301175db93195d83d3f26c4815fc6f0757e5051945b88ce415f358b7396520df6231314cc64 WHIRLPOOL 3699966e5c599ca9090486006a8e1bab5720854f9c44fc249f5cb31d6198e048a6523697ce6416c835154c737ffab87482a72ebe1af321874eef3461b69de90b |
26 |
DIST vim-7.4.542-gentoo-patches.tar.bz2 3307 SHA256 0eb635f13e199de77846e0d363a473882f2186f138158271fabf0975747a2f3d SHA512 446c66764dac2533cc2f2b3d50481971d4c63a4e81d94c545862a1be620179fdcd81a79f2d81737d1188812a6ad41d90e2a752a05acf6913e7a71464f7cecdd9 WHIRLPOOL cfca8feef0eb8096897ef751afb0427acddd008530ded6cf908fcff51be9713da4ea3e5e613d544c5caba400d664ae19ca70925df3a218bec5c8be6f69aadda2 |
27 |
|
28 |
diff --git a/app-editors/vim/vim-7.4.1089.ebuild b/app-editors/vim/vim-7.4.1089.ebuild |
29 |
deleted file mode 100644 |
30 |
index b662c4c..0000000 |
31 |
--- a/app-editors/vim/vim-7.4.1089.ebuild |
32 |
+++ /dev/null |
33 |
@@ -1,364 +0,0 @@ |
34 |
-# Copyright 1999-2016 Gentoo Foundation |
35 |
-# Distributed under the terms of the GNU General Public License v2 |
36 |
-# $Id$ |
37 |
- |
38 |
-EAPI=5 |
39 |
-VIM_VERSION="7.4" |
40 |
-PYTHON_COMPAT=( python{2_7,3_3,3_4,3_5} ) |
41 |
-PYTHON_REQ_USE=threads |
42 |
-inherit eutils vim-doc flag-o-matic fdo-mime versionator bash-completion-r1 python-r1 |
43 |
- |
44 |
-if [[ ${PV} == 9999* ]] ; then |
45 |
- inherit git-r3 |
46 |
- EGIT_REPO_URI="https://github.com/vim/vim.git" |
47 |
-else |
48 |
- SRC_URI="https://github.com/vim/vim/archive/v${PV}.tar.gz -> ${P}.tar.gz |
49 |
- https://dev.gentoo.org/~radhermit/vim/vim-7.4.827-gentoo-patches.tar.bz2" |
50 |
- 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" |
51 |
-fi |
52 |
- |
53 |
-DESCRIPTION="Vim, an improved vi-style text editor" |
54 |
-HOMEPAGE="http://www.vim.org/" |
55 |
- |
56 |
-SLOT="0" |
57 |
-LICENSE="vim" |
58 |
-IUSE="X acl cscope debug gpm lua luajit minimal nls perl python racket ruby selinux tcl vim-pager" |
59 |
-REQUIRED_USE=" |
60 |
- luajit? ( lua ) |
61 |
- python? ( |
62 |
- || ( $(python_gen_useflags '*') ) |
63 |
- ?? ( $(python_gen_useflags 'python2*') ) |
64 |
- ?? ( $(python_gen_useflags 'python3*') ) |
65 |
- ) |
66 |
-" |
67 |
- |
68 |
-RDEPEND=" |
69 |
- >=app-eselect/eselect-vi-1.1 |
70 |
- >=sys-libs/ncurses-5.2-r2:0 |
71 |
- nls? ( virtual/libintl ) |
72 |
- acl? ( kernel_linux? ( sys-apps/acl ) ) |
73 |
- cscope? ( dev-util/cscope ) |
74 |
- gpm? ( >=sys-libs/gpm-1.19.3 ) |
75 |
- lua? ( |
76 |
- luajit? ( dev-lang/luajit:2= ) |
77 |
- !luajit? ( dev-lang/lua:0[deprecated] ) |
78 |
- ) |
79 |
- !minimal? ( |
80 |
- ~app-editors/vim-core-${PV} |
81 |
- dev-util/ctags |
82 |
- ) |
83 |
- perl? ( dev-lang/perl:= ) |
84 |
- python? ( ${PYTHON_DEPS} ) |
85 |
- racket? ( dev-scheme/racket ) |
86 |
- ruby? ( || ( dev-lang/ruby:2.3 dev-lang/ruby:2.2 dev-lang/ruby:2.1 dev-lang/ruby:2.0 ) ) |
87 |
- selinux? ( sys-libs/libselinux ) |
88 |
- tcl? ( dev-lang/tcl:0= ) |
89 |
- X? ( x11-libs/libXt ) |
90 |
-" |
91 |
-DEPEND="${RDEPEND} |
92 |
- sys-devel/autoconf |
93 |
- nls? ( sys-devel/gettext ) |
94 |
-" |
95 |
- |
96 |
-pkg_setup() { |
97 |
- # people with broken alphabets run into trouble. bug 82186. |
98 |
- unset LANG LC_ALL |
99 |
- export LC_COLLATE="C" |
100 |
- |
101 |
- # Gnome sandbox silliness. bug #114475. |
102 |
- mkdir -p "${T}"/home |
103 |
- export HOME="${T}"/home |
104 |
-} |
105 |
- |
106 |
-src_prepare() { |
107 |
- if [[ ${PV} != 9999* ]] ; then |
108 |
- if [[ -d "${WORKDIR}"/patches/ ]]; then |
109 |
- # Gentoo patches to fix runtime issues, cross-compile errors, etc |
110 |
- EPATCH_SUFFIX="patch" EPATCH_FORCE="yes" \ |
111 |
- epatch "${WORKDIR}"/patches/ |
112 |
- fi |
113 |
- fi |
114 |
- |
115 |
- # Fixup a script to use awk instead of nawk |
116 |
- sed -i '1s|.*|#!'"${EPREFIX}"'/usr/bin/awk -f|' "${S}"/runtime/tools/mve.awk \ |
117 |
- || die "mve.awk sed failed" |
118 |
- |
119 |
- # Read vimrc and gvimrc from /etc/vim |
120 |
- echo '#define SYS_VIMRC_FILE "'${EPREFIX}'/etc/vim/vimrc"' >> "${S}"/src/feature.h |
121 |
- echo '#define SYS_GVIMRC_FILE "'${EPREFIX}'/etc/vim/gvimrc"' >> "${S}"/src/feature.h |
122 |
- |
123 |
- # Use exuberant ctags which installs as /usr/bin/exuberant-ctags. |
124 |
- # Hopefully this pattern won't break for a while at least. |
125 |
- # This fixes bug 29398 (27 Sep 2003 agriffis) |
126 |
- sed -i 's/\<ctags\("\| [-*.]\)/exuberant-&/g' \ |
127 |
- "${S}"/runtime/doc/syntax.txt \ |
128 |
- "${S}"/runtime/doc/tagsrch.txt \ |
129 |
- "${S}"/runtime/doc/usr_29.txt \ |
130 |
- "${S}"/runtime/menu.vim \ |
131 |
- "${S}"/src/configure.in || die 'sed failed' |
132 |
- |
133 |
- # Don't be fooled by /usr/include/libc.h. When found, vim thinks |
134 |
- # this is NeXT, but it's actually just a file in dev-libs/9libs |
135 |
- # This fixes bug 43885 (20 Mar 2004 agriffis) |
136 |
- sed -i 's/ libc\.h / /' "${S}"/src/configure.in || die 'sed failed' |
137 |
- |
138 |
- # gcc on sparc32 has this, uhm, interesting problem with detecting EOF |
139 |
- # correctly. To avoid some really entertaining error messages about stuff |
140 |
- # which isn't even in the source file being invalid, we'll do some trickery |
141 |
- # to make the error never occur. bug 66162 (02 October 2004 ciaranm) |
142 |
- find "${S}" -name '*.c' | while read c ; do echo >> "$c" ; done |
143 |
- |
144 |
- # conditionally make the manpager.sh script |
145 |
- if use vim-pager ; then |
146 |
- cat <<-END > "${S}"/runtime/macros/manpager.sh |
147 |
- #!/bin/sh |
148 |
- sed -e 's/\x1B\[[[:digit:]]\+m//g' | col -b | \\ |
149 |
- vim \\ |
150 |
- -c 'let no_plugin_maps = 1' \\ |
151 |
- -c 'set nolist nomod ft=man ts=8' \\ |
152 |
- -c 'let g:showmarks_enable=0' \\ |
153 |
- -c 'runtime! macros/less.vim' - |
154 |
- END |
155 |
- fi |
156 |
- |
157 |
- # Try to avoid sandbox problems. Bug #114475. |
158 |
- if [[ -d "${S}"/src/po ]] ; then |
159 |
- sed -i '/-S check.vim/s,..VIM.,ln -s $(VIM) testvim \; ./testvim -X,' \ |
160 |
- "${S}"/src/po/Makefile |
161 |
- fi |
162 |
- |
163 |
- if version_is_at_least 7.3.122 ; then |
164 |
- cp "${S}"/src/config.mk.dist "${S}"/src/auto/config.mk |
165 |
- fi |
166 |
- |
167 |
- # Bug #378107 - Build properly with >=perl-core/ExtUtils-ParseXS-3.20.0 |
168 |
- if version_is_at_least 7.3 ; then |
169 |
- sed -i "s:\\\$(PERLLIB)/ExtUtils/xsubpp:${EPREFIX}/usr/bin/xsubpp:" \ |
170 |
- "${S}"/src/Makefile || die 'sed for ExtUtils-ParseXS failed' |
171 |
- fi |
172 |
- |
173 |
- epatch_user |
174 |
-} |
175 |
- |
176 |
-src_configure() { |
177 |
- local myconf=() |
178 |
- |
179 |
- # Fix bug 37354: Disallow -funroll-all-loops on amd64 |
180 |
- # Bug 57859 suggests that we want to do this for all archs |
181 |
- filter-flags -funroll-all-loops |
182 |
- |
183 |
- # Fix bug 76331: -O3 causes problems, use -O2 instead. We'll do this for |
184 |
- # everyone since previous flag filtering bugs have turned out to affect |
185 |
- # multiple archs... |
186 |
- replace-flags -O3 -O2 |
187 |
- |
188 |
- # Fix bug 18245: Prevent "make" from the following chain: |
189 |
- # (1) Notice configure.in is newer than auto/configure |
190 |
- # (2) Rebuild auto/configure |
191 |
- # (3) Notice auto/configure is newer than auto/config.mk |
192 |
- # (4) Run ./configure (with wrong args) to remake auto/config.mk |
193 |
- sed -i 's# auto/config\.mk:#:#' src/Makefile || die "Makefile sed failed" |
194 |
- rm -f src/auto/configure |
195 |
- emake -j1 -C src autoconf |
196 |
- |
197 |
- # This should fix a sandbox violation (see bug 24447). The hvc |
198 |
- # things are for ppc64, see bug 86433. |
199 |
- for file in /dev/pty/s* /dev/console /dev/hvc/* /dev/hvc* ; do |
200 |
- [[ -e ${file} ]] && addwrite $file |
201 |
- done |
202 |
- |
203 |
- if use minimal ; then |
204 |
- myconf=( |
205 |
- --with-features=tiny |
206 |
- --disable-nls |
207 |
- --disable-multibyte |
208 |
- --disable-acl |
209 |
- --enable-gui=no |
210 |
- --without-x |
211 |
- --disable-darwin |
212 |
- --disable-luainterp |
213 |
- --disable-perlinterp |
214 |
- --disable-pythoninterp |
215 |
- --disable-mzschemeinterp |
216 |
- --disable-rubyinterp |
217 |
- --disable-selinux |
218 |
- --disable-tclinterp |
219 |
- --disable-gpm |
220 |
- ) |
221 |
- else |
222 |
- use debug && append-flags "-DDEBUG" |
223 |
- |
224 |
- myconf=( |
225 |
- --with-features=huge |
226 |
- --enable-multibyte |
227 |
- $(use_enable acl) |
228 |
- $(use_enable cscope) |
229 |
- $(use_enable gpm) |
230 |
- $(use_enable lua luainterp) |
231 |
- $(usex lua "--with-lua-prefix=${EPREFIX}/usr" "") |
232 |
- $(use_with luajit) |
233 |
- $(use_enable nls) |
234 |
- $(use_enable perl perlinterp) |
235 |
- $(use_enable racket mzschemeinterp) |
236 |
- $(use_enable ruby rubyinterp) |
237 |
- $(use_enable selinux) |
238 |
- $(use_enable tcl tclinterp) |
239 |
- ) |
240 |
- |
241 |
- if use python ; then |
242 |
- py_add_interp() { |
243 |
- local v |
244 |
- |
245 |
- [[ ${EPYTHON} == python3* ]] && v=3 |
246 |
- myconf+=( |
247 |
- --enable-python${v}interp |
248 |
- vi_cv_path_python${v}="${PYTHON}" |
249 |
- ) |
250 |
- } |
251 |
- |
252 |
- python_foreach_impl py_add_interp |
253 |
- else |
254 |
- myconf+=( |
255 |
- --disable-pythoninterp |
256 |
- --disable-python3interp |
257 |
- ) |
258 |
- fi |
259 |
- |
260 |
- # --with-features=huge forces on cscope even if we --disable it. We need |
261 |
- # to sed this out to avoid screwiness. (1 Sep 2004 ciaranm) |
262 |
- if ! use cscope ; then |
263 |
- sed -i '/# define FEAT_CSCOPE/d' src/feature.h || \ |
264 |
- die "couldn't disable cscope" |
265 |
- fi |
266 |
- |
267 |
- # don't test USE=X here ... see bug #19115 |
268 |
- # but need to provide a way to link against X ... see bug #20093 |
269 |
- myconf+=( |
270 |
- --enable-gui=no |
271 |
- --disable-darwin |
272 |
- $(use_with X x) |
273 |
- ) |
274 |
- fi |
275 |
- |
276 |
- # Let Portage do the stripping. Some people like that. |
277 |
- export ac_cv_prog_STRIP="$(type -P true ) faking strip" |
278 |
- |
279 |
- # Keep Gentoo Prefix env contained within the EPREFIX |
280 |
- use prefix && myconf+=( --without-local-dir ) |
281 |
- |
282 |
- econf \ |
283 |
- --with-modified-by=Gentoo-${PVR} \ |
284 |
- "${myconf[@]}" |
285 |
-} |
286 |
- |
287 |
-src_compile() { |
288 |
- # The following allows emake to be used |
289 |
- emake -j1 -C src auto/osdef.h objects |
290 |
- |
291 |
- emake |
292 |
-} |
293 |
- |
294 |
-src_test() { |
295 |
- echo |
296 |
- einfo "Starting vim tests. Several error messages will be shown" |
297 |
- einfo "while the tests run. This is normal behaviour and does not" |
298 |
- einfo "indicate a fault." |
299 |
- echo |
300 |
- ewarn "If the tests fail, your terminal may be left in a strange" |
301 |
- ewarn "state. Usually, running 'reset' will fix this." |
302 |
- echo |
303 |
- |
304 |
- # Don't let vim talk to X |
305 |
- unset DISPLAY |
306 |
- |
307 |
- # We've got to call make test from within testdir, since the Makefiles |
308 |
- # don't pass through our VIMPROG argument |
309 |
- cd "${S}"/src/testdir |
310 |
- |
311 |
- # Test 49 won't work inside a portage environment |
312 |
- einfo "Test 49 isn't sandbox-friendly, so it will be skipped." |
313 |
- sed -i 's~test49.out~~g' Makefile |
314 |
- |
315 |
- # We don't want to rebuild vim before running the tests |
316 |
- sed -i 's,: \$(VIMPROG),: ,' Makefile |
317 |
- |
318 |
- # Don't try to do the additional GUI test |
319 |
- emake -j1 VIMPROG=../vim nongui |
320 |
-} |
321 |
- |
322 |
-# Make convenience symlinks, hopefully without stepping on toes. Some |
323 |
-# of these links are "owned" by the vim ebuild when it is installed, |
324 |
-# but they might be good for gvim as well (see bug 45828) |
325 |
-update_vim_symlinks() { |
326 |
- local f syms |
327 |
- syms="vimdiff rvim rview" |
328 |
- einfo "Calling eselect vi update..." |
329 |
- # Call this with --if-unset to respect user's choice (bug 187449) |
330 |
- eselect vi update --if-unset |
331 |
- |
332 |
- # Make or remove convenience symlink, vim -> gvim |
333 |
- if [[ -f "${EROOT}"/usr/bin/gvim ]]; then |
334 |
- ln -s gvim "${EROOT}"/usr/bin/vim 2>/dev/null |
335 |
- elif [[ -L "${EROOT}"/usr/bin/vim && ! -f "${EROOT}"/usr/bin/vim ]]; then |
336 |
- rm "${EROOT}"/usr/bin/vim |
337 |
- fi |
338 |
- |
339 |
- # Make or remove convenience symlinks to vim |
340 |
- if [[ -f "${EROOT}"/usr/bin/vim ]]; then |
341 |
- for f in ${syms}; do |
342 |
- ln -s vim "${EROOT}"/usr/bin/${f} 2>/dev/null |
343 |
- done |
344 |
- else |
345 |
- for f in ${syms}; do |
346 |
- if [[ -L "${EROOT}"/usr/bin/${f} && ! -f "${EROOT}"/usr/bin/${f} ]]; then |
347 |
- rm -f "${EROOT}"/usr/bin/${f} |
348 |
- fi |
349 |
- done |
350 |
- fi |
351 |
- |
352 |
- # This will still break if you merge then remove the vi package, |
353 |
- # but there's only so much you can do, eh? Unfortunately we don't |
354 |
- # have triggers like are done in rpm-land. |
355 |
-} |
356 |
- |
357 |
-src_install() { |
358 |
- local vimfiles=/usr/share/vim/vim${VIM_VERSION/.} |
359 |
- |
360 |
- # Note: Do not install symlinks for 'vi', 'ex', or 'view', as these are |
361 |
- # managed by eselect-vi |
362 |
- dobin src/vim |
363 |
- dosym vim /usr/bin/vimdiff |
364 |
- dosym vim /usr/bin/rvim |
365 |
- dosym vim /usr/bin/rview |
366 |
- if use vim-pager ; then |
367 |
- dosym ${vimfiles}/macros/less.sh /usr/bin/vimpager |
368 |
- dosym ${vimfiles}/macros/manpager.sh /usr/bin/vimmanpager |
369 |
- insinto ${vimfiles}/macros |
370 |
- doins runtime/macros/manpager.sh |
371 |
- fperms a+x ${vimfiles}/macros/manpager.sh |
372 |
- fi |
373 |
- |
374 |
- newbashcomp "${FILESDIR}"/${PN}-completion ${PN} |
375 |
- # keep in sync with 'complete ... -F' list |
376 |
- bashcomp_alias vim ex vi view rvim rview vimdiff |
377 |
- |
378 |
- # We shouldn't be installing the ex or view man page symlinks, as they |
379 |
- # are managed by eselect-vi |
380 |
- rm -f "${ED}"/usr/share/man/man1/{ex,view}.1 |
381 |
-} |
382 |
- |
383 |
-pkg_postinst() { |
384 |
- # Update documentation tags (from vim-doc.eclass) |
385 |
- update_vim_helptags |
386 |
- |
387 |
- # Make convenience symlinks |
388 |
- update_vim_symlinks |
389 |
-} |
390 |
- |
391 |
-pkg_postrm() { |
392 |
- # Update documentation tags (from vim-doc.eclass) |
393 |
- update_vim_helptags |
394 |
- |
395 |
- # Make convenience symlinks |
396 |
- update_vim_symlinks |
397 |
-} |
398 |
|
399 |
diff --git a/app-editors/vim/vim-7.4.1229.ebuild b/app-editors/vim/vim-7.4.1229.ebuild |
400 |
deleted file mode 100644 |
401 |
index d0e5706..0000000 |
402 |
--- a/app-editors/vim/vim-7.4.1229.ebuild |
403 |
+++ /dev/null |
404 |
@@ -1,364 +0,0 @@ |
405 |
-# Copyright 1999-2016 Gentoo Foundation |
406 |
-# Distributed under the terms of the GNU General Public License v2 |
407 |
-# $Id$ |
408 |
- |
409 |
-EAPI=5 |
410 |
-VIM_VERSION="7.4" |
411 |
-PYTHON_COMPAT=( python{2_7,3_3,3_4,3_5} ) |
412 |
-PYTHON_REQ_USE=threads |
413 |
-inherit eutils vim-doc flag-o-matic fdo-mime versionator bash-completion-r1 python-r1 |
414 |
- |
415 |
-if [[ ${PV} == 9999* ]] ; then |
416 |
- inherit git-r3 |
417 |
- EGIT_REPO_URI="https://github.com/vim/vim.git" |
418 |
-else |
419 |
- SRC_URI="https://github.com/vim/vim/archive/v${PV}.tar.gz -> ${P}.tar.gz |
420 |
- https://dev.gentoo.org/~radhermit/vim/vim-7.4.827-gentoo-patches.tar.bz2" |
421 |
- 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" |
422 |
-fi |
423 |
- |
424 |
-DESCRIPTION="Vim, an improved vi-style text editor" |
425 |
-HOMEPAGE="http://www.vim.org/ https://github.com/vim/vim" |
426 |
- |
427 |
-SLOT="0" |
428 |
-LICENSE="vim" |
429 |
-IUSE="X acl cscope debug gpm lua luajit minimal nls perl python racket ruby selinux tcl vim-pager" |
430 |
-REQUIRED_USE=" |
431 |
- luajit? ( lua ) |
432 |
- python? ( |
433 |
- || ( $(python_gen_useflags '*') ) |
434 |
- ?? ( $(python_gen_useflags 'python2*') ) |
435 |
- ?? ( $(python_gen_useflags 'python3*') ) |
436 |
- ) |
437 |
-" |
438 |
- |
439 |
-RDEPEND=" |
440 |
- >=app-eselect/eselect-vi-1.1 |
441 |
- >=sys-libs/ncurses-5.2-r2:= |
442 |
- nls? ( virtual/libintl ) |
443 |
- acl? ( kernel_linux? ( sys-apps/acl ) ) |
444 |
- cscope? ( dev-util/cscope ) |
445 |
- gpm? ( >=sys-libs/gpm-1.19.3 ) |
446 |
- lua? ( |
447 |
- luajit? ( dev-lang/luajit:2= ) |
448 |
- !luajit? ( dev-lang/lua:0[deprecated] ) |
449 |
- ) |
450 |
- !minimal? ( |
451 |
- ~app-editors/vim-core-${PV} |
452 |
- dev-util/ctags |
453 |
- ) |
454 |
- perl? ( dev-lang/perl:= ) |
455 |
- python? ( ${PYTHON_DEPS} ) |
456 |
- racket? ( dev-scheme/racket ) |
457 |
- ruby? ( || ( dev-lang/ruby:2.3 dev-lang/ruby:2.2 dev-lang/ruby:2.1 dev-lang/ruby:2.0 ) ) |
458 |
- selinux? ( sys-libs/libselinux ) |
459 |
- tcl? ( dev-lang/tcl:0= ) |
460 |
- X? ( x11-libs/libXt ) |
461 |
-" |
462 |
-DEPEND="${RDEPEND} |
463 |
- sys-devel/autoconf |
464 |
- nls? ( sys-devel/gettext ) |
465 |
-" |
466 |
- |
467 |
-pkg_setup() { |
468 |
- # people with broken alphabets run into trouble. bug 82186. |
469 |
- unset LANG LC_ALL |
470 |
- export LC_COLLATE="C" |
471 |
- |
472 |
- # Gnome sandbox silliness. bug #114475. |
473 |
- mkdir -p "${T}"/home |
474 |
- export HOME="${T}"/home |
475 |
-} |
476 |
- |
477 |
-src_prepare() { |
478 |
- if [[ ${PV} != 9999* ]] ; then |
479 |
- if [[ -d "${WORKDIR}"/patches/ ]]; then |
480 |
- # Gentoo patches to fix runtime issues, cross-compile errors, etc |
481 |
- EPATCH_SUFFIX="patch" EPATCH_FORCE="yes" \ |
482 |
- epatch "${WORKDIR}"/patches/ |
483 |
- fi |
484 |
- fi |
485 |
- |
486 |
- # Fixup a script to use awk instead of nawk |
487 |
- sed -i '1s|.*|#!'"${EPREFIX}"'/usr/bin/awk -f|' "${S}"/runtime/tools/mve.awk \ |
488 |
- || die "mve.awk sed failed" |
489 |
- |
490 |
- # Read vimrc and gvimrc from /etc/vim |
491 |
- echo '#define SYS_VIMRC_FILE "'${EPREFIX}'/etc/vim/vimrc"' >> "${S}"/src/feature.h |
492 |
- echo '#define SYS_GVIMRC_FILE "'${EPREFIX}'/etc/vim/gvimrc"' >> "${S}"/src/feature.h |
493 |
- |
494 |
- # Use exuberant ctags which installs as /usr/bin/exuberant-ctags. |
495 |
- # Hopefully this pattern won't break for a while at least. |
496 |
- # This fixes bug 29398 (27 Sep 2003 agriffis) |
497 |
- sed -i 's/\<ctags\("\| [-*.]\)/exuberant-&/g' \ |
498 |
- "${S}"/runtime/doc/syntax.txt \ |
499 |
- "${S}"/runtime/doc/tagsrch.txt \ |
500 |
- "${S}"/runtime/doc/usr_29.txt \ |
501 |
- "${S}"/runtime/menu.vim \ |
502 |
- "${S}"/src/configure.in || die 'sed failed' |
503 |
- |
504 |
- # Don't be fooled by /usr/include/libc.h. When found, vim thinks |
505 |
- # this is NeXT, but it's actually just a file in dev-libs/9libs |
506 |
- # This fixes bug 43885 (20 Mar 2004 agriffis) |
507 |
- sed -i 's/ libc\.h / /' "${S}"/src/configure.in || die 'sed failed' |
508 |
- |
509 |
- # gcc on sparc32 has this, uhm, interesting problem with detecting EOF |
510 |
- # correctly. To avoid some really entertaining error messages about stuff |
511 |
- # which isn't even in the source file being invalid, we'll do some trickery |
512 |
- # to make the error never occur. bug 66162 (02 October 2004 ciaranm) |
513 |
- find "${S}" -name '*.c' | while read c ; do echo >> "$c" ; done |
514 |
- |
515 |
- # conditionally make the manpager.sh script |
516 |
- if use vim-pager ; then |
517 |
- cat <<-END > "${S}"/runtime/macros/manpager.sh |
518 |
- #!/bin/sh |
519 |
- sed -e 's/\x1B\[[[:digit:]]\+m//g' | col -b | \\ |
520 |
- vim \\ |
521 |
- -c 'let no_plugin_maps = 1' \\ |
522 |
- -c 'set nolist nomod ft=man ts=8' \\ |
523 |
- -c 'let g:showmarks_enable=0' \\ |
524 |
- -c 'runtime! macros/less.vim' - |
525 |
- END |
526 |
- fi |
527 |
- |
528 |
- # Try to avoid sandbox problems. Bug #114475. |
529 |
- if [[ -d "${S}"/src/po ]] ; then |
530 |
- sed -i '/-S check.vim/s,..VIM.,ln -s $(VIM) testvim \; ./testvim -X,' \ |
531 |
- "${S}"/src/po/Makefile |
532 |
- fi |
533 |
- |
534 |
- if version_is_at_least 7.3.122 ; then |
535 |
- cp "${S}"/src/config.mk.dist "${S}"/src/auto/config.mk |
536 |
- fi |
537 |
- |
538 |
- # Bug #378107 - Build properly with >=perl-core/ExtUtils-ParseXS-3.20.0 |
539 |
- if version_is_at_least 7.3 ; then |
540 |
- sed -i "s:\\\$(PERLLIB)/ExtUtils/xsubpp:${EPREFIX}/usr/bin/xsubpp:" \ |
541 |
- "${S}"/src/Makefile || die 'sed for ExtUtils-ParseXS failed' |
542 |
- fi |
543 |
- |
544 |
- epatch_user |
545 |
-} |
546 |
- |
547 |
-src_configure() { |
548 |
- local myconf=() |
549 |
- |
550 |
- # Fix bug 37354: Disallow -funroll-all-loops on amd64 |
551 |
- # Bug 57859 suggests that we want to do this for all archs |
552 |
- filter-flags -funroll-all-loops |
553 |
- |
554 |
- # Fix bug 76331: -O3 causes problems, use -O2 instead. We'll do this for |
555 |
- # everyone since previous flag filtering bugs have turned out to affect |
556 |
- # multiple archs... |
557 |
- replace-flags -O3 -O2 |
558 |
- |
559 |
- # Fix bug 18245: Prevent "make" from the following chain: |
560 |
- # (1) Notice configure.in is newer than auto/configure |
561 |
- # (2) Rebuild auto/configure |
562 |
- # (3) Notice auto/configure is newer than auto/config.mk |
563 |
- # (4) Run ./configure (with wrong args) to remake auto/config.mk |
564 |
- sed -i 's# auto/config\.mk:#:#' src/Makefile || die "Makefile sed failed" |
565 |
- rm -f src/auto/configure |
566 |
- emake -j1 -C src autoconf |
567 |
- |
568 |
- # This should fix a sandbox violation (see bug 24447). The hvc |
569 |
- # things are for ppc64, see bug 86433. |
570 |
- for file in /dev/pty/s* /dev/console /dev/hvc/* /dev/hvc* ; do |
571 |
- [[ -e ${file} ]] && addwrite $file |
572 |
- done |
573 |
- |
574 |
- if use minimal ; then |
575 |
- myconf=( |
576 |
- --with-features=tiny |
577 |
- --disable-nls |
578 |
- --disable-multibyte |
579 |
- --disable-acl |
580 |
- --enable-gui=no |
581 |
- --without-x |
582 |
- --disable-darwin |
583 |
- --disable-luainterp |
584 |
- --disable-perlinterp |
585 |
- --disable-pythoninterp |
586 |
- --disable-mzschemeinterp |
587 |
- --disable-rubyinterp |
588 |
- --disable-selinux |
589 |
- --disable-tclinterp |
590 |
- --disable-gpm |
591 |
- ) |
592 |
- else |
593 |
- use debug && append-flags "-DDEBUG" |
594 |
- |
595 |
- myconf=( |
596 |
- --with-features=huge |
597 |
- --enable-multibyte |
598 |
- $(use_enable acl) |
599 |
- $(use_enable cscope) |
600 |
- $(use_enable gpm) |
601 |
- $(use_enable lua luainterp) |
602 |
- $(usex lua "--with-lua-prefix=${EPREFIX}/usr" "") |
603 |
- $(use_with luajit) |
604 |
- $(use_enable nls) |
605 |
- $(use_enable perl perlinterp) |
606 |
- $(use_enable racket mzschemeinterp) |
607 |
- $(use_enable ruby rubyinterp) |
608 |
- $(use_enable selinux) |
609 |
- $(use_enable tcl tclinterp) |
610 |
- ) |
611 |
- |
612 |
- if use python ; then |
613 |
- py_add_interp() { |
614 |
- local v |
615 |
- |
616 |
- [[ ${EPYTHON} == python3* ]] && v=3 |
617 |
- myconf+=( |
618 |
- --enable-python${v}interp |
619 |
- vi_cv_path_python${v}="${PYTHON}" |
620 |
- ) |
621 |
- } |
622 |
- |
623 |
- python_foreach_impl py_add_interp |
624 |
- else |
625 |
- myconf+=( |
626 |
- --disable-pythoninterp |
627 |
- --disable-python3interp |
628 |
- ) |
629 |
- fi |
630 |
- |
631 |
- # --with-features=huge forces on cscope even if we --disable it. We need |
632 |
- # to sed this out to avoid screwiness. (1 Sep 2004 ciaranm) |
633 |
- if ! use cscope ; then |
634 |
- sed -i '/# define FEAT_CSCOPE/d' src/feature.h || \ |
635 |
- die "couldn't disable cscope" |
636 |
- fi |
637 |
- |
638 |
- # don't test USE=X here ... see bug #19115 |
639 |
- # but need to provide a way to link against X ... see bug #20093 |
640 |
- myconf+=( |
641 |
- --enable-gui=no |
642 |
- --disable-darwin |
643 |
- $(use_with X x) |
644 |
- ) |
645 |
- fi |
646 |
- |
647 |
- # Let Portage do the stripping. Some people like that. |
648 |
- export ac_cv_prog_STRIP="$(type -P true ) faking strip" |
649 |
- |
650 |
- # Keep Gentoo Prefix env contained within the EPREFIX |
651 |
- use prefix && myconf+=( --without-local-dir ) |
652 |
- |
653 |
- econf \ |
654 |
- --with-modified-by=Gentoo-${PVR} \ |
655 |
- "${myconf[@]}" |
656 |
-} |
657 |
- |
658 |
-src_compile() { |
659 |
- # The following allows emake to be used |
660 |
- emake -j1 -C src auto/osdef.h objects |
661 |
- |
662 |
- emake |
663 |
-} |
664 |
- |
665 |
-src_test() { |
666 |
- echo |
667 |
- einfo "Starting vim tests. Several error messages will be shown" |
668 |
- einfo "while the tests run. This is normal behaviour and does not" |
669 |
- einfo "indicate a fault." |
670 |
- echo |
671 |
- ewarn "If the tests fail, your terminal may be left in a strange" |
672 |
- ewarn "state. Usually, running 'reset' will fix this." |
673 |
- echo |
674 |
- |
675 |
- # Don't let vim talk to X |
676 |
- unset DISPLAY |
677 |
- |
678 |
- # We've got to call make test from within testdir, since the Makefiles |
679 |
- # don't pass through our VIMPROG argument |
680 |
- cd "${S}"/src/testdir |
681 |
- |
682 |
- # Test 49 won't work inside a portage environment |
683 |
- einfo "Test 49 isn't sandbox-friendly, so it will be skipped." |
684 |
- sed -i 's~test49.out~~g' Makefile |
685 |
- |
686 |
- # We don't want to rebuild vim before running the tests |
687 |
- sed -i 's,: \$(VIMPROG),: ,' Makefile |
688 |
- |
689 |
- # Don't try to do the additional GUI test |
690 |
- emake -j1 VIMPROG=../vim nongui |
691 |
-} |
692 |
- |
693 |
-# Make convenience symlinks, hopefully without stepping on toes. Some |
694 |
-# of these links are "owned" by the vim ebuild when it is installed, |
695 |
-# but they might be good for gvim as well (see bug 45828) |
696 |
-update_vim_symlinks() { |
697 |
- local f syms |
698 |
- syms="vimdiff rvim rview" |
699 |
- einfo "Calling eselect vi update..." |
700 |
- # Call this with --if-unset to respect user's choice (bug 187449) |
701 |
- eselect vi update --if-unset |
702 |
- |
703 |
- # Make or remove convenience symlink, vim -> gvim |
704 |
- if [[ -f "${EROOT}"/usr/bin/gvim ]]; then |
705 |
- ln -s gvim "${EROOT}"/usr/bin/vim 2>/dev/null |
706 |
- elif [[ -L "${EROOT}"/usr/bin/vim && ! -f "${EROOT}"/usr/bin/vim ]]; then |
707 |
- rm "${EROOT}"/usr/bin/vim |
708 |
- fi |
709 |
- |
710 |
- # Make or remove convenience symlinks to vim |
711 |
- if [[ -f "${EROOT}"/usr/bin/vim ]]; then |
712 |
- for f in ${syms}; do |
713 |
- ln -s vim "${EROOT}"/usr/bin/${f} 2>/dev/null |
714 |
- done |
715 |
- else |
716 |
- for f in ${syms}; do |
717 |
- if [[ -L "${EROOT}"/usr/bin/${f} && ! -f "${EROOT}"/usr/bin/${f} ]]; then |
718 |
- rm -f "${EROOT}"/usr/bin/${f} |
719 |
- fi |
720 |
- done |
721 |
- fi |
722 |
- |
723 |
- # This will still break if you merge then remove the vi package, |
724 |
- # but there's only so much you can do, eh? Unfortunately we don't |
725 |
- # have triggers like are done in rpm-land. |
726 |
-} |
727 |
- |
728 |
-src_install() { |
729 |
- local vimfiles=/usr/share/vim/vim${VIM_VERSION/.} |
730 |
- |
731 |
- # Note: Do not install symlinks for 'vi', 'ex', or 'view', as these are |
732 |
- # managed by eselect-vi |
733 |
- dobin src/vim |
734 |
- dosym vim /usr/bin/vimdiff |
735 |
- dosym vim /usr/bin/rvim |
736 |
- dosym vim /usr/bin/rview |
737 |
- if use vim-pager ; then |
738 |
- dosym ${vimfiles}/macros/less.sh /usr/bin/vimpager |
739 |
- dosym ${vimfiles}/macros/manpager.sh /usr/bin/vimmanpager |
740 |
- insinto ${vimfiles}/macros |
741 |
- doins runtime/macros/manpager.sh |
742 |
- fperms a+x ${vimfiles}/macros/manpager.sh |
743 |
- fi |
744 |
- |
745 |
- newbashcomp "${FILESDIR}"/${PN}-completion ${PN} |
746 |
- # keep in sync with 'complete ... -F' list |
747 |
- bashcomp_alias vim ex vi view rvim rview vimdiff |
748 |
- |
749 |
- # We shouldn't be installing the ex or view man page symlinks, as they |
750 |
- # are managed by eselect-vi |
751 |
- rm -f "${ED}"/usr/share/man/man1/{ex,view}.1 |
752 |
-} |
753 |
- |
754 |
-pkg_postinst() { |
755 |
- # Update documentation tags (from vim-doc.eclass) |
756 |
- update_vim_helptags |
757 |
- |
758 |
- # Make convenience symlinks |
759 |
- update_vim_symlinks |
760 |
-} |
761 |
- |
762 |
-pkg_postrm() { |
763 |
- # Update documentation tags (from vim-doc.eclass) |
764 |
- update_vim_helptags |
765 |
- |
766 |
- # Make convenience symlinks |
767 |
- update_vim_symlinks |
768 |
-} |
769 |
|
770 |
diff --git a/app-editors/vim/vim-7.4.1342.ebuild b/app-editors/vim/vim-7.4.1342.ebuild |
771 |
deleted file mode 100644 |
772 |
index d0e5706..0000000 |
773 |
--- a/app-editors/vim/vim-7.4.1342.ebuild |
774 |
+++ /dev/null |
775 |
@@ -1,364 +0,0 @@ |
776 |
-# Copyright 1999-2016 Gentoo Foundation |
777 |
-# Distributed under the terms of the GNU General Public License v2 |
778 |
-# $Id$ |
779 |
- |
780 |
-EAPI=5 |
781 |
-VIM_VERSION="7.4" |
782 |
-PYTHON_COMPAT=( python{2_7,3_3,3_4,3_5} ) |
783 |
-PYTHON_REQ_USE=threads |
784 |
-inherit eutils vim-doc flag-o-matic fdo-mime versionator bash-completion-r1 python-r1 |
785 |
- |
786 |
-if [[ ${PV} == 9999* ]] ; then |
787 |
- inherit git-r3 |
788 |
- EGIT_REPO_URI="https://github.com/vim/vim.git" |
789 |
-else |
790 |
- SRC_URI="https://github.com/vim/vim/archive/v${PV}.tar.gz -> ${P}.tar.gz |
791 |
- https://dev.gentoo.org/~radhermit/vim/vim-7.4.827-gentoo-patches.tar.bz2" |
792 |
- 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" |
793 |
-fi |
794 |
- |
795 |
-DESCRIPTION="Vim, an improved vi-style text editor" |
796 |
-HOMEPAGE="http://www.vim.org/ https://github.com/vim/vim" |
797 |
- |
798 |
-SLOT="0" |
799 |
-LICENSE="vim" |
800 |
-IUSE="X acl cscope debug gpm lua luajit minimal nls perl python racket ruby selinux tcl vim-pager" |
801 |
-REQUIRED_USE=" |
802 |
- luajit? ( lua ) |
803 |
- python? ( |
804 |
- || ( $(python_gen_useflags '*') ) |
805 |
- ?? ( $(python_gen_useflags 'python2*') ) |
806 |
- ?? ( $(python_gen_useflags 'python3*') ) |
807 |
- ) |
808 |
-" |
809 |
- |
810 |
-RDEPEND=" |
811 |
- >=app-eselect/eselect-vi-1.1 |
812 |
- >=sys-libs/ncurses-5.2-r2:= |
813 |
- nls? ( virtual/libintl ) |
814 |
- acl? ( kernel_linux? ( sys-apps/acl ) ) |
815 |
- cscope? ( dev-util/cscope ) |
816 |
- gpm? ( >=sys-libs/gpm-1.19.3 ) |
817 |
- lua? ( |
818 |
- luajit? ( dev-lang/luajit:2= ) |
819 |
- !luajit? ( dev-lang/lua:0[deprecated] ) |
820 |
- ) |
821 |
- !minimal? ( |
822 |
- ~app-editors/vim-core-${PV} |
823 |
- dev-util/ctags |
824 |
- ) |
825 |
- perl? ( dev-lang/perl:= ) |
826 |
- python? ( ${PYTHON_DEPS} ) |
827 |
- racket? ( dev-scheme/racket ) |
828 |
- ruby? ( || ( dev-lang/ruby:2.3 dev-lang/ruby:2.2 dev-lang/ruby:2.1 dev-lang/ruby:2.0 ) ) |
829 |
- selinux? ( sys-libs/libselinux ) |
830 |
- tcl? ( dev-lang/tcl:0= ) |
831 |
- X? ( x11-libs/libXt ) |
832 |
-" |
833 |
-DEPEND="${RDEPEND} |
834 |
- sys-devel/autoconf |
835 |
- nls? ( sys-devel/gettext ) |
836 |
-" |
837 |
- |
838 |
-pkg_setup() { |
839 |
- # people with broken alphabets run into trouble. bug 82186. |
840 |
- unset LANG LC_ALL |
841 |
- export LC_COLLATE="C" |
842 |
- |
843 |
- # Gnome sandbox silliness. bug #114475. |
844 |
- mkdir -p "${T}"/home |
845 |
- export HOME="${T}"/home |
846 |
-} |
847 |
- |
848 |
-src_prepare() { |
849 |
- if [[ ${PV} != 9999* ]] ; then |
850 |
- if [[ -d "${WORKDIR}"/patches/ ]]; then |
851 |
- # Gentoo patches to fix runtime issues, cross-compile errors, etc |
852 |
- EPATCH_SUFFIX="patch" EPATCH_FORCE="yes" \ |
853 |
- epatch "${WORKDIR}"/patches/ |
854 |
- fi |
855 |
- fi |
856 |
- |
857 |
- # Fixup a script to use awk instead of nawk |
858 |
- sed -i '1s|.*|#!'"${EPREFIX}"'/usr/bin/awk -f|' "${S}"/runtime/tools/mve.awk \ |
859 |
- || die "mve.awk sed failed" |
860 |
- |
861 |
- # Read vimrc and gvimrc from /etc/vim |
862 |
- echo '#define SYS_VIMRC_FILE "'${EPREFIX}'/etc/vim/vimrc"' >> "${S}"/src/feature.h |
863 |
- echo '#define SYS_GVIMRC_FILE "'${EPREFIX}'/etc/vim/gvimrc"' >> "${S}"/src/feature.h |
864 |
- |
865 |
- # Use exuberant ctags which installs as /usr/bin/exuberant-ctags. |
866 |
- # Hopefully this pattern won't break for a while at least. |
867 |
- # This fixes bug 29398 (27 Sep 2003 agriffis) |
868 |
- sed -i 's/\<ctags\("\| [-*.]\)/exuberant-&/g' \ |
869 |
- "${S}"/runtime/doc/syntax.txt \ |
870 |
- "${S}"/runtime/doc/tagsrch.txt \ |
871 |
- "${S}"/runtime/doc/usr_29.txt \ |
872 |
- "${S}"/runtime/menu.vim \ |
873 |
- "${S}"/src/configure.in || die 'sed failed' |
874 |
- |
875 |
- # Don't be fooled by /usr/include/libc.h. When found, vim thinks |
876 |
- # this is NeXT, but it's actually just a file in dev-libs/9libs |
877 |
- # This fixes bug 43885 (20 Mar 2004 agriffis) |
878 |
- sed -i 's/ libc\.h / /' "${S}"/src/configure.in || die 'sed failed' |
879 |
- |
880 |
- # gcc on sparc32 has this, uhm, interesting problem with detecting EOF |
881 |
- # correctly. To avoid some really entertaining error messages about stuff |
882 |
- # which isn't even in the source file being invalid, we'll do some trickery |
883 |
- # to make the error never occur. bug 66162 (02 October 2004 ciaranm) |
884 |
- find "${S}" -name '*.c' | while read c ; do echo >> "$c" ; done |
885 |
- |
886 |
- # conditionally make the manpager.sh script |
887 |
- if use vim-pager ; then |
888 |
- cat <<-END > "${S}"/runtime/macros/manpager.sh |
889 |
- #!/bin/sh |
890 |
- sed -e 's/\x1B\[[[:digit:]]\+m//g' | col -b | \\ |
891 |
- vim \\ |
892 |
- -c 'let no_plugin_maps = 1' \\ |
893 |
- -c 'set nolist nomod ft=man ts=8' \\ |
894 |
- -c 'let g:showmarks_enable=0' \\ |
895 |
- -c 'runtime! macros/less.vim' - |
896 |
- END |
897 |
- fi |
898 |
- |
899 |
- # Try to avoid sandbox problems. Bug #114475. |
900 |
- if [[ -d "${S}"/src/po ]] ; then |
901 |
- sed -i '/-S check.vim/s,..VIM.,ln -s $(VIM) testvim \; ./testvim -X,' \ |
902 |
- "${S}"/src/po/Makefile |
903 |
- fi |
904 |
- |
905 |
- if version_is_at_least 7.3.122 ; then |
906 |
- cp "${S}"/src/config.mk.dist "${S}"/src/auto/config.mk |
907 |
- fi |
908 |
- |
909 |
- # Bug #378107 - Build properly with >=perl-core/ExtUtils-ParseXS-3.20.0 |
910 |
- if version_is_at_least 7.3 ; then |
911 |
- sed -i "s:\\\$(PERLLIB)/ExtUtils/xsubpp:${EPREFIX}/usr/bin/xsubpp:" \ |
912 |
- "${S}"/src/Makefile || die 'sed for ExtUtils-ParseXS failed' |
913 |
- fi |
914 |
- |
915 |
- epatch_user |
916 |
-} |
917 |
- |
918 |
-src_configure() { |
919 |
- local myconf=() |
920 |
- |
921 |
- # Fix bug 37354: Disallow -funroll-all-loops on amd64 |
922 |
- # Bug 57859 suggests that we want to do this for all archs |
923 |
- filter-flags -funroll-all-loops |
924 |
- |
925 |
- # Fix bug 76331: -O3 causes problems, use -O2 instead. We'll do this for |
926 |
- # everyone since previous flag filtering bugs have turned out to affect |
927 |
- # multiple archs... |
928 |
- replace-flags -O3 -O2 |
929 |
- |
930 |
- # Fix bug 18245: Prevent "make" from the following chain: |
931 |
- # (1) Notice configure.in is newer than auto/configure |
932 |
- # (2) Rebuild auto/configure |
933 |
- # (3) Notice auto/configure is newer than auto/config.mk |
934 |
- # (4) Run ./configure (with wrong args) to remake auto/config.mk |
935 |
- sed -i 's# auto/config\.mk:#:#' src/Makefile || die "Makefile sed failed" |
936 |
- rm -f src/auto/configure |
937 |
- emake -j1 -C src autoconf |
938 |
- |
939 |
- # This should fix a sandbox violation (see bug 24447). The hvc |
940 |
- # things are for ppc64, see bug 86433. |
941 |
- for file in /dev/pty/s* /dev/console /dev/hvc/* /dev/hvc* ; do |
942 |
- [[ -e ${file} ]] && addwrite $file |
943 |
- done |
944 |
- |
945 |
- if use minimal ; then |
946 |
- myconf=( |
947 |
- --with-features=tiny |
948 |
- --disable-nls |
949 |
- --disable-multibyte |
950 |
- --disable-acl |
951 |
- --enable-gui=no |
952 |
- --without-x |
953 |
- --disable-darwin |
954 |
- --disable-luainterp |
955 |
- --disable-perlinterp |
956 |
- --disable-pythoninterp |
957 |
- --disable-mzschemeinterp |
958 |
- --disable-rubyinterp |
959 |
- --disable-selinux |
960 |
- --disable-tclinterp |
961 |
- --disable-gpm |
962 |
- ) |
963 |
- else |
964 |
- use debug && append-flags "-DDEBUG" |
965 |
- |
966 |
- myconf=( |
967 |
- --with-features=huge |
968 |
- --enable-multibyte |
969 |
- $(use_enable acl) |
970 |
- $(use_enable cscope) |
971 |
- $(use_enable gpm) |
972 |
- $(use_enable lua luainterp) |
973 |
- $(usex lua "--with-lua-prefix=${EPREFIX}/usr" "") |
974 |
- $(use_with luajit) |
975 |
- $(use_enable nls) |
976 |
- $(use_enable perl perlinterp) |
977 |
- $(use_enable racket mzschemeinterp) |
978 |
- $(use_enable ruby rubyinterp) |
979 |
- $(use_enable selinux) |
980 |
- $(use_enable tcl tclinterp) |
981 |
- ) |
982 |
- |
983 |
- if use python ; then |
984 |
- py_add_interp() { |
985 |
- local v |
986 |
- |
987 |
- [[ ${EPYTHON} == python3* ]] && v=3 |
988 |
- myconf+=( |
989 |
- --enable-python${v}interp |
990 |
- vi_cv_path_python${v}="${PYTHON}" |
991 |
- ) |
992 |
- } |
993 |
- |
994 |
- python_foreach_impl py_add_interp |
995 |
- else |
996 |
- myconf+=( |
997 |
- --disable-pythoninterp |
998 |
- --disable-python3interp |
999 |
- ) |
1000 |
- fi |
1001 |
- |
1002 |
- # --with-features=huge forces on cscope even if we --disable it. We need |
1003 |
- # to sed this out to avoid screwiness. (1 Sep 2004 ciaranm) |
1004 |
- if ! use cscope ; then |
1005 |
- sed -i '/# define FEAT_CSCOPE/d' src/feature.h || \ |
1006 |
- die "couldn't disable cscope" |
1007 |
- fi |
1008 |
- |
1009 |
- # don't test USE=X here ... see bug #19115 |
1010 |
- # but need to provide a way to link against X ... see bug #20093 |
1011 |
- myconf+=( |
1012 |
- --enable-gui=no |
1013 |
- --disable-darwin |
1014 |
- $(use_with X x) |
1015 |
- ) |
1016 |
- fi |
1017 |
- |
1018 |
- # Let Portage do the stripping. Some people like that. |
1019 |
- export ac_cv_prog_STRIP="$(type -P true ) faking strip" |
1020 |
- |
1021 |
- # Keep Gentoo Prefix env contained within the EPREFIX |
1022 |
- use prefix && myconf+=( --without-local-dir ) |
1023 |
- |
1024 |
- econf \ |
1025 |
- --with-modified-by=Gentoo-${PVR} \ |
1026 |
- "${myconf[@]}" |
1027 |
-} |
1028 |
- |
1029 |
-src_compile() { |
1030 |
- # The following allows emake to be used |
1031 |
- emake -j1 -C src auto/osdef.h objects |
1032 |
- |
1033 |
- emake |
1034 |
-} |
1035 |
- |
1036 |
-src_test() { |
1037 |
- echo |
1038 |
- einfo "Starting vim tests. Several error messages will be shown" |
1039 |
- einfo "while the tests run. This is normal behaviour and does not" |
1040 |
- einfo "indicate a fault." |
1041 |
- echo |
1042 |
- ewarn "If the tests fail, your terminal may be left in a strange" |
1043 |
- ewarn "state. Usually, running 'reset' will fix this." |
1044 |
- echo |
1045 |
- |
1046 |
- # Don't let vim talk to X |
1047 |
- unset DISPLAY |
1048 |
- |
1049 |
- # We've got to call make test from within testdir, since the Makefiles |
1050 |
- # don't pass through our VIMPROG argument |
1051 |
- cd "${S}"/src/testdir |
1052 |
- |
1053 |
- # Test 49 won't work inside a portage environment |
1054 |
- einfo "Test 49 isn't sandbox-friendly, so it will be skipped." |
1055 |
- sed -i 's~test49.out~~g' Makefile |
1056 |
- |
1057 |
- # We don't want to rebuild vim before running the tests |
1058 |
- sed -i 's,: \$(VIMPROG),: ,' Makefile |
1059 |
- |
1060 |
- # Don't try to do the additional GUI test |
1061 |
- emake -j1 VIMPROG=../vim nongui |
1062 |
-} |
1063 |
- |
1064 |
-# Make convenience symlinks, hopefully without stepping on toes. Some |
1065 |
-# of these links are "owned" by the vim ebuild when it is installed, |
1066 |
-# but they might be good for gvim as well (see bug 45828) |
1067 |
-update_vim_symlinks() { |
1068 |
- local f syms |
1069 |
- syms="vimdiff rvim rview" |
1070 |
- einfo "Calling eselect vi update..." |
1071 |
- # Call this with --if-unset to respect user's choice (bug 187449) |
1072 |
- eselect vi update --if-unset |
1073 |
- |
1074 |
- # Make or remove convenience symlink, vim -> gvim |
1075 |
- if [[ -f "${EROOT}"/usr/bin/gvim ]]; then |
1076 |
- ln -s gvim "${EROOT}"/usr/bin/vim 2>/dev/null |
1077 |
- elif [[ -L "${EROOT}"/usr/bin/vim && ! -f "${EROOT}"/usr/bin/vim ]]; then |
1078 |
- rm "${EROOT}"/usr/bin/vim |
1079 |
- fi |
1080 |
- |
1081 |
- # Make or remove convenience symlinks to vim |
1082 |
- if [[ -f "${EROOT}"/usr/bin/vim ]]; then |
1083 |
- for f in ${syms}; do |
1084 |
- ln -s vim "${EROOT}"/usr/bin/${f} 2>/dev/null |
1085 |
- done |
1086 |
- else |
1087 |
- for f in ${syms}; do |
1088 |
- if [[ -L "${EROOT}"/usr/bin/${f} && ! -f "${EROOT}"/usr/bin/${f} ]]; then |
1089 |
- rm -f "${EROOT}"/usr/bin/${f} |
1090 |
- fi |
1091 |
- done |
1092 |
- fi |
1093 |
- |
1094 |
- # This will still break if you merge then remove the vi package, |
1095 |
- # but there's only so much you can do, eh? Unfortunately we don't |
1096 |
- # have triggers like are done in rpm-land. |
1097 |
-} |
1098 |
- |
1099 |
-src_install() { |
1100 |
- local vimfiles=/usr/share/vim/vim${VIM_VERSION/.} |
1101 |
- |
1102 |
- # Note: Do not install symlinks for 'vi', 'ex', or 'view', as these are |
1103 |
- # managed by eselect-vi |
1104 |
- dobin src/vim |
1105 |
- dosym vim /usr/bin/vimdiff |
1106 |
- dosym vim /usr/bin/rvim |
1107 |
- dosym vim /usr/bin/rview |
1108 |
- if use vim-pager ; then |
1109 |
- dosym ${vimfiles}/macros/less.sh /usr/bin/vimpager |
1110 |
- dosym ${vimfiles}/macros/manpager.sh /usr/bin/vimmanpager |
1111 |
- insinto ${vimfiles}/macros |
1112 |
- doins runtime/macros/manpager.sh |
1113 |
- fperms a+x ${vimfiles}/macros/manpager.sh |
1114 |
- fi |
1115 |
- |
1116 |
- newbashcomp "${FILESDIR}"/${PN}-completion ${PN} |
1117 |
- # keep in sync with 'complete ... -F' list |
1118 |
- bashcomp_alias vim ex vi view rvim rview vimdiff |
1119 |
- |
1120 |
- # We shouldn't be installing the ex or view man page symlinks, as they |
1121 |
- # are managed by eselect-vi |
1122 |
- rm -f "${ED}"/usr/share/man/man1/{ex,view}.1 |
1123 |
-} |
1124 |
- |
1125 |
-pkg_postinst() { |
1126 |
- # Update documentation tags (from vim-doc.eclass) |
1127 |
- update_vim_helptags |
1128 |
- |
1129 |
- # Make convenience symlinks |
1130 |
- update_vim_symlinks |
1131 |
-} |
1132 |
- |
1133 |
-pkg_postrm() { |
1134 |
- # Update documentation tags (from vim-doc.eclass) |
1135 |
- update_vim_helptags |
1136 |
- |
1137 |
- # Make convenience symlinks |
1138 |
- update_vim_symlinks |
1139 |
-} |