1 |
commit: 4b432aba0e0fa7882ca39f46ad848e8e749149e5 |
2 |
Author: Tim Harder <radhermit <AT> gentoo <DOT> org> |
3 |
AuthorDate: Thu Sep 20 05:27:50 2018 +0000 |
4 |
Commit: Tim Harder <radhermit <AT> gentoo <DOT> org> |
5 |
CommitDate: Thu Sep 20 05:30:52 2018 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=4b432aba |
7 |
|
8 |
app-editors/gvim: remove old |
9 |
|
10 |
app-editors/gvim/Manifest | 2 - |
11 |
app-editors/gvim/gvim-8.0.1428.ebuild | 371 --------------------------------- |
12 |
app-editors/gvim/gvim-8.0.1645.ebuild | 371 --------------------------------- |
13 |
app-editors/gvim/gvim-8.0.1699.ebuild | 373 ---------------------------------- |
14 |
4 files changed, 1117 deletions(-) |
15 |
|
16 |
diff --git a/app-editors/gvim/Manifest b/app-editors/gvim/Manifest |
17 |
index 4bc82fa45ce..100f5698d8f 100644 |
18 |
--- a/app-editors/gvim/Manifest |
19 |
+++ b/app-editors/gvim/Manifest |
20 |
@@ -1,7 +1,5 @@ |
21 |
DIST vim-8.0.0938-gentoo-patches.tar.bz2 2316 BLAKE2B 05a87f32fc5cc65e7f5e4e5a87c654b2040ad39f1555ddde7e0e6f473dc8b520916a795406bb6bbeaf5e7ae8748aacebe7a9679461e48802e69417e945eea827 SHA512 a6062be5e6a5c5b437081312df5742353242b5171bf26da04aa6ca216d2b142b2411a88bc1edd460d28e00a59a210c8e1729e801fac6f1efd86bb2e437a56a2b |
22 |
DIST vim-8.0.1298.tar.gz 13395459 BLAKE2B 4b6e3c4443cd675dc3727e8609b89c422f66c7d32908b5136ee312d48427568a8236214c85135242269b6575e0e1336b0973395a6372664435f8bae4d7bee843 SHA512 7704c493359c1a922f876e4d6f3b4ad265d8ce974a59d51a39e5a4424251105250ffc803bcf6c6750daeb5e6376cbbfd24557b075eacf2b0274d7c432db2f681 |
23 |
-DIST vim-8.0.1428.tar.gz 13415243 BLAKE2B 88f86c371d0a644212b9e4dc1a15d61244847037f36262a225c361bfc2799b741c128de21ac92bb3fb4a4955894e46d34dc01baa7cbf58f1371d772b36887103 SHA512 f635c53c7e2ca808dc1cb424e6e4b16d8c41c66a86c3c7584444dab3d2482904795fea7c071d65862ae6ac6b2b66b7ad5ac832e1e30f4624d46f220c6f41e2e9 |
24 |
-DIST vim-8.0.1645.tar.gz 13535252 BLAKE2B a5c7463e85eed12825bdf46d15eb7e7513d62831eba76cbb90af875010b33662b7a6ef2c4c5cecddface415d75e97caf0a670e69835ecd3b4a89704f3b18b905 SHA512 367b9e205e776f84fcfbb92725afd5e7aa66898110d46dbea1a33f7b74c239559e829b5104c45360539c8f2b23c375ed59ccea7ee35a5dd10770400d9a7be085 |
25 |
DIST vim-8.0.1699.tar.gz 13546105 BLAKE2B cabf29d5a89c55e2fe3bc5e39eb499412f5907ddf856f8644b466f1e0fbffefff3cd801b6bc5e49e62ffdf8805b0556058b9a913015a9f9fbe1a4f580132fd49 SHA512 b0fe8e1dc05fdc3758896caf4746da40988ca7604d77dbe78c47525cbf8f0d7e6c05f690687268eda581009050d4e02e93fb4d30734cbbab4cfd6a8a1488c1e7 |
26 |
DIST vim-8.1.0034.tar.gz 13652586 BLAKE2B 98dac6b37c04ea8c15f0b0e2e4145d6529138e0532e92751fd07be04a2180519135d386dfc19e7f12c8eb37b3e15ee81ba357680d453afab56d96299b69cb511 SHA512 b2b85035c6c60a09e903d8f6deb500e42ab8bfc2f9a5b959d0055a8e02dab3a91d5460fd5028e6634c5ef6ab034186b7155e341fa25e84b9851290708e892d19 |
27 |
DIST vim-8.1.0412.tar.gz 13857501 BLAKE2B 6925184359b8b36cb546c9fcba4bb01755455aa87171ea7328ece411a5a5ced45096b8bef8561059bbff9a3ade565e0648fd18dd091d6faad0eb8a67321337a5 SHA512 3f458c039a636d7d3e398f8aa9cba4b4ae650c00038618c4776959b6feb0a1e3ac56be2912c3d85cba8e8f301661a62d71acd34a4dd75dc4dc000a94bf1b237e |
28 |
|
29 |
diff --git a/app-editors/gvim/gvim-8.0.1428.ebuild b/app-editors/gvim/gvim-8.0.1428.ebuild |
30 |
deleted file mode 100644 |
31 |
index a76719a8efa..00000000000 |
32 |
--- a/app-editors/gvim/gvim-8.0.1428.ebuild |
33 |
+++ /dev/null |
34 |
@@ -1,371 +0,0 @@ |
35 |
-# Copyright 1999-2017 Gentoo Foundation |
36 |
-# Distributed under the terms of the GNU General Public License v2 |
37 |
- |
38 |
-EAPI=6 |
39 |
-VIM_VERSION="8.0" |
40 |
-PYTHON_COMPAT=( python{2_7,3_4,3_5,3_6} ) |
41 |
-PYTHON_REQ_USE=threads |
42 |
-inherit vim-doc flag-o-matic xdg-utils gnome2-utils versionator bash-completion-r1 prefix python-single-r1 |
43 |
- |
44 |
-if [[ ${PV} == 9999* ]]; then |
45 |
- inherit git-r3 |
46 |
- EGIT_REPO_URI="https://github.com/vim/vim.git" |
47 |
- EGIT_CHECKOUT_DIR=${WORKDIR}/vim-${PV} |
48 |
-else |
49 |
- SRC_URI="https://github.com/vim/vim/archive/v${PV}.tar.gz -> vim-${PV}.tar.gz |
50 |
- https://dev.gentoo.org/~radhermit/vim/vim-8.0.0938-gentoo-patches.tar.bz2" |
51 |
- KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~ppc ~ppc64 ~sparc ~x86 ~x86-fbsd ~amd64-linux ~x86-linux ~ppc-macos ~x86-macos ~x86-solaris" |
52 |
-fi |
53 |
- |
54 |
-DESCRIPTION="GUI version of the Vim text editor" |
55 |
-HOMEPAGE="https://vim.sourceforge.io/ https://github.com/vim/vim" |
56 |
- |
57 |
-SLOT="0" |
58 |
-LICENSE="vim" |
59 |
-IUSE="acl aqua cscope debug gnome gtk gtk3 lua luajit motif neXt netbeans nls perl python racket ruby selinux session tcl" |
60 |
-REQUIRED_USE=" |
61 |
- luajit? ( lua ) |
62 |
- python? ( ${PYTHON_REQUIRED_USE} ) |
63 |
-" |
64 |
- |
65 |
-RDEPEND=" |
66 |
- ~app-editors/vim-core-${PV} |
67 |
- >=app-eselect/eselect-vi-1.1 |
68 |
- >=sys-libs/ncurses-5.2-r2:0= |
69 |
- x11-libs/libICE |
70 |
- x11-libs/libSM |
71 |
- x11-libs/libXext |
72 |
- x11-libs/libXt |
73 |
- acl? ( kernel_linux? ( sys-apps/acl ) ) |
74 |
- !aqua? ( |
75 |
- gtk3? ( |
76 |
- x11-libs/gtk+:3 |
77 |
- x11-libs/libXft |
78 |
- ) |
79 |
- !gtk3? ( |
80 |
- gtk? ( |
81 |
- >=x11-libs/gtk+-2.6:2 |
82 |
- x11-libs/libXft |
83 |
- gnome? ( >=gnome-base/libgnomeui-2.6 ) |
84 |
- ) |
85 |
- !gtk? ( |
86 |
- motif? ( >=x11-libs/motif-2.3:0 ) |
87 |
- !motif? ( |
88 |
- neXt? ( x11-libs/neXtaw ) |
89 |
- !neXt? ( x11-libs/libXaw ) |
90 |
- ) |
91 |
- ) |
92 |
- ) |
93 |
- ) |
94 |
- cscope? ( dev-util/cscope ) |
95 |
- lua? ( |
96 |
- luajit? ( dev-lang/luajit:2= ) |
97 |
- !luajit? ( dev-lang/lua:0[deprecated] ) |
98 |
- ) |
99 |
- nls? ( virtual/libintl ) |
100 |
- perl? ( dev-lang/perl:= ) |
101 |
- python? ( ${PYTHON_DEPS} ) |
102 |
- racket? ( dev-scheme/racket ) |
103 |
- ruby? ( || ( dev-lang/ruby:2.4 dev-lang/ruby:2.3 ) ) |
104 |
- selinux? ( sys-libs/libselinux ) |
105 |
- session? ( x11-libs/libSM ) |
106 |
- tcl? ( dev-lang/tcl:0= ) |
107 |
-" |
108 |
-DEPEND="${RDEPEND} |
109 |
- dev-util/ctags |
110 |
- sys-devel/autoconf |
111 |
- virtual/pkgconfig |
112 |
- nls? ( sys-devel/gettext ) |
113 |
-" |
114 |
- |
115 |
-S=${WORKDIR}/vim-${PV} |
116 |
- |
117 |
-pkg_setup() { |
118 |
- # people with broken alphabets run into trouble. bug 82186. |
119 |
- unset LANG LC_ALL |
120 |
- export LC_COLLATE="C" |
121 |
- |
122 |
- # Gnome sandbox silliness. bug #114475. |
123 |
- mkdir -p "${T}"/home || die |
124 |
- export HOME="${T}"/home |
125 |
- |
126 |
- use python && python-single-r1_pkg_setup |
127 |
-} |
128 |
- |
129 |
-src_prepare() { |
130 |
- if [[ ${PV} != 9999* ]]; then |
131 |
- # Gentoo patches to fix runtime issues, cross-compile errors, etc |
132 |
- eapply "${WORKDIR}"/patches/ |
133 |
- fi |
134 |
- |
135 |
- # Fixup a script to use awk instead of nawk |
136 |
- sed -i -e \ |
137 |
- '1s|.*|#!'"${EPREFIX}"'/usr/bin/awk -f|' \ |
138 |
- "${S}"/runtime/tools/mve.awk || die "mve.awk sed failed" |
139 |
- |
140 |
- # Read vimrc and gvimrc from /etc/vim |
141 |
- echo '#define SYS_VIMRC_FILE "'${EPREFIX}'/etc/vim/vimrc"' \ |
142 |
- >> "${S}"/src/feature.h || die "echo failed" |
143 |
- echo '#define SYS_GVIMRC_FILE "'${EPREFIX}'/etc/vim/gvimrc"' \ |
144 |
- >> "${S}"/src/feature.h || die "echo failed" |
145 |
- |
146 |
- # Use exuberant ctags which installs as /usr/bin/exuberant-ctags. |
147 |
- # Hopefully this pattern won't break for a while at least. |
148 |
- # This fixes bug 29398 (27 Sep 2003 agriffis) |
149 |
- sed -i -e \ |
150 |
- 's/\<ctags\("\| [-*.]\)/exuberant-&/g' \ |
151 |
- "${S}"/runtime/doc/syntax.txt \ |
152 |
- "${S}"/runtime/doc/tagsrch.txt \ |
153 |
- "${S}"/runtime/doc/usr_29.txt \ |
154 |
- "${S}"/runtime/menu.vim \ |
155 |
- "${S}"/src/configure.ac || die 'sed failed' |
156 |
- |
157 |
- # Don't be fooled by /usr/include/libc.h. When found, vim thinks |
158 |
- # this is NeXT, but it's actually just a file in dev-libs/9libs |
159 |
- # This fixes bug 43885 (20 Mar 2004 agriffis) |
160 |
- sed -i -e \ |
161 |
- 's/ libc\.h / /' "${S}"/src/configure.ac || die 'sed failed' |
162 |
- |
163 |
- # gcc on sparc32 has this, uhm, interesting problem with detecting EOF |
164 |
- # correctly. To avoid some really entertaining error messages about stuff |
165 |
- # which isn't even in the source file being invalid, we'll do some trickery |
166 |
- # to make the error never occur. bug 66162 (02 October 2004 ciaranm) |
167 |
- find "${S}" -name '*.c' | while read c; do |
168 |
- echo >> "$c" || die "echo failed" |
169 |
- done |
170 |
- |
171 |
- # Try to avoid sandbox problems. Bug #114475. |
172 |
- if [[ -d "${S}"/src/po ]]; then |
173 |
- sed -i -e \ |
174 |
- '/-S check.vim/s,..VIM.,ln -s $(VIM) testvim \; ./testvim -X,' \ |
175 |
- "${S}"/src/po/Makefile || die |
176 |
- fi |
177 |
- |
178 |
- cp -v "${S}"/src/config.mk.dist "${S}"/src/auto/config.mk || die "cp failed" |
179 |
- |
180 |
- # Bug #378107 - Build properly with >=perl-core/ExtUtils-ParseXS-3.20.0 |
181 |
- sed -i -e \ |
182 |
- "s:\\\$(PERLLIB)/ExtUtils/xsubpp:${EPREFIX}/usr/bin/xsubpp:" \ |
183 |
- "${S}"/src/Makefile || die 'sed for ExtUtils-ParseXS failed' |
184 |
- |
185 |
- eapply_user |
186 |
-} |
187 |
- |
188 |
-src_configure() { |
189 |
- local myconf=() |
190 |
- |
191 |
- # Fix bug 37354: Disallow -funroll-all-loops on amd64 |
192 |
- # Bug 57859 suggests that we want to do this for all archs |
193 |
- filter-flags -funroll-all-loops |
194 |
- |
195 |
- # Fix bug 76331: -O3 causes problems, use -O2 instead. We'll do this for |
196 |
- # everyone since previous flag filtering bugs have turned out to affect |
197 |
- # multiple archs... |
198 |
- replace-flags -O3 -O2 |
199 |
- |
200 |
- # Fix bug 18245: Prevent "make" from the following chain: |
201 |
- # (1) Notice configure.ac is newer than auto/configure |
202 |
- # (2) Rebuild auto/configure |
203 |
- # (3) Notice auto/configure is newer than auto/config.mk |
204 |
- # (4) Run ./configure (with wrong args) to remake auto/config.mk |
205 |
- sed -i -e \ |
206 |
- 's# auto/config\.mk:#:#' src/Makefile || die "Makefile sed failed" |
207 |
- rm -v src/auto/configure || die "rm failed" |
208 |
- emake -j1 -C src autoconf |
209 |
- |
210 |
- # This should fix a sandbox violation (see bug 24447). The hvc |
211 |
- # things are for ppc64, see bug 86433. |
212 |
- local file |
213 |
- for file in /dev/pty/s* /dev/console /dev/hvc/* /dev/hvc*; do |
214 |
- if [[ -e ${file} ]]; then |
215 |
- addwrite $file |
216 |
- fi |
217 |
- done |
218 |
- |
219 |
- use debug && append-flags "-DDEBUG" |
220 |
- |
221 |
- myconf=( |
222 |
- --with-features=huge |
223 |
- --disable-gpm |
224 |
- --enable-multibyte |
225 |
- $(use_enable acl) |
226 |
- $(use_enable cscope) |
227 |
- $(use_enable lua luainterp) |
228 |
- $(use_with luajit) |
229 |
- $(use_enable netbeans) |
230 |
- $(use_enable nls) |
231 |
- $(use_enable perl perlinterp) |
232 |
- $(use_enable python pythoninterp) |
233 |
- $(use_enable python python3interp) |
234 |
- $(use_enable racket mzschemeinterp) |
235 |
- $(use_enable ruby rubyinterp) |
236 |
- $(use_enable selinux) |
237 |
- $(use_enable session xsmp) |
238 |
- $(use_enable tcl tclinterp) |
239 |
- ) |
240 |
- |
241 |
- # --with-features=huge forces on cscope even if we --disable it. We need |
242 |
- # to sed this out to avoid screwiness. (1 Sep 2004 ciaranm) |
243 |
- if ! use cscope; then |
244 |
- sed -i -e \ |
245 |
- '/# define FEAT_CSCOPE/d' src/feature.h || die "couldn't disable cscope" |
246 |
- fi |
247 |
- |
248 |
- # gvim's GUI preference order is as follows: |
249 |
- # aqua CARBON (not tested) |
250 |
- # -aqua gtk3 GTK3 |
251 |
- # -aqua -gtk3 gnome GNOME2 |
252 |
- # -aqua -gtk3 -gnome gtk GTK2 |
253 |
- # -aqua -gtk -gtk3 motif MOTIF |
254 |
- # -aqua -gtk -gtk3 -motif neXt NEXTAW |
255 |
- # -aqua -gtk -gtk3 -motif -neXt ATHENA |
256 |
- echo ; echo |
257 |
- if use aqua; then |
258 |
- einfo "Building gvim with the Carbon GUI" |
259 |
- myconf+=( |
260 |
- --enable-darwin |
261 |
- --enable-gui=carbon |
262 |
- ) |
263 |
- elif use gtk3; then |
264 |
- myconf+=( --enable-gtk3-check ) |
265 |
- einfo "Building gvim with the gtk+-3 GUI" |
266 |
- myconf+=( --enable-gui=gtk3 ) |
267 |
- elif use gtk; then |
268 |
- myconf+=( --enable-gtk2-check ) |
269 |
- if use gnome; then |
270 |
- einfo "Building gvim with the Gnome 2 GUI" |
271 |
- myconf+=( --enable-gui=gnome2 ) |
272 |
- else |
273 |
- einfo "Building gvim with the gtk+-2 GUI" |
274 |
- myconf+=( --enable-gui=gtk2 ) |
275 |
- fi |
276 |
- elif use motif; then |
277 |
- einfo "Building gvim with the MOTIF GUI" |
278 |
- myconf+=( --enable-gui=motif ) |
279 |
- elif use neXt; then |
280 |
- einfo "Building gvim with the neXtaw GUI" |
281 |
- myconf+=( --enable-gui=nextaw ) |
282 |
- else |
283 |
- einfo "Building gvim with the Athena GUI" |
284 |
- myconf+=( --enable-gui=athena ) |
285 |
- fi |
286 |
- echo ; echo |
287 |
- |
288 |
- # let package manager strip binaries |
289 |
- export ac_cv_prog_STRIP="$(type -P true ) faking strip" |
290 |
- |
291 |
- # keep prefix env contained within the EPREFIX |
292 |
- use prefix && myconf+=( --without-local-dir ) |
293 |
- |
294 |
- if [[ ${CHOST} == *-interix* ]]; then |
295 |
- # avoid finding of this function, to avoid having to patch either |
296 |
- # configure or the source, which would be much more hackish. |
297 |
- # after all vim does it right, only interix is badly broken (again) |
298 |
- export ac_cv_func_sigaction=no |
299 |
- fi |
300 |
- |
301 |
- econf \ |
302 |
- --with-modified-by=Gentoo-${PVR} \ |
303 |
- --with-vim-name=gvim \ |
304 |
- --with-x \ |
305 |
- "${myconf[@]}" |
306 |
-} |
307 |
- |
308 |
-src_compile() { |
309 |
- # The following allows emake to be used |
310 |
- emake -j1 -C src auto/osdef.h objects |
311 |
- |
312 |
- emake |
313 |
-} |
314 |
- |
315 |
-src_test() { |
316 |
- echo |
317 |
- einfo "Starting vim tests. Several error messages will be shown" |
318 |
- einfo "while the tests run. This is normal behaviour and does not" |
319 |
- einfo "indicate a fault." |
320 |
- echo |
321 |
- ewarn "If the tests fail, your terminal may be left in a strange" |
322 |
- ewarn "state. Usually, running 'reset' will fix this." |
323 |
- echo |
324 |
- |
325 |
- # Don't let vim talk to X |
326 |
- unset DISPLAY |
327 |
- |
328 |
- # Make gvim not try to connect to X. See :help gui-x11-start in vim for how |
329 |
- # this evil trickery works. |
330 |
- ln -s "${S}"/src/gvim "${S}"/src/testvim || die |
331 |
- |
332 |
- # Make sure our VIMPROG is used. |
333 |
- sed -i -e 's:\.\./vim:../testvim:' src/testdir/test49.vim || die |
334 |
- |
335 |
- # Don't do additional GUI tests. |
336 |
- emake -j1 VIMPROG=../testvim -C src/testdir nongui |
337 |
-} |
338 |
- |
339 |
-# Call eselect vi update with --if-unset |
340 |
-# to respect user's choice (bug 187449) |
341 |
-eselect_vi_update() { |
342 |
- einfo "Calling eselect vi update..." |
343 |
- eselect vi update --if-unset |
344 |
- eend $? |
345 |
-} |
346 |
- |
347 |
-src_install() { |
348 |
- local vimfiles=/usr/share/vim/vim${VIM_VERSION/.} |
349 |
- |
350 |
- dobin src/gvim |
351 |
- dosym gvim /usr/bin/gvimdiff |
352 |
- dosym gvim /usr/bin/evim |
353 |
- dosym gvim /usr/bin/eview |
354 |
- dosym gvim /usr/bin/gview |
355 |
- dosym gvim /usr/bin/rgvim |
356 |
- dosym gvim /usr/bin/rgview |
357 |
- |
358 |
- emake -C src DESTDIR="${D}" DATADIR="${EPREFIX}"/usr/share install-icons |
359 |
- |
360 |
- dodir /usr/share/man/man1 |
361 |
- echo ".so vim.1" > "${ED}"/usr/share/man/man1/gvim.1 || die "echo failed" |
362 |
- echo ".so vim.1" > "${ED}"/usr/share/man/man1/gview.1 || die "echo failed" |
363 |
- echo ".so vimdiff.1" > "${ED}"/usr/share/man/man1/gvimdiff.1 || \ |
364 |
- die "echo failed" |
365 |
- |
366 |
- insinto /etc/vim |
367 |
- newins "${FILESDIR}"/gvimrc-r1 gvimrc |
368 |
- eprefixify "${ED}"/etc/vim/gvimrc |
369 |
- |
370 |
- doicon -s scalable "${FILESDIR}"/gvim.svg |
371 |
- |
372 |
- # bash completion script, bug #79018. |
373 |
- newbashcomp "${FILESDIR}"/${PN}-completion ${PN} |
374 |
- |
375 |
- # don't install vim desktop file |
376 |
- rm -v "${ED}"/usr/share/applications/vim.desktop || die "failed to remove vim.desktop" |
377 |
-} |
378 |
- |
379 |
-pkg_postinst() { |
380 |
- # Update documentation tags (from vim-doc.eclass) |
381 |
- update_vim_helptags |
382 |
- |
383 |
- # Update fdo mime stuff, bug #78394 |
384 |
- xdg_desktop_database_update |
385 |
- |
386 |
- # Update icon cache |
387 |
- gnome2_icon_cache_update |
388 |
- |
389 |
- # Call eselect vi update |
390 |
- eselect_vi_update |
391 |
-} |
392 |
- |
393 |
-pkg_postrm() { |
394 |
- # Update documentation tags (from vim-doc.eclass) |
395 |
- update_vim_helptags |
396 |
- |
397 |
- # Update fdo mime stuff, bug #78394 |
398 |
- xdg_desktop_database_update |
399 |
- |
400 |
- # Update icon cache |
401 |
- gnome2_icon_cache_update |
402 |
- |
403 |
- # Call eselect vi update |
404 |
- eselect_vi_update |
405 |
-} |
406 |
|
407 |
diff --git a/app-editors/gvim/gvim-8.0.1645.ebuild b/app-editors/gvim/gvim-8.0.1645.ebuild |
408 |
deleted file mode 100644 |
409 |
index cfd90d48751..00000000000 |
410 |
--- a/app-editors/gvim/gvim-8.0.1645.ebuild |
411 |
+++ /dev/null |
412 |
@@ -1,371 +0,0 @@ |
413 |
-# Copyright 1999-2018 Gentoo Foundation |
414 |
-# Distributed under the terms of the GNU General Public License v2 |
415 |
- |
416 |
-EAPI=6 |
417 |
-VIM_VERSION="8.0" |
418 |
-PYTHON_COMPAT=( python{2_7,3_4,3_5,3_6} ) |
419 |
-PYTHON_REQ_USE=threads |
420 |
-inherit vim-doc flag-o-matic xdg-utils gnome2-utils versionator bash-completion-r1 prefix python-single-r1 |
421 |
- |
422 |
-if [[ ${PV} == 9999* ]]; then |
423 |
- inherit git-r3 |
424 |
- EGIT_REPO_URI="https://github.com/vim/vim.git" |
425 |
- EGIT_CHECKOUT_DIR=${WORKDIR}/vim-${PV} |
426 |
-else |
427 |
- SRC_URI="https://github.com/vim/vim/archive/v${PV}.tar.gz -> vim-${PV}.tar.gz |
428 |
- https://dev.gentoo.org/~radhermit/vim/vim-8.0.0938-gentoo-patches.tar.bz2" |
429 |
- KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~ppc ~ppc64 ~sparc ~x86 ~x86-fbsd ~amd64-linux ~x86-linux ~ppc-macos ~x86-macos ~x86-solaris" |
430 |
-fi |
431 |
- |
432 |
-DESCRIPTION="GUI version of the Vim text editor" |
433 |
-HOMEPAGE="https://vim.sourceforge.io/ https://github.com/vim/vim" |
434 |
- |
435 |
-SLOT="0" |
436 |
-LICENSE="vim" |
437 |
-IUSE="acl aqua cscope debug gnome gtk gtk3 lua luajit motif neXt netbeans nls perl python racket ruby selinux session tcl" |
438 |
-REQUIRED_USE=" |
439 |
- luajit? ( lua ) |
440 |
- python? ( ${PYTHON_REQUIRED_USE} ) |
441 |
-" |
442 |
- |
443 |
-RDEPEND=" |
444 |
- ~app-editors/vim-core-${PV} |
445 |
- >=app-eselect/eselect-vi-1.1 |
446 |
- >=sys-libs/ncurses-5.2-r2:0= |
447 |
- x11-libs/libICE |
448 |
- x11-libs/libSM |
449 |
- x11-libs/libXext |
450 |
- x11-libs/libXt |
451 |
- acl? ( kernel_linux? ( sys-apps/acl ) ) |
452 |
- !aqua? ( |
453 |
- gtk3? ( |
454 |
- x11-libs/gtk+:3 |
455 |
- x11-libs/libXft |
456 |
- ) |
457 |
- !gtk3? ( |
458 |
- gtk? ( |
459 |
- >=x11-libs/gtk+-2.6:2 |
460 |
- x11-libs/libXft |
461 |
- gnome? ( >=gnome-base/libgnomeui-2.6 ) |
462 |
- ) |
463 |
- !gtk? ( |
464 |
- motif? ( >=x11-libs/motif-2.3:0 ) |
465 |
- !motif? ( |
466 |
- neXt? ( x11-libs/neXtaw ) |
467 |
- !neXt? ( x11-libs/libXaw ) |
468 |
- ) |
469 |
- ) |
470 |
- ) |
471 |
- ) |
472 |
- cscope? ( dev-util/cscope ) |
473 |
- lua? ( |
474 |
- luajit? ( dev-lang/luajit:2= ) |
475 |
- !luajit? ( dev-lang/lua:0[deprecated] ) |
476 |
- ) |
477 |
- nls? ( virtual/libintl ) |
478 |
- perl? ( dev-lang/perl:= ) |
479 |
- python? ( ${PYTHON_DEPS} ) |
480 |
- racket? ( dev-scheme/racket ) |
481 |
- ruby? ( || ( dev-lang/ruby:2.5 dev-lang/ruby:2.4 dev-lang/ruby:2.3 ) ) |
482 |
- selinux? ( sys-libs/libselinux ) |
483 |
- session? ( x11-libs/libSM ) |
484 |
- tcl? ( dev-lang/tcl:0= ) |
485 |
-" |
486 |
-DEPEND="${RDEPEND} |
487 |
- dev-util/ctags |
488 |
- sys-devel/autoconf |
489 |
- virtual/pkgconfig |
490 |
- nls? ( sys-devel/gettext ) |
491 |
-" |
492 |
- |
493 |
-S=${WORKDIR}/vim-${PV} |
494 |
- |
495 |
-pkg_setup() { |
496 |
- # people with broken alphabets run into trouble. bug 82186. |
497 |
- unset LANG LC_ALL |
498 |
- export LC_COLLATE="C" |
499 |
- |
500 |
- # Gnome sandbox silliness. bug #114475. |
501 |
- mkdir -p "${T}"/home || die |
502 |
- export HOME="${T}"/home |
503 |
- |
504 |
- use python && python-single-r1_pkg_setup |
505 |
-} |
506 |
- |
507 |
-src_prepare() { |
508 |
- if [[ ${PV} != 9999* ]]; then |
509 |
- # Gentoo patches to fix runtime issues, cross-compile errors, etc |
510 |
- eapply "${WORKDIR}"/patches/ |
511 |
- fi |
512 |
- |
513 |
- # Fixup a script to use awk instead of nawk |
514 |
- sed -i -e \ |
515 |
- '1s|.*|#!'"${EPREFIX}"'/usr/bin/awk -f|' \ |
516 |
- "${S}"/runtime/tools/mve.awk || die "mve.awk sed failed" |
517 |
- |
518 |
- # Read vimrc and gvimrc from /etc/vim |
519 |
- echo '#define SYS_VIMRC_FILE "'${EPREFIX}'/etc/vim/vimrc"' \ |
520 |
- >> "${S}"/src/feature.h || die "echo failed" |
521 |
- echo '#define SYS_GVIMRC_FILE "'${EPREFIX}'/etc/vim/gvimrc"' \ |
522 |
- >> "${S}"/src/feature.h || die "echo failed" |
523 |
- |
524 |
- # Use exuberant ctags which installs as /usr/bin/exuberant-ctags. |
525 |
- # Hopefully this pattern won't break for a while at least. |
526 |
- # This fixes bug 29398 (27 Sep 2003 agriffis) |
527 |
- sed -i -e \ |
528 |
- 's/\<ctags\("\| [-*.]\)/exuberant-&/g' \ |
529 |
- "${S}"/runtime/doc/syntax.txt \ |
530 |
- "${S}"/runtime/doc/tagsrch.txt \ |
531 |
- "${S}"/runtime/doc/usr_29.txt \ |
532 |
- "${S}"/runtime/menu.vim \ |
533 |
- "${S}"/src/configure.ac || die 'sed failed' |
534 |
- |
535 |
- # Don't be fooled by /usr/include/libc.h. When found, vim thinks |
536 |
- # this is NeXT, but it's actually just a file in dev-libs/9libs |
537 |
- # This fixes bug 43885 (20 Mar 2004 agriffis) |
538 |
- sed -i -e \ |
539 |
- 's/ libc\.h / /' "${S}"/src/configure.ac || die 'sed failed' |
540 |
- |
541 |
- # gcc on sparc32 has this, uhm, interesting problem with detecting EOF |
542 |
- # correctly. To avoid some really entertaining error messages about stuff |
543 |
- # which isn't even in the source file being invalid, we'll do some trickery |
544 |
- # to make the error never occur. bug 66162 (02 October 2004 ciaranm) |
545 |
- find "${S}" -name '*.c' | while read c; do |
546 |
- echo >> "$c" || die "echo failed" |
547 |
- done |
548 |
- |
549 |
- # Try to avoid sandbox problems. Bug #114475. |
550 |
- if [[ -d "${S}"/src/po ]]; then |
551 |
- sed -i -e \ |
552 |
- '/-S check.vim/s,..VIM.,ln -s $(VIM) testvim \; ./testvim -X,' \ |
553 |
- "${S}"/src/po/Makefile || die |
554 |
- fi |
555 |
- |
556 |
- cp -v "${S}"/src/config.mk.dist "${S}"/src/auto/config.mk || die "cp failed" |
557 |
- |
558 |
- # Bug #378107 - Build properly with >=perl-core/ExtUtils-ParseXS-3.20.0 |
559 |
- sed -i -e \ |
560 |
- "s:\\\$(PERLLIB)/ExtUtils/xsubpp:${EPREFIX}/usr/bin/xsubpp:" \ |
561 |
- "${S}"/src/Makefile || die 'sed for ExtUtils-ParseXS failed' |
562 |
- |
563 |
- eapply_user |
564 |
-} |
565 |
- |
566 |
-src_configure() { |
567 |
- local myconf=() |
568 |
- |
569 |
- # Fix bug 37354: Disallow -funroll-all-loops on amd64 |
570 |
- # Bug 57859 suggests that we want to do this for all archs |
571 |
- filter-flags -funroll-all-loops |
572 |
- |
573 |
- # Fix bug 76331: -O3 causes problems, use -O2 instead. We'll do this for |
574 |
- # everyone since previous flag filtering bugs have turned out to affect |
575 |
- # multiple archs... |
576 |
- replace-flags -O3 -O2 |
577 |
- |
578 |
- # Fix bug 18245: Prevent "make" from the following chain: |
579 |
- # (1) Notice configure.ac is newer than auto/configure |
580 |
- # (2) Rebuild auto/configure |
581 |
- # (3) Notice auto/configure is newer than auto/config.mk |
582 |
- # (4) Run ./configure (with wrong args) to remake auto/config.mk |
583 |
- sed -i -e \ |
584 |
- 's# auto/config\.mk:#:#' src/Makefile || die "Makefile sed failed" |
585 |
- rm -v src/auto/configure || die "rm failed" |
586 |
- emake -j1 -C src autoconf |
587 |
- |
588 |
- # This should fix a sandbox violation (see bug 24447). The hvc |
589 |
- # things are for ppc64, see bug 86433. |
590 |
- local file |
591 |
- for file in /dev/pty/s* /dev/console /dev/hvc/* /dev/hvc*; do |
592 |
- if [[ -e ${file} ]]; then |
593 |
- addwrite $file |
594 |
- fi |
595 |
- done |
596 |
- |
597 |
- use debug && append-flags "-DDEBUG" |
598 |
- |
599 |
- myconf=( |
600 |
- --with-features=huge |
601 |
- --disable-gpm |
602 |
- --enable-multibyte |
603 |
- $(use_enable acl) |
604 |
- $(use_enable cscope) |
605 |
- $(use_enable lua luainterp) |
606 |
- $(use_with luajit) |
607 |
- $(use_enable netbeans) |
608 |
- $(use_enable nls) |
609 |
- $(use_enable perl perlinterp) |
610 |
- $(use_enable python pythoninterp) |
611 |
- $(use_enable python python3interp) |
612 |
- $(use_enable racket mzschemeinterp) |
613 |
- $(use_enable ruby rubyinterp) |
614 |
- $(use_enable selinux) |
615 |
- $(use_enable session xsmp) |
616 |
- $(use_enable tcl tclinterp) |
617 |
- ) |
618 |
- |
619 |
- # --with-features=huge forces on cscope even if we --disable it. We need |
620 |
- # to sed this out to avoid screwiness. (1 Sep 2004 ciaranm) |
621 |
- if ! use cscope; then |
622 |
- sed -i -e \ |
623 |
- '/# define FEAT_CSCOPE/d' src/feature.h || die "couldn't disable cscope" |
624 |
- fi |
625 |
- |
626 |
- # gvim's GUI preference order is as follows: |
627 |
- # aqua CARBON (not tested) |
628 |
- # -aqua gtk3 GTK3 |
629 |
- # -aqua -gtk3 gnome GNOME2 |
630 |
- # -aqua -gtk3 -gnome gtk GTK2 |
631 |
- # -aqua -gtk -gtk3 motif MOTIF |
632 |
- # -aqua -gtk -gtk3 -motif neXt NEXTAW |
633 |
- # -aqua -gtk -gtk3 -motif -neXt ATHENA |
634 |
- echo ; echo |
635 |
- if use aqua; then |
636 |
- einfo "Building gvim with the Carbon GUI" |
637 |
- myconf+=( |
638 |
- --enable-darwin |
639 |
- --enable-gui=carbon |
640 |
- ) |
641 |
- elif use gtk3; then |
642 |
- myconf+=( --enable-gtk3-check ) |
643 |
- einfo "Building gvim with the gtk+-3 GUI" |
644 |
- myconf+=( --enable-gui=gtk3 ) |
645 |
- elif use gtk; then |
646 |
- myconf+=( --enable-gtk2-check ) |
647 |
- if use gnome; then |
648 |
- einfo "Building gvim with the Gnome 2 GUI" |
649 |
- myconf+=( --enable-gui=gnome2 ) |
650 |
- else |
651 |
- einfo "Building gvim with the gtk+-2 GUI" |
652 |
- myconf+=( --enable-gui=gtk2 ) |
653 |
- fi |
654 |
- elif use motif; then |
655 |
- einfo "Building gvim with the MOTIF GUI" |
656 |
- myconf+=( --enable-gui=motif ) |
657 |
- elif use neXt; then |
658 |
- einfo "Building gvim with the neXtaw GUI" |
659 |
- myconf+=( --enable-gui=nextaw ) |
660 |
- else |
661 |
- einfo "Building gvim with the Athena GUI" |
662 |
- myconf+=( --enable-gui=athena ) |
663 |
- fi |
664 |
- echo ; echo |
665 |
- |
666 |
- # let package manager strip binaries |
667 |
- export ac_cv_prog_STRIP="$(type -P true ) faking strip" |
668 |
- |
669 |
- # keep prefix env contained within the EPREFIX |
670 |
- use prefix && myconf+=( --without-local-dir ) |
671 |
- |
672 |
- if [[ ${CHOST} == *-interix* ]]; then |
673 |
- # avoid finding of this function, to avoid having to patch either |
674 |
- # configure or the source, which would be much more hackish. |
675 |
- # after all vim does it right, only interix is badly broken (again) |
676 |
- export ac_cv_func_sigaction=no |
677 |
- fi |
678 |
- |
679 |
- econf \ |
680 |
- --with-modified-by=Gentoo-${PVR} \ |
681 |
- --with-vim-name=gvim \ |
682 |
- --with-x \ |
683 |
- "${myconf[@]}" |
684 |
-} |
685 |
- |
686 |
-src_compile() { |
687 |
- # The following allows emake to be used |
688 |
- emake -j1 -C src auto/osdef.h objects |
689 |
- |
690 |
- emake |
691 |
-} |
692 |
- |
693 |
-src_test() { |
694 |
- echo |
695 |
- einfo "Starting vim tests. Several error messages will be shown" |
696 |
- einfo "while the tests run. This is normal behaviour and does not" |
697 |
- einfo "indicate a fault." |
698 |
- echo |
699 |
- ewarn "If the tests fail, your terminal may be left in a strange" |
700 |
- ewarn "state. Usually, running 'reset' will fix this." |
701 |
- echo |
702 |
- |
703 |
- # Don't let vim talk to X |
704 |
- unset DISPLAY |
705 |
- |
706 |
- # Make gvim not try to connect to X. See :help gui-x11-start in vim for how |
707 |
- # this evil trickery works. |
708 |
- ln -s "${S}"/src/gvim "${S}"/src/testvim || die |
709 |
- |
710 |
- # Make sure our VIMPROG is used. |
711 |
- sed -i -e 's:\.\./vim:../testvim:' src/testdir/test49.vim || die |
712 |
- |
713 |
- # Don't do additional GUI tests. |
714 |
- emake -j1 VIMPROG=../testvim -C src/testdir nongui |
715 |
-} |
716 |
- |
717 |
-# Call eselect vi update with --if-unset |
718 |
-# to respect user's choice (bug 187449) |
719 |
-eselect_vi_update() { |
720 |
- einfo "Calling eselect vi update..." |
721 |
- eselect vi update --if-unset |
722 |
- eend $? |
723 |
-} |
724 |
- |
725 |
-src_install() { |
726 |
- local vimfiles=/usr/share/vim/vim${VIM_VERSION/.} |
727 |
- |
728 |
- dobin src/gvim |
729 |
- dosym gvim /usr/bin/gvimdiff |
730 |
- dosym gvim /usr/bin/evim |
731 |
- dosym gvim /usr/bin/eview |
732 |
- dosym gvim /usr/bin/gview |
733 |
- dosym gvim /usr/bin/rgvim |
734 |
- dosym gvim /usr/bin/rgview |
735 |
- |
736 |
- emake -C src DESTDIR="${D}" DATADIR="${EPREFIX}"/usr/share install-icons |
737 |
- |
738 |
- dodir /usr/share/man/man1 |
739 |
- echo ".so vim.1" > "${ED}"/usr/share/man/man1/gvim.1 || die "echo failed" |
740 |
- echo ".so vim.1" > "${ED}"/usr/share/man/man1/gview.1 || die "echo failed" |
741 |
- echo ".so vimdiff.1" > "${ED}"/usr/share/man/man1/gvimdiff.1 || \ |
742 |
- die "echo failed" |
743 |
- |
744 |
- insinto /etc/vim |
745 |
- newins "${FILESDIR}"/gvimrc-r1 gvimrc |
746 |
- eprefixify "${ED}"/etc/vim/gvimrc |
747 |
- |
748 |
- doicon -s scalable "${FILESDIR}"/gvim.svg |
749 |
- |
750 |
- # bash completion script, bug #79018. |
751 |
- newbashcomp "${FILESDIR}"/${PN}-completion ${PN} |
752 |
- |
753 |
- # don't install vim desktop file |
754 |
- rm -v "${ED}"/usr/share/applications/vim.desktop || die "failed to remove vim.desktop" |
755 |
-} |
756 |
- |
757 |
-pkg_postinst() { |
758 |
- # Update documentation tags (from vim-doc.eclass) |
759 |
- update_vim_helptags |
760 |
- |
761 |
- # Update fdo mime stuff, bug #78394 |
762 |
- xdg_desktop_database_update |
763 |
- |
764 |
- # Update icon cache |
765 |
- gnome2_icon_cache_update |
766 |
- |
767 |
- # Call eselect vi update |
768 |
- eselect_vi_update |
769 |
-} |
770 |
- |
771 |
-pkg_postrm() { |
772 |
- # Update documentation tags (from vim-doc.eclass) |
773 |
- update_vim_helptags |
774 |
- |
775 |
- # Update fdo mime stuff, bug #78394 |
776 |
- xdg_desktop_database_update |
777 |
- |
778 |
- # Update icon cache |
779 |
- gnome2_icon_cache_update |
780 |
- |
781 |
- # Call eselect vi update |
782 |
- eselect_vi_update |
783 |
-} |
784 |
|
785 |
diff --git a/app-editors/gvim/gvim-8.0.1699.ebuild b/app-editors/gvim/gvim-8.0.1699.ebuild |
786 |
deleted file mode 100644 |
787 |
index 4648c06a9cf..00000000000 |
788 |
--- a/app-editors/gvim/gvim-8.0.1699.ebuild |
789 |
+++ /dev/null |
790 |
@@ -1,373 +0,0 @@ |
791 |
-# Copyright 1999-2018 Gentoo Foundation |
792 |
-# Distributed under the terms of the GNU General Public License v2 |
793 |
- |
794 |
-EAPI=6 |
795 |
-VIM_VERSION="8.0" |
796 |
-PYTHON_COMPAT=( python{2_7,3_4,3_5,3_6} ) |
797 |
-PYTHON_REQ_USE="threads" |
798 |
-USE_RUBY="ruby23 ruby24 ruby25" |
799 |
- |
800 |
-inherit vim-doc flag-o-matic xdg-utils gnome2-utils versionator bash-completion-r1 prefix python-single-r1 ruby-single |
801 |
- |
802 |
-if [[ ${PV} == 9999* ]]; then |
803 |
- inherit git-r3 |
804 |
- EGIT_REPO_URI="https://github.com/vim/vim.git" |
805 |
- EGIT_CHECKOUT_DIR=${WORKDIR}/vim-${PV} |
806 |
-else |
807 |
- SRC_URI="https://github.com/vim/vim/archive/v${PV}.tar.gz -> vim-${PV}.tar.gz |
808 |
- https://dev.gentoo.org/~radhermit/vim/vim-8.0.0938-gentoo-patches.tar.bz2" |
809 |
- KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~ppc ~ppc64 ~sparc ~x86 ~x86-fbsd ~amd64-linux ~x86-linux ~ppc-macos ~x86-macos ~x86-solaris" |
810 |
-fi |
811 |
- |
812 |
-DESCRIPTION="GUI version of the Vim text editor" |
813 |
-HOMEPAGE="https://vim.sourceforge.io/ https://github.com/vim/vim" |
814 |
- |
815 |
-SLOT="0" |
816 |
-LICENSE="vim" |
817 |
-IUSE="acl aqua cscope debug gnome gtk gtk3 lua luajit motif neXt netbeans nls perl python racket ruby selinux session tcl" |
818 |
-REQUIRED_USE=" |
819 |
- luajit? ( lua ) |
820 |
- python? ( ${PYTHON_REQUIRED_USE} ) |
821 |
-" |
822 |
- |
823 |
-RDEPEND=" |
824 |
- ~app-editors/vim-core-${PV} |
825 |
- >=app-eselect/eselect-vi-1.1 |
826 |
- >=sys-libs/ncurses-5.2-r2:0= |
827 |
- x11-libs/libICE |
828 |
- x11-libs/libSM |
829 |
- x11-libs/libXext |
830 |
- x11-libs/libXt |
831 |
- acl? ( kernel_linux? ( sys-apps/acl ) ) |
832 |
- !aqua? ( |
833 |
- gtk3? ( |
834 |
- x11-libs/gtk+:3 |
835 |
- x11-libs/libXft |
836 |
- ) |
837 |
- !gtk3? ( |
838 |
- gtk? ( |
839 |
- >=x11-libs/gtk+-2.6:2 |
840 |
- x11-libs/libXft |
841 |
- gnome? ( >=gnome-base/libgnomeui-2.6 ) |
842 |
- ) |
843 |
- !gtk? ( |
844 |
- motif? ( >=x11-libs/motif-2.3:0 ) |
845 |
- !motif? ( |
846 |
- neXt? ( x11-libs/neXtaw ) |
847 |
- !neXt? ( x11-libs/libXaw ) |
848 |
- ) |
849 |
- ) |
850 |
- ) |
851 |
- ) |
852 |
- cscope? ( dev-util/cscope ) |
853 |
- lua? ( |
854 |
- luajit? ( dev-lang/luajit:2= ) |
855 |
- !luajit? ( dev-lang/lua:0[deprecated] ) |
856 |
- ) |
857 |
- nls? ( virtual/libintl ) |
858 |
- perl? ( dev-lang/perl:= ) |
859 |
- python? ( ${PYTHON_DEPS} ) |
860 |
- racket? ( dev-scheme/racket ) |
861 |
- ruby? ( ${RUBY_DEPS} ) |
862 |
- selinux? ( sys-libs/libselinux ) |
863 |
- session? ( x11-libs/libSM ) |
864 |
- tcl? ( dev-lang/tcl:0= ) |
865 |
-" |
866 |
-DEPEND="${RDEPEND} |
867 |
- dev-util/ctags |
868 |
- sys-devel/autoconf |
869 |
- virtual/pkgconfig |
870 |
- nls? ( sys-devel/gettext ) |
871 |
-" |
872 |
- |
873 |
-S=${WORKDIR}/vim-${PV} |
874 |
- |
875 |
-pkg_setup() { |
876 |
- # people with broken alphabets run into trouble. bug 82186. |
877 |
- unset LANG LC_ALL |
878 |
- export LC_COLLATE="C" |
879 |
- |
880 |
- # Gnome sandbox silliness. bug #114475. |
881 |
- mkdir -p "${T}"/home || die |
882 |
- export HOME="${T}"/home |
883 |
- |
884 |
- use python && python-single-r1_pkg_setup |
885 |
-} |
886 |
- |
887 |
-src_prepare() { |
888 |
- if [[ ${PV} != 9999* ]]; then |
889 |
- # Gentoo patches to fix runtime issues, cross-compile errors, etc |
890 |
- eapply "${WORKDIR}"/patches/ |
891 |
- fi |
892 |
- |
893 |
- # Fixup a script to use awk instead of nawk |
894 |
- sed -i -e \ |
895 |
- '1s|.*|#!'"${EPREFIX}"'/usr/bin/awk -f|' \ |
896 |
- "${S}"/runtime/tools/mve.awk || die "mve.awk sed failed" |
897 |
- |
898 |
- # Read vimrc and gvimrc from /etc/vim |
899 |
- echo '#define SYS_VIMRC_FILE "'${EPREFIX}'/etc/vim/vimrc"' \ |
900 |
- >> "${S}"/src/feature.h || die "echo failed" |
901 |
- echo '#define SYS_GVIMRC_FILE "'${EPREFIX}'/etc/vim/gvimrc"' \ |
902 |
- >> "${S}"/src/feature.h || die "echo failed" |
903 |
- |
904 |
- # Use exuberant ctags which installs as /usr/bin/exuberant-ctags. |
905 |
- # Hopefully this pattern won't break for a while at least. |
906 |
- # This fixes bug 29398 (27 Sep 2003 agriffis) |
907 |
- sed -i -e \ |
908 |
- 's/\<ctags\("\| [-*.]\)/exuberant-&/g' \ |
909 |
- "${S}"/runtime/doc/syntax.txt \ |
910 |
- "${S}"/runtime/doc/tagsrch.txt \ |
911 |
- "${S}"/runtime/doc/usr_29.txt \ |
912 |
- "${S}"/runtime/menu.vim \ |
913 |
- "${S}"/src/configure.ac || die 'sed failed' |
914 |
- |
915 |
- # Don't be fooled by /usr/include/libc.h. When found, vim thinks |
916 |
- # this is NeXT, but it's actually just a file in dev-libs/9libs |
917 |
- # This fixes bug 43885 (20 Mar 2004 agriffis) |
918 |
- sed -i -e \ |
919 |
- 's/ libc\.h / /' "${S}"/src/configure.ac || die 'sed failed' |
920 |
- |
921 |
- # gcc on sparc32 has this, uhm, interesting problem with detecting EOF |
922 |
- # correctly. To avoid some really entertaining error messages about stuff |
923 |
- # which isn't even in the source file being invalid, we'll do some trickery |
924 |
- # to make the error never occur. bug 66162 (02 October 2004 ciaranm) |
925 |
- find "${S}" -name '*.c' | while read c; do |
926 |
- echo >> "$c" || die "echo failed" |
927 |
- done |
928 |
- |
929 |
- # Try to avoid sandbox problems. Bug #114475. |
930 |
- if [[ -d "${S}"/src/po ]]; then |
931 |
- sed -i -e \ |
932 |
- '/-S check.vim/s,..VIM.,ln -s $(VIM) testvim \; ./testvim -X,' \ |
933 |
- "${S}"/src/po/Makefile || die |
934 |
- fi |
935 |
- |
936 |
- cp -v "${S}"/src/config.mk.dist "${S}"/src/auto/config.mk || die "cp failed" |
937 |
- |
938 |
- # Bug #378107 - Build properly with >=perl-core/ExtUtils-ParseXS-3.20.0 |
939 |
- sed -i -e \ |
940 |
- "s:\\\$(PERLLIB)/ExtUtils/xsubpp:${EPREFIX}/usr/bin/xsubpp:" \ |
941 |
- "${S}"/src/Makefile || die 'sed for ExtUtils-ParseXS failed' |
942 |
- |
943 |
- eapply_user |
944 |
-} |
945 |
- |
946 |
-src_configure() { |
947 |
- local myconf=() |
948 |
- |
949 |
- # Fix bug 37354: Disallow -funroll-all-loops on amd64 |
950 |
- # Bug 57859 suggests that we want to do this for all archs |
951 |
- filter-flags -funroll-all-loops |
952 |
- |
953 |
- # Fix bug 76331: -O3 causes problems, use -O2 instead. We'll do this for |
954 |
- # everyone since previous flag filtering bugs have turned out to affect |
955 |
- # multiple archs... |
956 |
- replace-flags -O3 -O2 |
957 |
- |
958 |
- # Fix bug 18245: Prevent "make" from the following chain: |
959 |
- # (1) Notice configure.ac is newer than auto/configure |
960 |
- # (2) Rebuild auto/configure |
961 |
- # (3) Notice auto/configure is newer than auto/config.mk |
962 |
- # (4) Run ./configure (with wrong args) to remake auto/config.mk |
963 |
- sed -i -e \ |
964 |
- 's# auto/config\.mk:#:#' src/Makefile || die "Makefile sed failed" |
965 |
- rm -v src/auto/configure || die "rm failed" |
966 |
- emake -j1 -C src autoconf |
967 |
- |
968 |
- # This should fix a sandbox violation (see bug 24447). The hvc |
969 |
- # things are for ppc64, see bug 86433. |
970 |
- local file |
971 |
- for file in /dev/pty/s* /dev/console /dev/hvc/* /dev/hvc*; do |
972 |
- if [[ -e ${file} ]]; then |
973 |
- addwrite $file |
974 |
- fi |
975 |
- done |
976 |
- |
977 |
- use debug && append-flags "-DDEBUG" |
978 |
- |
979 |
- myconf=( |
980 |
- --with-features=huge |
981 |
- --disable-gpm |
982 |
- --enable-multibyte |
983 |
- $(use_enable acl) |
984 |
- $(use_enable cscope) |
985 |
- $(use_enable lua luainterp) |
986 |
- $(use_with luajit) |
987 |
- $(use_enable netbeans) |
988 |
- $(use_enable nls) |
989 |
- $(use_enable perl perlinterp) |
990 |
- $(use_enable python pythoninterp) |
991 |
- $(use_enable python python3interp) |
992 |
- $(use_enable racket mzschemeinterp) |
993 |
- $(use_enable ruby rubyinterp) |
994 |
- $(use_enable selinux) |
995 |
- $(use_enable session xsmp) |
996 |
- $(use_enable tcl tclinterp) |
997 |
- ) |
998 |
- |
999 |
- # --with-features=huge forces on cscope even if we --disable it. We need |
1000 |
- # to sed this out to avoid screwiness. (1 Sep 2004 ciaranm) |
1001 |
- if ! use cscope; then |
1002 |
- sed -i -e \ |
1003 |
- '/# define FEAT_CSCOPE/d' src/feature.h || die "couldn't disable cscope" |
1004 |
- fi |
1005 |
- |
1006 |
- # gvim's GUI preference order is as follows: |
1007 |
- # aqua CARBON (not tested) |
1008 |
- # -aqua gtk3 GTK3 |
1009 |
- # -aqua -gtk3 gnome GNOME2 |
1010 |
- # -aqua -gtk3 -gnome gtk GTK2 |
1011 |
- # -aqua -gtk -gtk3 motif MOTIF |
1012 |
- # -aqua -gtk -gtk3 -motif neXt NEXTAW |
1013 |
- # -aqua -gtk -gtk3 -motif -neXt ATHENA |
1014 |
- echo ; echo |
1015 |
- if use aqua; then |
1016 |
- einfo "Building gvim with the Carbon GUI" |
1017 |
- myconf+=( |
1018 |
- --enable-darwin |
1019 |
- --enable-gui=carbon |
1020 |
- ) |
1021 |
- elif use gtk3; then |
1022 |
- myconf+=( --enable-gtk3-check ) |
1023 |
- einfo "Building gvim with the gtk+-3 GUI" |
1024 |
- myconf+=( --enable-gui=gtk3 ) |
1025 |
- elif use gtk; then |
1026 |
- myconf+=( --enable-gtk2-check ) |
1027 |
- if use gnome; then |
1028 |
- einfo "Building gvim with the Gnome 2 GUI" |
1029 |
- myconf+=( --enable-gui=gnome2 ) |
1030 |
- else |
1031 |
- einfo "Building gvim with the gtk+-2 GUI" |
1032 |
- myconf+=( --enable-gui=gtk2 ) |
1033 |
- fi |
1034 |
- elif use motif; then |
1035 |
- einfo "Building gvim with the MOTIF GUI" |
1036 |
- myconf+=( --enable-gui=motif ) |
1037 |
- elif use neXt; then |
1038 |
- einfo "Building gvim with the neXtaw GUI" |
1039 |
- myconf+=( --enable-gui=nextaw ) |
1040 |
- else |
1041 |
- einfo "Building gvim with the Athena GUI" |
1042 |
- myconf+=( --enable-gui=athena ) |
1043 |
- fi |
1044 |
- echo ; echo |
1045 |
- |
1046 |
- # let package manager strip binaries |
1047 |
- export ac_cv_prog_STRIP="$(type -P true ) faking strip" |
1048 |
- |
1049 |
- # keep prefix env contained within the EPREFIX |
1050 |
- use prefix && myconf+=( --without-local-dir ) |
1051 |
- |
1052 |
- if [[ ${CHOST} == *-interix* ]]; then |
1053 |
- # avoid finding of this function, to avoid having to patch either |
1054 |
- # configure or the source, which would be much more hackish. |
1055 |
- # after all vim does it right, only interix is badly broken (again) |
1056 |
- export ac_cv_func_sigaction=no |
1057 |
- fi |
1058 |
- |
1059 |
- econf \ |
1060 |
- --with-modified-by=Gentoo-${PVR} \ |
1061 |
- --with-vim-name=gvim \ |
1062 |
- --with-x \ |
1063 |
- "${myconf[@]}" |
1064 |
-} |
1065 |
- |
1066 |
-src_compile() { |
1067 |
- # The following allows emake to be used |
1068 |
- emake -j1 -C src auto/osdef.h objects |
1069 |
- |
1070 |
- emake |
1071 |
-} |
1072 |
- |
1073 |
-src_test() { |
1074 |
- echo |
1075 |
- einfo "Starting vim tests. Several error messages will be shown" |
1076 |
- einfo "while the tests run. This is normal behaviour and does not" |
1077 |
- einfo "indicate a fault." |
1078 |
- echo |
1079 |
- ewarn "If the tests fail, your terminal may be left in a strange" |
1080 |
- ewarn "state. Usually, running 'reset' will fix this." |
1081 |
- echo |
1082 |
- |
1083 |
- # Don't let vim talk to X |
1084 |
- unset DISPLAY |
1085 |
- |
1086 |
- # Make gvim not try to connect to X. See :help gui-x11-start in vim for how |
1087 |
- # this evil trickery works. |
1088 |
- ln -s "${S}"/src/gvim "${S}"/src/testvim || die |
1089 |
- |
1090 |
- # Make sure our VIMPROG is used. |
1091 |
- sed -i -e 's:\.\./vim:../testvim:' src/testdir/test49.vim || die |
1092 |
- |
1093 |
- # Don't do additional GUI tests. |
1094 |
- emake -j1 VIMPROG=../testvim -C src/testdir nongui |
1095 |
-} |
1096 |
- |
1097 |
-# Call eselect vi update with --if-unset |
1098 |
-# to respect user's choice (bug 187449) |
1099 |
-eselect_vi_update() { |
1100 |
- einfo "Calling eselect vi update..." |
1101 |
- eselect vi update --if-unset |
1102 |
- eend $? |
1103 |
-} |
1104 |
- |
1105 |
-src_install() { |
1106 |
- local vimfiles=/usr/share/vim/vim${VIM_VERSION/.} |
1107 |
- |
1108 |
- dobin src/gvim |
1109 |
- dosym gvim /usr/bin/gvimdiff |
1110 |
- dosym gvim /usr/bin/evim |
1111 |
- dosym gvim /usr/bin/eview |
1112 |
- dosym gvim /usr/bin/gview |
1113 |
- dosym gvim /usr/bin/rgvim |
1114 |
- dosym gvim /usr/bin/rgview |
1115 |
- |
1116 |
- emake -C src DESTDIR="${D}" DATADIR="${EPREFIX}"/usr/share install-icons |
1117 |
- |
1118 |
- dodir /usr/share/man/man1 |
1119 |
- echo ".so vim.1" > "${ED}"/usr/share/man/man1/gvim.1 || die "echo failed" |
1120 |
- echo ".so vim.1" > "${ED}"/usr/share/man/man1/gview.1 || die "echo failed" |
1121 |
- echo ".so vimdiff.1" > "${ED}"/usr/share/man/man1/gvimdiff.1 || \ |
1122 |
- die "echo failed" |
1123 |
- |
1124 |
- insinto /etc/vim |
1125 |
- newins "${FILESDIR}"/gvimrc-r1 gvimrc |
1126 |
- eprefixify "${ED}"/etc/vim/gvimrc |
1127 |
- |
1128 |
- doicon -s scalable "${FILESDIR}"/gvim.svg |
1129 |
- |
1130 |
- # bash completion script, bug #79018. |
1131 |
- newbashcomp "${FILESDIR}"/${PN}-completion ${PN} |
1132 |
- |
1133 |
- # don't install vim desktop file |
1134 |
- rm -v "${ED}"/usr/share/applications/vim.desktop || die "failed to remove vim.desktop" |
1135 |
-} |
1136 |
- |
1137 |
-pkg_postinst() { |
1138 |
- # Update documentation tags (from vim-doc.eclass) |
1139 |
- update_vim_helptags |
1140 |
- |
1141 |
- # Update fdo mime stuff, bug #78394 |
1142 |
- xdg_desktop_database_update |
1143 |
- |
1144 |
- # Update icon cache |
1145 |
- gnome2_icon_cache_update |
1146 |
- |
1147 |
- # Call eselect vi update |
1148 |
- eselect_vi_update |
1149 |
-} |
1150 |
- |
1151 |
-pkg_postrm() { |
1152 |
- # Update documentation tags (from vim-doc.eclass) |
1153 |
- update_vim_helptags |
1154 |
- |
1155 |
- # Update fdo mime stuff, bug #78394 |
1156 |
- xdg_desktop_database_update |
1157 |
- |
1158 |
- # Update icon cache |
1159 |
- gnome2_icon_cache_update |
1160 |
- |
1161 |
- # Call eselect vi update |
1162 |
- eselect_vi_update |
1163 |
-} |