Gentoo Archives: gentoo-commits

From: Tim Harder <radhermit@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: app-editors/vim-core/
Date: Sun, 08 May 2016 02:54:01
Message-Id: 1462675935.840ed46fad49923cf5fd28f0886f208dc842befe.radhermit@gentoo
1 commit: 840ed46fad49923cf5fd28f0886f208dc842befe
2 Author: Tim Harder <radhermit <AT> gentoo <DOT> org>
3 AuthorDate: Sun May 8 02:52:15 2016 +0000
4 Commit: Tim Harder <radhermit <AT> gentoo <DOT> org>
5 CommitDate: Sun May 8 02:52:15 2016 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=840ed46f
7
8 app-editors/vim-core: remove old
9
10 app-editors/vim-core/Manifest | 3 -
11 app-editors/vim-core/vim-core-7.4.1089.ebuild | 223 --------------------------
12 app-editors/vim-core/vim-core-7.4.1229.ebuild | 223 --------------------------
13 app-editors/vim-core/vim-core-7.4.1342.ebuild | 223 --------------------------
14 4 files changed, 672 deletions(-)
15
16 diff --git a/app-editors/vim-core/Manifest b/app-editors/vim-core/Manifest
17 index 8f919f0..de808a2 100644
18 --- a/app-editors/vim-core/Manifest
19 +++ b/app-editors/vim-core/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-core/vim-core-7.4.1089.ebuild b/app-editors/vim-core/vim-core-7.4.1089.ebuild
29 deleted file mode 100644
30 index 64595ee..0000000
31 --- a/app-editors/vim-core/vim-core-7.4.1089.ebuild
32 +++ /dev/null
33 @@ -1,223 +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 -inherit eutils vim-doc flag-o-matic versionator bash-completion-r1 prefix
41 -
42 -if [[ ${PV} == 9999* ]] ; then
43 - inherit git-r3
44 - EGIT_REPO_URI="https://github.com/vim/vim.git"
45 - EGIT_CHECKOUT_DIR=${WORKDIR}/vim-${PV}
46 -else
47 - SRC_URI="https://github.com/vim/vim/archive/v${PV}.tar.gz -> vim-${PV}.tar.gz
48 - https://dev.gentoo.org/~radhermit/vim/vim-7.4.827-gentoo-patches.tar.bz2"
49 - 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"
50 -fi
51 -
52 -DESCRIPTION="vim and gvim shared files"
53 -HOMEPAGE="http://www.vim.org/"
54 -
55 -SLOT="0"
56 -LICENSE="vim"
57 -IUSE="nls acl minimal"
58 -
59 -DEPEND="sys-devel/autoconf"
60 -PDEPEND="!minimal? ( app-vim/gentoo-syntax )"
61 -
62 -S=${WORKDIR}/vim-${PV}
63 -
64 -pkg_setup() {
65 - # people with broken alphabets run into trouble. bug 82186.
66 - unset LANG LC_ALL
67 - export LC_COLLATE="C"
68 -
69 - # Gnome sandbox silliness. bug #114475.
70 - mkdir -p "${T}"/home
71 - export HOME="${T}"/home
72 -}
73 -
74 -src_prepare() {
75 - if [[ ${PV} != 9999* ]] ; then
76 - if [[ -d "${WORKDIR}"/patches/ ]]; then
77 - # Gentoo patches to fix runtime issues, cross-compile errors, etc
78 - EPATCH_SUFFIX="patch" EPATCH_FORCE="yes" \
79 - epatch "${WORKDIR}"/patches/
80 - fi
81 - fi
82 -
83 - # Fixup a script to use awk instead of nawk
84 - sed -i '1s|.*|#!'"${EPREFIX}"'/usr/bin/awk -f|' "${S}"/runtime/tools/mve.awk \
85 - || die "mve.awk sed failed"
86 -
87 - # Read vimrc and gvimrc from /etc/vim
88 - echo '#define SYS_VIMRC_FILE "'${EPREFIX}'/etc/vim/vimrc"' >> "${S}"/src/feature.h
89 - echo '#define SYS_GVIMRC_FILE "'${EPREFIX}'/etc/vim/gvimrc"' >> "${S}"/src/feature.h
90 -
91 - # Use exuberant ctags which installs as /usr/bin/exuberant-ctags.
92 - # Hopefully this pattern won't break for a while at least.
93 - # This fixes bug 29398 (27 Sep 2003 agriffis)
94 - sed -i 's/\<ctags\("\| [-*.]\)/exuberant-&/g' \
95 - "${S}"/runtime/doc/syntax.txt \
96 - "${S}"/runtime/doc/tagsrch.txt \
97 - "${S}"/runtime/doc/usr_29.txt \
98 - "${S}"/runtime/menu.vim \
99 - "${S}"/src/configure.in || die 'sed failed'
100 -
101 - # Don't be fooled by /usr/include/libc.h. When found, vim thinks
102 - # this is NeXT, but it's actually just a file in dev-libs/9libs
103 - # This fixes bug 43885 (20 Mar 2004 agriffis)
104 - sed -i 's/ libc\.h / /' "${S}"/src/configure.in || die 'sed failed'
105 -
106 - # gcc on sparc32 has this, uhm, interesting problem with detecting EOF
107 - # correctly. To avoid some really entertaining error messages about stuff
108 - # which isn't even in the source file being invalid, we'll do some trickery
109 - # to make the error never occur. bug 66162 (02 October 2004 ciaranm)
110 - find "${S}" -name '*.c' | while read c ; do echo >> "$c" ; done
111 -
112 - # Try to avoid sandbox problems. Bug #114475.
113 - if [[ -d "${S}"/src/po ]] ; then
114 - sed -i -e \
115 - '/-S check.vim/s,..VIM.,ln -s $(VIM) testvim \; ./testvim -X,' \
116 - "${S}"/src/po/Makefile
117 - fi
118 -
119 - if version_is_at_least 7.3.122 ; then
120 - cp "${S}"/src/config.mk.dist "${S}"/src/auto/config.mk
121 - fi
122 -
123 - # Bug #378107 - Build properly with >=perl-core/ExtUtils-ParseXS-3.20.0
124 - if version_is_at_least 7.3 ; then
125 - sed -i "s:\\\$(PERLLIB)/ExtUtils/xsubpp:${EPREFIX}/usr/bin/xsubpp:" \
126 - "${S}"/src/Makefile || die 'sed for ExtUtils-ParseXS failed'
127 - fi
128 -
129 - epatch_user
130 -}
131 -
132 -src_configure() {
133 - local myconf
134 -
135 - # Fix bug 37354: Disallow -funroll-all-loops on amd64
136 - # Bug 57859 suggests that we want to do this for all archs
137 - filter-flags -funroll-all-loops
138 -
139 - # Fix bug 76331: -O3 causes problems, use -O2 instead. We'll do this for
140 - # everyone since previous flag filtering bugs have turned out to affect
141 - # multiple archs...
142 - replace-flags -O3 -O2
143 -
144 - # Fix bug 18245: Prevent "make" from the following chain:
145 - # (1) Notice configure.in is newer than auto/configure
146 - # (2) Rebuild auto/configure
147 - # (3) Notice auto/configure is newer than auto/config.mk
148 - # (4) Run ./configure (with wrong args) to remake auto/config.mk
149 - sed -i 's# auto/config\.mk:#:#' src/Makefile || die "Makefile sed failed"
150 - rm -f src/auto/configure
151 - emake -j1 -C src autoconf
152 -
153 - # This should fix a sandbox violation (see bug 24447). The hvc
154 - # things are for ppc64, see bug 86433.
155 - for file in /dev/pty/s* /dev/console /dev/hvc/* /dev/hvc* ; do
156 - [[ -e ${file} ]] && addwrite $file
157 - done
158 -
159 - # Let Portage do the stripping. Some people like that.
160 - export ac_cv_prog_STRIP="$(type -P true ) faking strip"
161 -
162 - # Keep Gentoo Prefix env contained within the EPREFIX
163 - use prefix && myconf+=" --without-local-dir"
164 -
165 - econf \
166 - --with-modified-by=Gentoo-${PVR} \
167 - --enable-gui=no \
168 - --without-x \
169 - --disable-darwin \
170 - --disable-perlinterp \
171 - --disable-pythoninterp \
172 - --disable-rubyinterp \
173 - --disable-gpm \
174 - --disable-selinux \
175 - $(use_enable nls) \
176 - $(use_enable acl) \
177 - ${myconf}
178 -}
179 -
180 -src_compile() {
181 - # The following allows emake to be used
182 - emake -j1 -C src auto/osdef.h objects
183 -
184 - emake tools
185 -}
186 -
187 -src_test() { :; }
188 -
189 -src_install() {
190 - local vimfiles=/usr/share/vim/vim${VIM_VERSION/.}
191 -
192 - dodir /usr/{bin,share/{man/man1,vim}}
193 - cd src || die "cd src failed"
194 - emake \
195 - installruntime \
196 - installmanlinks \
197 - installmacros \
198 - installtutor \
199 - installtutorbin \
200 - installtools \
201 - install-languages \
202 - install-icons \
203 - DESTDIR="${D}" \
204 - BINDIR="${EPREFIX}"/usr/bin \
205 - MANDIR="${EPREFIX}"/usr/share/man \
206 - DATADIR="${EPREFIX}"/usr/share
207 -
208 - keepdir ${vimfiles}/keymap
209 -
210 - # default vimrc is installed by vim-core since it applies to
211 - # both vim and gvim
212 - insinto /etc/vim/
213 - newins "${FILESDIR}"/vimrc-r4 vimrc
214 - eprefixify "${ED}"/etc/vim/vimrc
215 -
216 - if use minimal ; then
217 - # To save space, install only a subset of the files.
218 - # Helps minimalize the livecd, bug 65144.
219 - eshopts_push -s extglob
220 -
221 - rm -fr "${ED}${vimfiles}"/{compiler,doc,ftplugin,indent}
222 - rm -fr "${ED}${vimfiles}"/{macros,print,tools,tutor}
223 - rm "${ED}"/usr/bin/vimtutor
224 -
225 - local keep_colors="default"
226 - ignore=$(rm -fr "${ED}${vimfiles}"/colors/!(${keep_colors}).vim )
227 -
228 - local keep_syntax="conf|crontab|fstab|inittab|resolv|sshdconfig"
229 - # tinkering with the next line might make bad things happen ...
230 - keep_syntax="${keep_syntax}|syntax|nosyntax|synload"
231 - ignore=$(rm -fr "${ED}${vimfiles}"/syntax/!(${keep_syntax}).vim )
232 -
233 - eshopts_pop
234 - fi
235 -
236 - # These files might have slight security issues, so we won't
237 - # install them. See bug #77841. We don't mind if these don't
238 - # exist.
239 - rm "${ED}${vimfiles}"/tools/{vimspell.sh,tcltags} 2>/dev/null
240 -
241 - newbashcomp "${FILESDIR}"/xxd-completion xxd
242 -
243 - # We shouldn't be installing the ex or view man page symlinks, as they
244 - # are managed by eselect-vi
245 - rm -f "${ED}"/usr/share/man/man1/{ex,view}.1
246 -}
247 -
248 -pkg_postinst() {
249 - # Update documentation tags (from vim-doc.eclass)
250 - update_vim_helptags
251 -}
252 -
253 -pkg_postrm() {
254 - # Update documentation tags (from vim-doc.eclass)
255 - update_vim_helptags
256 -}
257
258 diff --git a/app-editors/vim-core/vim-core-7.4.1229.ebuild b/app-editors/vim-core/vim-core-7.4.1229.ebuild
259 deleted file mode 100644
260 index 5e2f6a1..0000000
261 --- a/app-editors/vim-core/vim-core-7.4.1229.ebuild
262 +++ /dev/null
263 @@ -1,223 +0,0 @@
264 -# Copyright 1999-2016 Gentoo Foundation
265 -# Distributed under the terms of the GNU General Public License v2
266 -# $Id$
267 -
268 -EAPI=5
269 -VIM_VERSION="7.4"
270 -inherit eutils vim-doc flag-o-matic versionator bash-completion-r1 prefix
271 -
272 -if [[ ${PV} == 9999* ]] ; then
273 - inherit git-r3
274 - EGIT_REPO_URI="https://github.com/vim/vim.git"
275 - EGIT_CHECKOUT_DIR=${WORKDIR}/vim-${PV}
276 -else
277 - SRC_URI="https://github.com/vim/vim/archive/v${PV}.tar.gz -> vim-${PV}.tar.gz
278 - https://dev.gentoo.org/~radhermit/vim/vim-7.4.827-gentoo-patches.tar.bz2"
279 - 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"
280 -fi
281 -
282 -DESCRIPTION="vim and gvim shared files"
283 -HOMEPAGE="http://www.vim.org/ https://github.com/vim/vim"
284 -
285 -SLOT="0"
286 -LICENSE="vim"
287 -IUSE="nls acl minimal"
288 -
289 -DEPEND="sys-devel/autoconf"
290 -PDEPEND="!minimal? ( app-vim/gentoo-syntax )"
291 -
292 -S=${WORKDIR}/vim-${PV}
293 -
294 -pkg_setup() {
295 - # people with broken alphabets run into trouble. bug 82186.
296 - unset LANG LC_ALL
297 - export LC_COLLATE="C"
298 -
299 - # Gnome sandbox silliness. bug #114475.
300 - mkdir -p "${T}"/home
301 - export HOME="${T}"/home
302 -}
303 -
304 -src_prepare() {
305 - if [[ ${PV} != 9999* ]] ; then
306 - if [[ -d "${WORKDIR}"/patches/ ]]; then
307 - # Gentoo patches to fix runtime issues, cross-compile errors, etc
308 - EPATCH_SUFFIX="patch" EPATCH_FORCE="yes" \
309 - epatch "${WORKDIR}"/patches/
310 - fi
311 - fi
312 -
313 - # Fixup a script to use awk instead of nawk
314 - sed -i '1s|.*|#!'"${EPREFIX}"'/usr/bin/awk -f|' "${S}"/runtime/tools/mve.awk \
315 - || die "mve.awk sed failed"
316 -
317 - # Read vimrc and gvimrc from /etc/vim
318 - echo '#define SYS_VIMRC_FILE "'${EPREFIX}'/etc/vim/vimrc"' >> "${S}"/src/feature.h
319 - echo '#define SYS_GVIMRC_FILE "'${EPREFIX}'/etc/vim/gvimrc"' >> "${S}"/src/feature.h
320 -
321 - # Use exuberant ctags which installs as /usr/bin/exuberant-ctags.
322 - # Hopefully this pattern won't break for a while at least.
323 - # This fixes bug 29398 (27 Sep 2003 agriffis)
324 - sed -i 's/\<ctags\("\| [-*.]\)/exuberant-&/g' \
325 - "${S}"/runtime/doc/syntax.txt \
326 - "${S}"/runtime/doc/tagsrch.txt \
327 - "${S}"/runtime/doc/usr_29.txt \
328 - "${S}"/runtime/menu.vim \
329 - "${S}"/src/configure.in || die 'sed failed'
330 -
331 - # Don't be fooled by /usr/include/libc.h. When found, vim thinks
332 - # this is NeXT, but it's actually just a file in dev-libs/9libs
333 - # This fixes bug 43885 (20 Mar 2004 agriffis)
334 - sed -i 's/ libc\.h / /' "${S}"/src/configure.in || die 'sed failed'
335 -
336 - # gcc on sparc32 has this, uhm, interesting problem with detecting EOF
337 - # correctly. To avoid some really entertaining error messages about stuff
338 - # which isn't even in the source file being invalid, we'll do some trickery
339 - # to make the error never occur. bug 66162 (02 October 2004 ciaranm)
340 - find "${S}" -name '*.c' | while read c ; do echo >> "$c" ; done
341 -
342 - # Try to avoid sandbox problems. Bug #114475.
343 - if [[ -d "${S}"/src/po ]] ; then
344 - sed -i -e \
345 - '/-S check.vim/s,..VIM.,ln -s $(VIM) testvim \; ./testvim -X,' \
346 - "${S}"/src/po/Makefile
347 - fi
348 -
349 - if version_is_at_least 7.3.122 ; then
350 - cp "${S}"/src/config.mk.dist "${S}"/src/auto/config.mk
351 - fi
352 -
353 - # Bug #378107 - Build properly with >=perl-core/ExtUtils-ParseXS-3.20.0
354 - if version_is_at_least 7.3 ; then
355 - sed -i "s:\\\$(PERLLIB)/ExtUtils/xsubpp:${EPREFIX}/usr/bin/xsubpp:" \
356 - "${S}"/src/Makefile || die 'sed for ExtUtils-ParseXS failed'
357 - fi
358 -
359 - epatch_user
360 -}
361 -
362 -src_configure() {
363 - local myconf
364 -
365 - # Fix bug 37354: Disallow -funroll-all-loops on amd64
366 - # Bug 57859 suggests that we want to do this for all archs
367 - filter-flags -funroll-all-loops
368 -
369 - # Fix bug 76331: -O3 causes problems, use -O2 instead. We'll do this for
370 - # everyone since previous flag filtering bugs have turned out to affect
371 - # multiple archs...
372 - replace-flags -O3 -O2
373 -
374 - # Fix bug 18245: Prevent "make" from the following chain:
375 - # (1) Notice configure.in is newer than auto/configure
376 - # (2) Rebuild auto/configure
377 - # (3) Notice auto/configure is newer than auto/config.mk
378 - # (4) Run ./configure (with wrong args) to remake auto/config.mk
379 - sed -i 's# auto/config\.mk:#:#' src/Makefile || die "Makefile sed failed"
380 - rm -f src/auto/configure
381 - emake -j1 -C src autoconf
382 -
383 - # This should fix a sandbox violation (see bug 24447). The hvc
384 - # things are for ppc64, see bug 86433.
385 - for file in /dev/pty/s* /dev/console /dev/hvc/* /dev/hvc* ; do
386 - [[ -e ${file} ]] && addwrite $file
387 - done
388 -
389 - # Let Portage do the stripping. Some people like that.
390 - export ac_cv_prog_STRIP="$(type -P true ) faking strip"
391 -
392 - # Keep Gentoo Prefix env contained within the EPREFIX
393 - use prefix && myconf+=" --without-local-dir"
394 -
395 - econf \
396 - --with-modified-by=Gentoo-${PVR} \
397 - --enable-gui=no \
398 - --without-x \
399 - --disable-darwin \
400 - --disable-perlinterp \
401 - --disable-pythoninterp \
402 - --disable-rubyinterp \
403 - --disable-gpm \
404 - --disable-selinux \
405 - $(use_enable nls) \
406 - $(use_enable acl) \
407 - ${myconf}
408 -}
409 -
410 -src_compile() {
411 - # The following allows emake to be used
412 - emake -j1 -C src auto/osdef.h objects
413 -
414 - emake tools
415 -}
416 -
417 -src_test() { :; }
418 -
419 -src_install() {
420 - local vimfiles=/usr/share/vim/vim${VIM_VERSION/.}
421 -
422 - dodir /usr/{bin,share/{man/man1,vim}}
423 - cd src || die "cd src failed"
424 - emake \
425 - installruntime \
426 - installmanlinks \
427 - installmacros \
428 - installtutor \
429 - installtutorbin \
430 - installtools \
431 - install-languages \
432 - install-icons \
433 - DESTDIR="${D}" \
434 - BINDIR="${EPREFIX}"/usr/bin \
435 - MANDIR="${EPREFIX}"/usr/share/man \
436 - DATADIR="${EPREFIX}"/usr/share
437 -
438 - keepdir ${vimfiles}/keymap
439 -
440 - # default vimrc is installed by vim-core since it applies to
441 - # both vim and gvim
442 - insinto /etc/vim/
443 - newins "${FILESDIR}"/vimrc-r4 vimrc
444 - eprefixify "${ED}"/etc/vim/vimrc
445 -
446 - if use minimal ; then
447 - # To save space, install only a subset of the files.
448 - # Helps minimalize the livecd, bug 65144.
449 - eshopts_push -s extglob
450 -
451 - rm -fr "${ED}${vimfiles}"/{compiler,doc,ftplugin,indent}
452 - rm -fr "${ED}${vimfiles}"/{macros,print,tools,tutor}
453 - rm "${ED}"/usr/bin/vimtutor
454 -
455 - local keep_colors="default"
456 - ignore=$(rm -fr "${ED}${vimfiles}"/colors/!(${keep_colors}).vim )
457 -
458 - local keep_syntax="conf|crontab|fstab|inittab|resolv|sshdconfig"
459 - # tinkering with the next line might make bad things happen ...
460 - keep_syntax="${keep_syntax}|syntax|nosyntax|synload"
461 - ignore=$(rm -fr "${ED}${vimfiles}"/syntax/!(${keep_syntax}).vim )
462 -
463 - eshopts_pop
464 - fi
465 -
466 - # These files might have slight security issues, so we won't
467 - # install them. See bug #77841. We don't mind if these don't
468 - # exist.
469 - rm "${ED}${vimfiles}"/tools/{vimspell.sh,tcltags} 2>/dev/null
470 -
471 - newbashcomp "${FILESDIR}"/xxd-completion xxd
472 -
473 - # We shouldn't be installing the ex or view man page symlinks, as they
474 - # are managed by eselect-vi
475 - rm -f "${ED}"/usr/share/man/man1/{ex,view}.1
476 -}
477 -
478 -pkg_postinst() {
479 - # Update documentation tags (from vim-doc.eclass)
480 - update_vim_helptags
481 -}
482 -
483 -pkg_postrm() {
484 - # Update documentation tags (from vim-doc.eclass)
485 - update_vim_helptags
486 -}
487
488 diff --git a/app-editors/vim-core/vim-core-7.4.1342.ebuild b/app-editors/vim-core/vim-core-7.4.1342.ebuild
489 deleted file mode 100644
490 index 5e2f6a1..0000000
491 --- a/app-editors/vim-core/vim-core-7.4.1342.ebuild
492 +++ /dev/null
493 @@ -1,223 +0,0 @@
494 -# Copyright 1999-2016 Gentoo Foundation
495 -# Distributed under the terms of the GNU General Public License v2
496 -# $Id$
497 -
498 -EAPI=5
499 -VIM_VERSION="7.4"
500 -inherit eutils vim-doc flag-o-matic versionator bash-completion-r1 prefix
501 -
502 -if [[ ${PV} == 9999* ]] ; then
503 - inherit git-r3
504 - EGIT_REPO_URI="https://github.com/vim/vim.git"
505 - EGIT_CHECKOUT_DIR=${WORKDIR}/vim-${PV}
506 -else
507 - SRC_URI="https://github.com/vim/vim/archive/v${PV}.tar.gz -> vim-${PV}.tar.gz
508 - https://dev.gentoo.org/~radhermit/vim/vim-7.4.827-gentoo-patches.tar.bz2"
509 - 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"
510 -fi
511 -
512 -DESCRIPTION="vim and gvim shared files"
513 -HOMEPAGE="http://www.vim.org/ https://github.com/vim/vim"
514 -
515 -SLOT="0"
516 -LICENSE="vim"
517 -IUSE="nls acl minimal"
518 -
519 -DEPEND="sys-devel/autoconf"
520 -PDEPEND="!minimal? ( app-vim/gentoo-syntax )"
521 -
522 -S=${WORKDIR}/vim-${PV}
523 -
524 -pkg_setup() {
525 - # people with broken alphabets run into trouble. bug 82186.
526 - unset LANG LC_ALL
527 - export LC_COLLATE="C"
528 -
529 - # Gnome sandbox silliness. bug #114475.
530 - mkdir -p "${T}"/home
531 - export HOME="${T}"/home
532 -}
533 -
534 -src_prepare() {
535 - if [[ ${PV} != 9999* ]] ; then
536 - if [[ -d "${WORKDIR}"/patches/ ]]; then
537 - # Gentoo patches to fix runtime issues, cross-compile errors, etc
538 - EPATCH_SUFFIX="patch" EPATCH_FORCE="yes" \
539 - epatch "${WORKDIR}"/patches/
540 - fi
541 - fi
542 -
543 - # Fixup a script to use awk instead of nawk
544 - sed -i '1s|.*|#!'"${EPREFIX}"'/usr/bin/awk -f|' "${S}"/runtime/tools/mve.awk \
545 - || die "mve.awk sed failed"
546 -
547 - # Read vimrc and gvimrc from /etc/vim
548 - echo '#define SYS_VIMRC_FILE "'${EPREFIX}'/etc/vim/vimrc"' >> "${S}"/src/feature.h
549 - echo '#define SYS_GVIMRC_FILE "'${EPREFIX}'/etc/vim/gvimrc"' >> "${S}"/src/feature.h
550 -
551 - # Use exuberant ctags which installs as /usr/bin/exuberant-ctags.
552 - # Hopefully this pattern won't break for a while at least.
553 - # This fixes bug 29398 (27 Sep 2003 agriffis)
554 - sed -i 's/\<ctags\("\| [-*.]\)/exuberant-&/g' \
555 - "${S}"/runtime/doc/syntax.txt \
556 - "${S}"/runtime/doc/tagsrch.txt \
557 - "${S}"/runtime/doc/usr_29.txt \
558 - "${S}"/runtime/menu.vim \
559 - "${S}"/src/configure.in || die 'sed failed'
560 -
561 - # Don't be fooled by /usr/include/libc.h. When found, vim thinks
562 - # this is NeXT, but it's actually just a file in dev-libs/9libs
563 - # This fixes bug 43885 (20 Mar 2004 agriffis)
564 - sed -i 's/ libc\.h / /' "${S}"/src/configure.in || die 'sed failed'
565 -
566 - # gcc on sparc32 has this, uhm, interesting problem with detecting EOF
567 - # correctly. To avoid some really entertaining error messages about stuff
568 - # which isn't even in the source file being invalid, we'll do some trickery
569 - # to make the error never occur. bug 66162 (02 October 2004 ciaranm)
570 - find "${S}" -name '*.c' | while read c ; do echo >> "$c" ; done
571 -
572 - # Try to avoid sandbox problems. Bug #114475.
573 - if [[ -d "${S}"/src/po ]] ; then
574 - sed -i -e \
575 - '/-S check.vim/s,..VIM.,ln -s $(VIM) testvim \; ./testvim -X,' \
576 - "${S}"/src/po/Makefile
577 - fi
578 -
579 - if version_is_at_least 7.3.122 ; then
580 - cp "${S}"/src/config.mk.dist "${S}"/src/auto/config.mk
581 - fi
582 -
583 - # Bug #378107 - Build properly with >=perl-core/ExtUtils-ParseXS-3.20.0
584 - if version_is_at_least 7.3 ; then
585 - sed -i "s:\\\$(PERLLIB)/ExtUtils/xsubpp:${EPREFIX}/usr/bin/xsubpp:" \
586 - "${S}"/src/Makefile || die 'sed for ExtUtils-ParseXS failed'
587 - fi
588 -
589 - epatch_user
590 -}
591 -
592 -src_configure() {
593 - local myconf
594 -
595 - # Fix bug 37354: Disallow -funroll-all-loops on amd64
596 - # Bug 57859 suggests that we want to do this for all archs
597 - filter-flags -funroll-all-loops
598 -
599 - # Fix bug 76331: -O3 causes problems, use -O2 instead. We'll do this for
600 - # everyone since previous flag filtering bugs have turned out to affect
601 - # multiple archs...
602 - replace-flags -O3 -O2
603 -
604 - # Fix bug 18245: Prevent "make" from the following chain:
605 - # (1) Notice configure.in is newer than auto/configure
606 - # (2) Rebuild auto/configure
607 - # (3) Notice auto/configure is newer than auto/config.mk
608 - # (4) Run ./configure (with wrong args) to remake auto/config.mk
609 - sed -i 's# auto/config\.mk:#:#' src/Makefile || die "Makefile sed failed"
610 - rm -f src/auto/configure
611 - emake -j1 -C src autoconf
612 -
613 - # This should fix a sandbox violation (see bug 24447). The hvc
614 - # things are for ppc64, see bug 86433.
615 - for file in /dev/pty/s* /dev/console /dev/hvc/* /dev/hvc* ; do
616 - [[ -e ${file} ]] && addwrite $file
617 - done
618 -
619 - # Let Portage do the stripping. Some people like that.
620 - export ac_cv_prog_STRIP="$(type -P true ) faking strip"
621 -
622 - # Keep Gentoo Prefix env contained within the EPREFIX
623 - use prefix && myconf+=" --without-local-dir"
624 -
625 - econf \
626 - --with-modified-by=Gentoo-${PVR} \
627 - --enable-gui=no \
628 - --without-x \
629 - --disable-darwin \
630 - --disable-perlinterp \
631 - --disable-pythoninterp \
632 - --disable-rubyinterp \
633 - --disable-gpm \
634 - --disable-selinux \
635 - $(use_enable nls) \
636 - $(use_enable acl) \
637 - ${myconf}
638 -}
639 -
640 -src_compile() {
641 - # The following allows emake to be used
642 - emake -j1 -C src auto/osdef.h objects
643 -
644 - emake tools
645 -}
646 -
647 -src_test() { :; }
648 -
649 -src_install() {
650 - local vimfiles=/usr/share/vim/vim${VIM_VERSION/.}
651 -
652 - dodir /usr/{bin,share/{man/man1,vim}}
653 - cd src || die "cd src failed"
654 - emake \
655 - installruntime \
656 - installmanlinks \
657 - installmacros \
658 - installtutor \
659 - installtutorbin \
660 - installtools \
661 - install-languages \
662 - install-icons \
663 - DESTDIR="${D}" \
664 - BINDIR="${EPREFIX}"/usr/bin \
665 - MANDIR="${EPREFIX}"/usr/share/man \
666 - DATADIR="${EPREFIX}"/usr/share
667 -
668 - keepdir ${vimfiles}/keymap
669 -
670 - # default vimrc is installed by vim-core since it applies to
671 - # both vim and gvim
672 - insinto /etc/vim/
673 - newins "${FILESDIR}"/vimrc-r4 vimrc
674 - eprefixify "${ED}"/etc/vim/vimrc
675 -
676 - if use minimal ; then
677 - # To save space, install only a subset of the files.
678 - # Helps minimalize the livecd, bug 65144.
679 - eshopts_push -s extglob
680 -
681 - rm -fr "${ED}${vimfiles}"/{compiler,doc,ftplugin,indent}
682 - rm -fr "${ED}${vimfiles}"/{macros,print,tools,tutor}
683 - rm "${ED}"/usr/bin/vimtutor
684 -
685 - local keep_colors="default"
686 - ignore=$(rm -fr "${ED}${vimfiles}"/colors/!(${keep_colors}).vim )
687 -
688 - local keep_syntax="conf|crontab|fstab|inittab|resolv|sshdconfig"
689 - # tinkering with the next line might make bad things happen ...
690 - keep_syntax="${keep_syntax}|syntax|nosyntax|synload"
691 - ignore=$(rm -fr "${ED}${vimfiles}"/syntax/!(${keep_syntax}).vim )
692 -
693 - eshopts_pop
694 - fi
695 -
696 - # These files might have slight security issues, so we won't
697 - # install them. See bug #77841. We don't mind if these don't
698 - # exist.
699 - rm "${ED}${vimfiles}"/tools/{vimspell.sh,tcltags} 2>/dev/null
700 -
701 - newbashcomp "${FILESDIR}"/xxd-completion xxd
702 -
703 - # We shouldn't be installing the ex or view man page symlinks, as they
704 - # are managed by eselect-vi
705 - rm -f "${ED}"/usr/share/man/man1/{ex,view}.1
706 -}
707 -
708 -pkg_postinst() {
709 - # Update documentation tags (from vim-doc.eclass)
710 - update_vim_helptags
711 -}
712 -
713 -pkg_postrm() {
714 - # Update documentation tags (from vim-doc.eclass)
715 - update_vim_helptags
716 -}