1 |
commit: 0ad031c18f68ecc7aa42bedbf2aee4472051a21b |
2 |
Author: Tim Harder <radhermit <AT> gentoo <DOT> org> |
3 |
AuthorDate: Thu Dec 1 00:17:30 2016 +0000 |
4 |
Commit: Tim Harder <radhermit <AT> gentoo <DOT> org> |
5 |
CommitDate: Thu Dec 1 00:23:51 2016 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=0ad031c1 |
7 |
|
8 |
app-editors/gvim: version bump to 8.0.0106 |
9 |
|
10 |
app-editors/gvim/Manifest | 2 + |
11 |
app-editors/gvim/gvim-8.0.0106.ebuild | 408 ++++++++++++++++++++++++++++++++++ |
12 |
2 files changed, 410 insertions(+) |
13 |
|
14 |
diff --git a/app-editors/gvim/Manifest b/app-editors/gvim/Manifest |
15 |
index b4716fe..8c67463 100644 |
16 |
--- a/app-editors/gvim/Manifest |
17 |
+++ b/app-editors/gvim/Manifest |
18 |
@@ -3,3 +3,5 @@ DIST vim-7.4.2102.tar.gz 12838026 SHA256 19c059b2d0e61effcd288e2a18969017cbbc031 |
19 |
DIST vim-7.4.542-gentoo-patches.tar.bz2 3307 SHA256 0eb635f13e199de77846e0d363a473882f2186f138158271fabf0975747a2f3d SHA512 446c66764dac2533cc2f2b3d50481971d4c63a4e81d94c545862a1be620179fdcd81a79f2d81737d1188812a6ad41d90e2a752a05acf6913e7a71464f7cecdd9 WHIRLPOOL cfca8feef0eb8096897ef751afb0427acddd008530ded6cf908fcff51be9713da4ea3e5e613d544c5caba400d664ae19ca70925df3a218bec5c8be6f69aadda2 |
20 |
DIST vim-7.4.769.tar.gz 12189043 SHA256 c89568f3dfcefd773bfbb0958c1cf58a0b0ceedb9d0c264250b379a77ad02e9e SHA512 00048c1d579c409767308c991e5de4ed54e9e50db7e97b0d148f0667742d5e46047c702bee693a5caf13a1603548ab783f7fa846574841d807ffbaa97d7f611e WHIRLPOOL 28ada4763250bbed6f9a1768e81a79b75db64f0ef25296c5d4825f21d21d6e88ff24d488e841e6ba492e363da6d3a3e75e9ec2f2881a731e7ed261c7d21ffd3c |
21 |
DIST vim-8.0.0005.tar.gz 12909267 SHA256 4ad6b4e8fad6412724a665d974e1be3138a9562a5f4f4aab17debf709c1d3ad3 SHA512 3d62557c6929e554c50f8043658665b907b235f180d8917288fc1434237856df7fa098ecb1823e6edea9e5735564cb55869e535350e52fd8c22423480a49438d WHIRLPOOL a80eec04afb2a797837874ec4b035268a20be7cefa487e44e8e441fb518d46cd7e16a263a6256f49e23e60e737b14dc6a7d93d7c3e579d3da13ccee48536b41b |
22 |
+DIST vim-8.0.0106-gentoo-patches.tar.bz2 2281 SHA256 9823a91b050eb4b001cc50f508d2ad03c7c256ed49183c1af7582318667f48d4 SHA512 39edd9f518c230d2b0486b18aa155572a9eada4a5e21108573d6e66e2eef1276f23b77d766648f018c9cf973a7d03712d8861be6ea13255d7b389912d554a47a WHIRLPOOL d6d01e3944d56762a2a999ee631f89e212360aa030ddd16ea96e32d518ec171e04d8565dcb89e804248d53e4c6e06b19be239ad2316ea88bb57364815b85d26b |
23 |
+DIST vim-8.0.0106.tar.gz 12945768 SHA256 cbace3e7a2db3df73720c4181fa4cdbf7df94310522b1c7a4fd7d6afeaa1e145 SHA512 4e40d9ba8ba694d951be78c653d8fcfebe2b3cc460986ef8e3478f81f2dfd5e4b3c2bc5d22082536b9c275e41beeac343cee0aa1e4de125b71fe95c772e26c20 WHIRLPOOL 569a8f50ebdb7f380f675ed0a4b4aa5e7e226303a8e92db2a8e81f5d8acc0e466620c60c160e2204f3af615b91ca2481eb9716f9c2e6dbdb416050d758a49f09 |
24 |
|
25 |
diff --git a/app-editors/gvim/gvim-8.0.0106.ebuild b/app-editors/gvim/gvim-8.0.0106.ebuild |
26 |
new file mode 100644 |
27 |
index 00000000..427ecbe |
28 |
--- /dev/null |
29 |
+++ b/app-editors/gvim/gvim-8.0.0106.ebuild |
30 |
@@ -0,0 +1,408 @@ |
31 |
+# Copyright 1999-2016 Gentoo Foundation |
32 |
+# Distributed under the terms of the GNU General Public License v2 |
33 |
+# $Id$ |
34 |
+ |
35 |
+EAPI=6 |
36 |
+VIM_VERSION="8.0" |
37 |
+PYTHON_COMPAT=( python{2_7,3_4,3_5} ) |
38 |
+PYTHON_REQ_USE=threads |
39 |
+inherit eutils vim-doc flag-o-matic fdo-mime gnome2-utils versionator bash-completion-r1 prefix python-r1 |
40 |
+ |
41 |
+if [[ ${PV} == 9999* ]] ; then |
42 |
+ inherit git-r3 |
43 |
+ EGIT_REPO_URI="https://github.com/vim/vim.git" |
44 |
+ EGIT_CHECKOUT_DIR=${WORKDIR}/vim-${PV} |
45 |
+else |
46 |
+ SRC_URI="https://github.com/vim/vim/archive/v${PV}.tar.gz -> vim-${PV}.tar.gz |
47 |
+ https://dev.gentoo.org/~radhermit/vim/vim-8.0.0106-gentoo-patches.tar.bz2" |
48 |
+ KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~ppc ~ppc64 ~sparc ~x86 ~x86-fbsd ~x86-interix ~amd64-linux ~x86-linux ~ppc-macos ~x86-macos ~x86-solaris" |
49 |
+fi |
50 |
+ |
51 |
+DESCRIPTION="GUI version of the Vim text editor" |
52 |
+HOMEPAGE="http://www.vim.org/ https://github.com/vim/vim" |
53 |
+ |
54 |
+SLOT="0" |
55 |
+LICENSE="vim" |
56 |
+IUSE="acl aqua cscope debug gnome gtk gtk3 lua luajit motif neXt netbeans nls perl python racket ruby selinux session tcl" |
57 |
+REQUIRED_USE=" |
58 |
+ luajit? ( lua ) |
59 |
+ python? ( |
60 |
+ || ( $(python_gen_useflags '*') ) |
61 |
+ ?? ( $(python_gen_useflags 'python2*') ) |
62 |
+ ?? ( $(python_gen_useflags 'python3*') ) |
63 |
+ ) |
64 |
+" |
65 |
+ |
66 |
+RDEPEND=" |
67 |
+ ~app-editors/vim-core-${PV} |
68 |
+ >=app-eselect/eselect-vi-1.1 |
69 |
+ >=sys-libs/ncurses-5.2-r2:0= |
70 |
+ x11-libs/libICE |
71 |
+ x11-libs/libSM |
72 |
+ x11-libs/libXext |
73 |
+ x11-libs/libXt |
74 |
+ acl? ( kernel_linux? ( sys-apps/acl ) ) |
75 |
+ !aqua? ( |
76 |
+ gtk3? ( |
77 |
+ x11-libs/gtk+:3 |
78 |
+ x11-libs/libXft |
79 |
+ ) |
80 |
+ !gtk3? ( |
81 |
+ gtk? ( |
82 |
+ >=x11-libs/gtk+-2.6:2 |
83 |
+ x11-libs/libXft |
84 |
+ gnome? ( >=gnome-base/libgnomeui-2.6 ) |
85 |
+ ) |
86 |
+ !gtk? ( |
87 |
+ motif? ( >=x11-libs/motif-2.3:0 ) |
88 |
+ !motif? ( |
89 |
+ neXt? ( x11-libs/neXtaw ) |
90 |
+ !neXt? ( x11-libs/libXaw ) |
91 |
+ ) |
92 |
+ ) |
93 |
+ ) |
94 |
+ ) |
95 |
+ cscope? ( dev-util/cscope ) |
96 |
+ lua? ( |
97 |
+ luajit? ( dev-lang/luajit:2= ) |
98 |
+ !luajit? ( dev-lang/lua:0[deprecated] ) |
99 |
+ ) |
100 |
+ nls? ( virtual/libintl ) |
101 |
+ perl? ( dev-lang/perl:= ) |
102 |
+ python? ( ${PYTHON_DEPS} ) |
103 |
+ racket? ( dev-scheme/racket ) |
104 |
+ ruby? ( || ( dev-lang/ruby:2.3 dev-lang/ruby:2.2 dev-lang/ruby:2.1 dev-lang/ruby:2.0 ) ) |
105 |
+ selinux? ( sys-libs/libselinux ) |
106 |
+ session? ( x11-libs/libSM ) |
107 |
+ tcl? ( dev-lang/tcl:0= ) |
108 |
+" |
109 |
+DEPEND="${RDEPEND} |
110 |
+ dev-util/ctags |
111 |
+ sys-devel/autoconf |
112 |
+ virtual/pkgconfig |
113 |
+ nls? ( sys-devel/gettext ) |
114 |
+" |
115 |
+ |
116 |
+S=${WORKDIR}/vim-${PV} |
117 |
+ |
118 |
+pkg_setup() { |
119 |
+ # people with broken alphabets run into trouble. bug 82186. |
120 |
+ unset LANG LC_ALL |
121 |
+ export LC_COLLATE="C" |
122 |
+ |
123 |
+ # Gnome sandbox silliness. bug #114475. |
124 |
+ mkdir -p "${T}"/home |
125 |
+ export HOME="${T}"/home |
126 |
+} |
127 |
+ |
128 |
+src_prepare() { |
129 |
+ if [[ ${PV} != 9999* ]] ; then |
130 |
+ # Gentoo patches to fix runtime issues, cross-compile errors, etc |
131 |
+ eapply "${WORKDIR}"/patches/ |
132 |
+ fi |
133 |
+ |
134 |
+ # Fixup a script to use awk instead of nawk |
135 |
+ sed -i '1s|.*|#!'"${EPREFIX}"'/usr/bin/awk -f|' "${S}"/runtime/tools/mve.awk \ |
136 |
+ || die "mve.awk sed failed" |
137 |
+ |
138 |
+ # Read vimrc and gvimrc from /etc/vim |
139 |
+ echo '#define SYS_VIMRC_FILE "'${EPREFIX}'/etc/vim/vimrc"' >> "${S}"/src/feature.h |
140 |
+ echo '#define SYS_GVIMRC_FILE "'${EPREFIX}'/etc/vim/gvimrc"' >> "${S}"/src/feature.h |
141 |
+ |
142 |
+ # Use exuberant ctags which installs as /usr/bin/exuberant-ctags. |
143 |
+ # Hopefully this pattern won't break for a while at least. |
144 |
+ # This fixes bug 29398 (27 Sep 2003 agriffis) |
145 |
+ sed -i 's/\<ctags\("\| [-*.]\)/exuberant-&/g' \ |
146 |
+ "${S}"/runtime/doc/syntax.txt \ |
147 |
+ "${S}"/runtime/doc/tagsrch.txt \ |
148 |
+ "${S}"/runtime/doc/usr_29.txt \ |
149 |
+ "${S}"/runtime/menu.vim \ |
150 |
+ "${S}"/src/configure.ac || die 'sed failed' |
151 |
+ |
152 |
+ # Don't be fooled by /usr/include/libc.h. When found, vim thinks |
153 |
+ # this is NeXT, but it's actually just a file in dev-libs/9libs |
154 |
+ # This fixes bug 43885 (20 Mar 2004 agriffis) |
155 |
+ sed -i 's/ libc\.h / /' "${S}"/src/configure.ac || die 'sed failed' |
156 |
+ |
157 |
+ # gcc on sparc32 has this, uhm, interesting problem with detecting EOF |
158 |
+ # correctly. To avoid some really entertaining error messages about stuff |
159 |
+ # which isn't even in the source file being invalid, we'll do some trickery |
160 |
+ # to make the error never occur. bug 66162 (02 October 2004 ciaranm) |
161 |
+ find "${S}" -name '*.c' | while read c ; do echo >> "$c" ; done |
162 |
+ |
163 |
+ # Try to avoid sandbox problems. Bug #114475. |
164 |
+ if [[ -d "${S}"/src/po ]] ; then |
165 |
+ sed -i '/-S check.vim/s,..VIM.,ln -s $(VIM) testvim \; ./testvim -X,' \ |
166 |
+ "${S}"/src/po/Makefile |
167 |
+ fi |
168 |
+ |
169 |
+ if version_is_at_least 7.3.122 ; then |
170 |
+ cp "${S}"/src/config.mk.dist "${S}"/src/auto/config.mk |
171 |
+ fi |
172 |
+ |
173 |
+ # Bug #378107 - Build properly with >=perl-core/ExtUtils-ParseXS-3.20.0 |
174 |
+ if version_is_at_least 7.3 ; then |
175 |
+ sed -i "s:\\\$(PERLLIB)/ExtUtils/xsubpp:${EPREFIX}/usr/bin/xsubpp:" \ |
176 |
+ "${S}"/src/Makefile || die 'sed for ExtUtils-ParseXS failed' |
177 |
+ fi |
178 |
+ |
179 |
+ eapply_user |
180 |
+} |
181 |
+ |
182 |
+src_configure() { |
183 |
+ local myconf=() |
184 |
+ |
185 |
+ # Fix bug 37354: Disallow -funroll-all-loops on amd64 |
186 |
+ # Bug 57859 suggests that we want to do this for all archs |
187 |
+ filter-flags -funroll-all-loops |
188 |
+ |
189 |
+ # Fix bug 76331: -O3 causes problems, use -O2 instead. We'll do this for |
190 |
+ # everyone since previous flag filtering bugs have turned out to affect |
191 |
+ # multiple archs... |
192 |
+ replace-flags -O3 -O2 |
193 |
+ |
194 |
+ # Fix bug 18245: Prevent "make" from the following chain: |
195 |
+ # (1) Notice configure.ac is newer than auto/configure |
196 |
+ # (2) Rebuild auto/configure |
197 |
+ # (3) Notice auto/configure is newer than auto/config.mk |
198 |
+ # (4) Run ./configure (with wrong args) to remake auto/config.mk |
199 |
+ sed -i 's# auto/config\.mk:#:#' src/Makefile || die "Makefile sed failed" |
200 |
+ rm -f src/auto/configure |
201 |
+ emake -j1 -C src autoconf |
202 |
+ |
203 |
+ # This should fix a sandbox violation (see bug 24447). The hvc |
204 |
+ # things are for ppc64, see bug 86433. |
205 |
+ for file in /dev/pty/s* /dev/console /dev/hvc/* /dev/hvc* ; do |
206 |
+ [[ -e ${file} ]] && addwrite $file |
207 |
+ done |
208 |
+ |
209 |
+ use debug && append-flags "-DDEBUG" |
210 |
+ |
211 |
+ myconf=( |
212 |
+ --with-features=huge |
213 |
+ --disable-gpm |
214 |
+ --enable-multibyte |
215 |
+ $(use_enable acl) |
216 |
+ $(use_enable cscope) |
217 |
+ $(use_enable lua luainterp) |
218 |
+ $(use_with luajit) |
219 |
+ $(use_enable netbeans) |
220 |
+ $(use_enable nls) |
221 |
+ $(use_enable perl perlinterp) |
222 |
+ $(use_enable racket mzschemeinterp) |
223 |
+ $(use_enable ruby rubyinterp) |
224 |
+ $(use_enable selinux) |
225 |
+ $(use_enable session xsmp) |
226 |
+ $(use_enable tcl tclinterp) |
227 |
+ ) |
228 |
+ |
229 |
+ if use python ; then |
230 |
+ py_add_interp() { |
231 |
+ local v |
232 |
+ |
233 |
+ [[ ${EPYTHON} == python3* ]] && v=3 |
234 |
+ myconf+=( |
235 |
+ --enable-python${v}interp |
236 |
+ vi_cv_path_python${v}="${PYTHON}" |
237 |
+ ) |
238 |
+ } |
239 |
+ |
240 |
+ python_foreach_impl py_add_interp |
241 |
+ else |
242 |
+ myconf+=( |
243 |
+ --disable-pythoninterp |
244 |
+ --disable-python3interp |
245 |
+ ) |
246 |
+ fi |
247 |
+ |
248 |
+ # --with-features=huge forces on cscope even if we --disable it. We need |
249 |
+ # to sed this out to avoid screwiness. (1 Sep 2004 ciaranm) |
250 |
+ if ! use cscope ; then |
251 |
+ sed -i '/# define FEAT_CSCOPE/d' src/feature.h || \ |
252 |
+ die "couldn't disable cscope" |
253 |
+ fi |
254 |
+ |
255 |
+ # gvim's GUI preference order is as follows: |
256 |
+ # aqua CARBON (not tested) |
257 |
+ # -aqua gtk3 GTK3 |
258 |
+ # -aqua -gtk3 gnome GNOME2 |
259 |
+ # -aqua -gtk3 -gnome gtk GTK2 |
260 |
+ # -aqua -gtk -gtk3 motif MOTIF |
261 |
+ # -aqua -gtk -gtk3 -motif neXt NEXTAW |
262 |
+ # -aqua -gtk -gtk3 -motif -neXt ATHENA |
263 |
+ echo ; echo |
264 |
+ if use aqua ; then |
265 |
+ einfo "Building gvim with the Carbon GUI" |
266 |
+ myconf+=( |
267 |
+ --enable-darwin |
268 |
+ --enable-gui=carbon |
269 |
+ ) |
270 |
+ elif use gtk3 ; then |
271 |
+ myconf+=( --enable-gtk3-check ) |
272 |
+ einfo "Building gvim with the gtk+-3 GUI" |
273 |
+ myconf+=( --enable-gui=gtk3 ) |
274 |
+ elif use gtk ; then |
275 |
+ myconf+=( --enable-gtk2-check ) |
276 |
+ if use gnome ; then |
277 |
+ einfo "Building gvim with the Gnome 2 GUI" |
278 |
+ myconf+=( --enable-gui=gnome2 ) |
279 |
+ else |
280 |
+ einfo "Building gvim with the gtk+-2 GUI" |
281 |
+ myconf+=( --enable-gui=gtk2 ) |
282 |
+ fi |
283 |
+ elif use motif ; then |
284 |
+ einfo "Building gvim with the MOTIF GUI" |
285 |
+ myconf+=( --enable-gui=motif ) |
286 |
+ elif use neXt ; then |
287 |
+ einfo "Building gvim with the neXtaw GUI" |
288 |
+ myconf+=( --enable-gui=nextaw ) |
289 |
+ else |
290 |
+ einfo "Building gvim with the Athena GUI" |
291 |
+ myconf+=( --enable-gui=athena ) |
292 |
+ fi |
293 |
+ echo ; echo |
294 |
+ |
295 |
+ # let package manager strip binaries |
296 |
+ export ac_cv_prog_STRIP="$(type -P true ) faking strip" |
297 |
+ |
298 |
+ # keep prefix env contained within the EPREFIX |
299 |
+ use prefix && myconf+=( --without-local-dir ) |
300 |
+ |
301 |
+ if [[ ${CHOST} == *-interix* ]]; then |
302 |
+ # avoid finding of this function, to avoid having to patch either |
303 |
+ # configure or the source, which would be much more hackish. |
304 |
+ # after all vim does it right, only interix is badly broken (again) |
305 |
+ export ac_cv_func_sigaction=no |
306 |
+ fi |
307 |
+ |
308 |
+ econf \ |
309 |
+ --with-modified-by=Gentoo-${PVR} \ |
310 |
+ --with-vim-name=gvim \ |
311 |
+ --with-x \ |
312 |
+ "${myconf[@]}" |
313 |
+} |
314 |
+ |
315 |
+src_compile() { |
316 |
+ # The following allows emake to be used |
317 |
+ emake -j1 -C src auto/osdef.h objects |
318 |
+ |
319 |
+ emake |
320 |
+} |
321 |
+ |
322 |
+src_test() { |
323 |
+ echo |
324 |
+ einfo "Starting vim tests. Several error messages will be shown" |
325 |
+ einfo "while the tests run. This is normal behaviour and does not" |
326 |
+ einfo "indicate a fault." |
327 |
+ echo |
328 |
+ ewarn "If the tests fail, your terminal may be left in a strange" |
329 |
+ ewarn "state. Usually, running 'reset' will fix this." |
330 |
+ echo |
331 |
+ |
332 |
+ # Don't let vim talk to X |
333 |
+ unset DISPLAY |
334 |
+ |
335 |
+ # Make gvim not try to connect to X. See :help gui-x11-start in vim for how |
336 |
+ # this evil trickery works. |
337 |
+ ln -s "${S}"/src/gvim "${S}"/src/testvim || die |
338 |
+ |
339 |
+ # Make sure our VIMPROG is used. |
340 |
+ sed -i 's:\.\./vim:../testvim:' src/testdir/test49.vim || die |
341 |
+ |
342 |
+ # Don't do additional GUI tests. |
343 |
+ emake -j1 VIMPROG=../testvim -C src/testdir nongui |
344 |
+} |
345 |
+ |
346 |
+# Make convenience symlinks, hopefully without stepping on toes. Some |
347 |
+# of these links are "owned" by the vim ebuild when it is installed, |
348 |
+# but they might be good for gvim as well (see bug 45828) |
349 |
+update_vim_symlinks() { |
350 |
+ local f syms |
351 |
+ syms="vimdiff rvim rview" |
352 |
+ einfo "Calling eselect vi update..." |
353 |
+ # Call this with --if-unset to respect user's choice (bug 187449) |
354 |
+ eselect vi update --if-unset |
355 |
+ |
356 |
+ # Make or remove convenience symlink, vim -> gvim |
357 |
+ if [[ -f "${EROOT}"/usr/bin/gvim ]]; then |
358 |
+ ln -s gvim "${EROOT}"/usr/bin/vim 2>/dev/null |
359 |
+ elif [[ -L "${EROOT}"/usr/bin/vim && ! -f "${EROOT}"/usr/bin/vim ]]; then |
360 |
+ rm "${EROOT}"/usr/bin/vim |
361 |
+ fi |
362 |
+ |
363 |
+ # Make or remove convenience symlinks to vim |
364 |
+ if [[ -f "${EROOT}"/usr/bin/vim ]]; then |
365 |
+ for f in ${syms}; do |
366 |
+ ln -s vim "${EROOT}"/usr/bin/${f} 2>/dev/null |
367 |
+ done |
368 |
+ else |
369 |
+ for f in ${syms}; do |
370 |
+ if [[ -L "${EROOT}"/usr/bin/${f} && ! -f "${EROOT}"/usr/bin/${f} ]]; then |
371 |
+ rm -f "${EROOT}"/usr/bin/${f} |
372 |
+ fi |
373 |
+ done |
374 |
+ fi |
375 |
+ |
376 |
+ # This will still break if you merge then remove the vi package, |
377 |
+ # but there's only so much you can do, eh? Unfortunately we don't |
378 |
+ # have triggers like are done in rpm-land. |
379 |
+} |
380 |
+ |
381 |
+src_install() { |
382 |
+ local vimfiles=/usr/share/vim/vim${VIM_VERSION/.} |
383 |
+ |
384 |
+ dobin src/gvim |
385 |
+ dosym gvim /usr/bin/gvimdiff |
386 |
+ dosym gvim /usr/bin/evim |
387 |
+ dosym gvim /usr/bin/eview |
388 |
+ dosym gvim /usr/bin/gview |
389 |
+ dosym gvim /usr/bin/rgvim |
390 |
+ dosym gvim /usr/bin/rgview |
391 |
+ |
392 |
+ emake -C src DESTDIR="${D}" DATADIR="${EPREFIX}"/usr/share install-icons |
393 |
+ |
394 |
+ dodir /usr/share/man/man1 |
395 |
+ echo ".so vim.1" > "${ED}"/usr/share/man/man1/gvim.1 |
396 |
+ echo ".so vim.1" > "${ED}"/usr/share/man/man1/gview.1 |
397 |
+ echo ".so vimdiff.1" > "${ED}"/usr/share/man/man1/gvimdiff.1 |
398 |
+ |
399 |
+ insinto /etc/vim |
400 |
+ newins "${FILESDIR}"/gvimrc-r1 gvimrc |
401 |
+ eprefixify "${ED}"/etc/vim/gvimrc |
402 |
+ |
403 |
+ doicon -s scalable "${FILESDIR}"/gvim.svg |
404 |
+ |
405 |
+ # bash completion script, bug #79018. |
406 |
+ newbashcomp "${FILESDIR}"/${PN}-completion ${PN} |
407 |
+ |
408 |
+ # don't install vim desktop file |
409 |
+ rm "${ED}"/usr/share/applications/vim.desktop || die "failed to remove vim.desktop" |
410 |
+} |
411 |
+ |
412 |
+pkg_postinst() { |
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 |
+pkg_postrm() { |
427 |
+ # Update documentation tags (from vim-doc.eclass) |
428 |
+ update_vim_helptags |
429 |
+ |
430 |
+ # Update fdo mime stuff, bug #78394 |
431 |
+ fdo-mime_desktop_database_update |
432 |
+ |
433 |
+ # Update icon cache |
434 |
+ gnome2_icon_cache_update |
435 |
+ |
436 |
+ # Make convenience symlinks |
437 |
+ update_vim_symlinks |
438 |
+} |