1 |
commit: d7bbdba7e277f3b95095456a93785aeddd9eef1c |
2 |
Author: Tim Harder <radhermit <AT> gentoo <DOT> org> |
3 |
AuthorDate: Mon Feb 1 05:02:24 2016 +0000 |
4 |
Commit: Tim Harder <radhermit <AT> gentoo <DOT> org> |
5 |
CommitDate: Mon Feb 1 05:02:24 2016 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=d7bbdba7 |
7 |
|
8 |
app-editors/gvim: remove old |
9 |
|
10 |
app-editors/gvim/Manifest | 3 - |
11 |
app-editors/gvim/gvim-7.4.273.ebuild | 398 --------------------------------- |
12 |
app-editors/gvim/gvim-7.4.827.ebuild | 414 ----------------------------------- |
13 |
3 files changed, 815 deletions(-) |
14 |
|
15 |
diff --git a/app-editors/gvim/Manifest b/app-editors/gvim/Manifest |
16 |
index 613c4da..38cfe40 100644 |
17 |
--- a/app-editors/gvim/Manifest |
18 |
+++ b/app-editors/gvim/Manifest |
19 |
@@ -3,6 +3,3 @@ DIST vim-7.4.1229.tar.gz 12576784 SHA256 8a782e97916d57c44dcd84d38002884e05f3353 |
20 |
DIST vim-7.4.542-gentoo-patches.tar.bz2 3307 SHA256 0eb635f13e199de77846e0d363a473882f2186f138158271fabf0975747a2f3d SHA512 446c66764dac2533cc2f2b3d50481971d4c63a4e81d94c545862a1be620179fdcd81a79f2d81737d1188812a6ad41d90e2a752a05acf6913e7a71464f7cecdd9 WHIRLPOOL cfca8feef0eb8096897ef751afb0427acddd008530ded6cf908fcff51be9713da4ea3e5e613d544c5caba400d664ae19ca70925df3a218bec5c8be6f69aadda2 |
21 |
DIST vim-7.4.769.tar.gz 12189043 SHA256 c89568f3dfcefd773bfbb0958c1cf58a0b0ceedb9d0c264250b379a77ad02e9e SHA512 00048c1d579c409767308c991e5de4ed54e9e50db7e97b0d148f0667742d5e46047c702bee693a5caf13a1603548ab783f7fa846574841d807ffbaa97d7f611e WHIRLPOOL 28ada4763250bbed6f9a1768e81a79b75db64f0ef25296c5d4825f21d21d6e88ff24d488e841e6ba492e363da6d3a3e75e9ec2f2881a731e7ed261c7d21ffd3c |
22 |
DIST vim-7.4.827-gentoo-patches.tar.bz2 3106 SHA256 1d2bb395fa79dde8e3dbc0a94e4b9591f9cb544d4e52a1ecd2eac4122e55b740 SHA512 122dbcdee115ce0979ce8c5a54623ed405e889fb18967d7c9208d924bd62a7dd615544538040aef19449410c0ea5783c1832a317a1afd056d4d387c43e7a5988 WHIRLPOOL 23afe4d61b8c2f6a4d7e0e3a64a0d7c79a72ea3c317d93e969f01706c666217d19c866db56e0b09428c77d44e2adbf86edbbf4f3dbe521481c234cc66c0bafed |
23 |
-DIST vim-7.4.827.tar.gz 12203128 SHA256 8920db8115c78d260abbb2757ebf0e1e64d6e2f989626435fffad1ef37a9760f SHA512 e055b71afdde347a45d78ff10a672be8b92d00dc0215febe39db8a0b44474a92b40f728cbbdbb2ceefbe6fa08683eed549880e07e6e97dd44c994b7f669a8e6a WHIRLPOOL e86e3b203c29ffd9b0b6536b7a997377bd0914cdb4f2b8775a4ae1fae2ab44f54b6c007e0d1bb08d8272aa8da596577729a9f004e7cf1f4914bf55c402b468e5 |
24 |
-DIST vim-7.4.tar.bz2 9843297 SHA256 d0f5a6d2c439f02d97fa21bd9121f4c5abb1f6cd8b5a79d3ca82867495734ade SHA512 65d55da556ee283a364b376d251b70e430b7a157bb5a8ee89565060ff9937907966d416cffd33f701b3314d0fdf16efe00065f66bc8459469f5ae2f713418e0e WHIRLPOOL 914fc2c4fd485196410d853990bb5cc4c0071bc36dc0794655ec05cc0b5f7d2971dea780cc7293fcfbd4495a30a7437a3b1e33a2b6795c10a9f05a2eac3ca6f4 |
25 |
-DIST vim-patches-7.4.273.patch.bz2 506378 SHA256 065447179d22602315e2965d135cf9f1db4394ff5655520719f6338ff29e89ca SHA512 029a5cef758e4b201eabbc82458f3e1c3674582715a8c78a7270f3ecd57980b1cef66a0152526fd3505685c27c07f6e6742da48da9ad9546e3cfc2a5e7c11164 WHIRLPOOL 305322e991e9640b80147dd5ceac9dd6dae93a07610f807bbf01c0fdf37cba67ea41a1b2720c8a43da0161c57e0a522086f135efc712fb0106497a21288a872a |
26 |
|
27 |
diff --git a/app-editors/gvim/gvim-7.4.273.ebuild b/app-editors/gvim/gvim-7.4.273.ebuild |
28 |
deleted file mode 100644 |
29 |
index 30444f2..0000000 |
30 |
--- a/app-editors/gvim/gvim-7.4.273.ebuild |
31 |
+++ /dev/null |
32 |
@@ -1,398 +0,0 @@ |
33 |
-# Copyright 1999-2015 Gentoo Foundation |
34 |
-# Distributed under the terms of the GNU General Public License v2 |
35 |
-# $Id$ |
36 |
- |
37 |
-EAPI=5 |
38 |
-VIM_VERSION="7.4" |
39 |
-PYTHON_COMPAT=( python{2_7,3_3,3_4} ) |
40 |
-PYTHON_REQ_USE=threads |
41 |
-inherit eutils vim-doc flag-o-matic fdo-mime versionator bash-completion-r1 prefix python-single-r1 |
42 |
- |
43 |
-if [[ ${PV} == 9999* ]] ; then |
44 |
- inherit mercurial |
45 |
- EHG_REPO_URI="https://vim.googlecode.com/hg/" |
46 |
- EHG_PROJECT="vim" |
47 |
-else |
48 |
- VIM_ORG_PATCHES="vim-patches-${PV}.patch.bz2" |
49 |
- |
50 |
- SRC_URI="ftp://ftp.vim.org/pub/vim/unix/vim-${VIM_VERSION}.tar.bz2 |
51 |
- https://dev.gentoo.org/~radhermit/vim/${VIM_ORG_PATCHES}" |
52 |
- KEYWORDS="alpha amd64 arm hppa ia64 ppc ppc64 sparc x86 ~x86-fbsd ~x86-interix ~amd64-linux ~x86-linux ~ppc-macos ~x86-macos ~x86-solaris" |
53 |
-fi |
54 |
- |
55 |
-DESCRIPTION="GUI version of the Vim text editor" |
56 |
-HOMEPAGE="http://www.vim.org/" |
57 |
- |
58 |
-SLOT="0" |
59 |
-LICENSE="vim" |
60 |
-IUSE="acl aqua cscope debug gnome gtk lua luajit motif neXt netbeans nls perl python racket ruby selinux session tcl" |
61 |
-REQUIRED_USE=" |
62 |
- python? ( ${PYTHON_REQUIRED_USE} ) |
63 |
- luajit? ( lua ) |
64 |
-" |
65 |
- |
66 |
-RDEPEND=" |
67 |
- ~app-editors/vim-core-${PV} |
68 |
- >=app-eselect/eselect-vi-1.1 |
69 |
- >=sys-libs/ncurses-5.2-r2 |
70 |
- x11-libs/libXext |
71 |
- x11-libs/libXt |
72 |
- acl? ( kernel_linux? ( sys-apps/acl ) ) |
73 |
- !aqua? ( |
74 |
- gtk? ( |
75 |
- >=x11-libs/gtk+-2.6:2 |
76 |
- x11-libs/libXft |
77 |
- gnome? ( >=gnome-base/libgnomeui-2.6 ) |
78 |
- ) |
79 |
- !gtk? ( |
80 |
- motif? ( >=x11-libs/motif-2.3:0 ) |
81 |
- !motif? ( |
82 |
- neXt? ( x11-libs/neXtaw ) |
83 |
- !neXt? ( x11-libs/libXaw ) |
84 |
- ) |
85 |
- ) |
86 |
- ) |
87 |
- cscope? ( dev-util/cscope ) |
88 |
- lua? ( |
89 |
- luajit? ( dev-lang/luajit:2= ) |
90 |
- !luajit? ( dev-lang/lua:0[deprecated] ) |
91 |
- ) |
92 |
- nls? ( virtual/libintl ) |
93 |
- perl? ( dev-lang/perl:= ) |
94 |
- python? ( ${PYTHON_DEPS} ) |
95 |
- racket? ( dev-scheme/racket ) |
96 |
- ruby? ( || ( dev-lang/ruby:2.1 dev-lang/ruby:2.0 dev-lang/ruby:1.9 dev-lang/ruby:1.8 ) ) |
97 |
- selinux? ( sys-libs/libselinux ) |
98 |
- session? ( x11-libs/libSM ) |
99 |
- tcl? ( dev-lang/tcl:0= ) |
100 |
-" |
101 |
-DEPEND="${RDEPEND} |
102 |
- dev-util/ctags |
103 |
- sys-devel/autoconf |
104 |
- virtual/pkgconfig |
105 |
- nls? ( sys-devel/gettext ) |
106 |
-" |
107 |
- |
108 |
-S=${WORKDIR}/vim${VIM_VERSION/.} |
109 |
- |
110 |
-pkg_setup() { |
111 |
- # people with broken alphabets run into trouble. bug 82186. |
112 |
- unset LANG LC_ALL |
113 |
- export LC_COLLATE="C" |
114 |
- |
115 |
- # Gnome sandbox silliness. bug #114475. |
116 |
- mkdir -p "${T}"/home |
117 |
- export HOME="${T}"/home |
118 |
- |
119 |
- use python && python-single-r1_pkg_setup |
120 |
-} |
121 |
- |
122 |
-src_prepare() { |
123 |
- if [[ ${PV} != 9999* ]] ; then |
124 |
- if [[ -f "${WORKDIR}"/${VIM_ORG_PATCHES%.bz2} ]] ; then |
125 |
- # Apply any patches available from vim.org for this version |
126 |
- epatch "${WORKDIR}"/${VIM_ORG_PATCHES%.bz2} |
127 |
- fi |
128 |
- fi |
129 |
- |
130 |
- # Fixup a script to use awk instead of nawk |
131 |
- sed -i '1s|.*|#!'"${EPREFIX}"'/usr/bin/awk -f|' "${S}"/runtime/tools/mve.awk \ |
132 |
- || die "mve.awk sed failed" |
133 |
- |
134 |
- # Read vimrc and gvimrc from /etc/vim |
135 |
- echo '#define SYS_VIMRC_FILE "'${EPREFIX}'/etc/vim/vimrc"' >> "${S}"/src/feature.h |
136 |
- echo '#define SYS_GVIMRC_FILE "'${EPREFIX}'/etc/vim/gvimrc"' >> "${S}"/src/feature.h |
137 |
- |
138 |
- # Use exuberant ctags which installs as /usr/bin/exuberant-ctags. |
139 |
- # Hopefully this pattern won't break for a while at least. |
140 |
- # This fixes bug 29398 (27 Sep 2003 agriffis) |
141 |
- sed -i 's/\<ctags\("\| [-*.]\)/exuberant-&/g' \ |
142 |
- "${S}"/runtime/doc/syntax.txt \ |
143 |
- "${S}"/runtime/doc/tagsrch.txt \ |
144 |
- "${S}"/runtime/doc/usr_29.txt \ |
145 |
- "${S}"/runtime/menu.vim \ |
146 |
- "${S}"/src/configure.in || die 'sed failed' |
147 |
- |
148 |
- # Don't be fooled by /usr/include/libc.h. When found, vim thinks |
149 |
- # this is NeXT, but it's actually just a file in dev-libs/9libs |
150 |
- # This fixes bug 43885 (20 Mar 2004 agriffis) |
151 |
- sed -i 's/ libc\.h / /' "${S}"/src/configure.in || die 'sed failed' |
152 |
- |
153 |
- # gcc on sparc32 has this, uhm, interesting problem with detecting EOF |
154 |
- # correctly. To avoid some really entertaining error messages about stuff |
155 |
- # which isn't even in the source file being invalid, we'll do some trickery |
156 |
- # to make the error never occur. bug 66162 (02 October 2004 ciaranm) |
157 |
- find "${S}" -name '*.c' | while read c ; do echo >> "$c" ; done |
158 |
- |
159 |
- # Try to avoid sandbox problems. Bug #114475. |
160 |
- if [[ -d "${S}"/src/po ]] ; then |
161 |
- sed -i '/-S check.vim/s,..VIM.,ln -s $(VIM) testvim \; ./testvim -X,' \ |
162 |
- "${S}"/src/po/Makefile |
163 |
- fi |
164 |
- |
165 |
- if version_is_at_least 7.3.122 ; then |
166 |
- cp "${S}"/src/config.mk.dist "${S}"/src/auto/config.mk |
167 |
- fi |
168 |
- |
169 |
- # Bug #378107 - Build properly with >=perl-core/ExtUtils-ParseXS-3.20.0 |
170 |
- if version_is_at_least 7.3 ; then |
171 |
- sed -i "s:\\\$(PERLLIB)/ExtUtils/xsubpp:${EPREFIX}/usr/bin/xsubpp:" \ |
172 |
- "${S}"/src/Makefile || die 'sed for ExtUtils-ParseXS failed' |
173 |
- fi |
174 |
- |
175 |
- epatch_user |
176 |
-} |
177 |
- |
178 |
-src_configure() { |
179 |
- local myconf |
180 |
- |
181 |
- # Fix bug 37354: Disallow -funroll-all-loops on amd64 |
182 |
- # Bug 57859 suggests that we want to do this for all archs |
183 |
- filter-flags -funroll-all-loops |
184 |
- |
185 |
- # Fix bug 76331: -O3 causes problems, use -O2 instead. We'll do this for |
186 |
- # everyone since previous flag filtering bugs have turned out to affect |
187 |
- # multiple archs... |
188 |
- replace-flags -O3 -O2 |
189 |
- |
190 |
- # Fix bug 18245: Prevent "make" from the following chain: |
191 |
- # (1) Notice configure.in is newer than auto/configure |
192 |
- # (2) Rebuild auto/configure |
193 |
- # (3) Notice auto/configure is newer than auto/config.mk |
194 |
- # (4) Run ./configure (with wrong args) to remake auto/config.mk |
195 |
- sed -i 's/ auto.config.mk:/:/' src/Makefile || die "Makefile sed failed" |
196 |
- rm -f src/auto/configure |
197 |
- emake -j1 -C src autoconf |
198 |
- |
199 |
- # This should fix a sandbox violation (see bug 24447). The hvc |
200 |
- # things are for ppc64, see bug 86433. |
201 |
- for file in /dev/pty/s* /dev/console /dev/hvc/* /dev/hvc* ; do |
202 |
- [[ -e ${file} ]] && addwrite $file |
203 |
- done |
204 |
- |
205 |
- use debug && append-flags "-DDEBUG" |
206 |
- |
207 |
- myconf="--with-features=huge --disable-gpm --enable-multibyte" |
208 |
- myconf+=" $(use_enable acl)" |
209 |
- myconf+=" $(use_enable cscope)" |
210 |
- myconf+=" $(use_enable lua luainterp)" |
211 |
- myconf+=" $(use_with luajit)" |
212 |
- myconf+=" $(use_enable netbeans)" |
213 |
- myconf+=" $(use_enable nls)" |
214 |
- myconf+=" $(use_enable perl perlinterp)" |
215 |
- myconf+=" $(use_enable racket mzschemeinterp)" |
216 |
- myconf+=" $(use_enable ruby rubyinterp)" |
217 |
- myconf+=" $(use_enable selinux)" |
218 |
- myconf+=" $(use_enable session xsmp)" |
219 |
- myconf+=" $(use_enable tcl tclinterp)" |
220 |
- |
221 |
- if use python ; then |
222 |
- if [[ ${EPYTHON} == python3* ]] ; then |
223 |
- myconf+=" --enable-python3interp" |
224 |
- export vi_cv_path_python3="${PYTHON}" |
225 |
- else |
226 |
- myconf+=" --enable-pythoninterp" |
227 |
- export vi_cv_path_python="${PYTHON}" |
228 |
- fi |
229 |
- else |
230 |
- myconf+=" --disable-pythoninterp --disable-python3interp" |
231 |
- fi |
232 |
- |
233 |
- # --with-features=huge forces on cscope even if we --disable it. We need |
234 |
- # to sed this out to avoid screwiness. (1 Sep 2004 ciaranm) |
235 |
- if ! use cscope ; then |
236 |
- sed -i '/# define FEAT_CSCOPE/d' src/feature.h || \ |
237 |
- die "couldn't disable cscope" |
238 |
- fi |
239 |
- |
240 |
- # gvim's GUI preference order is as follows: |
241 |
- # aqua CARBON (not tested) |
242 |
- # -aqua gtk gnome GNOME2 |
243 |
- # -aqua gtk -gnome GTK2 |
244 |
- # -aqua -gtk motif MOTIF |
245 |
- # -aqua -gtk -motif neXt NEXTAW |
246 |
- # -aqua -gtk -motif -neXt ATHENA |
247 |
- echo ; echo |
248 |
- if use aqua ; then |
249 |
- einfo "Building gvim with the Carbon GUI" |
250 |
- myconf+=" --enable-darwin --enable-gui=carbon" |
251 |
- elif use gtk ; then |
252 |
- myconf+=" --enable-gtk2-check" |
253 |
- if use gnome ; then |
254 |
- einfo "Building gvim with the Gnome 2 GUI" |
255 |
- myconf+=" --enable-gui=gnome2" |
256 |
- else |
257 |
- einfo "Building gvim with the gtk+-2 GUI" |
258 |
- myconf+=" --enable-gui=gtk2" |
259 |
- fi |
260 |
- elif use motif ; then |
261 |
- einfo "Building gvim with the MOTIF GUI" |
262 |
- myconf+=" --enable-gui=motif" |
263 |
- elif use neXt ; then |
264 |
- einfo "Building gvim with the neXtaw GUI" |
265 |
- myconf+=" --enable-gui=nextaw" |
266 |
- else |
267 |
- einfo "Building gvim with the Athena GUI" |
268 |
- myconf+=" --enable-gui=athena" |
269 |
- fi |
270 |
- echo ; echo |
271 |
- |
272 |
- # Let Portage do the stripping. Some people like that. |
273 |
- export ac_cv_prog_STRIP="$(type -P true ) faking strip" |
274 |
- |
275 |
- # Keep Gentoo Prefix env contained within the EPREFIX |
276 |
- use prefix && myconf+=" --without-local-dir" |
277 |
- |
278 |
- if [[ ${CHOST} == *-interix* ]]; then |
279 |
- # avoid finding of this function, to avoid having to patch either |
280 |
- # configure or the source, which would be much more hackish. |
281 |
- # after all vim does it right, only interix is badly broken (again) |
282 |
- export ac_cv_func_sigaction=no |
283 |
- fi |
284 |
- |
285 |
- econf \ |
286 |
- --with-modified-by=Gentoo-${PVR} \ |
287 |
- --with-vim-name=gvim --with-x \ |
288 |
- ${myconf} |
289 |
-} |
290 |
- |
291 |
-src_compile() { |
292 |
- # The following allows emake to be used |
293 |
- emake -j1 -C src auto/osdef.h objects |
294 |
- |
295 |
- emake |
296 |
-} |
297 |
- |
298 |
-src_test() { |
299 |
- echo |
300 |
- einfo "Starting vim tests. Several error messages will be shown" |
301 |
- einfo "while the tests run. This is normal behaviour and does not" |
302 |
- einfo "indicate a fault." |
303 |
- echo |
304 |
- ewarn "If the tests fail, your terminal may be left in a strange" |
305 |
- ewarn "state. Usually, running 'reset' will fix this." |
306 |
- echo |
307 |
- |
308 |
- # Don't let vim talk to X |
309 |
- unset DISPLAY |
310 |
- |
311 |
- # We've got to call make test from within testdir, since the Makefiles |
312 |
- # don't pass through our VIMPROG argument |
313 |
- cd "${S}"/src/testdir |
314 |
- |
315 |
- # Test 49 won't work inside a portage environment |
316 |
- einfo "Test 49 isn't sandbox-friendly, so it will be skipped." |
317 |
- sed -i 's~test49.out~~g' Makefile |
318 |
- |
319 |
- # We don't want to rebuild vim before running the tests |
320 |
- sed -i 's,: \$(VIMPROG),: ,' Makefile |
321 |
- |
322 |
- # Make gvim not try to connect to X. See :help gui-x11-start |
323 |
- # in vim for how this evil trickery works. |
324 |
- ln -s "${S}"/src/gvim "${S}"/src/testvim |
325 |
- |
326 |
- # Don't try to do the additional GUI test |
327 |
- emake -j1 VIMPROG=../testvim nongui |
328 |
-} |
329 |
- |
330 |
-# Make convenience symlinks, hopefully without stepping on toes. Some |
331 |
-# of these links are "owned" by the vim ebuild when it is installed, |
332 |
-# but they might be good for gvim as well (see bug 45828) |
333 |
-update_vim_symlinks() { |
334 |
- has "${EAPI:-0}" 0 1 2 && use !prefix && EROOT="${ROOT}" |
335 |
- local f syms |
336 |
- syms="vimdiff rvim rview" |
337 |
- einfo "Calling eselect vi update..." |
338 |
- # Call this with --if-unset to respect user's choice (bug 187449) |
339 |
- eselect vi update --if-unset |
340 |
- |
341 |
- # Make or remove convenience symlink, vim -> gvim |
342 |
- if [[ -f "${EROOT}"/usr/bin/gvim ]]; then |
343 |
- ln -s gvim "${EROOT}"/usr/bin/vim 2>/dev/null |
344 |
- elif [[ -L "${EROOT}"/usr/bin/vim && ! -f "${EROOT}"/usr/bin/vim ]]; then |
345 |
- rm "${EROOT}"/usr/bin/vim |
346 |
- fi |
347 |
- |
348 |
- # Make or remove convenience symlinks to vim |
349 |
- if [[ -f "${EROOT}"/usr/bin/vim ]]; then |
350 |
- for f in ${syms}; do |
351 |
- ln -s vim "${EROOT}"/usr/bin/${f} 2>/dev/null |
352 |
- done |
353 |
- else |
354 |
- for f in ${syms}; do |
355 |
- if [[ -L "${EROOT}"/usr/bin/${f} && ! -f "${EROOT}"/usr/bin/${f} ]]; then |
356 |
- rm -f "${EROOT}"/usr/bin/${f} |
357 |
- fi |
358 |
- done |
359 |
- fi |
360 |
- |
361 |
- # This will still break if you merge then remove the vi package, |
362 |
- # but there's only so much you can do, eh? Unfortunately we don't |
363 |
- # have triggers like are done in rpm-land. |
364 |
-} |
365 |
- |
366 |
-src_install() { |
367 |
- local vimfiles=/usr/share/vim/vim${VIM_VERSION/.} |
368 |
- |
369 |
- dobin src/gvim |
370 |
- dosym gvim /usr/bin/gvimdiff |
371 |
- dosym gvim /usr/bin/evim |
372 |
- dosym gvim /usr/bin/eview |
373 |
- dosym gvim /usr/bin/gview |
374 |
- dosym gvim /usr/bin/rgvim |
375 |
- dosym gvim /usr/bin/rgview |
376 |
- |
377 |
- dodir /usr/share/man/man1 |
378 |
- echo ".so vim.1" > "${ED}"/usr/share/man/man1/gvim.1 |
379 |
- echo ".so vim.1" > "${ED}"/usr/share/man/man1/gview.1 |
380 |
- echo ".so vimdiff.1" > "${ED}"/usr/share/man/man1/gvimdiff.1 |
381 |
- |
382 |
- insinto /etc/vim |
383 |
- newins "${FILESDIR}"/gvimrc-r1 gvimrc |
384 |
- eprefixify "${ED}"/etc/vim/gvimrc |
385 |
- |
386 |
- newmenu "${FILESDIR}"/gvim.desktop-r2 gvim.desktop |
387 |
- doicon "${FILESDIR}"/gvim.xpm |
388 |
- |
389 |
- # bash completion script, bug #79018. |
390 |
- newbashcomp "${FILESDIR}"/${PN}-completion ${PN} |
391 |
- |
392 |
- # We shouldn't be installing the ex or view man page symlinks, as they |
393 |
- # are managed by eselect-vi |
394 |
- rm -f "${ED}"/usr/share/man/man1/{ex,view}.1 |
395 |
-} |
396 |
- |
397 |
-pkg_postinst() { |
398 |
- # Update documentation tags (from vim-doc.eclass) |
399 |
- update_vim_helptags |
400 |
- |
401 |
- # Update fdo mime stuff, bug #78394 |
402 |
- fdo-mime_mime_database_update |
403 |
- |
404 |
- if [[ -z ${REPLACING_VERSIONS} ]] ; then |
405 |
- echo |
406 |
- elog "Vim 7 includes an integrated spell checker. You need to install" |
407 |
- elog "word list files before you can use it. There are ebuilds for" |
408 |
- elog "some of these named app-vim/vim-spell-*. If your language of" |
409 |
- elog "choice is not included, please consult vim-spell.eclass for" |
410 |
- elog "instructions on how to make a package." |
411 |
- echo |
412 |
- ewarn "Note that the English word lists are no longer installed by" |
413 |
- ewarn "default." |
414 |
- echo |
415 |
- fi |
416 |
- |
417 |
- # Make convenience symlinks |
418 |
- update_vim_symlinks |
419 |
-} |
420 |
- |
421 |
-pkg_postrm() { |
422 |
- # Update documentation tags (from vim-doc.eclass) |
423 |
- update_vim_helptags |
424 |
- |
425 |
- # Update fdo mime stuff, bug #78394 |
426 |
- fdo-mime_mime_database_update |
427 |
- |
428 |
- # Make convenience symlinks |
429 |
- update_vim_symlinks |
430 |
-} |
431 |
|
432 |
diff --git a/app-editors/gvim/gvim-7.4.827.ebuild b/app-editors/gvim/gvim-7.4.827.ebuild |
433 |
deleted file mode 100644 |
434 |
index 505f219..0000000 |
435 |
--- a/app-editors/gvim/gvim-7.4.827.ebuild |
436 |
+++ /dev/null |
437 |
@@ -1,414 +0,0 @@ |
438 |
-# Copyright 1999-2015 Gentoo Foundation |
439 |
-# Distributed under the terms of the GNU General Public License v2 |
440 |
-# $Id$ |
441 |
- |
442 |
-EAPI=5 |
443 |
-VIM_VERSION="7.4" |
444 |
-PYTHON_COMPAT=( python{2_7,3_3,3_4} ) |
445 |
-PYTHON_REQ_USE=threads |
446 |
-inherit eutils vim-doc flag-o-matic fdo-mime versionator bash-completion-r1 prefix python-r1 |
447 |
- |
448 |
-if [[ ${PV} == 9999* ]] ; then |
449 |
- inherit git-r3 |
450 |
- EGIT_REPO_URI="https://github.com/vim/vim.git" |
451 |
- EGIT_CHECKOUT_DIR=${WORKDIR}/vim-${PV} |
452 |
-else |
453 |
- SRC_URI="https://github.com/vim/vim/archive/v${PV}.tar.gz -> vim-${PV}.tar.gz |
454 |
- https://dev.gentoo.org/~radhermit/vim/vim-7.4.827-gentoo-patches.tar.bz2" |
455 |
- KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~ppc ~ppc64 ~sparc ~x86 ~x86-fbsd ~x86-interix ~amd64-linux ~x86-linux ~ppc-macos ~x86-macos ~x86-solaris" |
456 |
-fi |
457 |
- |
458 |
-DESCRIPTION="GUI version of the Vim text editor" |
459 |
-HOMEPAGE="http://www.vim.org/" |
460 |
- |
461 |
-SLOT="0" |
462 |
-LICENSE="vim" |
463 |
-IUSE="acl aqua cscope debug gnome gtk lua luajit motif neXt netbeans nls perl python racket ruby selinux session tcl" |
464 |
-REQUIRED_USE=" |
465 |
- luajit? ( lua ) |
466 |
- python? ( |
467 |
- || ( $(python_gen_useflags '*') ) |
468 |
- ?? ( $(python_gen_useflags 'python2*') ) |
469 |
- ?? ( $(python_gen_useflags 'python3*') ) |
470 |
- ) |
471 |
-" |
472 |
- |
473 |
-RDEPEND=" |
474 |
- ~app-editors/vim-core-${PV} |
475 |
- >=app-eselect/eselect-vi-1.1 |
476 |
- >=sys-libs/ncurses-5.2-r2 |
477 |
- x11-libs/libXext |
478 |
- x11-libs/libXt |
479 |
- acl? ( kernel_linux? ( sys-apps/acl ) ) |
480 |
- !aqua? ( |
481 |
- gtk? ( |
482 |
- >=x11-libs/gtk+-2.6:2 |
483 |
- x11-libs/libXft |
484 |
- gnome? ( >=gnome-base/libgnomeui-2.6 ) |
485 |
- ) |
486 |
- !gtk? ( |
487 |
- motif? ( >=x11-libs/motif-2.3:0 ) |
488 |
- !motif? ( |
489 |
- neXt? ( x11-libs/neXtaw ) |
490 |
- !neXt? ( x11-libs/libXaw ) |
491 |
- ) |
492 |
- ) |
493 |
- ) |
494 |
- cscope? ( dev-util/cscope ) |
495 |
- lua? ( |
496 |
- luajit? ( dev-lang/luajit:2= ) |
497 |
- !luajit? ( dev-lang/lua:0[deprecated] ) |
498 |
- ) |
499 |
- nls? ( virtual/libintl ) |
500 |
- perl? ( dev-lang/perl:= ) |
501 |
- python? ( ${PYTHON_DEPS} ) |
502 |
- racket? ( dev-scheme/racket ) |
503 |
- ruby? ( || ( dev-lang/ruby:2.2 dev-lang/ruby:2.1 dev-lang/ruby:2.0 ) ) |
504 |
- selinux? ( sys-libs/libselinux ) |
505 |
- session? ( x11-libs/libSM ) |
506 |
- tcl? ( dev-lang/tcl:0= ) |
507 |
-" |
508 |
-DEPEND="${RDEPEND} |
509 |
- dev-util/ctags |
510 |
- sys-devel/autoconf |
511 |
- virtual/pkgconfig |
512 |
- nls? ( sys-devel/gettext ) |
513 |
-" |
514 |
- |
515 |
-S=${WORKDIR}/vim-${PV} |
516 |
- |
517 |
-pkg_setup() { |
518 |
- # people with broken alphabets run into trouble. bug 82186. |
519 |
- unset LANG LC_ALL |
520 |
- export LC_COLLATE="C" |
521 |
- |
522 |
- # Gnome sandbox silliness. bug #114475. |
523 |
- mkdir -p "${T}"/home |
524 |
- export HOME="${T}"/home |
525 |
-} |
526 |
- |
527 |
-src_prepare() { |
528 |
- if [[ ${PV} != 9999* ]] ; then |
529 |
- if [[ -d "${WORKDIR}"/patches/ ]]; then |
530 |
- # Gentoo patches to fix runtime issues, cross-compile errors, etc |
531 |
- EPATCH_SUFFIX="patch" EPATCH_FORCE="yes" \ |
532 |
- epatch "${WORKDIR}"/patches/ |
533 |
- fi |
534 |
- fi |
535 |
- |
536 |
- # Fixup a script to use awk instead of nawk |
537 |
- sed -i '1s|.*|#!'"${EPREFIX}"'/usr/bin/awk -f|' "${S}"/runtime/tools/mve.awk \ |
538 |
- || die "mve.awk sed failed" |
539 |
- |
540 |
- # Read vimrc and gvimrc from /etc/vim |
541 |
- echo '#define SYS_VIMRC_FILE "'${EPREFIX}'/etc/vim/vimrc"' >> "${S}"/src/feature.h |
542 |
- echo '#define SYS_GVIMRC_FILE "'${EPREFIX}'/etc/vim/gvimrc"' >> "${S}"/src/feature.h |
543 |
- |
544 |
- # Use exuberant ctags which installs as /usr/bin/exuberant-ctags. |
545 |
- # Hopefully this pattern won't break for a while at least. |
546 |
- # This fixes bug 29398 (27 Sep 2003 agriffis) |
547 |
- sed -i 's/\<ctags\("\| [-*.]\)/exuberant-&/g' \ |
548 |
- "${S}"/runtime/doc/syntax.txt \ |
549 |
- "${S}"/runtime/doc/tagsrch.txt \ |
550 |
- "${S}"/runtime/doc/usr_29.txt \ |
551 |
- "${S}"/runtime/menu.vim \ |
552 |
- "${S}"/src/configure.in || die 'sed failed' |
553 |
- |
554 |
- # Don't be fooled by /usr/include/libc.h. When found, vim thinks |
555 |
- # this is NeXT, but it's actually just a file in dev-libs/9libs |
556 |
- # This fixes bug 43885 (20 Mar 2004 agriffis) |
557 |
- sed -i 's/ libc\.h / /' "${S}"/src/configure.in || die 'sed failed' |
558 |
- |
559 |
- # gcc on sparc32 has this, uhm, interesting problem with detecting EOF |
560 |
- # correctly. To avoid some really entertaining error messages about stuff |
561 |
- # which isn't even in the source file being invalid, we'll do some trickery |
562 |
- # to make the error never occur. bug 66162 (02 October 2004 ciaranm) |
563 |
- find "${S}" -name '*.c' | while read c ; do echo >> "$c" ; done |
564 |
- |
565 |
- # Try to avoid sandbox problems. Bug #114475. |
566 |
- if [[ -d "${S}"/src/po ]] ; then |
567 |
- sed -i '/-S check.vim/s,..VIM.,ln -s $(VIM) testvim \; ./testvim -X,' \ |
568 |
- "${S}"/src/po/Makefile |
569 |
- fi |
570 |
- |
571 |
- if version_is_at_least 7.3.122 ; then |
572 |
- cp "${S}"/src/config.mk.dist "${S}"/src/auto/config.mk |
573 |
- fi |
574 |
- |
575 |
- # Bug #378107 - Build properly with >=perl-core/ExtUtils-ParseXS-3.20.0 |
576 |
- if version_is_at_least 7.3 ; then |
577 |
- sed -i "s:\\\$(PERLLIB)/ExtUtils/xsubpp:${EPREFIX}/usr/bin/xsubpp:" \ |
578 |
- "${S}"/src/Makefile || die 'sed for ExtUtils-ParseXS failed' |
579 |
- fi |
580 |
- |
581 |
- epatch_user |
582 |
-} |
583 |
- |
584 |
-src_configure() { |
585 |
- local myconf=() |
586 |
- |
587 |
- # Fix bug 37354: Disallow -funroll-all-loops on amd64 |
588 |
- # Bug 57859 suggests that we want to do this for all archs |
589 |
- filter-flags -funroll-all-loops |
590 |
- |
591 |
- # Fix bug 76331: -O3 causes problems, use -O2 instead. We'll do this for |
592 |
- # everyone since previous flag filtering bugs have turned out to affect |
593 |
- # multiple archs... |
594 |
- replace-flags -O3 -O2 |
595 |
- |
596 |
- # Fix bug 18245: Prevent "make" from the following chain: |
597 |
- # (1) Notice configure.in is newer than auto/configure |
598 |
- # (2) Rebuild auto/configure |
599 |
- # (3) Notice auto/configure is newer than auto/config.mk |
600 |
- # (4) Run ./configure (with wrong args) to remake auto/config.mk |
601 |
- sed -i 's# auto/config\.mk:#:#' src/Makefile || die "Makefile sed failed" |
602 |
- rm -f src/auto/configure |
603 |
- emake -j1 -C src autoconf |
604 |
- |
605 |
- # This should fix a sandbox violation (see bug 24447). The hvc |
606 |
- # things are for ppc64, see bug 86433. |
607 |
- for file in /dev/pty/s* /dev/console /dev/hvc/* /dev/hvc* ; do |
608 |
- [[ -e ${file} ]] && addwrite $file |
609 |
- done |
610 |
- |
611 |
- use debug && append-flags "-DDEBUG" |
612 |
- |
613 |
- myconf=( |
614 |
- --with-features=huge |
615 |
- --disable-gpm |
616 |
- --enable-multibyte |
617 |
- $(use_enable acl) |
618 |
- $(use_enable cscope) |
619 |
- $(use_enable lua luainterp) |
620 |
- $(use_with luajit) |
621 |
- $(use_enable netbeans) |
622 |
- $(use_enable nls) |
623 |
- $(use_enable perl perlinterp) |
624 |
- $(use_enable racket mzschemeinterp) |
625 |
- $(use_enable ruby rubyinterp) |
626 |
- $(use_enable selinux) |
627 |
- $(use_enable session xsmp) |
628 |
- $(use_enable tcl tclinterp) |
629 |
- ) |
630 |
- |
631 |
- if use python ; then |
632 |
- py_add_interp() { |
633 |
- local v |
634 |
- |
635 |
- [[ ${EPYTHON} == python3* ]] && v=3 |
636 |
- myconf+=( |
637 |
- --enable-python${v}interp |
638 |
- vi_cv_path_python${v}="${PYTHON}" |
639 |
- ) |
640 |
- } |
641 |
- |
642 |
- python_foreach_impl py_add_interp |
643 |
- else |
644 |
- myconf+=( |
645 |
- --disable-pythoninterp |
646 |
- --disable-python3interp |
647 |
- ) |
648 |
- fi |
649 |
- |
650 |
- # --with-features=huge forces on cscope even if we --disable it. We need |
651 |
- # to sed this out to avoid screwiness. (1 Sep 2004 ciaranm) |
652 |
- if ! use cscope ; then |
653 |
- sed -i '/# define FEAT_CSCOPE/d' src/feature.h || \ |
654 |
- die "couldn't disable cscope" |
655 |
- fi |
656 |
- |
657 |
- # gvim's GUI preference order is as follows: |
658 |
- # aqua CARBON (not tested) |
659 |
- # -aqua gtk gnome GNOME2 |
660 |
- # -aqua gtk -gnome GTK2 |
661 |
- # -aqua -gtk motif MOTIF |
662 |
- # -aqua -gtk -motif neXt NEXTAW |
663 |
- # -aqua -gtk -motif -neXt ATHENA |
664 |
- echo ; echo |
665 |
- if use aqua ; then |
666 |
- einfo "Building gvim with the Carbon GUI" |
667 |
- myconf+=( |
668 |
- --enable-darwin |
669 |
- --enable-gui=carbon |
670 |
- ) |
671 |
- elif use gtk ; then |
672 |
- myconf+=( --enable-gtk2-check ) |
673 |
- if use gnome ; then |
674 |
- einfo "Building gvim with the Gnome 2 GUI" |
675 |
- myconf+=( --enable-gui=gnome2 ) |
676 |
- else |
677 |
- einfo "Building gvim with the gtk+-2 GUI" |
678 |
- myconf+=( --enable-gui=gtk2 ) |
679 |
- fi |
680 |
- elif use motif ; then |
681 |
- einfo "Building gvim with the MOTIF GUI" |
682 |
- myconf+=( --enable-gui=motif ) |
683 |
- elif use neXt ; then |
684 |
- einfo "Building gvim with the neXtaw GUI" |
685 |
- myconf+=( --enable-gui=nextaw ) |
686 |
- else |
687 |
- einfo "Building gvim with the Athena GUI" |
688 |
- myconf+=( --enable-gui=athena ) |
689 |
- fi |
690 |
- echo ; echo |
691 |
- |
692 |
- # Let Portage do the stripping. Some people like that. |
693 |
- export ac_cv_prog_STRIP="$(type -P true ) faking strip" |
694 |
- |
695 |
- # Keep Gentoo Prefix env contained within the EPREFIX |
696 |
- use prefix && myconf+=( --without-local-dir ) |
697 |
- |
698 |
- if [[ ${CHOST} == *-interix* ]]; then |
699 |
- # avoid finding of this function, to avoid having to patch either |
700 |
- # configure or the source, which would be much more hackish. |
701 |
- # after all vim does it right, only interix is badly broken (again) |
702 |
- export ac_cv_func_sigaction=no |
703 |
- fi |
704 |
- |
705 |
- econf \ |
706 |
- --with-modified-by=Gentoo-${PVR} \ |
707 |
- --with-vim-name=gvim \ |
708 |
- --with-x \ |
709 |
- "${myconf[@]}" |
710 |
-} |
711 |
- |
712 |
-src_compile() { |
713 |
- # The following allows emake to be used |
714 |
- emake -j1 -C src auto/osdef.h objects |
715 |
- |
716 |
- emake |
717 |
-} |
718 |
- |
719 |
-src_test() { |
720 |
- echo |
721 |
- einfo "Starting vim tests. Several error messages will be shown" |
722 |
- einfo "while the tests run. This is normal behaviour and does not" |
723 |
- einfo "indicate a fault." |
724 |
- echo |
725 |
- ewarn "If the tests fail, your terminal may be left in a strange" |
726 |
- ewarn "state. Usually, running 'reset' will fix this." |
727 |
- echo |
728 |
- |
729 |
- # Don't let vim talk to X |
730 |
- unset DISPLAY |
731 |
- |
732 |
- # We've got to call make test from within testdir, since the Makefiles |
733 |
- # don't pass through our VIMPROG argument |
734 |
- cd "${S}"/src/testdir |
735 |
- |
736 |
- # Test 49 won't work inside a portage environment |
737 |
- einfo "Test 49 isn't sandbox-friendly, so it will be skipped." |
738 |
- sed -i 's~test49.out~~g' Makefile |
739 |
- |
740 |
- # We don't want to rebuild vim before running the tests |
741 |
- sed -i 's,: \$(VIMPROG),: ,' Makefile |
742 |
- |
743 |
- # Make gvim not try to connect to X. See :help gui-x11-start |
744 |
- # in vim for how this evil trickery works. |
745 |
- ln -s "${S}"/src/gvim "${S}"/src/testvim |
746 |
- |
747 |
- # Don't try to do the additional GUI test |
748 |
- emake -j1 VIMPROG=../testvim nongui |
749 |
-} |
750 |
- |
751 |
-# Make convenience symlinks, hopefully without stepping on toes. Some |
752 |
-# of these links are "owned" by the vim ebuild when it is installed, |
753 |
-# but they might be good for gvim as well (see bug 45828) |
754 |
-update_vim_symlinks() { |
755 |
- local f syms |
756 |
- syms="vimdiff rvim rview" |
757 |
- einfo "Calling eselect vi update..." |
758 |
- # Call this with --if-unset to respect user's choice (bug 187449) |
759 |
- eselect vi update --if-unset |
760 |
- |
761 |
- # Make or remove convenience symlink, vim -> gvim |
762 |
- if [[ -f "${EROOT}"/usr/bin/gvim ]]; then |
763 |
- ln -s gvim "${EROOT}"/usr/bin/vim 2>/dev/null |
764 |
- elif [[ -L "${EROOT}"/usr/bin/vim && ! -f "${EROOT}"/usr/bin/vim ]]; then |
765 |
- rm "${EROOT}"/usr/bin/vim |
766 |
- fi |
767 |
- |
768 |
- # Make or remove convenience symlinks to vim |
769 |
- if [[ -f "${EROOT}"/usr/bin/vim ]]; then |
770 |
- for f in ${syms}; do |
771 |
- ln -s vim "${EROOT}"/usr/bin/${f} 2>/dev/null |
772 |
- done |
773 |
- else |
774 |
- for f in ${syms}; do |
775 |
- if [[ -L "${EROOT}"/usr/bin/${f} && ! -f "${EROOT}"/usr/bin/${f} ]]; then |
776 |
- rm -f "${EROOT}"/usr/bin/${f} |
777 |
- fi |
778 |
- done |
779 |
- fi |
780 |
- |
781 |
- # This will still break if you merge then remove the vi package, |
782 |
- # but there's only so much you can do, eh? Unfortunately we don't |
783 |
- # have triggers like are done in rpm-land. |
784 |
-} |
785 |
- |
786 |
-src_install() { |
787 |
- local vimfiles=/usr/share/vim/vim${VIM_VERSION/.} |
788 |
- |
789 |
- dobin src/gvim |
790 |
- dosym gvim /usr/bin/gvimdiff |
791 |
- dosym gvim /usr/bin/evim |
792 |
- dosym gvim /usr/bin/eview |
793 |
- dosym gvim /usr/bin/gview |
794 |
- dosym gvim /usr/bin/rgvim |
795 |
- dosym gvim /usr/bin/rgview |
796 |
- |
797 |
- dodir /usr/share/man/man1 |
798 |
- echo ".so vim.1" > "${ED}"/usr/share/man/man1/gvim.1 |
799 |
- echo ".so vim.1" > "${ED}"/usr/share/man/man1/gview.1 |
800 |
- echo ".so vimdiff.1" > "${ED}"/usr/share/man/man1/gvimdiff.1 |
801 |
- |
802 |
- insinto /etc/vim |
803 |
- newins "${FILESDIR}"/gvimrc-r1 gvimrc |
804 |
- eprefixify "${ED}"/etc/vim/gvimrc |
805 |
- |
806 |
- newmenu "${FILESDIR}"/gvim.desktop-r2 gvim.desktop |
807 |
- doicon "${FILESDIR}"/gvim.xpm |
808 |
- doicon -s scalable "${FILESDIR}"/gvim.svg |
809 |
- |
810 |
- # bash completion script, bug #79018. |
811 |
- newbashcomp "${FILESDIR}"/${PN}-completion ${PN} |
812 |
- |
813 |
- # We shouldn't be installing the ex or view man page symlinks, as they |
814 |
- # are managed by eselect-vi |
815 |
- rm -f "${ED}"/usr/share/man/man1/{ex,view}.1 |
816 |
-} |
817 |
- |
818 |
-pkg_postinst() { |
819 |
- # Update documentation tags (from vim-doc.eclass) |
820 |
- update_vim_helptags |
821 |
- |
822 |
- # Update fdo mime stuff, bug #78394 |
823 |
- fdo-mime_mime_database_update |
824 |
- |
825 |
- if [[ -z ${REPLACING_VERSIONS} ]] ; then |
826 |
- echo |
827 |
- elog "Vim 7 includes an integrated spell checker. You need to install" |
828 |
- elog "word list files before you can use it. There are ebuilds for" |
829 |
- elog "some of these named app-vim/vim-spell-*. If your language of" |
830 |
- elog "choice is not included, please consult vim-spell.eclass for" |
831 |
- elog "instructions on how to make a package." |
832 |
- echo |
833 |
- ewarn "Note that the English word lists are no longer installed by" |
834 |
- ewarn "default." |
835 |
- echo |
836 |
- fi |
837 |
- |
838 |
- # Make convenience symlinks |
839 |
- update_vim_symlinks |
840 |
-} |
841 |
- |
842 |
-pkg_postrm() { |
843 |
- # Update documentation tags (from vim-doc.eclass) |
844 |
- update_vim_helptags |
845 |
- |
846 |
- # Update fdo mime stuff, bug #78394 |
847 |
- fdo-mime_mime_database_update |
848 |
- |
849 |
- # Make convenience symlinks |
850 |
- update_vim_symlinks |
851 |
-} |