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/gvim/
Date: Wed, 15 Nov 2017 03:57:48
Message-Id: 1510717975.23e549186b63ab320b9c08be63966ff900fed056.radhermit@gentoo
1 commit: 23e549186b63ab320b9c08be63966ff900fed056
2 Author: Tim Harder <radhermit <AT> gentoo <DOT> org>
3 AuthorDate: Wed Nov 15 03:52:55 2017 +0000
4 Commit: Tim Harder <radhermit <AT> gentoo <DOT> org>
5 CommitDate: Wed Nov 15 03:52:55 2017 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=23e54918
7
8 app-editors/gvim: remove old
9
10 app-editors/gvim/Manifest | 3 -
11 app-editors/gvim/gvim-8.0.0386-r1.ebuild | 388 -------------------------------
12 app-editors/gvim/gvim-8.0.0938.ebuild | 388 -------------------------------
13 app-editors/gvim/gvim-8.0.0983.ebuild | 388 -------------------------------
14 app-editors/gvim/gvim-8.0.1056.ebuild | 388 -------------------------------
15 5 files changed, 1555 deletions(-)
16
17 diff --git a/app-editors/gvim/Manifest b/app-editors/gvim/Manifest
18 index cbc6f49ed75..510dd0337d1 100644
19 --- a/app-editors/gvim/Manifest
20 +++ b/app-editors/gvim/Manifest
21 @@ -1,8 +1,5 @@
22 DIST vim-8.0.0106-gentoo-patches.tar.bz2 2281 SHA256 9823a91b050eb4b001cc50f508d2ad03c7c256ed49183c1af7582318667f48d4 SHA512 39edd9f518c230d2b0486b18aa155572a9eada4a5e21108573d6e66e2eef1276f23b77d766648f018c9cf973a7d03712d8861be6ea13255d7b389912d554a47a WHIRLPOOL d6d01e3944d56762a2a999ee631f89e212360aa030ddd16ea96e32d518ec171e04d8565dcb89e804248d53e4c6e06b19be239ad2316ea88bb57364815b85d26b
23 DIST vim-8.0.0386.tar.gz 13000882 SHA256 25b28f6ef55a8d0b3f255f0fbed90ad1450bde7f7b231cc09d86c5119adc95bc SHA512 3169ea4dbc836c724f63d99cd345227f870a3a922beba84a6b42011685c0dd209f6bba8c69af0650c9a57bb47fc541e1150ca8cefb21fcada022259bf4c94a66 WHIRLPOOL 99a5582e0db0dc53fd8385cddf1fbf13d2fe1dd5c8e33c9959288c19d4b85f50139791269edd4ec3d5cbed6548cc3d9c7962ec1706eb422a4ef83c207aac009b
24 DIST vim-8.0.0938-gentoo-patches.tar.bz2 2316 SHA256 851418dbbbac25e581eeb44a24e62f8841a7df33f436d1986dd7332fb5d07c60 SHA512 a6062be5e6a5c5b437081312df5742353242b5171bf26da04aa6ca216d2b142b2411a88bc1edd460d28e00a59a210c8e1729e801fac6f1efd86bb2e437a56a2b WHIRLPOOL 8521b344426b5d2b246ddab7768eae45e0ee54ef58085099f9e15575e7854eb461fbcf0093caee1326e29d2425c2d451de36812cda24fa767709fc5d6046236c
25 -DIST vim-8.0.0938.tar.gz 13287289 SHA256 7a07fb164069ce82e5c90ff3831b6f3249e09193800f76d9c576867a63828071 SHA512 be4b6a29ace6a708cd7d0d3a3585cd3b88056e49f3869e18c6b895272e4ec01a8a7a68695ec2f885dd1fc139ae022a3f1b2d2d11e8b883362b9683cf5a8b0cd3 WHIRLPOOL 5098cf73f8b294686888c8b5a31199044ec1f409cc9c3de39e96911f688374282716a3137827e260c97e688bb42e79a77c53a29fa7d3364ce2c3375c2257b309
26 -DIST vim-8.0.0983.tar.gz 13292263 SHA256 5f3d5307d7055e3a55811546f6c787f1c65d209ae5b83e36c0de16d64fda8bf2 SHA512 985cdcf134c3513a973b4c91a899684a563fca4c347afba2d51892d737c8b58a2008bbf8573a98838da6df16552096e437a5064dc2ef653c7222bbac59ce6136 WHIRLPOOL 98a1ed102182f07e1dc2105b9bae73e1f6c0f7522b25ab91aba4767a3c9d805082a89bd964ab6441fb4185f4076b046a25ca92bf08f0446e4d2a53b0298bb3e0
27 -DIST vim-8.0.1056.tar.gz 13309986 SHA256 c061d1ddc0f4001415e68678780eac7121d08877a852fae484e6a93f633aec0c SHA512 19385736d4d97a66a2fb3fd8ce725d42c435da09a41e8b40234048626b28d2fa96c4db96a4313bd30f1c2d3733c52097e147c90e4bc11be80d3fcbf12fa4d13b WHIRLPOOL d81b3166f028867ebf48d43bf249675f16cda0118a2e443606a8cae01b0932d3f8a29ca568d088953d4b9d8afe8299ac207d0213ad247e1c10b9c52ed18514e1
28 DIST vim-8.0.1188.tar.gz 13363260 SHA256 cd92e56493584128bff13d3104631d3d38e66264101a3c5d59e2488f74f738de SHA512 9c3733aa894c276de593d6144ee0aaf251092a11f4d0ac603d3d49a282ac6176aa4e88eccfd2527ff53b386bdd0177a85c0942367d68a652b5ca4040390ba49b WHIRLPOOL 7b19600f086d2f2908fbee5c44876a1775881d9a1cbb54428d4d1db254d14cdbcfe243fe055a754f58027c0166f7dcb1dd13b4db5662793bb7fc014bd76ea504
29 DIST vim-8.0.1298.tar.gz 13395459 SHA256 5126240843b559251fe6a96d4ce7e1dd3d1de9bcb38556dd9fe63b163629fdf2 SHA512 7704c493359c1a922f876e4d6f3b4ad265d8ce974a59d51a39e5a4424251105250ffc803bcf6c6750daeb5e6376cbbfd24557b075eacf2b0274d7c432db2f681 WHIRLPOOL dbb1f136091ad63b78e7e26ed2ca9d5045b966fe8d7caaeace981c789d679070323a4a345d750e037aa9e0489cf7bd1769f17ac1d590f0624e50dc3276b6a84f
30
31 diff --git a/app-editors/gvim/gvim-8.0.0386-r1.ebuild b/app-editors/gvim/gvim-8.0.0386-r1.ebuild
32 deleted file mode 100644
33 index b56a0e66757..00000000000
34 --- a/app-editors/gvim/gvim-8.0.0386-r1.ebuild
35 +++ /dev/null
36 @@ -1,388 +0,0 @@
37 -# Copyright 1999-2017 Gentoo Foundation
38 -# Distributed under the terms of the GNU General Public License v2
39 -
40 -EAPI=6
41 -VIM_VERSION="8.0"
42 -PYTHON_COMPAT=( python{2_7,3_4,3_5,3_6} )
43 -PYTHON_REQ_USE=threads
44 -inherit eutils vim-doc flag-o-matic fdo-mime gnome2-utils versionator bash-completion-r1 prefix python-single-r1
45 -
46 -if [[ ${PV} == 9999* ]] ; then
47 - inherit git-r3
48 - EGIT_REPO_URI="https://github.com/vim/vim.git"
49 - EGIT_CHECKOUT_DIR=${WORKDIR}/vim-${PV}
50 -else
51 - SRC_URI="https://github.com/vim/vim/archive/v${PV}.tar.gz -> vim-${PV}.tar.gz
52 - https://dev.gentoo.org/~radhermit/vim/vim-8.0.0106-gentoo-patches.tar.bz2"
53 - KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~ppc ~ppc64 ~sparc ~x86 ~x86-fbsd ~amd64-linux ~x86-linux ~ppc-macos ~x86-macos ~x86-solaris"
54 -fi
55 -
56 -DESCRIPTION="GUI version of the Vim text editor"
57 -HOMEPAGE="http://www.vim.org/ https://github.com/vim/vim"
58 -
59 -SLOT="0"
60 -LICENSE="vim"
61 -IUSE="acl aqua cscope debug gnome gtk gtk3 lua luajit motif neXt netbeans nls perl python racket ruby selinux session tcl"
62 -REQUIRED_USE="
63 - luajit? ( lua )
64 - python? ( ${PYTHON_REQUIRED_USE} )
65 -"
66 -
67 -RDEPEND="
68 - ~app-editors/vim-core-${PV}
69 - >=app-eselect/eselect-vi-1.1
70 - >=sys-libs/ncurses-5.2-r2:0=
71 - x11-libs/libICE
72 - x11-libs/libSM
73 - x11-libs/libXext
74 - x11-libs/libXt
75 - acl? ( kernel_linux? ( sys-apps/acl ) )
76 - !aqua? (
77 - gtk3? (
78 - x11-libs/gtk+:3
79 - x11-libs/libXft
80 - )
81 - !gtk3? (
82 - gtk? (
83 - >=x11-libs/gtk+-2.6:2
84 - x11-libs/libXft
85 - gnome? ( >=gnome-base/libgnomeui-2.6 )
86 - )
87 - !gtk? (
88 - motif? ( >=x11-libs/motif-2.3:0 )
89 - !motif? (
90 - neXt? ( x11-libs/neXtaw )
91 - !neXt? ( x11-libs/libXaw )
92 - )
93 - )
94 - )
95 - )
96 - cscope? ( dev-util/cscope )
97 - lua? (
98 - luajit? ( dev-lang/luajit:2= )
99 - !luajit? ( dev-lang/lua:0[deprecated] )
100 - )
101 - nls? ( virtual/libintl )
102 - perl? ( dev-lang/perl:= )
103 - python? ( ${PYTHON_DEPS} )
104 - racket? ( dev-scheme/racket )
105 - ruby? ( || ( dev-lang/ruby:2.4 dev-lang/ruby:2.3 dev-lang/ruby:2.2 dev-lang/ruby:2.1 ) )
106 - selinux? ( sys-libs/libselinux )
107 - session? ( x11-libs/libSM )
108 - tcl? ( dev-lang/tcl:0= )
109 -"
110 -DEPEND="${RDEPEND}
111 - dev-util/ctags
112 - sys-devel/autoconf
113 - virtual/pkgconfig
114 - nls? ( sys-devel/gettext )
115 -"
116 -
117 -S=${WORKDIR}/vim-${PV}
118 -
119 -pkg_setup() {
120 - # people with broken alphabets run into trouble. bug 82186.
121 - unset LANG LC_ALL
122 - export LC_COLLATE="C"
123 -
124 - # Gnome sandbox silliness. bug #114475.
125 - mkdir -p "${T}"/home
126 - export HOME="${T}"/home
127 -
128 - use python && python-single-r1_pkg_setup
129 -}
130 -
131 -src_prepare() {
132 - if [[ ${PV} != 9999* ]] ; then
133 - # Gentoo patches to fix runtime issues, cross-compile errors, etc
134 - eapply "${WORKDIR}"/patches/
135 - fi
136 -
137 - # Fixup a script to use awk instead of nawk
138 - sed -i '1s|.*|#!'"${EPREFIX}"'/usr/bin/awk -f|' "${S}"/runtime/tools/mve.awk \
139 - || die "mve.awk sed failed"
140 -
141 - # Read vimrc and gvimrc from /etc/vim
142 - echo '#define SYS_VIMRC_FILE "'${EPREFIX}'/etc/vim/vimrc"' >> "${S}"/src/feature.h
143 - echo '#define SYS_GVIMRC_FILE "'${EPREFIX}'/etc/vim/gvimrc"' >> "${S}"/src/feature.h
144 -
145 - # Use exuberant ctags which installs as /usr/bin/exuberant-ctags.
146 - # Hopefully this pattern won't break for a while at least.
147 - # This fixes bug 29398 (27 Sep 2003 agriffis)
148 - sed -i 's/\<ctags\("\| [-*.]\)/exuberant-&/g' \
149 - "${S}"/runtime/doc/syntax.txt \
150 - "${S}"/runtime/doc/tagsrch.txt \
151 - "${S}"/runtime/doc/usr_29.txt \
152 - "${S}"/runtime/menu.vim \
153 - "${S}"/src/configure.ac || die 'sed failed'
154 -
155 - # Don't be fooled by /usr/include/libc.h. When found, vim thinks
156 - # this is NeXT, but it's actually just a file in dev-libs/9libs
157 - # This fixes bug 43885 (20 Mar 2004 agriffis)
158 - sed -i 's/ libc\.h / /' "${S}"/src/configure.ac || die 'sed failed'
159 -
160 - # gcc on sparc32 has this, uhm, interesting problem with detecting EOF
161 - # correctly. To avoid some really entertaining error messages about stuff
162 - # which isn't even in the source file being invalid, we'll do some trickery
163 - # to make the error never occur. bug 66162 (02 October 2004 ciaranm)
164 - find "${S}" -name '*.c' | while read c ; do echo >> "$c" ; done
165 -
166 - # Try to avoid sandbox problems. Bug #114475.
167 - if [[ -d "${S}"/src/po ]] ; then
168 - sed -i '/-S check.vim/s,..VIM.,ln -s $(VIM) testvim \; ./testvim -X,' \
169 - "${S}"/src/po/Makefile
170 - fi
171 -
172 - if version_is_at_least 7.3.122 ; then
173 - cp "${S}"/src/config.mk.dist "${S}"/src/auto/config.mk
174 - fi
175 -
176 - # Bug #378107 - Build properly with >=perl-core/ExtUtils-ParseXS-3.20.0
177 - if version_is_at_least 7.3 ; then
178 - sed -i "s:\\\$(PERLLIB)/ExtUtils/xsubpp:${EPREFIX}/usr/bin/xsubpp:" \
179 - "${S}"/src/Makefile || die 'sed for ExtUtils-ParseXS failed'
180 - fi
181 -
182 - eapply_user
183 -}
184 -
185 -src_configure() {
186 - local myconf=()
187 -
188 - # Fix bug 37354: Disallow -funroll-all-loops on amd64
189 - # Bug 57859 suggests that we want to do this for all archs
190 - filter-flags -funroll-all-loops
191 -
192 - # Fix bug 76331: -O3 causes problems, use -O2 instead. We'll do this for
193 - # everyone since previous flag filtering bugs have turned out to affect
194 - # multiple archs...
195 - replace-flags -O3 -O2
196 -
197 - # Fix bug 18245: Prevent "make" from the following chain:
198 - # (1) Notice configure.ac is newer than auto/configure
199 - # (2) Rebuild auto/configure
200 - # (3) Notice auto/configure is newer than auto/config.mk
201 - # (4) Run ./configure (with wrong args) to remake auto/config.mk
202 - sed -i 's# auto/config\.mk:#:#' src/Makefile || die "Makefile sed failed"
203 - rm -f src/auto/configure
204 - emake -j1 -C src autoconf
205 -
206 - # This should fix a sandbox violation (see bug 24447). The hvc
207 - # things are for ppc64, see bug 86433.
208 - for file in /dev/pty/s* /dev/console /dev/hvc/* /dev/hvc* ; do
209 - [[ -e ${file} ]] && addwrite $file
210 - done
211 -
212 - use debug && append-flags "-DDEBUG"
213 -
214 - myconf=(
215 - --with-features=huge
216 - --disable-gpm
217 - --enable-multibyte
218 - $(use_enable acl)
219 - $(use_enable cscope)
220 - $(use_enable lua luainterp)
221 - $(use_with luajit)
222 - $(use_enable netbeans)
223 - $(use_enable nls)
224 - $(use_enable perl perlinterp)
225 - $(use_enable python pythoninterp)
226 - $(use_enable python python3interp)
227 - $(use_enable racket mzschemeinterp)
228 - $(use_enable ruby rubyinterp)
229 - $(use_enable selinux)
230 - $(use_enable session xsmp)
231 - $(use_enable tcl tclinterp)
232 - )
233 -
234 - # --with-features=huge forces on cscope even if we --disable it. We need
235 - # to sed this out to avoid screwiness. (1 Sep 2004 ciaranm)
236 - if ! use cscope ; then
237 - sed -i '/# define FEAT_CSCOPE/d' src/feature.h || \
238 - die "couldn't disable cscope"
239 - fi
240 -
241 - # gvim's GUI preference order is as follows:
242 - # aqua CARBON (not tested)
243 - # -aqua gtk3 GTK3
244 - # -aqua -gtk3 gnome GNOME2
245 - # -aqua -gtk3 -gnome gtk GTK2
246 - # -aqua -gtk -gtk3 motif MOTIF
247 - # -aqua -gtk -gtk3 -motif neXt NEXTAW
248 - # -aqua -gtk -gtk3 -motif -neXt ATHENA
249 - echo ; echo
250 - if use aqua ; then
251 - einfo "Building gvim with the Carbon GUI"
252 - myconf+=(
253 - --enable-darwin
254 - --enable-gui=carbon
255 - )
256 - elif use gtk3 ; then
257 - myconf+=( --enable-gtk3-check )
258 - einfo "Building gvim with the gtk+-3 GUI"
259 - myconf+=( --enable-gui=gtk3 )
260 - elif use gtk ; then
261 - myconf+=( --enable-gtk2-check )
262 - if use gnome ; then
263 - einfo "Building gvim with the Gnome 2 GUI"
264 - myconf+=( --enable-gui=gnome2 )
265 - else
266 - einfo "Building gvim with the gtk+-2 GUI"
267 - myconf+=( --enable-gui=gtk2 )
268 - fi
269 - elif use motif ; then
270 - einfo "Building gvim with the MOTIF GUI"
271 - myconf+=( --enable-gui=motif )
272 - elif use neXt ; then
273 - einfo "Building gvim with the neXtaw GUI"
274 - myconf+=( --enable-gui=nextaw )
275 - else
276 - einfo "Building gvim with the Athena GUI"
277 - myconf+=( --enable-gui=athena )
278 - fi
279 - echo ; echo
280 -
281 - # let package manager strip binaries
282 - export ac_cv_prog_STRIP="$(type -P true ) faking strip"
283 -
284 - # keep prefix env contained within the EPREFIX
285 - use prefix && myconf+=( --without-local-dir )
286 -
287 - if [[ ${CHOST} == *-interix* ]]; then
288 - # avoid finding of this function, to avoid having to patch either
289 - # configure or the source, which would be much more hackish.
290 - # after all vim does it right, only interix is badly broken (again)
291 - export ac_cv_func_sigaction=no
292 - fi
293 -
294 - econf \
295 - --with-modified-by=Gentoo-${PVR} \
296 - --with-vim-name=gvim \
297 - --with-x \
298 - "${myconf[@]}"
299 -}
300 -
301 -src_compile() {
302 - # The following allows emake to be used
303 - emake -j1 -C src auto/osdef.h objects
304 -
305 - emake
306 -}
307 -
308 -src_test() {
309 - echo
310 - einfo "Starting vim tests. Several error messages will be shown"
311 - einfo "while the tests run. This is normal behaviour and does not"
312 - einfo "indicate a fault."
313 - echo
314 - ewarn "If the tests fail, your terminal may be left in a strange"
315 - ewarn "state. Usually, running 'reset' will fix this."
316 - echo
317 -
318 - # Don't let vim talk to X
319 - unset DISPLAY
320 -
321 - # Make gvim not try to connect to X. See :help gui-x11-start in vim for how
322 - # this evil trickery works.
323 - ln -s "${S}"/src/gvim "${S}"/src/testvim || die
324 -
325 - # Make sure our VIMPROG is used.
326 - sed -i 's:\.\./vim:../testvim:' src/testdir/test49.vim || die
327 -
328 - # Don't do additional GUI tests.
329 - emake -j1 VIMPROG=../testvim -C src/testdir nongui
330 -}
331 -
332 -# Make convenience symlinks, hopefully without stepping on toes. Some
333 -# of these links are "owned" by the vim ebuild when it is installed,
334 -# but they might be good for gvim as well (see bug 45828)
335 -update_vim_symlinks() {
336 - local f syms
337 - syms="vimdiff rvim rview"
338 - einfo "Calling eselect vi update..."
339 - # Call this with --if-unset to respect user's choice (bug 187449)
340 - eselect vi update --if-unset
341 -
342 - # Make or remove convenience symlink, vim -> gvim
343 - if [[ -f "${EROOT}"/usr/bin/gvim ]]; then
344 - ln -s gvim "${EROOT}"/usr/bin/vim 2>/dev/null
345 - elif [[ -L "${EROOT}"/usr/bin/vim && ! -f "${EROOT}"/usr/bin/vim ]]; then
346 - rm "${EROOT}"/usr/bin/vim
347 - fi
348 -
349 - # Make or remove convenience symlinks to vim
350 - if [[ -f "${EROOT}"/usr/bin/vim ]]; then
351 - for f in ${syms}; do
352 - ln -s vim "${EROOT}"/usr/bin/${f} 2>/dev/null
353 - done
354 - else
355 - for f in ${syms}; do
356 - if [[ -L "${EROOT}"/usr/bin/${f} && ! -f "${EROOT}"/usr/bin/${f} ]]; then
357 - rm -f "${EROOT}"/usr/bin/${f}
358 - fi
359 - done
360 - fi
361 -
362 - # This will still break if you merge then remove the vi package,
363 - # but there's only so much you can do, eh? Unfortunately we don't
364 - # have triggers like are done in rpm-land.
365 -}
366 -
367 -src_install() {
368 - local vimfiles=/usr/share/vim/vim${VIM_VERSION/.}
369 -
370 - dobin src/gvim
371 - dosym gvim /usr/bin/gvimdiff
372 - dosym gvim /usr/bin/evim
373 - dosym gvim /usr/bin/eview
374 - dosym gvim /usr/bin/gview
375 - dosym gvim /usr/bin/rgvim
376 - dosym gvim /usr/bin/rgview
377 -
378 - emake -C src DESTDIR="${D}" DATADIR="${EPREFIX}"/usr/share install-icons
379 -
380 - dodir /usr/share/man/man1
381 - echo ".so vim.1" > "${ED}"/usr/share/man/man1/gvim.1
382 - echo ".so vim.1" > "${ED}"/usr/share/man/man1/gview.1
383 - echo ".so vimdiff.1" > "${ED}"/usr/share/man/man1/gvimdiff.1
384 -
385 - insinto /etc/vim
386 - newins "${FILESDIR}"/gvimrc-r1 gvimrc
387 - eprefixify "${ED}"/etc/vim/gvimrc
388 -
389 - doicon -s scalable "${FILESDIR}"/gvim.svg
390 -
391 - # bash completion script, bug #79018.
392 - newbashcomp "${FILESDIR}"/${PN}-completion ${PN}
393 -
394 - # don't install vim desktop file
395 - rm "${ED}"/usr/share/applications/vim.desktop || die "failed to remove vim.desktop"
396 -}
397 -
398 -pkg_postinst() {
399 - # Update documentation tags (from vim-doc.eclass)
400 - update_vim_helptags
401 -
402 - # Update fdo mime stuff, bug #78394
403 - fdo-mime_desktop_database_update
404 -
405 - # Update icon cache
406 - gnome2_icon_cache_update
407 -
408 - # Make convenience symlinks
409 - update_vim_symlinks
410 -}
411 -
412 -pkg_postrm() {
413 - # Update documentation tags (from vim-doc.eclass)
414 - update_vim_helptags
415 -
416 - # Update fdo mime stuff, bug #78394
417 - fdo-mime_desktop_database_update
418 -
419 - # Update icon cache
420 - gnome2_icon_cache_update
421 -
422 - # Make convenience symlinks
423 - update_vim_symlinks
424 -}
425
426 diff --git a/app-editors/gvim/gvim-8.0.0938.ebuild b/app-editors/gvim/gvim-8.0.0938.ebuild
427 deleted file mode 100644
428 index 9a3c4881d9c..00000000000
429 --- a/app-editors/gvim/gvim-8.0.0938.ebuild
430 +++ /dev/null
431 @@ -1,388 +0,0 @@
432 -# Copyright 1999-2017 Gentoo Foundation
433 -# Distributed under the terms of the GNU General Public License v2
434 -
435 -EAPI=6
436 -VIM_VERSION="8.0"
437 -PYTHON_COMPAT=( python{2_7,3_4,3_5,3_6} )
438 -PYTHON_REQ_USE=threads
439 -inherit vim-doc flag-o-matic xdg-utils gnome2-utils versionator bash-completion-r1 prefix python-single-r1
440 -
441 -if [[ ${PV} == 9999* ]] ; then
442 - inherit git-r3
443 - EGIT_REPO_URI="https://github.com/vim/vim.git"
444 - EGIT_CHECKOUT_DIR=${WORKDIR}/vim-${PV}
445 -else
446 - SRC_URI="https://github.com/vim/vim/archive/v${PV}.tar.gz -> vim-${PV}.tar.gz
447 - https://dev.gentoo.org/~radhermit/vim/vim-8.0.0938-gentoo-patches.tar.bz2"
448 - KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~ppc ~ppc64 ~sparc ~x86 ~x86-fbsd ~amd64-linux ~x86-linux ~ppc-macos ~x86-macos ~x86-solaris"
449 -fi
450 -
451 -DESCRIPTION="GUI version of the Vim text editor"
452 -HOMEPAGE="http://www.vim.org/ https://github.com/vim/vim"
453 -
454 -SLOT="0"
455 -LICENSE="vim"
456 -IUSE="acl aqua cscope debug gnome gtk gtk3 lua luajit motif neXt netbeans nls perl python racket ruby selinux session tcl"
457 -REQUIRED_USE="
458 - luajit? ( lua )
459 - python? ( ${PYTHON_REQUIRED_USE} )
460 -"
461 -
462 -RDEPEND="
463 - ~app-editors/vim-core-${PV}
464 - >=app-eselect/eselect-vi-1.1
465 - >=sys-libs/ncurses-5.2-r2:0=
466 - x11-libs/libICE
467 - x11-libs/libSM
468 - x11-libs/libXext
469 - x11-libs/libXt
470 - acl? ( kernel_linux? ( sys-apps/acl ) )
471 - !aqua? (
472 - gtk3? (
473 - x11-libs/gtk+:3
474 - x11-libs/libXft
475 - )
476 - !gtk3? (
477 - gtk? (
478 - >=x11-libs/gtk+-2.6:2
479 - x11-libs/libXft
480 - gnome? ( >=gnome-base/libgnomeui-2.6 )
481 - )
482 - !gtk? (
483 - motif? ( >=x11-libs/motif-2.3:0 )
484 - !motif? (
485 - neXt? ( x11-libs/neXtaw )
486 - !neXt? ( x11-libs/libXaw )
487 - )
488 - )
489 - )
490 - )
491 - cscope? ( dev-util/cscope )
492 - lua? (
493 - luajit? ( dev-lang/luajit:2= )
494 - !luajit? ( dev-lang/lua:0[deprecated] )
495 - )
496 - nls? ( virtual/libintl )
497 - perl? ( dev-lang/perl:= )
498 - python? ( ${PYTHON_DEPS} )
499 - racket? ( dev-scheme/racket )
500 - ruby? ( || ( dev-lang/ruby:2.4 dev-lang/ruby:2.3 dev-lang/ruby:2.2 dev-lang/ruby:2.1 ) )
501 - selinux? ( sys-libs/libselinux )
502 - session? ( x11-libs/libSM )
503 - tcl? ( dev-lang/tcl:0= )
504 -"
505 -DEPEND="${RDEPEND}
506 - dev-util/ctags
507 - sys-devel/autoconf
508 - virtual/pkgconfig
509 - nls? ( sys-devel/gettext )
510 -"
511 -
512 -S=${WORKDIR}/vim-${PV}
513 -
514 -pkg_setup() {
515 - # people with broken alphabets run into trouble. bug 82186.
516 - unset LANG LC_ALL
517 - export LC_COLLATE="C"
518 -
519 - # Gnome sandbox silliness. bug #114475.
520 - mkdir -p "${T}"/home
521 - export HOME="${T}"/home
522 -
523 - use python && python-single-r1_pkg_setup
524 -}
525 -
526 -src_prepare() {
527 - if [[ ${PV} != 9999* ]] ; then
528 - # Gentoo patches to fix runtime issues, cross-compile errors, etc
529 - eapply "${WORKDIR}"/patches/
530 - fi
531 -
532 - # Fixup a script to use awk instead of nawk
533 - sed -i '1s|.*|#!'"${EPREFIX}"'/usr/bin/awk -f|' "${S}"/runtime/tools/mve.awk \
534 - || die "mve.awk sed failed"
535 -
536 - # Read vimrc and gvimrc from /etc/vim
537 - echo '#define SYS_VIMRC_FILE "'${EPREFIX}'/etc/vim/vimrc"' >> "${S}"/src/feature.h
538 - echo '#define SYS_GVIMRC_FILE "'${EPREFIX}'/etc/vim/gvimrc"' >> "${S}"/src/feature.h
539 -
540 - # Use exuberant ctags which installs as /usr/bin/exuberant-ctags.
541 - # Hopefully this pattern won't break for a while at least.
542 - # This fixes bug 29398 (27 Sep 2003 agriffis)
543 - sed -i 's/\<ctags\("\| [-*.]\)/exuberant-&/g' \
544 - "${S}"/runtime/doc/syntax.txt \
545 - "${S}"/runtime/doc/tagsrch.txt \
546 - "${S}"/runtime/doc/usr_29.txt \
547 - "${S}"/runtime/menu.vim \
548 - "${S}"/src/configure.ac || die 'sed failed'
549 -
550 - # Don't be fooled by /usr/include/libc.h. When found, vim thinks
551 - # this is NeXT, but it's actually just a file in dev-libs/9libs
552 - # This fixes bug 43885 (20 Mar 2004 agriffis)
553 - sed -i 's/ libc\.h / /' "${S}"/src/configure.ac || die 'sed failed'
554 -
555 - # gcc on sparc32 has this, uhm, interesting problem with detecting EOF
556 - # correctly. To avoid some really entertaining error messages about stuff
557 - # which isn't even in the source file being invalid, we'll do some trickery
558 - # to make the error never occur. bug 66162 (02 October 2004 ciaranm)
559 - find "${S}" -name '*.c' | while read c ; do echo >> "$c" ; done
560 -
561 - # Try to avoid sandbox problems. Bug #114475.
562 - if [[ -d "${S}"/src/po ]] ; then
563 - sed -i '/-S check.vim/s,..VIM.,ln -s $(VIM) testvim \; ./testvim -X,' \
564 - "${S}"/src/po/Makefile
565 - fi
566 -
567 - if version_is_at_least 7.3.122 ; then
568 - cp "${S}"/src/config.mk.dist "${S}"/src/auto/config.mk
569 - fi
570 -
571 - # Bug #378107 - Build properly with >=perl-core/ExtUtils-ParseXS-3.20.0
572 - if version_is_at_least 7.3 ; then
573 - sed -i "s:\\\$(PERLLIB)/ExtUtils/xsubpp:${EPREFIX}/usr/bin/xsubpp:" \
574 - "${S}"/src/Makefile || die 'sed for ExtUtils-ParseXS failed'
575 - fi
576 -
577 - eapply_user
578 -}
579 -
580 -src_configure() {
581 - local myconf=()
582 -
583 - # Fix bug 37354: Disallow -funroll-all-loops on amd64
584 - # Bug 57859 suggests that we want to do this for all archs
585 - filter-flags -funroll-all-loops
586 -
587 - # Fix bug 76331: -O3 causes problems, use -O2 instead. We'll do this for
588 - # everyone since previous flag filtering bugs have turned out to affect
589 - # multiple archs...
590 - replace-flags -O3 -O2
591 -
592 - # Fix bug 18245: Prevent "make" from the following chain:
593 - # (1) Notice configure.ac is newer than auto/configure
594 - # (2) Rebuild auto/configure
595 - # (3) Notice auto/configure is newer than auto/config.mk
596 - # (4) Run ./configure (with wrong args) to remake auto/config.mk
597 - sed -i 's# auto/config\.mk:#:#' src/Makefile || die "Makefile sed failed"
598 - rm -f src/auto/configure
599 - emake -j1 -C src autoconf
600 -
601 - # This should fix a sandbox violation (see bug 24447). The hvc
602 - # things are for ppc64, see bug 86433.
603 - for file in /dev/pty/s* /dev/console /dev/hvc/* /dev/hvc* ; do
604 - [[ -e ${file} ]] && addwrite $file
605 - done
606 -
607 - use debug && append-flags "-DDEBUG"
608 -
609 - myconf=(
610 - --with-features=huge
611 - --disable-gpm
612 - --enable-multibyte
613 - $(use_enable acl)
614 - $(use_enable cscope)
615 - $(use_enable lua luainterp)
616 - $(use_with luajit)
617 - $(use_enable netbeans)
618 - $(use_enable nls)
619 - $(use_enable perl perlinterp)
620 - $(use_enable python pythoninterp)
621 - $(use_enable python python3interp)
622 - $(use_enable racket mzschemeinterp)
623 - $(use_enable ruby rubyinterp)
624 - $(use_enable selinux)
625 - $(use_enable session xsmp)
626 - $(use_enable tcl tclinterp)
627 - )
628 -
629 - # --with-features=huge forces on cscope even if we --disable it. We need
630 - # to sed this out to avoid screwiness. (1 Sep 2004 ciaranm)
631 - if ! use cscope ; then
632 - sed -i '/# define FEAT_CSCOPE/d' src/feature.h || \
633 - die "couldn't disable cscope"
634 - fi
635 -
636 - # gvim's GUI preference order is as follows:
637 - # aqua CARBON (not tested)
638 - # -aqua gtk3 GTK3
639 - # -aqua -gtk3 gnome GNOME2
640 - # -aqua -gtk3 -gnome gtk GTK2
641 - # -aqua -gtk -gtk3 motif MOTIF
642 - # -aqua -gtk -gtk3 -motif neXt NEXTAW
643 - # -aqua -gtk -gtk3 -motif -neXt ATHENA
644 - echo ; echo
645 - if use aqua ; then
646 - einfo "Building gvim with the Carbon GUI"
647 - myconf+=(
648 - --enable-darwin
649 - --enable-gui=carbon
650 - )
651 - elif use gtk3 ; then
652 - myconf+=( --enable-gtk3-check )
653 - einfo "Building gvim with the gtk+-3 GUI"
654 - myconf+=( --enable-gui=gtk3 )
655 - elif use gtk ; then
656 - myconf+=( --enable-gtk2-check )
657 - if use gnome ; then
658 - einfo "Building gvim with the Gnome 2 GUI"
659 - myconf+=( --enable-gui=gnome2 )
660 - else
661 - einfo "Building gvim with the gtk+-2 GUI"
662 - myconf+=( --enable-gui=gtk2 )
663 - fi
664 - elif use motif ; then
665 - einfo "Building gvim with the MOTIF GUI"
666 - myconf+=( --enable-gui=motif )
667 - elif use neXt ; then
668 - einfo "Building gvim with the neXtaw GUI"
669 - myconf+=( --enable-gui=nextaw )
670 - else
671 - einfo "Building gvim with the Athena GUI"
672 - myconf+=( --enable-gui=athena )
673 - fi
674 - echo ; echo
675 -
676 - # let package manager strip binaries
677 - export ac_cv_prog_STRIP="$(type -P true ) faking strip"
678 -
679 - # keep prefix env contained within the EPREFIX
680 - use prefix && myconf+=( --without-local-dir )
681 -
682 - if [[ ${CHOST} == *-interix* ]]; then
683 - # avoid finding of this function, to avoid having to patch either
684 - # configure or the source, which would be much more hackish.
685 - # after all vim does it right, only interix is badly broken (again)
686 - export ac_cv_func_sigaction=no
687 - fi
688 -
689 - econf \
690 - --with-modified-by=Gentoo-${PVR} \
691 - --with-vim-name=gvim \
692 - --with-x \
693 - "${myconf[@]}"
694 -}
695 -
696 -src_compile() {
697 - # The following allows emake to be used
698 - emake -j1 -C src auto/osdef.h objects
699 -
700 - emake
701 -}
702 -
703 -src_test() {
704 - echo
705 - einfo "Starting vim tests. Several error messages will be shown"
706 - einfo "while the tests run. This is normal behaviour and does not"
707 - einfo "indicate a fault."
708 - echo
709 - ewarn "If the tests fail, your terminal may be left in a strange"
710 - ewarn "state. Usually, running 'reset' will fix this."
711 - echo
712 -
713 - # Don't let vim talk to X
714 - unset DISPLAY
715 -
716 - # Make gvim not try to connect to X. See :help gui-x11-start in vim for how
717 - # this evil trickery works.
718 - ln -s "${S}"/src/gvim "${S}"/src/testvim || die
719 -
720 - # Make sure our VIMPROG is used.
721 - sed -i 's:\.\./vim:../testvim:' src/testdir/test49.vim || die
722 -
723 - # Don't do additional GUI tests.
724 - emake -j1 VIMPROG=../testvim -C src/testdir nongui
725 -}
726 -
727 -# Make convenience symlinks, hopefully without stepping on toes. Some
728 -# of these links are "owned" by the vim ebuild when it is installed,
729 -# but they might be good for gvim as well (see bug 45828)
730 -update_vim_symlinks() {
731 - local f syms
732 - syms="vimdiff rvim rview"
733 - einfo "Calling eselect vi update..."
734 - # Call this with --if-unset to respect user's choice (bug 187449)
735 - eselect vi update --if-unset
736 -
737 - # Make or remove convenience symlink, vim -> gvim
738 - if [[ -f "${EROOT}"/usr/bin/gvim ]]; then
739 - ln -s gvim "${EROOT}"/usr/bin/vim 2>/dev/null
740 - elif [[ -L "${EROOT}"/usr/bin/vim && ! -f "${EROOT}"/usr/bin/vim ]]; then
741 - rm "${EROOT}"/usr/bin/vim
742 - fi
743 -
744 - # Make or remove convenience symlinks to vim
745 - if [[ -f "${EROOT}"/usr/bin/vim ]]; then
746 - for f in ${syms}; do
747 - ln -s vim "${EROOT}"/usr/bin/${f} 2>/dev/null
748 - done
749 - else
750 - for f in ${syms}; do
751 - if [[ -L "${EROOT}"/usr/bin/${f} && ! -f "${EROOT}"/usr/bin/${f} ]]; then
752 - rm -f "${EROOT}"/usr/bin/${f}
753 - fi
754 - done
755 - fi
756 -
757 - # This will still break if you merge then remove the vi package,
758 - # but there's only so much you can do, eh? Unfortunately we don't
759 - # have triggers like are done in rpm-land.
760 -}
761 -
762 -src_install() {
763 - local vimfiles=/usr/share/vim/vim${VIM_VERSION/.}
764 -
765 - dobin src/gvim
766 - dosym gvim /usr/bin/gvimdiff
767 - dosym gvim /usr/bin/evim
768 - dosym gvim /usr/bin/eview
769 - dosym gvim /usr/bin/gview
770 - dosym gvim /usr/bin/rgvim
771 - dosym gvim /usr/bin/rgview
772 -
773 - emake -C src DESTDIR="${D}" DATADIR="${EPREFIX}"/usr/share install-icons
774 -
775 - dodir /usr/share/man/man1
776 - echo ".so vim.1" > "${ED}"/usr/share/man/man1/gvim.1
777 - echo ".so vim.1" > "${ED}"/usr/share/man/man1/gview.1
778 - echo ".so vimdiff.1" > "${ED}"/usr/share/man/man1/gvimdiff.1
779 -
780 - insinto /etc/vim
781 - newins "${FILESDIR}"/gvimrc-r1 gvimrc
782 - eprefixify "${ED}"/etc/vim/gvimrc
783 -
784 - doicon -s scalable "${FILESDIR}"/gvim.svg
785 -
786 - # bash completion script, bug #79018.
787 - newbashcomp "${FILESDIR}"/${PN}-completion ${PN}
788 -
789 - # don't install vim desktop file
790 - rm "${ED}"/usr/share/applications/vim.desktop || die "failed to remove vim.desktop"
791 -}
792 -
793 -pkg_postinst() {
794 - # Update documentation tags (from vim-doc.eclass)
795 - update_vim_helptags
796 -
797 - # Update fdo mime stuff, bug #78394
798 - xdg_desktop_database_update
799 -
800 - # Update icon cache
801 - gnome2_icon_cache_update
802 -
803 - # Make convenience symlinks
804 - update_vim_symlinks
805 -}
806 -
807 -pkg_postrm() {
808 - # Update documentation tags (from vim-doc.eclass)
809 - update_vim_helptags
810 -
811 - # Update fdo mime stuff, bug #78394
812 - xdg_desktop_database_update
813 -
814 - # Update icon cache
815 - gnome2_icon_cache_update
816 -
817 - # Make convenience symlinks
818 - update_vim_symlinks
819 -}
820
821 diff --git a/app-editors/gvim/gvim-8.0.0983.ebuild b/app-editors/gvim/gvim-8.0.0983.ebuild
822 deleted file mode 100644
823 index ec9f6848cec..00000000000
824 --- a/app-editors/gvim/gvim-8.0.0983.ebuild
825 +++ /dev/null
826 @@ -1,388 +0,0 @@
827 -# Copyright 1999-2017 Gentoo Foundation
828 -# Distributed under the terms of the GNU General Public License v2
829 -
830 -EAPI=6
831 -VIM_VERSION="8.0"
832 -PYTHON_COMPAT=( python{2_7,3_4,3_5,3_6} )
833 -PYTHON_REQ_USE=threads
834 -inherit vim-doc flag-o-matic xdg-utils gnome2-utils versionator bash-completion-r1 prefix python-single-r1
835 -
836 -if [[ ${PV} == 9999* ]] ; then
837 - inherit git-r3
838 - EGIT_REPO_URI="https://github.com/vim/vim.git"
839 - EGIT_CHECKOUT_DIR=${WORKDIR}/vim-${PV}
840 -else
841 - SRC_URI="https://github.com/vim/vim/archive/v${PV}.tar.gz -> vim-${PV}.tar.gz
842 - https://dev.gentoo.org/~radhermit/vim/vim-8.0.0938-gentoo-patches.tar.bz2"
843 - KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~ppc ~ppc64 ~sparc ~x86 ~x86-fbsd ~amd64-linux ~x86-linux ~ppc-macos ~x86-macos ~x86-solaris"
844 -fi
845 -
846 -DESCRIPTION="GUI version of the Vim text editor"
847 -HOMEPAGE="https://vim.sourceforge.io/ https://github.com/vim/vim"
848 -
849 -SLOT="0"
850 -LICENSE="vim"
851 -IUSE="acl aqua cscope debug gnome gtk gtk3 lua luajit motif neXt netbeans nls perl python racket ruby selinux session tcl"
852 -REQUIRED_USE="
853 - luajit? ( lua )
854 - python? ( ${PYTHON_REQUIRED_USE} )
855 -"
856 -
857 -RDEPEND="
858 - ~app-editors/vim-core-${PV}
859 - >=app-eselect/eselect-vi-1.1
860 - >=sys-libs/ncurses-5.2-r2:0=
861 - x11-libs/libICE
862 - x11-libs/libSM
863 - x11-libs/libXext
864 - x11-libs/libXt
865 - acl? ( kernel_linux? ( sys-apps/acl ) )
866 - !aqua? (
867 - gtk3? (
868 - x11-libs/gtk+:3
869 - x11-libs/libXft
870 - )
871 - !gtk3? (
872 - gtk? (
873 - >=x11-libs/gtk+-2.6:2
874 - x11-libs/libXft
875 - gnome? ( >=gnome-base/libgnomeui-2.6 )
876 - )
877 - !gtk? (
878 - motif? ( >=x11-libs/motif-2.3:0 )
879 - !motif? (
880 - neXt? ( x11-libs/neXtaw )
881 - !neXt? ( x11-libs/libXaw )
882 - )
883 - )
884 - )
885 - )
886 - cscope? ( dev-util/cscope )
887 - lua? (
888 - luajit? ( dev-lang/luajit:2= )
889 - !luajit? ( dev-lang/lua:0[deprecated] )
890 - )
891 - nls? ( virtual/libintl )
892 - perl? ( dev-lang/perl:= )
893 - python? ( ${PYTHON_DEPS} )
894 - racket? ( dev-scheme/racket )
895 - ruby? ( || ( dev-lang/ruby:2.4 dev-lang/ruby:2.3 dev-lang/ruby:2.2 dev-lang/ruby:2.1 ) )
896 - selinux? ( sys-libs/libselinux )
897 - session? ( x11-libs/libSM )
898 - tcl? ( dev-lang/tcl:0= )
899 -"
900 -DEPEND="${RDEPEND}
901 - dev-util/ctags
902 - sys-devel/autoconf
903 - virtual/pkgconfig
904 - nls? ( sys-devel/gettext )
905 -"
906 -
907 -S=${WORKDIR}/vim-${PV}
908 -
909 -pkg_setup() {
910 - # people with broken alphabets run into trouble. bug 82186.
911 - unset LANG LC_ALL
912 - export LC_COLLATE="C"
913 -
914 - # Gnome sandbox silliness. bug #114475.
915 - mkdir -p "${T}"/home
916 - export HOME="${T}"/home
917 -
918 - use python && python-single-r1_pkg_setup
919 -}
920 -
921 -src_prepare() {
922 - if [[ ${PV} != 9999* ]] ; then
923 - # Gentoo patches to fix runtime issues, cross-compile errors, etc
924 - eapply "${WORKDIR}"/patches/
925 - fi
926 -
927 - # Fixup a script to use awk instead of nawk
928 - sed -i '1s|.*|#!'"${EPREFIX}"'/usr/bin/awk -f|' "${S}"/runtime/tools/mve.awk \
929 - || die "mve.awk sed failed"
930 -
931 - # Read vimrc and gvimrc from /etc/vim
932 - echo '#define SYS_VIMRC_FILE "'${EPREFIX}'/etc/vim/vimrc"' >> "${S}"/src/feature.h
933 - echo '#define SYS_GVIMRC_FILE "'${EPREFIX}'/etc/vim/gvimrc"' >> "${S}"/src/feature.h
934 -
935 - # Use exuberant ctags which installs as /usr/bin/exuberant-ctags.
936 - # Hopefully this pattern won't break for a while at least.
937 - # This fixes bug 29398 (27 Sep 2003 agriffis)
938 - sed -i 's/\<ctags\("\| [-*.]\)/exuberant-&/g' \
939 - "${S}"/runtime/doc/syntax.txt \
940 - "${S}"/runtime/doc/tagsrch.txt \
941 - "${S}"/runtime/doc/usr_29.txt \
942 - "${S}"/runtime/menu.vim \
943 - "${S}"/src/configure.ac || die 'sed failed'
944 -
945 - # Don't be fooled by /usr/include/libc.h. When found, vim thinks
946 - # this is NeXT, but it's actually just a file in dev-libs/9libs
947 - # This fixes bug 43885 (20 Mar 2004 agriffis)
948 - sed -i 's/ libc\.h / /' "${S}"/src/configure.ac || die 'sed failed'
949 -
950 - # gcc on sparc32 has this, uhm, interesting problem with detecting EOF
951 - # correctly. To avoid some really entertaining error messages about stuff
952 - # which isn't even in the source file being invalid, we'll do some trickery
953 - # to make the error never occur. bug 66162 (02 October 2004 ciaranm)
954 - find "${S}" -name '*.c' | while read c ; do echo >> "$c" ; done
955 -
956 - # Try to avoid sandbox problems. Bug #114475.
957 - if [[ -d "${S}"/src/po ]] ; then
958 - sed -i '/-S check.vim/s,..VIM.,ln -s $(VIM) testvim \; ./testvim -X,' \
959 - "${S}"/src/po/Makefile
960 - fi
961 -
962 - if version_is_at_least 7.3.122 ; then
963 - cp "${S}"/src/config.mk.dist "${S}"/src/auto/config.mk
964 - fi
965 -
966 - # Bug #378107 - Build properly with >=perl-core/ExtUtils-ParseXS-3.20.0
967 - if version_is_at_least 7.3 ; then
968 - sed -i "s:\\\$(PERLLIB)/ExtUtils/xsubpp:${EPREFIX}/usr/bin/xsubpp:" \
969 - "${S}"/src/Makefile || die 'sed for ExtUtils-ParseXS failed'
970 - fi
971 -
972 - eapply_user
973 -}
974 -
975 -src_configure() {
976 - local myconf=()
977 -
978 - # Fix bug 37354: Disallow -funroll-all-loops on amd64
979 - # Bug 57859 suggests that we want to do this for all archs
980 - filter-flags -funroll-all-loops
981 -
982 - # Fix bug 76331: -O3 causes problems, use -O2 instead. We'll do this for
983 - # everyone since previous flag filtering bugs have turned out to affect
984 - # multiple archs...
985 - replace-flags -O3 -O2
986 -
987 - # Fix bug 18245: Prevent "make" from the following chain:
988 - # (1) Notice configure.ac is newer than auto/configure
989 - # (2) Rebuild auto/configure
990 - # (3) Notice auto/configure is newer than auto/config.mk
991 - # (4) Run ./configure (with wrong args) to remake auto/config.mk
992 - sed -i 's# auto/config\.mk:#:#' src/Makefile || die "Makefile sed failed"
993 - rm -f src/auto/configure
994 - emake -j1 -C src autoconf
995 -
996 - # This should fix a sandbox violation (see bug 24447). The hvc
997 - # things are for ppc64, see bug 86433.
998 - for file in /dev/pty/s* /dev/console /dev/hvc/* /dev/hvc* ; do
999 - [[ -e ${file} ]] && addwrite $file
1000 - done
1001 -
1002 - use debug && append-flags "-DDEBUG"
1003 -
1004 - myconf=(
1005 - --with-features=huge
1006 - --disable-gpm
1007 - --enable-multibyte
1008 - $(use_enable acl)
1009 - $(use_enable cscope)
1010 - $(use_enable lua luainterp)
1011 - $(use_with luajit)
1012 - $(use_enable netbeans)
1013 - $(use_enable nls)
1014 - $(use_enable perl perlinterp)
1015 - $(use_enable python pythoninterp)
1016 - $(use_enable python python3interp)
1017 - $(use_enable racket mzschemeinterp)
1018 - $(use_enable ruby rubyinterp)
1019 - $(use_enable selinux)
1020 - $(use_enable session xsmp)
1021 - $(use_enable tcl tclinterp)
1022 - )
1023 -
1024 - # --with-features=huge forces on cscope even if we --disable it. We need
1025 - # to sed this out to avoid screwiness. (1 Sep 2004 ciaranm)
1026 - if ! use cscope ; then
1027 - sed -i '/# define FEAT_CSCOPE/d' src/feature.h || \
1028 - die "couldn't disable cscope"
1029 - fi
1030 -
1031 - # gvim's GUI preference order is as follows:
1032 - # aqua CARBON (not tested)
1033 - # -aqua gtk3 GTK3
1034 - # -aqua -gtk3 gnome GNOME2
1035 - # -aqua -gtk3 -gnome gtk GTK2
1036 - # -aqua -gtk -gtk3 motif MOTIF
1037 - # -aqua -gtk -gtk3 -motif neXt NEXTAW
1038 - # -aqua -gtk -gtk3 -motif -neXt ATHENA
1039 - echo ; echo
1040 - if use aqua ; then
1041 - einfo "Building gvim with the Carbon GUI"
1042 - myconf+=(
1043 - --enable-darwin
1044 - --enable-gui=carbon
1045 - )
1046 - elif use gtk3 ; then
1047 - myconf+=( --enable-gtk3-check )
1048 - einfo "Building gvim with the gtk+-3 GUI"
1049 - myconf+=( --enable-gui=gtk3 )
1050 - elif use gtk ; then
1051 - myconf+=( --enable-gtk2-check )
1052 - if use gnome ; then
1053 - einfo "Building gvim with the Gnome 2 GUI"
1054 - myconf+=( --enable-gui=gnome2 )
1055 - else
1056 - einfo "Building gvim with the gtk+-2 GUI"
1057 - myconf+=( --enable-gui=gtk2 )
1058 - fi
1059 - elif use motif ; then
1060 - einfo "Building gvim with the MOTIF GUI"
1061 - myconf+=( --enable-gui=motif )
1062 - elif use neXt ; then
1063 - einfo "Building gvim with the neXtaw GUI"
1064 - myconf+=( --enable-gui=nextaw )
1065 - else
1066 - einfo "Building gvim with the Athena GUI"
1067 - myconf+=( --enable-gui=athena )
1068 - fi
1069 - echo ; echo
1070 -
1071 - # let package manager strip binaries
1072 - export ac_cv_prog_STRIP="$(type -P true ) faking strip"
1073 -
1074 - # keep prefix env contained within the EPREFIX
1075 - use prefix && myconf+=( --without-local-dir )
1076 -
1077 - if [[ ${CHOST} == *-interix* ]]; then
1078 - # avoid finding of this function, to avoid having to patch either
1079 - # configure or the source, which would be much more hackish.
1080 - # after all vim does it right, only interix is badly broken (again)
1081 - export ac_cv_func_sigaction=no
1082 - fi
1083 -
1084 - econf \
1085 - --with-modified-by=Gentoo-${PVR} \
1086 - --with-vim-name=gvim \
1087 - --with-x \
1088 - "${myconf[@]}"
1089 -}
1090 -
1091 -src_compile() {
1092 - # The following allows emake to be used
1093 - emake -j1 -C src auto/osdef.h objects
1094 -
1095 - emake
1096 -}
1097 -
1098 -src_test() {
1099 - echo
1100 - einfo "Starting vim tests. Several error messages will be shown"
1101 - einfo "while the tests run. This is normal behaviour and does not"
1102 - einfo "indicate a fault."
1103 - echo
1104 - ewarn "If the tests fail, your terminal may be left in a strange"
1105 - ewarn "state. Usually, running 'reset' will fix this."
1106 - echo
1107 -
1108 - # Don't let vim talk to X
1109 - unset DISPLAY
1110 -
1111 - # Make gvim not try to connect to X. See :help gui-x11-start in vim for how
1112 - # this evil trickery works.
1113 - ln -s "${S}"/src/gvim "${S}"/src/testvim || die
1114 -
1115 - # Make sure our VIMPROG is used.
1116 - sed -i 's:\.\./vim:../testvim:' src/testdir/test49.vim || die
1117 -
1118 - # Don't do additional GUI tests.
1119 - emake -j1 VIMPROG=../testvim -C src/testdir nongui
1120 -}
1121 -
1122 -# Make convenience symlinks, hopefully without stepping on toes. Some
1123 -# of these links are "owned" by the vim ebuild when it is installed,
1124 -# but they might be good for gvim as well (see bug 45828)
1125 -update_vim_symlinks() {
1126 - local f syms
1127 - syms="vimdiff rvim rview"
1128 - einfo "Calling eselect vi update..."
1129 - # Call this with --if-unset to respect user's choice (bug 187449)
1130 - eselect vi update --if-unset
1131 -
1132 - # Make or remove convenience symlink, vim -> gvim
1133 - if [[ -f "${EROOT}"/usr/bin/gvim ]]; then
1134 - ln -s gvim "${EROOT}"/usr/bin/vim 2>/dev/null
1135 - elif [[ -L "${EROOT}"/usr/bin/vim && ! -f "${EROOT}"/usr/bin/vim ]]; then
1136 - rm "${EROOT}"/usr/bin/vim
1137 - fi
1138 -
1139 - # Make or remove convenience symlinks to vim
1140 - if [[ -f "${EROOT}"/usr/bin/vim ]]; then
1141 - for f in ${syms}; do
1142 - ln -s vim "${EROOT}"/usr/bin/${f} 2>/dev/null
1143 - done
1144 - else
1145 - for f in ${syms}; do
1146 - if [[ -L "${EROOT}"/usr/bin/${f} && ! -f "${EROOT}"/usr/bin/${f} ]]; then
1147 - rm -f "${EROOT}"/usr/bin/${f}
1148 - fi
1149 - done
1150 - fi
1151 -
1152 - # This will still break if you merge then remove the vi package,
1153 - # but there's only so much you can do, eh? Unfortunately we don't
1154 - # have triggers like are done in rpm-land.
1155 -}
1156 -
1157 -src_install() {
1158 - local vimfiles=/usr/share/vim/vim${VIM_VERSION/.}
1159 -
1160 - dobin src/gvim
1161 - dosym gvim /usr/bin/gvimdiff
1162 - dosym gvim /usr/bin/evim
1163 - dosym gvim /usr/bin/eview
1164 - dosym gvim /usr/bin/gview
1165 - dosym gvim /usr/bin/rgvim
1166 - dosym gvim /usr/bin/rgview
1167 -
1168 - emake -C src DESTDIR="${D}" DATADIR="${EPREFIX}"/usr/share install-icons
1169 -
1170 - dodir /usr/share/man/man1
1171 - echo ".so vim.1" > "${ED}"/usr/share/man/man1/gvim.1
1172 - echo ".so vim.1" > "${ED}"/usr/share/man/man1/gview.1
1173 - echo ".so vimdiff.1" > "${ED}"/usr/share/man/man1/gvimdiff.1
1174 -
1175 - insinto /etc/vim
1176 - newins "${FILESDIR}"/gvimrc-r1 gvimrc
1177 - eprefixify "${ED}"/etc/vim/gvimrc
1178 -
1179 - doicon -s scalable "${FILESDIR}"/gvim.svg
1180 -
1181 - # bash completion script, bug #79018.
1182 - newbashcomp "${FILESDIR}"/${PN}-completion ${PN}
1183 -
1184 - # don't install vim desktop file
1185 - rm "${ED}"/usr/share/applications/vim.desktop || die "failed to remove vim.desktop"
1186 -}
1187 -
1188 -pkg_postinst() {
1189 - # Update documentation tags (from vim-doc.eclass)
1190 - update_vim_helptags
1191 -
1192 - # Update fdo mime stuff, bug #78394
1193 - xdg_desktop_database_update
1194 -
1195 - # Update icon cache
1196 - gnome2_icon_cache_update
1197 -
1198 - # Make convenience symlinks
1199 - update_vim_symlinks
1200 -}
1201 -
1202 -pkg_postrm() {
1203 - # Update documentation tags (from vim-doc.eclass)
1204 - update_vim_helptags
1205 -
1206 - # Update fdo mime stuff, bug #78394
1207 - xdg_desktop_database_update
1208 -
1209 - # Update icon cache
1210 - gnome2_icon_cache_update
1211 -
1212 - # Make convenience symlinks
1213 - update_vim_symlinks
1214 -}
1215
1216 diff --git a/app-editors/gvim/gvim-8.0.1056.ebuild b/app-editors/gvim/gvim-8.0.1056.ebuild
1217 deleted file mode 100644
1218 index ec9f6848cec..00000000000
1219 --- a/app-editors/gvim/gvim-8.0.1056.ebuild
1220 +++ /dev/null
1221 @@ -1,388 +0,0 @@
1222 -# Copyright 1999-2017 Gentoo Foundation
1223 -# Distributed under the terms of the GNU General Public License v2
1224 -
1225 -EAPI=6
1226 -VIM_VERSION="8.0"
1227 -PYTHON_COMPAT=( python{2_7,3_4,3_5,3_6} )
1228 -PYTHON_REQ_USE=threads
1229 -inherit vim-doc flag-o-matic xdg-utils gnome2-utils versionator bash-completion-r1 prefix python-single-r1
1230 -
1231 -if [[ ${PV} == 9999* ]] ; then
1232 - inherit git-r3
1233 - EGIT_REPO_URI="https://github.com/vim/vim.git"
1234 - EGIT_CHECKOUT_DIR=${WORKDIR}/vim-${PV}
1235 -else
1236 - SRC_URI="https://github.com/vim/vim/archive/v${PV}.tar.gz -> vim-${PV}.tar.gz
1237 - https://dev.gentoo.org/~radhermit/vim/vim-8.0.0938-gentoo-patches.tar.bz2"
1238 - KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~ppc ~ppc64 ~sparc ~x86 ~x86-fbsd ~amd64-linux ~x86-linux ~ppc-macos ~x86-macos ~x86-solaris"
1239 -fi
1240 -
1241 -DESCRIPTION="GUI version of the Vim text editor"
1242 -HOMEPAGE="https://vim.sourceforge.io/ https://github.com/vim/vim"
1243 -
1244 -SLOT="0"
1245 -LICENSE="vim"
1246 -IUSE="acl aqua cscope debug gnome gtk gtk3 lua luajit motif neXt netbeans nls perl python racket ruby selinux session tcl"
1247 -REQUIRED_USE="
1248 - luajit? ( lua )
1249 - python? ( ${PYTHON_REQUIRED_USE} )
1250 -"
1251 -
1252 -RDEPEND="
1253 - ~app-editors/vim-core-${PV}
1254 - >=app-eselect/eselect-vi-1.1
1255 - >=sys-libs/ncurses-5.2-r2:0=
1256 - x11-libs/libICE
1257 - x11-libs/libSM
1258 - x11-libs/libXext
1259 - x11-libs/libXt
1260 - acl? ( kernel_linux? ( sys-apps/acl ) )
1261 - !aqua? (
1262 - gtk3? (
1263 - x11-libs/gtk+:3
1264 - x11-libs/libXft
1265 - )
1266 - !gtk3? (
1267 - gtk? (
1268 - >=x11-libs/gtk+-2.6:2
1269 - x11-libs/libXft
1270 - gnome? ( >=gnome-base/libgnomeui-2.6 )
1271 - )
1272 - !gtk? (
1273 - motif? ( >=x11-libs/motif-2.3:0 )
1274 - !motif? (
1275 - neXt? ( x11-libs/neXtaw )
1276 - !neXt? ( x11-libs/libXaw )
1277 - )
1278 - )
1279 - )
1280 - )
1281 - cscope? ( dev-util/cscope )
1282 - lua? (
1283 - luajit? ( dev-lang/luajit:2= )
1284 - !luajit? ( dev-lang/lua:0[deprecated] )
1285 - )
1286 - nls? ( virtual/libintl )
1287 - perl? ( dev-lang/perl:= )
1288 - python? ( ${PYTHON_DEPS} )
1289 - racket? ( dev-scheme/racket )
1290 - ruby? ( || ( dev-lang/ruby:2.4 dev-lang/ruby:2.3 dev-lang/ruby:2.2 dev-lang/ruby:2.1 ) )
1291 - selinux? ( sys-libs/libselinux )
1292 - session? ( x11-libs/libSM )
1293 - tcl? ( dev-lang/tcl:0= )
1294 -"
1295 -DEPEND="${RDEPEND}
1296 - dev-util/ctags
1297 - sys-devel/autoconf
1298 - virtual/pkgconfig
1299 - nls? ( sys-devel/gettext )
1300 -"
1301 -
1302 -S=${WORKDIR}/vim-${PV}
1303 -
1304 -pkg_setup() {
1305 - # people with broken alphabets run into trouble. bug 82186.
1306 - unset LANG LC_ALL
1307 - export LC_COLLATE="C"
1308 -
1309 - # Gnome sandbox silliness. bug #114475.
1310 - mkdir -p "${T}"/home
1311 - export HOME="${T}"/home
1312 -
1313 - use python && python-single-r1_pkg_setup
1314 -}
1315 -
1316 -src_prepare() {
1317 - if [[ ${PV} != 9999* ]] ; then
1318 - # Gentoo patches to fix runtime issues, cross-compile errors, etc
1319 - eapply "${WORKDIR}"/patches/
1320 - fi
1321 -
1322 - # Fixup a script to use awk instead of nawk
1323 - sed -i '1s|.*|#!'"${EPREFIX}"'/usr/bin/awk -f|' "${S}"/runtime/tools/mve.awk \
1324 - || die "mve.awk sed failed"
1325 -
1326 - # Read vimrc and gvimrc from /etc/vim
1327 - echo '#define SYS_VIMRC_FILE "'${EPREFIX}'/etc/vim/vimrc"' >> "${S}"/src/feature.h
1328 - echo '#define SYS_GVIMRC_FILE "'${EPREFIX}'/etc/vim/gvimrc"' >> "${S}"/src/feature.h
1329 -
1330 - # Use exuberant ctags which installs as /usr/bin/exuberant-ctags.
1331 - # Hopefully this pattern won't break for a while at least.
1332 - # This fixes bug 29398 (27 Sep 2003 agriffis)
1333 - sed -i 's/\<ctags\("\| [-*.]\)/exuberant-&/g' \
1334 - "${S}"/runtime/doc/syntax.txt \
1335 - "${S}"/runtime/doc/tagsrch.txt \
1336 - "${S}"/runtime/doc/usr_29.txt \
1337 - "${S}"/runtime/menu.vim \
1338 - "${S}"/src/configure.ac || die 'sed failed'
1339 -
1340 - # Don't be fooled by /usr/include/libc.h. When found, vim thinks
1341 - # this is NeXT, but it's actually just a file in dev-libs/9libs
1342 - # This fixes bug 43885 (20 Mar 2004 agriffis)
1343 - sed -i 's/ libc\.h / /' "${S}"/src/configure.ac || die 'sed failed'
1344 -
1345 - # gcc on sparc32 has this, uhm, interesting problem with detecting EOF
1346 - # correctly. To avoid some really entertaining error messages about stuff
1347 - # which isn't even in the source file being invalid, we'll do some trickery
1348 - # to make the error never occur. bug 66162 (02 October 2004 ciaranm)
1349 - find "${S}" -name '*.c' | while read c ; do echo >> "$c" ; done
1350 -
1351 - # Try to avoid sandbox problems. Bug #114475.
1352 - if [[ -d "${S}"/src/po ]] ; then
1353 - sed -i '/-S check.vim/s,..VIM.,ln -s $(VIM) testvim \; ./testvim -X,' \
1354 - "${S}"/src/po/Makefile
1355 - fi
1356 -
1357 - if version_is_at_least 7.3.122 ; then
1358 - cp "${S}"/src/config.mk.dist "${S}"/src/auto/config.mk
1359 - fi
1360 -
1361 - # Bug #378107 - Build properly with >=perl-core/ExtUtils-ParseXS-3.20.0
1362 - if version_is_at_least 7.3 ; then
1363 - sed -i "s:\\\$(PERLLIB)/ExtUtils/xsubpp:${EPREFIX}/usr/bin/xsubpp:" \
1364 - "${S}"/src/Makefile || die 'sed for ExtUtils-ParseXS failed'
1365 - fi
1366 -
1367 - eapply_user
1368 -}
1369 -
1370 -src_configure() {
1371 - local myconf=()
1372 -
1373 - # Fix bug 37354: Disallow -funroll-all-loops on amd64
1374 - # Bug 57859 suggests that we want to do this for all archs
1375 - filter-flags -funroll-all-loops
1376 -
1377 - # Fix bug 76331: -O3 causes problems, use -O2 instead. We'll do this for
1378 - # everyone since previous flag filtering bugs have turned out to affect
1379 - # multiple archs...
1380 - replace-flags -O3 -O2
1381 -
1382 - # Fix bug 18245: Prevent "make" from the following chain:
1383 - # (1) Notice configure.ac is newer than auto/configure
1384 - # (2) Rebuild auto/configure
1385 - # (3) Notice auto/configure is newer than auto/config.mk
1386 - # (4) Run ./configure (with wrong args) to remake auto/config.mk
1387 - sed -i 's# auto/config\.mk:#:#' src/Makefile || die "Makefile sed failed"
1388 - rm -f src/auto/configure
1389 - emake -j1 -C src autoconf
1390 -
1391 - # This should fix a sandbox violation (see bug 24447). The hvc
1392 - # things are for ppc64, see bug 86433.
1393 - for file in /dev/pty/s* /dev/console /dev/hvc/* /dev/hvc* ; do
1394 - [[ -e ${file} ]] && addwrite $file
1395 - done
1396 -
1397 - use debug && append-flags "-DDEBUG"
1398 -
1399 - myconf=(
1400 - --with-features=huge
1401 - --disable-gpm
1402 - --enable-multibyte
1403 - $(use_enable acl)
1404 - $(use_enable cscope)
1405 - $(use_enable lua luainterp)
1406 - $(use_with luajit)
1407 - $(use_enable netbeans)
1408 - $(use_enable nls)
1409 - $(use_enable perl perlinterp)
1410 - $(use_enable python pythoninterp)
1411 - $(use_enable python python3interp)
1412 - $(use_enable racket mzschemeinterp)
1413 - $(use_enable ruby rubyinterp)
1414 - $(use_enable selinux)
1415 - $(use_enable session xsmp)
1416 - $(use_enable tcl tclinterp)
1417 - )
1418 -
1419 - # --with-features=huge forces on cscope even if we --disable it. We need
1420 - # to sed this out to avoid screwiness. (1 Sep 2004 ciaranm)
1421 - if ! use cscope ; then
1422 - sed -i '/# define FEAT_CSCOPE/d' src/feature.h || \
1423 - die "couldn't disable cscope"
1424 - fi
1425 -
1426 - # gvim's GUI preference order is as follows:
1427 - # aqua CARBON (not tested)
1428 - # -aqua gtk3 GTK3
1429 - # -aqua -gtk3 gnome GNOME2
1430 - # -aqua -gtk3 -gnome gtk GTK2
1431 - # -aqua -gtk -gtk3 motif MOTIF
1432 - # -aqua -gtk -gtk3 -motif neXt NEXTAW
1433 - # -aqua -gtk -gtk3 -motif -neXt ATHENA
1434 - echo ; echo
1435 - if use aqua ; then
1436 - einfo "Building gvim with the Carbon GUI"
1437 - myconf+=(
1438 - --enable-darwin
1439 - --enable-gui=carbon
1440 - )
1441 - elif use gtk3 ; then
1442 - myconf+=( --enable-gtk3-check )
1443 - einfo "Building gvim with the gtk+-3 GUI"
1444 - myconf+=( --enable-gui=gtk3 )
1445 - elif use gtk ; then
1446 - myconf+=( --enable-gtk2-check )
1447 - if use gnome ; then
1448 - einfo "Building gvim with the Gnome 2 GUI"
1449 - myconf+=( --enable-gui=gnome2 )
1450 - else
1451 - einfo "Building gvim with the gtk+-2 GUI"
1452 - myconf+=( --enable-gui=gtk2 )
1453 - fi
1454 - elif use motif ; then
1455 - einfo "Building gvim with the MOTIF GUI"
1456 - myconf+=( --enable-gui=motif )
1457 - elif use neXt ; then
1458 - einfo "Building gvim with the neXtaw GUI"
1459 - myconf+=( --enable-gui=nextaw )
1460 - else
1461 - einfo "Building gvim with the Athena GUI"
1462 - myconf+=( --enable-gui=athena )
1463 - fi
1464 - echo ; echo
1465 -
1466 - # let package manager strip binaries
1467 - export ac_cv_prog_STRIP="$(type -P true ) faking strip"
1468 -
1469 - # keep prefix env contained within the EPREFIX
1470 - use prefix && myconf+=( --without-local-dir )
1471 -
1472 - if [[ ${CHOST} == *-interix* ]]; then
1473 - # avoid finding of this function, to avoid having to patch either
1474 - # configure or the source, which would be much more hackish.
1475 - # after all vim does it right, only interix is badly broken (again)
1476 - export ac_cv_func_sigaction=no
1477 - fi
1478 -
1479 - econf \
1480 - --with-modified-by=Gentoo-${PVR} \
1481 - --with-vim-name=gvim \
1482 - --with-x \
1483 - "${myconf[@]}"
1484 -}
1485 -
1486 -src_compile() {
1487 - # The following allows emake to be used
1488 - emake -j1 -C src auto/osdef.h objects
1489 -
1490 - emake
1491 -}
1492 -
1493 -src_test() {
1494 - echo
1495 - einfo "Starting vim tests. Several error messages will be shown"
1496 - einfo "while the tests run. This is normal behaviour and does not"
1497 - einfo "indicate a fault."
1498 - echo
1499 - ewarn "If the tests fail, your terminal may be left in a strange"
1500 - ewarn "state. Usually, running 'reset' will fix this."
1501 - echo
1502 -
1503 - # Don't let vim talk to X
1504 - unset DISPLAY
1505 -
1506 - # Make gvim not try to connect to X. See :help gui-x11-start in vim for how
1507 - # this evil trickery works.
1508 - ln -s "${S}"/src/gvim "${S}"/src/testvim || die
1509 -
1510 - # Make sure our VIMPROG is used.
1511 - sed -i 's:\.\./vim:../testvim:' src/testdir/test49.vim || die
1512 -
1513 - # Don't do additional GUI tests.
1514 - emake -j1 VIMPROG=../testvim -C src/testdir nongui
1515 -}
1516 -
1517 -# Make convenience symlinks, hopefully without stepping on toes. Some
1518 -# of these links are "owned" by the vim ebuild when it is installed,
1519 -# but they might be good for gvim as well (see bug 45828)
1520 -update_vim_symlinks() {
1521 - local f syms
1522 - syms="vimdiff rvim rview"
1523 - einfo "Calling eselect vi update..."
1524 - # Call this with --if-unset to respect user's choice (bug 187449)
1525 - eselect vi update --if-unset
1526 -
1527 - # Make or remove convenience symlink, vim -> gvim
1528 - if [[ -f "${EROOT}"/usr/bin/gvim ]]; then
1529 - ln -s gvim "${EROOT}"/usr/bin/vim 2>/dev/null
1530 - elif [[ -L "${EROOT}"/usr/bin/vim && ! -f "${EROOT}"/usr/bin/vim ]]; then
1531 - rm "${EROOT}"/usr/bin/vim
1532 - fi
1533 -
1534 - # Make or remove convenience symlinks to vim
1535 - if [[ -f "${EROOT}"/usr/bin/vim ]]; then
1536 - for f in ${syms}; do
1537 - ln -s vim "${EROOT}"/usr/bin/${f} 2>/dev/null
1538 - done
1539 - else
1540 - for f in ${syms}; do
1541 - if [[ -L "${EROOT}"/usr/bin/${f} && ! -f "${EROOT}"/usr/bin/${f} ]]; then
1542 - rm -f "${EROOT}"/usr/bin/${f}
1543 - fi
1544 - done
1545 - fi
1546 -
1547 - # This will still break if you merge then remove the vi package,
1548 - # but there's only so much you can do, eh? Unfortunately we don't
1549 - # have triggers like are done in rpm-land.
1550 -}
1551 -
1552 -src_install() {
1553 - local vimfiles=/usr/share/vim/vim${VIM_VERSION/.}
1554 -
1555 - dobin src/gvim
1556 - dosym gvim /usr/bin/gvimdiff
1557 - dosym gvim /usr/bin/evim
1558 - dosym gvim /usr/bin/eview
1559 - dosym gvim /usr/bin/gview
1560 - dosym gvim /usr/bin/rgvim
1561 - dosym gvim /usr/bin/rgview
1562 -
1563 - emake -C src DESTDIR="${D}" DATADIR="${EPREFIX}"/usr/share install-icons
1564 -
1565 - dodir /usr/share/man/man1
1566 - echo ".so vim.1" > "${ED}"/usr/share/man/man1/gvim.1
1567 - echo ".so vim.1" > "${ED}"/usr/share/man/man1/gview.1
1568 - echo ".so vimdiff.1" > "${ED}"/usr/share/man/man1/gvimdiff.1
1569 -
1570 - insinto /etc/vim
1571 - newins "${FILESDIR}"/gvimrc-r1 gvimrc
1572 - eprefixify "${ED}"/etc/vim/gvimrc
1573 -
1574 - doicon -s scalable "${FILESDIR}"/gvim.svg
1575 -
1576 - # bash completion script, bug #79018.
1577 - newbashcomp "${FILESDIR}"/${PN}-completion ${PN}
1578 -
1579 - # don't install vim desktop file
1580 - rm "${ED}"/usr/share/applications/vim.desktop || die "failed to remove vim.desktop"
1581 -}
1582 -
1583 -pkg_postinst() {
1584 - # Update documentation tags (from vim-doc.eclass)
1585 - update_vim_helptags
1586 -
1587 - # Update fdo mime stuff, bug #78394
1588 - xdg_desktop_database_update
1589 -
1590 - # Update icon cache
1591 - gnome2_icon_cache_update
1592 -
1593 - # Make convenience symlinks
1594 - update_vim_symlinks
1595 -}
1596 -
1597 -pkg_postrm() {
1598 - # Update documentation tags (from vim-doc.eclass)
1599 - update_vim_helptags
1600 -
1601 - # Update fdo mime stuff, bug #78394
1602 - xdg_desktop_database_update
1603 -
1604 - # Update icon cache
1605 - gnome2_icon_cache_update
1606 -
1607 - # Make convenience symlinks
1608 - update_vim_symlinks
1609 -}