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-core: vim-core-9999.ebuild ChangeLog vim-core-7.4.155.ebuild
Date: Thu, 23 Jan 2014 10:30:34
Message-Id: 20140123103029.DD28C2004C@flycatcher.gentoo.org
1 radhermit 14/01/23 10:30:29
2
3 Modified: vim-core-9999.ebuild ChangeLog
4 Added: vim-core-7.4.155.ebuild
5 Log:
6 Version bump.
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.6 app-editors/vim-core/vim-core-9999.ebuild
12
13 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/app-editors/vim-core/vim-core-9999.ebuild?rev=1.6&view=markup
14 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/app-editors/vim-core/vim-core-9999.ebuild?rev=1.6&content-type=text/plain
15 diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/app-editors/vim-core/vim-core-9999.ebuild?r1=1.5&r2=1.6
16
17 Index: vim-core-9999.ebuild
18 ===================================================================
19 RCS file: /var/cvsroot/gentoo-x86/app-editors/vim-core/vim-core-9999.ebuild,v
20 retrieving revision 1.5
21 retrieving revision 1.6
22 diff -u -r1.5 -r1.6
23 --- vim-core-9999.ebuild 19 Nov 2013 10:19:19 -0000 1.5
24 +++ vim-core-9999.ebuild 23 Jan 2014 10:30:29 -0000 1.6
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-core/vim-core-9999.ebuild,v 1.5 2013/11/19 10:19:19 radhermit Exp $
30 +# $Header: /var/cvsroot/gentoo-x86/app-editors/vim-core/vim-core-9999.ebuild,v 1.6 2014/01/23 10:30:29 radhermit Exp $
31
32 EAPI=5
33 VIM_VERSION="7.4"
34 @@ -47,6 +47,12 @@
35 # Apply any patches available from vim.org for this version
36 epatch "${WORKDIR}"/${VIM_ORG_PATCHES%.bz2}
37 fi
38 +
39 + if [[ -d "${WORKDIR}"/gentoo/patches-core/ ]]; then
40 + # Patches for vim-core only (runtime/*)
41 + EPATCH_SUFFIX="patch" EPATCH_FORCE="yes" \
42 + epatch "${WORKDIR}"/gentoo/patches-core/
43 + fi
44 fi
45
46 # Fixup a script to use awk instead of nawk
47
48
49
50 1.432 app-editors/vim-core/ChangeLog
51
52 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/app-editors/vim-core/ChangeLog?rev=1.432&view=markup
53 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/app-editors/vim-core/ChangeLog?rev=1.432&content-type=text/plain
54 diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/app-editors/vim-core/ChangeLog?r1=1.431&r2=1.432
55
56 Index: ChangeLog
57 ===================================================================
58 RCS file: /var/cvsroot/gentoo-x86/app-editors/vim-core/ChangeLog,v
59 retrieving revision 1.431
60 retrieving revision 1.432
61 diff -u -r1.431 -r1.432
62 --- ChangeLog 16 Dec 2013 09:18:52 -0000 1.431
63 +++ ChangeLog 23 Jan 2014 10:30:29 -0000 1.432
64 @@ -1,6 +1,12 @@
65 # ChangeLog for app-editors/vim-core
66 -# Copyright 1999-2013 Gentoo Foundation; Distributed under the GPL v2
67 -# $Header: /var/cvsroot/gentoo-x86/app-editors/vim-core/ChangeLog,v 1.431 2013/12/16 09:18:52 radhermit Exp $
68 +# Copyright 1999-2014 Gentoo Foundation; Distributed under the GPL v2
69 +# $Header: /var/cvsroot/gentoo-x86/app-editors/vim-core/ChangeLog,v 1.432 2014/01/23 10:30:29 radhermit Exp $
70 +
71 +*vim-core-7.4.155 (23 Jan 2014)
72 +
73 + 23 Jan 2014; Tim Harder <radhermit@g.o> +vim-core-7.4.155.ebuild,
74 + vim-core-9999.ebuild:
75 + Version bump.
76
77 *vim-core-7.4.131 (16 Dec 2013)
78
79
80
81
82 1.1 app-editors/vim-core/vim-core-7.4.155.ebuild
83
84 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/app-editors/vim-core/vim-core-7.4.155.ebuild?rev=1.1&view=markup
85 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/app-editors/vim-core/vim-core-7.4.155.ebuild?rev=1.1&content-type=text/plain
86
87 Index: vim-core-7.4.155.ebuild
88 ===================================================================
89 # Copyright 1999-2014 Gentoo Foundation
90 # Distributed under the terms of the GNU General Public License v2
91 # $Header: /var/cvsroot/gentoo-x86/app-editors/vim-core/vim-core-7.4.155.ebuild,v 1.1 2014/01/23 10:30:29 radhermit Exp $
92
93 EAPI=5
94 VIM_VERSION="7.4"
95 inherit eutils vim-doc flag-o-matic versionator bash-completion-r1 prefix
96
97 if [[ ${PV} == 9999* ]] ; then
98 inherit mercurial
99 EHG_REPO_URI="https://vim.googlecode.com/hg/"
100 EHG_PROJECT="vim"
101 else
102 VIM_ORG_PATCHES="vim-patches-${PV}.patch.bz2"
103
104 SRC_URI="ftp://ftp.vim.org/pub/vim/unix/vim-${VIM_VERSION}.tar.bz2
105 http://dev.gentoo.org/~radhermit/vim/${PN}-7.3-gentoo-patches-r3.tar.bz2
106 http://dev.gentoo.org/~radhermit/vim/${VIM_ORG_PATCHES}"
107 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"
108 fi
109
110 DESCRIPTION="vim and gvim shared files"
111 HOMEPAGE="http://www.vim.org/"
112
113 SLOT="0"
114 LICENSE="vim"
115 IUSE="nls acl minimal"
116
117 DEPEND="sys-devel/autoconf"
118 PDEPEND="!minimal? ( app-vim/gentoo-syntax )"
119
120 S=${WORKDIR}/vim${VIM_VERSION/.}
121
122 pkg_setup() {
123 # people with broken alphabets run into trouble. bug 82186.
124 unset LANG LC_ALL
125 export LC_COLLATE="C"
126
127 # Gnome sandbox silliness. bug #114475.
128 mkdir -p "${T}"/home
129 export HOME="${T}"/home
130 }
131
132 src_prepare() {
133 if [[ ${PV} != 9999* ]] ; then
134 if [[ -f "${WORKDIR}"/${VIM_ORG_PATCHES%.bz2} ]] ; then
135 # Apply any patches available from vim.org for this version
136 epatch "${WORKDIR}"/${VIM_ORG_PATCHES%.bz2}
137 fi
138
139 if [[ -d "${WORKDIR}"/gentoo/patches-core/ ]]; then
140 # Patches for vim-core only (runtime/*)
141 EPATCH_SUFFIX="patch" EPATCH_FORCE="yes" \
142 epatch "${WORKDIR}"/gentoo/patches-core/
143 fi
144 fi
145
146 # Fixup a script to use awk instead of nawk
147 sed -i '1s|.*|#!'"${EPREFIX}"'/usr/bin/awk -f|' "${S}"/runtime/tools/mve.awk \
148 || die "mve.awk sed failed"
149
150 # Read vimrc and gvimrc from /etc/vim
151 echo '#define SYS_VIMRC_FILE "'${EPREFIX}'/etc/vim/vimrc"' >> "${S}"/src/feature.h
152 echo '#define SYS_GVIMRC_FILE "'${EPREFIX}'/etc/vim/gvimrc"' >> "${S}"/src/feature.h
153
154 # Use exuberant ctags which installs as /usr/bin/exuberant-ctags.
155 # Hopefully this pattern won't break for a while at least.
156 # This fixes bug 29398 (27 Sep 2003 agriffis)
157 sed -i 's/\<ctags\("\| [-*.]\)/exuberant-&/g' \
158 "${S}"/runtime/doc/syntax.txt \
159 "${S}"/runtime/doc/tagsrch.txt \
160 "${S}"/runtime/doc/usr_29.txt \
161 "${S}"/runtime/menu.vim \
162 "${S}"/src/configure.in || die 'sed failed'
163
164 # Don't be fooled by /usr/include/libc.h. When found, vim thinks
165 # this is NeXT, but it's actually just a file in dev-libs/9libs
166 # This fixes bug 43885 (20 Mar 2004 agriffis)
167 sed -i 's/ libc\.h / /' "${S}"/src/configure.in || die 'sed failed'
168
169 # gcc on sparc32 has this, uhm, interesting problem with detecting EOF
170 # correctly. To avoid some really entertaining error messages about stuff
171 # which isn't even in the source file being invalid, we'll do some trickery
172 # to make the error never occur. bug 66162 (02 October 2004 ciaranm)
173 find "${S}" -name '*.c' | while read c ; do echo >> "$c" ; done
174
175 # Try to avoid sandbox problems. Bug #114475.
176 if [[ -d "${S}"/src/po ]] ; then
177 sed -i -e \
178 '/-S check.vim/s,..VIM.,ln -s $(VIM) testvim \; ./testvim -X,' \
179 "${S}"/src/po/Makefile
180 fi
181
182 if version_is_at_least 7.3.122 ; then
183 cp "${S}"/src/config.mk.dist "${S}"/src/auto/config.mk
184 fi
185
186 # Bug #378107 - Build properly with >=perl-core/ExtUtils-ParseXS-3.20.0
187 if version_is_at_least 7.3 ; then
188 sed -i "s:\\\$(PERLLIB)/ExtUtils/xsubpp:${EPREFIX}/usr/bin/xsubpp:" \
189 "${S}"/src/Makefile || die 'sed for ExtUtils-ParseXS failed'
190 fi
191 }
192
193 src_configure() {
194 local myconf
195
196 # Fix bug 37354: Disallow -funroll-all-loops on amd64
197 # Bug 57859 suggests that we want to do this for all archs
198 filter-flags -funroll-all-loops
199
200 # Fix bug 76331: -O3 causes problems, use -O2 instead. We'll do this for
201 # everyone since previous flag filtering bugs have turned out to affect
202 # multiple archs...
203 replace-flags -O3 -O2
204
205 # Fix bug 18245: Prevent "make" from the following chain:
206 # (1) Notice configure.in is newer than auto/configure
207 # (2) Rebuild auto/configure
208 # (3) Notice auto/configure is newer than auto/config.mk
209 # (4) Run ./configure (with wrong args) to remake auto/config.mk
210 sed -i 's/ auto.config.mk:/:/' src/Makefile || die "Makefile sed failed"
211 rm -f src/auto/configure
212 emake -j1 -C src autoconf
213
214 # This should fix a sandbox violation (see bug 24447). The hvc
215 # things are for ppc64, see bug 86433.
216 for file in /dev/pty/s* /dev/console /dev/hvc/* /dev/hvc* ; do
217 [[ -e ${file} ]] && addwrite $file
218 done
219
220 # Let Portage do the stripping. Some people like that.
221 export ac_cv_prog_STRIP="$(type -P true ) faking strip"
222
223 # Keep Gentoo Prefix env contained within the EPREFIX
224 use prefix && myconf+=" --without-local-dir"
225
226 econf \
227 --with-modified-by=Gentoo-${PVR} \
228 --with-features=tiny \
229 --enable-gui=no \
230 --without-x \
231 --disable-darwin \
232 --disable-perlinterp \
233 --disable-pythoninterp \
234 --disable-rubyinterp \
235 --disable-gpm \
236 --disable-selinux \
237 $(use_enable nls) \
238 $(use_enable acl) \
239 ${myconf}
240 }
241
242 src_compile() {
243 # The following allows emake to be used
244 emake -j1 -C src auto/osdef.h objects
245
246 emake tools
247 }
248
249 src_test() { :; }
250
251 src_install() {
252 local vimfiles=/usr/share/vim/vim${VIM_VERSION/.}
253
254 dodir /usr/{bin,share/{man/man1,vim}}
255 cd src || die "cd src failed"
256 emake \
257 installruntime \
258 installmanlinks \
259 installmacros \
260 installtutor \
261 installtutorbin \
262 installtools \
263 install-languages \
264 install-icons \
265 DESTDIR="${D}" \
266 BINDIR="${EPREFIX}"/usr/bin \
267 MANDIR="${EPREFIX}"/usr/share/man \
268 DATADIR="${EPREFIX}"/usr/share
269
270 keepdir ${vimfiles}/keymap
271
272 # default vimrc is installed by vim-core since it applies to
273 # both vim and gvim
274 insinto /etc/vim/
275 newins "${FILESDIR}"/vimrc-r4 vimrc
276 eprefixify "${ED}"/etc/vim/vimrc
277
278 if use minimal ; then
279 # To save space, install only a subset of the files.
280 # Helps minimalize the livecd, bug 65144.
281 eshopts_push -s extglob
282
283 rm -fr "${ED}${vimfiles}"/{compiler,doc,ftplugin,indent}
284 rm -fr "${ED}${vimfiles}"/{macros,print,tools,tutor}
285 rm "${ED}"/usr/bin/vimtutor
286
287 local keep_colors="default"
288 ignore=$(rm -fr "${ED}${vimfiles}"/colors/!(${keep_colors}).vim )
289
290 local keep_syntax="conf|crontab|fstab|inittab|resolv|sshdconfig"
291 # tinkering with the next line might make bad things happen ...
292 keep_syntax="${keep_syntax}|syntax|nosyntax|synload"
293 ignore=$(rm -fr "${ED}${vimfiles}"/syntax/!(${keep_syntax}).vim )
294
295 eshopts_pop
296 fi
297
298 # These files might have slight security issues, so we won't
299 # install them. See bug #77841. We don't mind if these don't
300 # exist.
301 rm "${ED}${vimfiles}"/tools/{vimspell.sh,tcltags} 2>/dev/null
302
303 newbashcomp "${FILESDIR}"/xxd-completion xxd
304
305 # We shouldn't be installing the ex or view man page symlinks, as they
306 # are managed by eselect-vi
307 rm -f "${ED}"/usr/share/man/man1/{ex,view}.1
308 }
309
310 pkg_postinst() {
311 # Update documentation tags (from vim-doc.eclass)
312 update_vim_helptags
313 }
314
315 pkg_postrm() {
316 # Update documentation tags (from vim-doc.eclass)
317 update_vim_helptags
318 }