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