1 |
commit: 53345fcf7a42be74ecbad7dd2764b9c92e7d26d9 |
2 |
Author: Tim Harder <radhermit <AT> gentoo <DOT> org> |
3 |
AuthorDate: Fri Jun 7 07:35:13 2019 +0000 |
4 |
Commit: Tim Harder <radhermit <AT> gentoo <DOT> org> |
5 |
CommitDate: Fri Jun 7 07:37:24 2019 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=53345fcf |
7 |
|
8 |
app-editors/vim-core: version bump to 8.1.1486 |
9 |
|
10 |
Signed-off-by: Tim Harder <radhermit <AT> gentoo.org> |
11 |
|
12 |
app-editors/vim-core/Manifest | 1 + |
13 |
app-editors/vim-core/vim-core-8.1.1486.ebuild | 225 ++++++++++++++++++++++++++ |
14 |
2 files changed, 226 insertions(+) |
15 |
|
16 |
diff --git a/app-editors/vim-core/Manifest b/app-editors/vim-core/Manifest |
17 |
index 4c9fcc49b94..a7579ec0549 100644 |
18 |
--- a/app-editors/vim-core/Manifest |
19 |
+++ b/app-editors/vim-core/Manifest |
20 |
@@ -6,3 +6,4 @@ DIST vim-8.1.0412.tar.gz 13857501 BLAKE2B 6925184359b8b36cb546c9fcba4bb01755455a |
21 |
DIST vim-8.1.0648.tar.gz 14061964 BLAKE2B 79bf52d8574167471c93942904dc2b4ad5648ec365561494bbad45c779154b75b0fff1d90229516e938371f1eaa5808659cb2181b150c4c13bf8501bd9987b38 SHA512 d41676a6bb6bc442f4946ca021b2835d7ea0e54fbefe1bfc728241e1bf203cc696b707fcca6f25c877660283a790cefa4259fbd14de88fd4db7390701189c454 |
22 |
DIST vim-8.1.1155.tar.gz 14141750 BLAKE2B f15470768fbdc4e02552b8711626c3ad9647ec5b74ebaa3f82a4f32c050405ef0cf3f29d1e5bdbb4de008bf16262b8cdc81ff153e2694a184523cd913624e8e0 SHA512 0cdc42090958f4c91c13aeeefac0abc4feaa629d8b90c04bd01d5e23efefe21e6316e1b2c3b6015ecf9577573faea9a1b6660de8a2959642e65582dbe9c7f5c6 |
23 |
DIST vim-8.1.1312.tar.gz 14167114 BLAKE2B a69688023ccb2b22028ae6b5387ae45ee8755bb22d82c91525a22e81c1d9bef253b43d2c56c3e70fb330a348612067df9d4c5edf043cb8555c319141e52b716d SHA512 8f38a73c8971199da3477cf291a13e180c99616f0e75b48e9cf68fbf301c91384690666a662f1800afc65241237378ca174cfd0efaa71cbb11932a0ff425b91e |
24 |
+DIST vim-8.1.1486.tar.gz 14318109 BLAKE2B 6054df175a32e9ed36873802a4a669cc46e034bac879cb829e45ece53f9440e97cccad47e370ebdef8dc1bb963e8e8c84bd517a3a6561705786dcab7e2368d21 SHA512 0a521d74c60f2a32e8a11e16f256e2e99fb9c00f478cd8d7a9328315abbd445796153f03884ab2b240905260317809a33afb64627b9a71ac8d6db1cbd4026d20 |
25 |
|
26 |
diff --git a/app-editors/vim-core/vim-core-8.1.1486.ebuild b/app-editors/vim-core/vim-core-8.1.1486.ebuild |
27 |
new file mode 100644 |
28 |
index 00000000000..08bf83307d7 |
29 |
--- /dev/null |
30 |
+++ b/app-editors/vim-core/vim-core-8.1.1486.ebuild |
31 |
@@ -0,0 +1,225 @@ |
32 |
+# Copyright 1999-2019 Gentoo Authors |
33 |
+# Distributed under the terms of the GNU General Public License v2 |
34 |
+ |
35 |
+EAPI=6 |
36 |
+VIM_VERSION="8.1" |
37 |
+inherit estack vim-doc flag-o-matic bash-completion-r1 prefix desktop gnome2-utils |
38 |
+ |
39 |
+if [[ ${PV} == 9999* ]] ; then |
40 |
+ inherit git-r3 |
41 |
+ EGIT_REPO_URI="https://github.com/vim/vim.git" |
42 |
+ EGIT_CHECKOUT_DIR=${WORKDIR}/vim-${PV} |
43 |
+else |
44 |
+ SRC_URI="https://github.com/vim/vim/archive/v${PV}.tar.gz -> vim-${PV}.tar.gz |
45 |
+ https://dev.gentoo.org/~radhermit/vim/vim-8.0.0938-gentoo-patches.tar.bz2" |
46 |
+ KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~m68k ~mips ~ppc ~ppc64 ~riscv ~s390 ~sh ~sparc ~x86 ~ppc-aix ~x64-cygwin ~amd64-fbsd ~x86-fbsd ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos ~m68k-mint ~sparc-solaris ~sparc64-solaris ~x64-solaris ~x86-solaris" |
47 |
+fi |
48 |
+ |
49 |
+DESCRIPTION="vim and gvim shared files" |
50 |
+HOMEPAGE="https://vim.sourceforge.io/ https://github.com/vim/vim" |
51 |
+ |
52 |
+SLOT="0" |
53 |
+LICENSE="vim" |
54 |
+IUSE="nls acl minimal" |
55 |
+ |
56 |
+DEPEND="sys-devel/autoconf" |
57 |
+# avoid icon file collision bug #673880 |
58 |
+RDEPEND="!!<app-editors/gvim-8.1.0648" |
59 |
+PDEPEND="!minimal? ( app-vim/gentoo-syntax )" |
60 |
+ |
61 |
+S=${WORKDIR}/vim-${PV} |
62 |
+ |
63 |
+pkg_setup() { |
64 |
+ # people with broken alphabets run into trouble. bug 82186. |
65 |
+ unset LANG LC_ALL |
66 |
+ export LC_COLLATE="C" |
67 |
+ |
68 |
+ # Gnome sandbox silliness. bug #114475. |
69 |
+ mkdir -p "${T}"/home || die "mkdir -p failed" |
70 |
+ export HOME="${T}"/home |
71 |
+} |
72 |
+ |
73 |
+src_prepare() { |
74 |
+ if [[ ${PV} != 9999* ]] ; then |
75 |
+ # Gentoo patches to fix runtime issues, cross-compile errors, etc |
76 |
+ eapply "${WORKDIR}"/patches |
77 |
+ fi |
78 |
+ |
79 |
+ # Fixup a script to use awk instead of nawk |
80 |
+ sed -i \ |
81 |
+ -e '1s|.*|#!'"${EPREFIX}"'/usr/bin/awk -f|' \ |
82 |
+ "${S}"/runtime/tools/mve.awk || die "sed failed" |
83 |
+ |
84 |
+ # See #77841. We remove this file after the tarball extraction. |
85 |
+ rm -v "${S}"/runtime/tools/vimspell.sh || die "rm failed" |
86 |
+ |
87 |
+ # Read vimrc and gvimrc from /etc/vim |
88 |
+ echo '#define SYS_VIMRC_FILE "'${EPREFIX}'/etc/vim/vimrc"' >> "${S}"/src/feature.h |
89 |
+ echo '#define SYS_GVIMRC_FILE "'${EPREFIX}'/etc/vim/gvimrc"' >> "${S}"/src/feature.h |
90 |
+ |
91 |
+ # Use exuberant ctags which installs as /usr/bin/exuberant-ctags. |
92 |
+ # Hopefully this pattern won't break for a while at least. |
93 |
+ # This fixes bug 29398 (27 Sep 2003 agriffis) |
94 |
+ sed -i 's/\<ctags\("\| [-*.]\)/exuberant-&/g' \ |
95 |
+ "${S}"/runtime/doc/syntax.txt \ |
96 |
+ "${S}"/runtime/doc/tagsrch.txt \ |
97 |
+ "${S}"/runtime/doc/usr_29.txt \ |
98 |
+ "${S}"/runtime/menu.vim \ |
99 |
+ "${S}"/src/configure.ac || die 'sed failed' |
100 |
+ |
101 |
+ # Don't be fooled by /usr/include/libc.h. When found, vim thinks |
102 |
+ # this is NeXT, but it's actually just a file in dev-libs/9libs |
103 |
+ # This fixes bug 43885 (20 Mar 2004 agriffis) |
104 |
+ sed -i 's/ libc\.h / /' "${S}"/src/configure.ac || die 'sed failed' |
105 |
+ |
106 |
+ # gcc on sparc32 has this, uhm, interesting problem with detecting EOF |
107 |
+ # correctly. To avoid some really entertaining error messages about stuff |
108 |
+ # which isn't even in the source file being invalid, we'll do some trickery |
109 |
+ # to make the error never occur. bug 66162 (02 October 2004 ciaranm) |
110 |
+ find "${S}" -name '*.c' | while read c; do |
111 |
+ echo >> "$c" || die "echo failed" |
112 |
+ done |
113 |
+ |
114 |
+ # Try to avoid sandbox problems. Bug #114475. |
115 |
+ if [[ -d "${S}"/src/po ]]; then |
116 |
+ sed -i -e \ |
117 |
+ '/-S check.vim/s,..VIM.,ln -s $(VIM) testvim \; ./testvim -X,' \ |
118 |
+ "${S}"/src/po/Makefile || die "sed failed" |
119 |
+ fi |
120 |
+ |
121 |
+ cp -v "${S}"/src/config.mk.dist "${S}"/src/auto/config.mk || die "cp failed" |
122 |
+ |
123 |
+ # Bug #378107 - Build properly with >=perl-core/ExtUtils-ParseXS-3.20.0 |
124 |
+ sed -i -e \ |
125 |
+ "s:\\\$(PERLLIB)/ExtUtils/xsubpp:${EPREFIX}/usr/bin/xsubpp:" \ |
126 |
+ "${S}"/src/Makefile || die 'sed for ExtUtils-ParseXS failed' |
127 |
+ |
128 |
+ eapply_user |
129 |
+} |
130 |
+ |
131 |
+src_configure() { |
132 |
+ local myconf |
133 |
+ |
134 |
+ # Fix bug 37354: Disallow -funroll-all-loops on amd64 |
135 |
+ # Bug 57859 suggests that we want to do this for all archs |
136 |
+ filter-flags -funroll-all-loops |
137 |
+ |
138 |
+ # Fix bug 76331: -O3 causes problems, use -O2 instead. We'll do this for |
139 |
+ # everyone since previous flag filtering bugs have turned out to affect |
140 |
+ # multiple archs... |
141 |
+ replace-flags -O3 -O2 |
142 |
+ |
143 |
+ # Fix bug 18245: Prevent "make" from the following chain: |
144 |
+ # (1) Notice configure.ac is newer than auto/configure |
145 |
+ # (2) Rebuild auto/configure |
146 |
+ # (3) Notice auto/configure is newer than auto/config.mk |
147 |
+ # (4) Run ./configure (with wrong args) to remake auto/config.mk |
148 |
+ sed -i 's# auto/config\.mk:#:#' src/Makefile || die "Makefile sed failed" |
149 |
+ |
150 |
+ # Remove src/auto/configure file. |
151 |
+ rm -v src/auto/configure || die "rm configure failed" |
152 |
+ |
153 |
+ emake -j1 -C src autoconf |
154 |
+ |
155 |
+ # This should fix a sandbox violation (see bug 24447). The hvc |
156 |
+ # things are for ppc64, see bug 86433. |
157 |
+ for file in /dev/pty/s* /dev/console /dev/hvc/* /dev/hvc*; do |
158 |
+ if [[ -e "${file}" ]]; then |
159 |
+ addwrite $file |
160 |
+ fi |
161 |
+ done |
162 |
+ |
163 |
+ # Let Portage do the stripping. Some people like that. |
164 |
+ export ac_cv_prog_STRIP="$(type -P true ) faking strip" |
165 |
+ |
166 |
+ # Keep Gentoo Prefix env contained within the EPREFIX |
167 |
+ use prefix && myconf+=" --without-local-dir" |
168 |
+ |
169 |
+ econf \ |
170 |
+ --with-modified-by=Gentoo-${PVR} \ |
171 |
+ --enable-gui=no \ |
172 |
+ --without-x \ |
173 |
+ --disable-darwin \ |
174 |
+ --disable-perlinterp \ |
175 |
+ --disable-pythoninterp \ |
176 |
+ --disable-rubyinterp \ |
177 |
+ --disable-gpm \ |
178 |
+ --disable-selinux \ |
179 |
+ $(use_enable nls) \ |
180 |
+ $(use_enable acl) \ |
181 |
+ ${myconf} |
182 |
+} |
183 |
+ |
184 |
+src_compile() { |
185 |
+ emake -j1 -C src auto/osdef.h objects |
186 |
+ emake tools |
187 |
+} |
188 |
+ |
189 |
+src_test() { :; } |
190 |
+ |
191 |
+src_install() { |
192 |
+ local vimfiles=/usr/share/vim/vim${VIM_VERSION/.} |
193 |
+ |
194 |
+ dodir /usr/{bin,share/{man/man1,vim}} |
195 |
+ emake -C src \ |
196 |
+ installruntime \ |
197 |
+ installmanlinks \ |
198 |
+ installmacros \ |
199 |
+ installtutor \ |
200 |
+ installtutorbin \ |
201 |
+ installtools \ |
202 |
+ install-languages \ |
203 |
+ DESTDIR="${D}" \ |
204 |
+ BINDIR="${EPREFIX}"/usr/bin \ |
205 |
+ MANDIR="${EPREFIX}"/usr/share/man \ |
206 |
+ DATADIR="${EPREFIX}"/usr/share |
207 |
+ |
208 |
+ keepdir ${vimfiles}/keymap |
209 |
+ |
210 |
+ # default vimrc is installed by vim-core since it applies to |
211 |
+ # both vim and gvim |
212 |
+ insinto /etc/vim/ |
213 |
+ newins "${FILESDIR}"/vimrc-r5 vimrc |
214 |
+ eprefixify "${ED}"/etc/vim/vimrc |
215 |
+ |
216 |
+ if use minimal; then |
217 |
+ # To save space, install only a subset of the files. |
218 |
+ # Helps minimalize the livecd, bug 65144. |
219 |
+ eshopts_push -s extglob |
220 |
+ |
221 |
+ rm -rv "${ED}${vimfiles}"/{compiler,doc,ftplugin,indent} || die "rm failed" |
222 |
+ rm -rv "${ED}${vimfiles}"/{macros,print,tools,tutor} || die "rm failed" |
223 |
+ rm -v "${ED}"/usr/bin/vimtutor || die "rm failed" |
224 |
+ |
225 |
+ local keep_colors="default" |
226 |
+ ignore=$(rm -fr "${ED}${vimfiles}"/colors/!(${keep_colors}).vim ) |
227 |
+ |
228 |
+ local keep_syntax="conf|crontab|fstab|inittab|resolv|sshdconfig" |
229 |
+ # tinkering with the next line might make bad things happen ... |
230 |
+ keep_syntax="${keep_syntax}|syntax|nosyntax|synload" |
231 |
+ ignore=$(rm -fr "${ED}${vimfiles}"/syntax/!(${keep_syntax}).vim ) |
232 |
+ |
233 |
+ eshopts_pop |
234 |
+ fi |
235 |
+ |
236 |
+ newbashcomp "${FILESDIR}"/xxd-completion xxd |
237 |
+ |
238 |
+ # install gvim icon since both vim/gvim desktop files reference it |
239 |
+ doicon -s scalable "${FILESDIR}"/gvim.svg |
240 |
+} |
241 |
+ |
242 |
+pkg_postinst() { |
243 |
+ # update documentation tags (from vim-doc.eclass) |
244 |
+ update_vim_helptags |
245 |
+ |
246 |
+ # update icon cache |
247 |
+ gnome2_icon_cache_update |
248 |
+} |
249 |
+ |
250 |
+pkg_postrm() { |
251 |
+ # Update documentation tags (from vim-doc.eclass) |
252 |
+ update_vim_helptags |
253 |
+ |
254 |
+ # update icon cache |
255 |
+ gnome2_icon_cache_update |
256 |
+} |