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