1 |
commit: 520917537da23fc2a3dae1595ee60c9a5e8e61ff |
2 |
Author: Tim Harder <radhermit <AT> gentoo <DOT> org> |
3 |
AuthorDate: Mon Feb 1 05:03:10 2016 +0000 |
4 |
Commit: Tim Harder <radhermit <AT> gentoo <DOT> org> |
5 |
CommitDate: Mon Feb 1 05:03:10 2016 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=52091753 |
7 |
|
8 |
app-editors/vim-core: remove old |
9 |
|
10 |
app-editors/vim-core/Manifest | 4 - |
11 |
app-editors/vim-core/vim-core-7.4.273.ebuild | 232 --------------------------- |
12 |
app-editors/vim-core/vim-core-7.4.827.ebuild | 223 ------------------------- |
13 |
3 files changed, 459 deletions(-) |
14 |
|
15 |
diff --git a/app-editors/vim-core/Manifest b/app-editors/vim-core/Manifest |
16 |
index 8c9896e..38cfe40 100644 |
17 |
--- a/app-editors/vim-core/Manifest |
18 |
+++ b/app-editors/vim-core/Manifest |
19 |
@@ -3,7 +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-core-7.3-gentoo-patches-r4.tar.bz2 3015 SHA256 a4f61e4d0cd1848812f603e7f6b8a5304d13ac199f4e3061264cd3bec75a17c5 SHA512 0ba7a20dfdc2c24a92a4af5a6fe49a94d5d5c5e9111c42c4812d0cd52c26cc567acd2d7e74f66730afd3c4bc9f1667b0ad9c1f82f93d2844d8309b143f293676 WHIRLPOOL cec628c0f19971077677e667cc8903ea0a56041799a43907d47acc218fd9e0a6ea2a2a30999c74512fb36d233c6ac6d436f033684290155ff6ae70be5277bdbf |
26 |
-DIST vim-patches-7.4.273.patch.bz2 506378 SHA256 065447179d22602315e2965d135cf9f1db4394ff5655520719f6338ff29e89ca SHA512 029a5cef758e4b201eabbc82458f3e1c3674582715a8c78a7270f3ecd57980b1cef66a0152526fd3505685c27c07f6e6742da48da9ad9546e3cfc2a5e7c11164 WHIRLPOOL 305322e991e9640b80147dd5ceac9dd6dae93a07610f807bbf01c0fdf37cba67ea41a1b2720c8a43da0161c57e0a522086f135efc712fb0106497a21288a872a |
27 |
|
28 |
diff --git a/app-editors/vim-core/vim-core-7.4.273.ebuild b/app-editors/vim-core/vim-core-7.4.273.ebuild |
29 |
deleted file mode 100644 |
30 |
index 248ea57..0000000 |
31 |
--- a/app-editors/vim-core/vim-core-7.4.273.ebuild |
32 |
+++ /dev/null |
33 |
@@ -1,232 +0,0 @@ |
34 |
-# Copyright 1999-2014 Gentoo Foundation |
35 |
-# Distributed under the terms of the GNU General Public License v2 |
36 |
-# $Id$ |
37 |
- |
38 |
-EAPI=5 |
39 |
-VIM_VERSION="7.4" |
40 |
-inherit eutils vim-doc flag-o-matic versionator bash-completion-r1 prefix |
41 |
- |
42 |
-if [[ ${PV} == 9999* ]] ; then |
43 |
- inherit mercurial |
44 |
- EHG_REPO_URI="https://vim.googlecode.com/hg/" |
45 |
- EHG_PROJECT="vim" |
46 |
-else |
47 |
- VIM_ORG_PATCHES="vim-patches-${PV}.patch.bz2" |
48 |
- |
49 |
- SRC_URI="ftp://ftp.vim.org/pub/vim/unix/vim-${VIM_VERSION}.tar.bz2 |
50 |
- https://dev.gentoo.org/~radhermit/vim/${PN}-7.3-gentoo-patches-r4.tar.bz2 |
51 |
- https://dev.gentoo.org/~radhermit/vim/${VIM_ORG_PATCHES}" |
52 |
- KEYWORDS="alpha amd64 arm hppa ia64 ~m68k ~mips ppc ppc64 ~s390 ~sh sparc x86 ~ppc-aix ~amd64-fbsd ~sparc-fbsd ~x86-fbsd ~x64-freebsd ~x86-freebsd ~hppa-hpux ~ia64-hpux ~x86-interix ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos ~m68k-mint ~sparc-solaris ~sparc64-solaris ~x64-solaris ~x86-solaris" |
53 |
-fi |
54 |
- |
55 |
-DESCRIPTION="vim and gvim shared files" |
56 |
-HOMEPAGE="http://www.vim.org/" |
57 |
- |
58 |
-SLOT="0" |
59 |
-LICENSE="vim" |
60 |
-IUSE="nls acl minimal" |
61 |
- |
62 |
-DEPEND="sys-devel/autoconf" |
63 |
-PDEPEND="!minimal? ( app-vim/gentoo-syntax )" |
64 |
- |
65 |
-S=${WORKDIR}/vim${VIM_VERSION/.} |
66 |
- |
67 |
-pkg_setup() { |
68 |
- # people with broken alphabets run into trouble. bug 82186. |
69 |
- unset LANG LC_ALL |
70 |
- export LC_COLLATE="C" |
71 |
- |
72 |
- # Gnome sandbox silliness. bug #114475. |
73 |
- mkdir -p "${T}"/home |
74 |
- export HOME="${T}"/home |
75 |
-} |
76 |
- |
77 |
-src_prepare() { |
78 |
- if [[ ${PV} != 9999* ]] ; then |
79 |
- if [[ -f "${WORKDIR}"/${VIM_ORG_PATCHES%.bz2} ]] ; then |
80 |
- # Apply any patches available from vim.org for this version |
81 |
- epatch "${WORKDIR}"/${VIM_ORG_PATCHES%.bz2} |
82 |
- fi |
83 |
- |
84 |
- if [[ -d "${WORKDIR}"/gentoo/patches-core/ ]]; then |
85 |
- # Patches for vim-core only (runtime/*) |
86 |
- EPATCH_SUFFIX="patch" EPATCH_FORCE="yes" \ |
87 |
- epatch "${WORKDIR}"/gentoo/patches-core/ |
88 |
- fi |
89 |
- fi |
90 |
- |
91 |
- # Fixup a script to use awk instead of nawk |
92 |
- sed -i '1s|.*|#!'"${EPREFIX}"'/usr/bin/awk -f|' "${S}"/runtime/tools/mve.awk \ |
93 |
- || die "mve.awk sed failed" |
94 |
- |
95 |
- # Read vimrc and gvimrc from /etc/vim |
96 |
- echo '#define SYS_VIMRC_FILE "'${EPREFIX}'/etc/vim/vimrc"' >> "${S}"/src/feature.h |
97 |
- echo '#define SYS_GVIMRC_FILE "'${EPREFIX}'/etc/vim/gvimrc"' >> "${S}"/src/feature.h |
98 |
- |
99 |
- # Use exuberant ctags which installs as /usr/bin/exuberant-ctags. |
100 |
- # Hopefully this pattern won't break for a while at least. |
101 |
- # This fixes bug 29398 (27 Sep 2003 agriffis) |
102 |
- sed -i 's/\<ctags\("\| [-*.]\)/exuberant-&/g' \ |
103 |
- "${S}"/runtime/doc/syntax.txt \ |
104 |
- "${S}"/runtime/doc/tagsrch.txt \ |
105 |
- "${S}"/runtime/doc/usr_29.txt \ |
106 |
- "${S}"/runtime/menu.vim \ |
107 |
- "${S}"/src/configure.in || die 'sed failed' |
108 |
- |
109 |
- # Don't be fooled by /usr/include/libc.h. When found, vim thinks |
110 |
- # this is NeXT, but it's actually just a file in dev-libs/9libs |
111 |
- # This fixes bug 43885 (20 Mar 2004 agriffis) |
112 |
- sed -i 's/ libc\.h / /' "${S}"/src/configure.in || die 'sed failed' |
113 |
- |
114 |
- # gcc on sparc32 has this, uhm, interesting problem with detecting EOF |
115 |
- # correctly. To avoid some really entertaining error messages about stuff |
116 |
- # which isn't even in the source file being invalid, we'll do some trickery |
117 |
- # to make the error never occur. bug 66162 (02 October 2004 ciaranm) |
118 |
- find "${S}" -name '*.c' | while read c ; do echo >> "$c" ; done |
119 |
- |
120 |
- # Try to avoid sandbox problems. Bug #114475. |
121 |
- if [[ -d "${S}"/src/po ]] ; then |
122 |
- sed -i -e \ |
123 |
- '/-S check.vim/s,..VIM.,ln -s $(VIM) testvim \; ./testvim -X,' \ |
124 |
- "${S}"/src/po/Makefile |
125 |
- fi |
126 |
- |
127 |
- if version_is_at_least 7.3.122 ; then |
128 |
- cp "${S}"/src/config.mk.dist "${S}"/src/auto/config.mk |
129 |
- fi |
130 |
- |
131 |
- # Bug #378107 - Build properly with >=perl-core/ExtUtils-ParseXS-3.20.0 |
132 |
- if version_is_at_least 7.3 ; then |
133 |
- sed -i "s:\\\$(PERLLIB)/ExtUtils/xsubpp:${EPREFIX}/usr/bin/xsubpp:" \ |
134 |
- "${S}"/src/Makefile || die 'sed for ExtUtils-ParseXS failed' |
135 |
- fi |
136 |
- |
137 |
- epatch_user |
138 |
-} |
139 |
- |
140 |
-src_configure() { |
141 |
- local myconf |
142 |
- |
143 |
- # Fix bug 37354: Disallow -funroll-all-loops on amd64 |
144 |
- # Bug 57859 suggests that we want to do this for all archs |
145 |
- filter-flags -funroll-all-loops |
146 |
- |
147 |
- # Fix bug 76331: -O3 causes problems, use -O2 instead. We'll do this for |
148 |
- # everyone since previous flag filtering bugs have turned out to affect |
149 |
- # multiple archs... |
150 |
- replace-flags -O3 -O2 |
151 |
- |
152 |
- # Fix bug 18245: Prevent "make" from the following chain: |
153 |
- # (1) Notice configure.in is newer than auto/configure |
154 |
- # (2) Rebuild auto/configure |
155 |
- # (3) Notice auto/configure is newer than auto/config.mk |
156 |
- # (4) Run ./configure (with wrong args) to remake auto/config.mk |
157 |
- sed -i 's/ auto.config.mk:/:/' src/Makefile || die "Makefile sed failed" |
158 |
- rm -f src/auto/configure |
159 |
- emake -j1 -C src autoconf |
160 |
- |
161 |
- # This should fix a sandbox violation (see bug 24447). The hvc |
162 |
- # things are for ppc64, see bug 86433. |
163 |
- for file in /dev/pty/s* /dev/console /dev/hvc/* /dev/hvc* ; do |
164 |
- [[ -e ${file} ]] && addwrite $file |
165 |
- done |
166 |
- |
167 |
- # Let Portage do the stripping. Some people like that. |
168 |
- export ac_cv_prog_STRIP="$(type -P true ) faking strip" |
169 |
- |
170 |
- # Keep Gentoo Prefix env contained within the EPREFIX |
171 |
- use prefix && myconf+=" --without-local-dir" |
172 |
- |
173 |
- econf \ |
174 |
- --with-modified-by=Gentoo-${PVR} \ |
175 |
- --with-features=tiny \ |
176 |
- --enable-gui=no \ |
177 |
- --without-x \ |
178 |
- --disable-darwin \ |
179 |
- --disable-perlinterp \ |
180 |
- --disable-pythoninterp \ |
181 |
- --disable-rubyinterp \ |
182 |
- --disable-gpm \ |
183 |
- --disable-selinux \ |
184 |
- $(use_enable nls) \ |
185 |
- $(use_enable acl) \ |
186 |
- ${myconf} |
187 |
-} |
188 |
- |
189 |
-src_compile() { |
190 |
- # The following allows emake to be used |
191 |
- emake -j1 -C src auto/osdef.h objects |
192 |
- |
193 |
- emake tools |
194 |
-} |
195 |
- |
196 |
-src_test() { :; } |
197 |
- |
198 |
-src_install() { |
199 |
- local vimfiles=/usr/share/vim/vim${VIM_VERSION/.} |
200 |
- |
201 |
- dodir /usr/{bin,share/{man/man1,vim}} |
202 |
- cd src || die "cd src failed" |
203 |
- emake \ |
204 |
- installruntime \ |
205 |
- installmanlinks \ |
206 |
- installmacros \ |
207 |
- installtutor \ |
208 |
- installtutorbin \ |
209 |
- installtools \ |
210 |
- install-languages \ |
211 |
- install-icons \ |
212 |
- DESTDIR="${D}" \ |
213 |
- BINDIR="${EPREFIX}"/usr/bin \ |
214 |
- MANDIR="${EPREFIX}"/usr/share/man \ |
215 |
- DATADIR="${EPREFIX}"/usr/share |
216 |
- |
217 |
- keepdir ${vimfiles}/keymap |
218 |
- |
219 |
- # default vimrc is installed by vim-core since it applies to |
220 |
- # both vim and gvim |
221 |
- insinto /etc/vim/ |
222 |
- newins "${FILESDIR}"/vimrc-r4 vimrc |
223 |
- eprefixify "${ED}"/etc/vim/vimrc |
224 |
- |
225 |
- if use minimal ; then |
226 |
- # To save space, install only a subset of the files. |
227 |
- # Helps minimalize the livecd, bug 65144. |
228 |
- eshopts_push -s extglob |
229 |
- |
230 |
- rm -fr "${ED}${vimfiles}"/{compiler,doc,ftplugin,indent} |
231 |
- rm -fr "${ED}${vimfiles}"/{macros,print,tools,tutor} |
232 |
- rm "${ED}"/usr/bin/vimtutor |
233 |
- |
234 |
- local keep_colors="default" |
235 |
- ignore=$(rm -fr "${ED}${vimfiles}"/colors/!(${keep_colors}).vim ) |
236 |
- |
237 |
- local keep_syntax="conf|crontab|fstab|inittab|resolv|sshdconfig" |
238 |
- # tinkering with the next line might make bad things happen ... |
239 |
- keep_syntax="${keep_syntax}|syntax|nosyntax|synload" |
240 |
- ignore=$(rm -fr "${ED}${vimfiles}"/syntax/!(${keep_syntax}).vim ) |
241 |
- |
242 |
- eshopts_pop |
243 |
- fi |
244 |
- |
245 |
- # These files might have slight security issues, so we won't |
246 |
- # install them. See bug #77841. We don't mind if these don't |
247 |
- # exist. |
248 |
- rm "${ED}${vimfiles}"/tools/{vimspell.sh,tcltags} 2>/dev/null |
249 |
- |
250 |
- newbashcomp "${FILESDIR}"/xxd-completion xxd |
251 |
- |
252 |
- # We shouldn't be installing the ex or view man page symlinks, as they |
253 |
- # are managed by eselect-vi |
254 |
- rm -f "${ED}"/usr/share/man/man1/{ex,view}.1 |
255 |
-} |
256 |
- |
257 |
-pkg_postinst() { |
258 |
- # Update documentation tags (from vim-doc.eclass) |
259 |
- update_vim_helptags |
260 |
-} |
261 |
- |
262 |
-pkg_postrm() { |
263 |
- # Update documentation tags (from vim-doc.eclass) |
264 |
- update_vim_helptags |
265 |
-} |
266 |
|
267 |
diff --git a/app-editors/vim-core/vim-core-7.4.827.ebuild b/app-editors/vim-core/vim-core-7.4.827.ebuild |
268 |
deleted file mode 100644 |
269 |
index 145f7d0..0000000 |
270 |
--- a/app-editors/vim-core/vim-core-7.4.827.ebuild |
271 |
+++ /dev/null |
272 |
@@ -1,223 +0,0 @@ |
273 |
-# Copyright 1999-2015 Gentoo Foundation |
274 |
-# Distributed under the terms of the GNU General Public License v2 |
275 |
-# $Id$ |
276 |
- |
277 |
-EAPI=5 |
278 |
-VIM_VERSION="7.4" |
279 |
-inherit eutils vim-doc flag-o-matic versionator bash-completion-r1 prefix |
280 |
- |
281 |
-if [[ ${PV} == 9999* ]] ; then |
282 |
- inherit git-r3 |
283 |
- EGIT_REPO_URI="https://github.com/vim/vim.git" |
284 |
- EGIT_CHECKOUT_DIR=${WORKDIR}/vim-${PV} |
285 |
-else |
286 |
- SRC_URI="https://github.com/vim/vim/archive/v${PV}.tar.gz -> vim-${PV}.tar.gz |
287 |
- https://dev.gentoo.org/~radhermit/vim/vim-7.4.827-gentoo-patches.tar.bz2" |
288 |
- KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~m68k ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86 ~ppc-aix ~amd64-fbsd ~sparc-fbsd ~x86-fbsd ~x64-freebsd ~x86-freebsd ~hppa-hpux ~ia64-hpux ~x86-interix ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos ~m68k-mint ~sparc-solaris ~sparc64-solaris ~x64-solaris ~x86-solaris" |
289 |
-fi |
290 |
- |
291 |
-DESCRIPTION="vim and gvim shared files" |
292 |
-HOMEPAGE="http://www.vim.org/" |
293 |
- |
294 |
-SLOT="0" |
295 |
-LICENSE="vim" |
296 |
-IUSE="nls acl minimal" |
297 |
- |
298 |
-DEPEND="sys-devel/autoconf" |
299 |
-PDEPEND="!minimal? ( app-vim/gentoo-syntax )" |
300 |
- |
301 |
-S=${WORKDIR}/vim-${PV} |
302 |
- |
303 |
-pkg_setup() { |
304 |
- # people with broken alphabets run into trouble. bug 82186. |
305 |
- unset LANG LC_ALL |
306 |
- export LC_COLLATE="C" |
307 |
- |
308 |
- # Gnome sandbox silliness. bug #114475. |
309 |
- mkdir -p "${T}"/home |
310 |
- export HOME="${T}"/home |
311 |
-} |
312 |
- |
313 |
-src_prepare() { |
314 |
- if [[ ${PV} != 9999* ]] ; then |
315 |
- if [[ -d "${WORKDIR}"/patches/ ]]; then |
316 |
- # Gentoo patches to fix runtime issues, cross-compile errors, etc |
317 |
- EPATCH_SUFFIX="patch" EPATCH_FORCE="yes" \ |
318 |
- epatch "${WORKDIR}"/patches/ |
319 |
- fi |
320 |
- fi |
321 |
- |
322 |
- # Fixup a script to use awk instead of nawk |
323 |
- sed -i '1s|.*|#!'"${EPREFIX}"'/usr/bin/awk -f|' "${S}"/runtime/tools/mve.awk \ |
324 |
- || die "mve.awk sed failed" |
325 |
- |
326 |
- # Read vimrc and gvimrc from /etc/vim |
327 |
- echo '#define SYS_VIMRC_FILE "'${EPREFIX}'/etc/vim/vimrc"' >> "${S}"/src/feature.h |
328 |
- echo '#define SYS_GVIMRC_FILE "'${EPREFIX}'/etc/vim/gvimrc"' >> "${S}"/src/feature.h |
329 |
- |
330 |
- # Use exuberant ctags which installs as /usr/bin/exuberant-ctags. |
331 |
- # Hopefully this pattern won't break for a while at least. |
332 |
- # This fixes bug 29398 (27 Sep 2003 agriffis) |
333 |
- sed -i 's/\<ctags\("\| [-*.]\)/exuberant-&/g' \ |
334 |
- "${S}"/runtime/doc/syntax.txt \ |
335 |
- "${S}"/runtime/doc/tagsrch.txt \ |
336 |
- "${S}"/runtime/doc/usr_29.txt \ |
337 |
- "${S}"/runtime/menu.vim \ |
338 |
- "${S}"/src/configure.in || die 'sed failed' |
339 |
- |
340 |
- # Don't be fooled by /usr/include/libc.h. When found, vim thinks |
341 |
- # this is NeXT, but it's actually just a file in dev-libs/9libs |
342 |
- # This fixes bug 43885 (20 Mar 2004 agriffis) |
343 |
- sed -i 's/ libc\.h / /' "${S}"/src/configure.in || die 'sed failed' |
344 |
- |
345 |
- # gcc on sparc32 has this, uhm, interesting problem with detecting EOF |
346 |
- # correctly. To avoid some really entertaining error messages about stuff |
347 |
- # which isn't even in the source file being invalid, we'll do some trickery |
348 |
- # to make the error never occur. bug 66162 (02 October 2004 ciaranm) |
349 |
- find "${S}" -name '*.c' | while read c ; do echo >> "$c" ; done |
350 |
- |
351 |
- # Try to avoid sandbox problems. Bug #114475. |
352 |
- if [[ -d "${S}"/src/po ]] ; then |
353 |
- sed -i -e \ |
354 |
- '/-S check.vim/s,..VIM.,ln -s $(VIM) testvim \; ./testvim -X,' \ |
355 |
- "${S}"/src/po/Makefile |
356 |
- fi |
357 |
- |
358 |
- if version_is_at_least 7.3.122 ; then |
359 |
- cp "${S}"/src/config.mk.dist "${S}"/src/auto/config.mk |
360 |
- fi |
361 |
- |
362 |
- # Bug #378107 - Build properly with >=perl-core/ExtUtils-ParseXS-3.20.0 |
363 |
- if version_is_at_least 7.3 ; then |
364 |
- sed -i "s:\\\$(PERLLIB)/ExtUtils/xsubpp:${EPREFIX}/usr/bin/xsubpp:" \ |
365 |
- "${S}"/src/Makefile || die 'sed for ExtUtils-ParseXS failed' |
366 |
- fi |
367 |
- |
368 |
- epatch_user |
369 |
-} |
370 |
- |
371 |
-src_configure() { |
372 |
- local myconf |
373 |
- |
374 |
- # Fix bug 37354: Disallow -funroll-all-loops on amd64 |
375 |
- # Bug 57859 suggests that we want to do this for all archs |
376 |
- filter-flags -funroll-all-loops |
377 |
- |
378 |
- # Fix bug 76331: -O3 causes problems, use -O2 instead. We'll do this for |
379 |
- # everyone since previous flag filtering bugs have turned out to affect |
380 |
- # multiple archs... |
381 |
- replace-flags -O3 -O2 |
382 |
- |
383 |
- # Fix bug 18245: Prevent "make" from the following chain: |
384 |
- # (1) Notice configure.in is newer than auto/configure |
385 |
- # (2) Rebuild auto/configure |
386 |
- # (3) Notice auto/configure is newer than auto/config.mk |
387 |
- # (4) Run ./configure (with wrong args) to remake auto/config.mk |
388 |
- sed -i 's# auto/config\.mk:#:#' src/Makefile || die "Makefile sed failed" |
389 |
- rm -f src/auto/configure |
390 |
- emake -j1 -C src autoconf |
391 |
- |
392 |
- # This should fix a sandbox violation (see bug 24447). The hvc |
393 |
- # things are for ppc64, see bug 86433. |
394 |
- for file in /dev/pty/s* /dev/console /dev/hvc/* /dev/hvc* ; do |
395 |
- [[ -e ${file} ]] && addwrite $file |
396 |
- done |
397 |
- |
398 |
- # Let Portage do the stripping. Some people like that. |
399 |
- export ac_cv_prog_STRIP="$(type -P true ) faking strip" |
400 |
- |
401 |
- # Keep Gentoo Prefix env contained within the EPREFIX |
402 |
- use prefix && myconf+=" --without-local-dir" |
403 |
- |
404 |
- econf \ |
405 |
- --with-modified-by=Gentoo-${PVR} \ |
406 |
- --enable-gui=no \ |
407 |
- --without-x \ |
408 |
- --disable-darwin \ |
409 |
- --disable-perlinterp \ |
410 |
- --disable-pythoninterp \ |
411 |
- --disable-rubyinterp \ |
412 |
- --disable-gpm \ |
413 |
- --disable-selinux \ |
414 |
- $(use_enable nls) \ |
415 |
- $(use_enable acl) \ |
416 |
- ${myconf} |
417 |
-} |
418 |
- |
419 |
-src_compile() { |
420 |
- # The following allows emake to be used |
421 |
- emake -j1 -C src auto/osdef.h objects |
422 |
- |
423 |
- emake tools |
424 |
-} |
425 |
- |
426 |
-src_test() { :; } |
427 |
- |
428 |
-src_install() { |
429 |
- local vimfiles=/usr/share/vim/vim${VIM_VERSION/.} |
430 |
- |
431 |
- dodir /usr/{bin,share/{man/man1,vim}} |
432 |
- cd src || die "cd src failed" |
433 |
- emake \ |
434 |
- installruntime \ |
435 |
- installmanlinks \ |
436 |
- installmacros \ |
437 |
- installtutor \ |
438 |
- installtutorbin \ |
439 |
- installtools \ |
440 |
- install-languages \ |
441 |
- install-icons \ |
442 |
- DESTDIR="${D}" \ |
443 |
- BINDIR="${EPREFIX}"/usr/bin \ |
444 |
- MANDIR="${EPREFIX}"/usr/share/man \ |
445 |
- DATADIR="${EPREFIX}"/usr/share |
446 |
- |
447 |
- keepdir ${vimfiles}/keymap |
448 |
- |
449 |
- # default vimrc is installed by vim-core since it applies to |
450 |
- # both vim and gvim |
451 |
- insinto /etc/vim/ |
452 |
- newins "${FILESDIR}"/vimrc-r4 vimrc |
453 |
- eprefixify "${ED}"/etc/vim/vimrc |
454 |
- |
455 |
- if use minimal ; then |
456 |
- # To save space, install only a subset of the files. |
457 |
- # Helps minimalize the livecd, bug 65144. |
458 |
- eshopts_push -s extglob |
459 |
- |
460 |
- rm -fr "${ED}${vimfiles}"/{compiler,doc,ftplugin,indent} |
461 |
- rm -fr "${ED}${vimfiles}"/{macros,print,tools,tutor} |
462 |
- rm "${ED}"/usr/bin/vimtutor |
463 |
- |
464 |
- local keep_colors="default" |
465 |
- ignore=$(rm -fr "${ED}${vimfiles}"/colors/!(${keep_colors}).vim ) |
466 |
- |
467 |
- local keep_syntax="conf|crontab|fstab|inittab|resolv|sshdconfig" |
468 |
- # tinkering with the next line might make bad things happen ... |
469 |
- keep_syntax="${keep_syntax}|syntax|nosyntax|synload" |
470 |
- ignore=$(rm -fr "${ED}${vimfiles}"/syntax/!(${keep_syntax}).vim ) |
471 |
- |
472 |
- eshopts_pop |
473 |
- fi |
474 |
- |
475 |
- # These files might have slight security issues, so we won't |
476 |
- # install them. See bug #77841. We don't mind if these don't |
477 |
- # exist. |
478 |
- rm "${ED}${vimfiles}"/tools/{vimspell.sh,tcltags} 2>/dev/null |
479 |
- |
480 |
- newbashcomp "${FILESDIR}"/xxd-completion xxd |
481 |
- |
482 |
- # We shouldn't be installing the ex or view man page symlinks, as they |
483 |
- # are managed by eselect-vi |
484 |
- rm -f "${ED}"/usr/share/man/man1/{ex,view}.1 |
485 |
-} |
486 |
- |
487 |
-pkg_postinst() { |
488 |
- # Update documentation tags (from vim-doc.eclass) |
489 |
- update_vim_helptags |
490 |
-} |
491 |
- |
492 |
-pkg_postrm() { |
493 |
- # Update documentation tags (from vim-doc.eclass) |
494 |
- update_vim_helptags |
495 |
-} |