Gentoo Archives: gentoo-commits

From: "Tim Harder (radhermit)" <radhermit@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] gentoo-x86 commit in app-editors/vim: vim-9999.ebuild ChangeLog vim-7.4.169.ebuild
Date: Thu, 06 Feb 2014 07:06:12
Message-Id: 20140206070607.F0A522004C@flycatcher.gentoo.org
1 radhermit 14/02/06 07:06:07
2
3 Modified: vim-9999.ebuild ChangeLog
4 Added: vim-7.4.169.ebuild
5 Log:
6 Version bump. Support ruby:2.1, fix lua dep (bug #500376), and force lua support to be enabled for luajit (bug #499950).
7
8 (Portage version: 2.2.8-r1/cvs/Linux x86_64, signed Manifest commit with key 4AB3E85B4F064CA3)
9
10 Revision Changes Path
11 1.10 app-editors/vim/vim-9999.ebuild
12
13 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/app-editors/vim/vim-9999.ebuild?rev=1.10&view=markup
14 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/app-editors/vim/vim-9999.ebuild?rev=1.10&content-type=text/plain
15 diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/app-editors/vim/vim-9999.ebuild?r1=1.9&r2=1.10
16
17 Index: vim-9999.ebuild
18 ===================================================================
19 RCS file: /var/cvsroot/gentoo-x86/app-editors/vim/vim-9999.ebuild,v
20 retrieving revision 1.9
21 retrieving revision 1.10
22 diff -u -r1.9 -r1.10
23 --- vim-9999.ebuild 16 Dec 2013 09:57:57 -0000 1.9
24 +++ vim-9999.ebuild 6 Feb 2014 07:06:07 -0000 1.10
25 @@ -1,6 +1,6 @@
26 -# Copyright 1999-2013 Gentoo Foundation
27 +# Copyright 1999-2014 Gentoo Foundation
28 # Distributed under the terms of the GNU General Public License v2
29 -# $Header: /var/cvsroot/gentoo-x86/app-editors/vim/vim-9999.ebuild,v 1.9 2013/12/16 09:57:57 radhermit Exp $
30 +# $Header: /var/cvsroot/gentoo-x86/app-editors/vim/vim-9999.ebuild,v 1.10 2014/02/06 07:06:07 radhermit Exp $
31
32 EAPI=5
33 VIM_VERSION="7.4"
34 @@ -26,9 +26,13 @@
35 SLOT="0"
36 LICENSE="vim"
37 IUSE="X acl cscope debug gpm lua luajit minimal nls perl python racket ruby selinux tcl vim-pager"
38 -REQUIRED_USE="python? ( ${PYTHON_REQUIRED_USE} )"
39 +REQUIRED_USE="
40 + python? ( ${PYTHON_REQUIRED_USE} )
41 + luajit? ( lua )
42 +"
43
44 -RDEPEND=">=app-admin/eselect-vi-1.1
45 +RDEPEND="
46 + >=app-admin/eselect-vi-1.1
47 >=sys-libs/ncurses-5.2-r2
48 nls? ( virtual/libintl )
49 acl? ( kernel_linux? ( sys-apps/acl ) )
50 @@ -36,7 +40,7 @@
51 gpm? ( >=sys-libs/gpm-1.19.3 )
52 lua? (
53 luajit? ( dev-lang/luajit )
54 - !luajit? ( dev-lang/lua )
55 + !luajit? ( dev-lang/lua[deprecated] )
56 )
57 !minimal? (
58 ~app-editors/vim-core-${PV}
59 @@ -45,15 +49,17 @@
60 perl? ( dev-lang/perl )
61 python? ( ${PYTHON_DEPS} )
62 racket? ( dev-scheme/racket )
63 - ruby? ( || ( dev-lang/ruby:2.0 dev-lang/ruby:1.9 dev-lang/ruby:1.8 ) )
64 + ruby? ( || ( dev-lang/ruby:2.1 dev-lang/ruby:2.0 dev-lang/ruby:1.9 dev-lang/ruby:1.8 ) )
65 selinux? ( sys-libs/libselinux )
66 tcl? ( dev-lang/tcl )
67 - X? ( x11-libs/libXt )"
68 + X? ( x11-libs/libXt )
69 +"
70 DEPEND="${RDEPEND}
71 >=app-admin/eselect-vi-1.1
72 sys-devel/autoconf
73 >=sys-libs/ncurses-5.2-r2
74 - nls? ( sys-devel/gettext )"
75 + nls? ( sys-devel/gettext )
76 +"
77
78 S=${WORKDIR}/vim${VIM_VERSION/.}
79
80
81
82
83 1.453 app-editors/vim/ChangeLog
84
85 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/app-editors/vim/ChangeLog?rev=1.453&view=markup
86 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/app-editors/vim/ChangeLog?rev=1.453&content-type=text/plain
87 diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/app-editors/vim/ChangeLog?r1=1.452&r2=1.453
88
89 Index: ChangeLog
90 ===================================================================
91 RCS file: /var/cvsroot/gentoo-x86/app-editors/vim/ChangeLog,v
92 retrieving revision 1.452
93 retrieving revision 1.453
94 diff -u -r1.452 -r1.453
95 --- ChangeLog 23 Jan 2014 10:36:43 -0000 1.452
96 +++ ChangeLog 6 Feb 2014 07:06:07 -0000 1.453
97 @@ -1,6 +1,13 @@
98 # ChangeLog for app-editors/vim
99 # Copyright 1999-2014 Gentoo Foundation; Distributed under the GPL v2
100 -# $Header: /var/cvsroot/gentoo-x86/app-editors/vim/ChangeLog,v 1.452 2014/01/23 10:36:43 radhermit Exp $
101 +# $Header: /var/cvsroot/gentoo-x86/app-editors/vim/ChangeLog,v 1.453 2014/02/06 07:06:07 radhermit Exp $
102 +
103 +*vim-7.4.169 (06 Feb 2014)
104 +
105 + 06 Feb 2014; Tim Harder <radhermit@g.o> +vim-7.4.169.ebuild,
106 + vim-9999.ebuild:
107 + Version bump. Support ruby:2.1, fix lua dep (bug #500376), and force lua
108 + support to be enabled for luajit (bug #499950).
109
110 23 Jan 2014; Tim Harder <radhermit@g.o> -vim-7.4.22.ebuild,
111 -vim-7.4.41.ebuild, -vim-7.4.94.ebuild, -vim-7.4.131.ebuild:
112
113
114
115 1.1 app-editors/vim/vim-7.4.169.ebuild
116
117 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/app-editors/vim/vim-7.4.169.ebuild?rev=1.1&view=markup
118 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/app-editors/vim/vim-7.4.169.ebuild?rev=1.1&content-type=text/plain
119
120 Index: vim-7.4.169.ebuild
121 ===================================================================
122 # Copyright 1999-2014 Gentoo Foundation
123 # Distributed under the terms of the GNU General Public License v2
124 # $Header: /var/cvsroot/gentoo-x86/app-editors/vim/vim-7.4.169.ebuild,v 1.1 2014/02/06 07:06:07 radhermit Exp $
125
126 EAPI=5
127 VIM_VERSION="7.4"
128 PYTHON_COMPAT=( python{2_6,2_7,3_2,3_3} )
129 PYTHON_REQ_USE=threads
130 inherit eutils vim-doc flag-o-matic fdo-mime versionator bash-completion-r1 python-single-r1
131
132 if [[ ${PV} == 9999* ]] ; then
133 inherit mercurial
134 EHG_REPO_URI="https://vim.googlecode.com/hg/"
135 EHG_PROJECT="vim"
136 else
137 VIM_ORG_PATCHES="vim-patches-${PV}.patch.bz2"
138
139 SRC_URI="ftp://ftp.vim.org/pub/vim/unix/vim-${VIM_VERSION}.tar.bz2
140 http://dev.gentoo.org/~radhermit/vim/${VIM_ORG_PATCHES}"
141 KEYWORDS="~alpha ~amd64 ~arm ~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"
142 fi
143
144 DESCRIPTION="Vim, an improved vi-style text editor"
145 HOMEPAGE="http://www.vim.org/"
146
147 SLOT="0"
148 LICENSE="vim"
149 IUSE="X acl cscope debug gpm lua luajit minimal nls perl python racket ruby selinux tcl vim-pager"
150 REQUIRED_USE="
151 python? ( ${PYTHON_REQUIRED_USE} )
152 luajit? ( lua )
153 "
154
155 RDEPEND="
156 >=app-admin/eselect-vi-1.1
157 >=sys-libs/ncurses-5.2-r2
158 nls? ( virtual/libintl )
159 acl? ( kernel_linux? ( sys-apps/acl ) )
160 cscope? ( dev-util/cscope )
161 gpm? ( >=sys-libs/gpm-1.19.3 )
162 lua? (
163 luajit? ( dev-lang/luajit )
164 !luajit? ( dev-lang/lua[deprecated] )
165 )
166 !minimal? (
167 ~app-editors/vim-core-${PV}
168 dev-util/ctags
169 )
170 perl? ( dev-lang/perl )
171 python? ( ${PYTHON_DEPS} )
172 racket? ( dev-scheme/racket )
173 ruby? ( || ( dev-lang/ruby:2.1 dev-lang/ruby:2.0 dev-lang/ruby:1.9 dev-lang/ruby:1.8 ) )
174 selinux? ( sys-libs/libselinux )
175 tcl? ( dev-lang/tcl )
176 X? ( x11-libs/libXt )
177 "
178 DEPEND="${RDEPEND}
179 >=app-admin/eselect-vi-1.1
180 sys-devel/autoconf
181 >=sys-libs/ncurses-5.2-r2
182 nls? ( sys-devel/gettext )
183 "
184
185 S=${WORKDIR}/vim${VIM_VERSION/.}
186
187 pkg_setup() {
188 # people with broken alphabets run into trouble. bug 82186.
189 unset LANG LC_ALL
190 export LC_COLLATE="C"
191
192 # Gnome sandbox silliness. bug #114475.
193 mkdir -p "${T}"/home
194 export HOME="${T}"/home
195
196 use python && python-single-r1_pkg_setup
197 }
198
199 src_prepare() {
200 if [[ ${PV} != 9999* ]] ; then
201 if [[ -f "${WORKDIR}"/${VIM_ORG_PATCHES%.bz2} ]] ; then
202 # Apply any patches available from vim.org for this version
203 epatch "${WORKDIR}"/${VIM_ORG_PATCHES%.bz2}
204 fi
205 fi
206
207 # Fixup a script to use awk instead of nawk
208 sed -i '1s|.*|#!'"${EPREFIX}"'/usr/bin/awk -f|' "${S}"/runtime/tools/mve.awk \
209 || die "mve.awk sed failed"
210
211 # Read vimrc and gvimrc from /etc/vim
212 echo '#define SYS_VIMRC_FILE "'${EPREFIX}'/etc/vim/vimrc"' >> "${S}"/src/feature.h
213 echo '#define SYS_GVIMRC_FILE "'${EPREFIX}'/etc/vim/gvimrc"' >> "${S}"/src/feature.h
214
215 # Use exuberant ctags which installs as /usr/bin/exuberant-ctags.
216 # Hopefully this pattern won't break for a while at least.
217 # This fixes bug 29398 (27 Sep 2003 agriffis)
218 sed -i 's/\<ctags\("\| [-*.]\)/exuberant-&/g' \
219 "${S}"/runtime/doc/syntax.txt \
220 "${S}"/runtime/doc/tagsrch.txt \
221 "${S}"/runtime/doc/usr_29.txt \
222 "${S}"/runtime/menu.vim \
223 "${S}"/src/configure.in || die 'sed failed'
224
225 # Don't be fooled by /usr/include/libc.h. When found, vim thinks
226 # this is NeXT, but it's actually just a file in dev-libs/9libs
227 # This fixes bug 43885 (20 Mar 2004 agriffis)
228 sed -i 's/ libc\.h / /' "${S}"/src/configure.in || die 'sed failed'
229
230 # gcc on sparc32 has this, uhm, interesting problem with detecting EOF
231 # correctly. To avoid some really entertaining error messages about stuff
232 # which isn't even in the source file being invalid, we'll do some trickery
233 # to make the error never occur. bug 66162 (02 October 2004 ciaranm)
234 find "${S}" -name '*.c' | while read c ; do echo >> "$c" ; done
235
236 # conditionally make the manpager.sh script
237 if use vim-pager ; then
238 cat <<-END > "${S}"/runtime/macros/manpager.sh
239 #!/bin/sh
240 sed -e 's/\x1B\[[[:digit:]]\+m//g' | col -b | \\
241 vim \\
242 -c 'let no_plugin_maps = 1' \\
243 -c 'set nolist nomod ft=man' \\
244 -c 'let g:showmarks_enable=0' \\
245 -c 'runtime! macros/less.vim' -
246 END
247 fi
248
249 # Try to avoid sandbox problems. Bug #114475.
250 if [[ -d "${S}"/src/po ]] ; then
251 sed -i '/-S check.vim/s,..VIM.,ln -s $(VIM) testvim \; ./testvim -X,' \
252 "${S}"/src/po/Makefile
253 fi
254
255 if version_is_at_least 7.3.122 ; then
256 cp "${S}"/src/config.mk.dist "${S}"/src/auto/config.mk
257 fi
258
259 # Bug #378107 - Build properly with >=perl-core/ExtUtils-ParseXS-3.20.0
260 if version_is_at_least 7.3 ; then
261 sed -i "s:\\\$(PERLLIB)/ExtUtils/xsubpp:${EPREFIX}/usr/bin/xsubpp:" \
262 "${S}"/src/Makefile || die 'sed for ExtUtils-ParseXS failed'
263 fi
264 }
265
266 src_configure() {
267 local myconf
268
269 # Fix bug 37354: Disallow -funroll-all-loops on amd64
270 # Bug 57859 suggests that we want to do this for all archs
271 filter-flags -funroll-all-loops
272
273 # Fix bug 76331: -O3 causes problems, use -O2 instead. We'll do this for
274 # everyone since previous flag filtering bugs have turned out to affect
275 # multiple archs...
276 replace-flags -O3 -O2
277
278 # Fix bug 18245: Prevent "make" from the following chain:
279 # (1) Notice configure.in is newer than auto/configure
280 # (2) Rebuild auto/configure
281 # (3) Notice auto/configure is newer than auto/config.mk
282 # (4) Run ./configure (with wrong args) to remake auto/config.mk
283 sed -i 's/ auto.config.mk:/:/' src/Makefile || die "Makefile sed failed"
284 rm -f src/auto/configure
285 emake -j1 -C src autoconf
286
287 # This should fix a sandbox violation (see bug 24447). The hvc
288 # things are for ppc64, see bug 86433.
289 for file in /dev/pty/s* /dev/console /dev/hvc/* /dev/hvc* ; do
290 [[ -e ${file} ]] && addwrite $file
291 done
292
293 if use minimal ; then
294 myconf="--with-features=tiny \
295 --disable-nls \
296 --disable-multibyte \
297 --disable-acl \
298 --enable-gui=no \
299 --without-x \
300 --disable-darwin \
301 --disable-luainterp \
302 --disable-perlinterp \
303 --disable-pythoninterp \
304 --disable-mzschemeinterp \
305 --disable-rubyinterp \
306 --disable-selinux \
307 --disable-tclinterp \
308 --disable-gpm"
309 else
310 use debug && append-flags "-DDEBUG"
311
312 myconf="--with-features=huge --enable-multibyte"
313 myconf+=" $(use_enable acl)"
314 myconf+=" $(use_enable cscope)"
315 myconf+=" $(use_enable gpm)"
316 myconf+=" $(use_enable lua luainterp)"
317 myconf+=" $(use_with luajit)"
318 myconf+=" $(use_enable nls)"
319 myconf+=" $(use_enable perl perlinterp)"
320 myconf+=" $(use_enable racket mzschemeinterp)"
321 myconf+=" $(use_enable ruby rubyinterp)"
322 myconf+=" $(use_enable selinux)"
323 myconf+=" $(use_enable tcl tclinterp)"
324
325 if use python ; then
326 if [[ ${EPYTHON} == python3* ]] ; then
327 myconf+=" --enable-python3interp"
328 export vi_cv_path_python3="${PYTHON}"
329 else
330 myconf+=" --enable-pythoninterp"
331 export vi_cv_path_python="${PYTHON}"
332 fi
333 else
334 myconf+=" --disable-pythoninterp --disable-python3interp"
335 fi
336
337 # --with-features=huge forces on cscope even if we --disable it. We need
338 # to sed this out to avoid screwiness. (1 Sep 2004 ciaranm)
339 if ! use cscope ; then
340 sed -i '/# define FEAT_CSCOPE/d' src/feature.h || \
341 die "couldn't disable cscope"
342 fi
343
344 # don't test USE=X here ... see bug #19115
345 # but need to provide a way to link against X ... see bug #20093
346 myconf+=" --enable-gui=no --disable-darwin $(use_with X x)"
347 fi
348
349 # Let Portage do the stripping. Some people like that.
350 export ac_cv_prog_STRIP="$(type -P true ) faking strip"
351
352 # Keep Gentoo Prefix env contained within the EPREFIX
353 use prefix && myconf+=" --without-local-dir"
354
355 econf \
356 --with-modified-by=Gentoo-${PVR} \
357 ${myconf}
358 }
359
360 src_compile() {
361 # The following allows emake to be used
362 emake -j1 -C src auto/osdef.h objects
363
364 emake
365 }
366
367 src_test() {
368 echo
369 einfo "Starting vim tests. Several error messages will be shown"
370 einfo "while the tests run. This is normal behaviour and does not"
371 einfo "indicate a fault."
372 echo
373 ewarn "If the tests fail, your terminal may be left in a strange"
374 ewarn "state. Usually, running 'reset' will fix this."
375 echo
376
377 # Don't let vim talk to X
378 unset DISPLAY
379
380 # We've got to call make test from within testdir, since the Makefiles
381 # don't pass through our VIMPROG argument
382 cd "${S}"/src/testdir
383
384 # Test 49 won't work inside a portage environment
385 einfo "Test 49 isn't sandbox-friendly, so it will be skipped."
386 sed -i 's~test49.out~~g' Makefile
387
388 # We don't want to rebuild vim before running the tests
389 sed -i 's,: \$(VIMPROG),: ,' Makefile
390
391 # Don't try to do the additional GUI test
392 emake -j1 VIMPROG=../vim nongui
393 }
394
395 # Make convenience symlinks, hopefully without stepping on toes. Some
396 # of these links are "owned" by the vim ebuild when it is installed,
397 # but they might be good for gvim as well (see bug 45828)
398 update_vim_symlinks() {
399 has "${EAPI:-0}" 0 1 2 && use !prefix && EROOT="${ROOT}"
400 local f syms
401 syms="vimdiff rvim rview"
402 einfo "Calling eselect vi update..."
403 # Call this with --if-unset to respect user's choice (bug 187449)
404 eselect vi update --if-unset
405
406 # Make or remove convenience symlink, vim -> gvim
407 if [[ -f "${EROOT}"/usr/bin/gvim ]]; then
408 ln -s gvim "${EROOT}"/usr/bin/vim 2>/dev/null
409 elif [[ -L "${EROOT}"/usr/bin/vim && ! -f "${EROOT}"/usr/bin/vim ]]; then
410 rm "${EROOT}"/usr/bin/vim
411 fi
412
413 # Make or remove convenience symlinks to vim
414 if [[ -f "${EROOT}"/usr/bin/vim ]]; then
415 for f in ${syms}; do
416 ln -s vim "${EROOT}"/usr/bin/${f} 2>/dev/null
417 done
418 else
419 for f in ${syms}; do
420 if [[ -L "${EROOT}"/usr/bin/${f} && ! -f "${EROOT}"/usr/bin/${f} ]]; then
421 rm -f "${EROOT}"/usr/bin/${f}
422 fi
423 done
424 fi
425
426 # This will still break if you merge then remove the vi package,
427 # but there's only so much you can do, eh? Unfortunately we don't
428 # have triggers like are done in rpm-land.
429 }
430
431 src_install() {
432 local vimfiles=/usr/share/vim/vim${VIM_VERSION/.}
433
434 # Note: Do not install symlinks for 'vi', 'ex', or 'view', as these are
435 # managed by eselect-vi
436 dobin src/vim
437 dosym vim /usr/bin/vimdiff
438 dosym vim /usr/bin/rvim
439 dosym vim /usr/bin/rview
440 if use vim-pager ; then
441 dosym ${vimfiles}/macros/less.sh /usr/bin/vimpager
442 dosym ${vimfiles}/macros/manpager.sh /usr/bin/vimmanpager
443 insinto ${vimfiles}/macros
444 doins runtime/macros/manpager.sh
445 fperms a+x ${vimfiles}/macros/manpager.sh
446 fi
447
448 newbashcomp "${FILESDIR}"/${PN}-completion ${PN}
449
450 # We shouldn't be installing the ex or view man page symlinks, as they
451 # are managed by eselect-vi
452 rm -f "${ED}"/usr/share/man/man1/{ex,view}.1
453 }
454
455 pkg_postinst() {
456 # Update documentation tags (from vim-doc.eclass)
457 update_vim_helptags
458
459 if [[ -z ${REPLACING_VERSIONS} ]] ; then
460 if use X ; then
461 echo
462 elog "The 'X' USE flag enables vim <-> X communication, like"
463 elog "updating the xterm titlebar. It does not install a GUI."
464 fi
465 echo
466 elog "To install a GUI version of vim, use the app-editors/gvim"
467 elog "package."
468 echo
469 elog "Vim 7 includes an integrated spell checker. You need to install"
470 elog "word list files before you can use it. There are ebuilds for"
471 elog "some of these named app-vim/vim-spell-*. If your language of"
472 elog "choice is not included, please consult vim-spell.eclass for"
473 elog "instructions on how to make a package."
474 echo
475 ewarn "Note that the English word lists are no longer installed by"
476 ewarn "default."
477 fi
478
479 # Make convenience symlinks
480 update_vim_symlinks
481 }
482
483 pkg_postrm() {
484 # Update documentation tags (from vim-doc.eclass)
485 update_vim_helptags
486
487 # Make convenience symlinks
488 update_vim_symlinks
489 }