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