1 |
radhermit 14/05/01 08:59:27 |
2 |
|
3 |
Modified: ChangeLog |
4 |
Added: vim-core-7.4.273.ebuild |
5 |
Log: |
6 |
Version bump. |
7 |
|
8 |
(Portage version: 2.2.10/cvs/Linux x86_64, signed Manifest commit with key 4AB3E85B4F064CA3) |
9 |
|
10 |
Revision Changes Path |
11 |
1.436 app-editors/vim-core/ChangeLog |
12 |
|
13 |
file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/app-editors/vim-core/ChangeLog?rev=1.436&view=markup |
14 |
plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/app-editors/vim-core/ChangeLog?rev=1.436&content-type=text/plain |
15 |
diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/app-editors/vim-core/ChangeLog?r1=1.435&r2=1.436 |
16 |
|
17 |
Index: ChangeLog |
18 |
=================================================================== |
19 |
RCS file: /var/cvsroot/gentoo-x86/app-editors/vim-core/ChangeLog,v |
20 |
retrieving revision 1.435 |
21 |
retrieving revision 1.436 |
22 |
diff -u -r1.435 -r1.436 |
23 |
--- ChangeLog 10 Mar 2014 19:08:30 -0000 1.435 |
24 |
+++ ChangeLog 1 May 2014 08:59:27 -0000 1.436 |
25 |
@@ -1,6 +1,11 @@ |
26 |
# ChangeLog for app-editors/vim-core |
27 |
# Copyright 1999-2014 Gentoo Foundation; Distributed under the GPL v2 |
28 |
-# $Header: /var/cvsroot/gentoo-x86/app-editors/vim-core/ChangeLog,v 1.435 2014/03/10 19:08:30 radhermit Exp $ |
29 |
+# $Header: /var/cvsroot/gentoo-x86/app-editors/vim-core/ChangeLog,v 1.436 2014/05/01 08:59:27 radhermit Exp $ |
30 |
+ |
31 |
+*vim-core-7.4.273 (01 May 2014) |
32 |
+ |
33 |
+ 01 May 2014; Tim Harder <radhermit@g.o> +vim-core-7.4.273.ebuild: |
34 |
+ Version bump. |
35 |
|
36 |
*vim-core-7.4.193 (10 Mar 2014) |
37 |
|
38 |
|
39 |
|
40 |
|
41 |
1.1 app-editors/vim-core/vim-core-7.4.273.ebuild |
42 |
|
43 |
file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/app-editors/vim-core/vim-core-7.4.273.ebuild?rev=1.1&view=markup |
44 |
plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/app-editors/vim-core/vim-core-7.4.273.ebuild?rev=1.1&content-type=text/plain |
45 |
|
46 |
Index: vim-core-7.4.273.ebuild |
47 |
=================================================================== |
48 |
# Copyright 1999-2014 Gentoo Foundation |
49 |
# Distributed under the terms of the GNU General Public License v2 |
50 |
# $Header: /var/cvsroot/gentoo-x86/app-editors/vim-core/vim-core-7.4.273.ebuild,v 1.1 2014/05/01 08:59:27 radhermit Exp $ |
51 |
|
52 |
EAPI=5 |
53 |
VIM_VERSION="7.4" |
54 |
inherit eutils vim-doc flag-o-matic versionator bash-completion-r1 prefix |
55 |
|
56 |
if [[ ${PV} == 9999* ]] ; then |
57 |
inherit mercurial |
58 |
EHG_REPO_URI="https://vim.googlecode.com/hg/" |
59 |
EHG_PROJECT="vim" |
60 |
else |
61 |
VIM_ORG_PATCHES="vim-patches-${PV}.patch.bz2" |
62 |
|
63 |
SRC_URI="ftp://ftp.vim.org/pub/vim/unix/vim-${VIM_VERSION}.tar.bz2 |
64 |
http://dev.gentoo.org/~radhermit/vim/${PN}-7.3-gentoo-patches-r4.tar.bz2 |
65 |
http://dev.gentoo.org/~radhermit/vim/${VIM_ORG_PATCHES}" |
66 |
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" |
67 |
fi |
68 |
|
69 |
DESCRIPTION="vim and gvim shared files" |
70 |
HOMEPAGE="http://www.vim.org/" |
71 |
|
72 |
SLOT="0" |
73 |
LICENSE="vim" |
74 |
IUSE="nls acl minimal" |
75 |
|
76 |
DEPEND="sys-devel/autoconf" |
77 |
PDEPEND="!minimal? ( app-vim/gentoo-syntax )" |
78 |
|
79 |
S=${WORKDIR}/vim${VIM_VERSION/.} |
80 |
|
81 |
pkg_setup() { |
82 |
# people with broken alphabets run into trouble. bug 82186. |
83 |
unset LANG LC_ALL |
84 |
export LC_COLLATE="C" |
85 |
|
86 |
# Gnome sandbox silliness. bug #114475. |
87 |
mkdir -p "${T}"/home |
88 |
export HOME="${T}"/home |
89 |
} |
90 |
|
91 |
src_prepare() { |
92 |
if [[ ${PV} != 9999* ]] ; then |
93 |
if [[ -f "${WORKDIR}"/${VIM_ORG_PATCHES%.bz2} ]] ; then |
94 |
# Apply any patches available from vim.org for this version |
95 |
epatch "${WORKDIR}"/${VIM_ORG_PATCHES%.bz2} |
96 |
fi |
97 |
|
98 |
if [[ -d "${WORKDIR}"/gentoo/patches-core/ ]]; then |
99 |
# Patches for vim-core only (runtime/*) |
100 |
EPATCH_SUFFIX="patch" EPATCH_FORCE="yes" \ |
101 |
epatch "${WORKDIR}"/gentoo/patches-core/ |
102 |
fi |
103 |
fi |
104 |
|
105 |
# Fixup a script to use awk instead of nawk |
106 |
sed -i '1s|.*|#!'"${EPREFIX}"'/usr/bin/awk -f|' "${S}"/runtime/tools/mve.awk \ |
107 |
|| die "mve.awk sed failed" |
108 |
|
109 |
# Read vimrc and gvimrc from /etc/vim |
110 |
echo '#define SYS_VIMRC_FILE "'${EPREFIX}'/etc/vim/vimrc"' >> "${S}"/src/feature.h |
111 |
echo '#define SYS_GVIMRC_FILE "'${EPREFIX}'/etc/vim/gvimrc"' >> "${S}"/src/feature.h |
112 |
|
113 |
# Use exuberant ctags which installs as /usr/bin/exuberant-ctags. |
114 |
# Hopefully this pattern won't break for a while at least. |
115 |
# This fixes bug 29398 (27 Sep 2003 agriffis) |
116 |
sed -i 's/\<ctags\("\| [-*.]\)/exuberant-&/g' \ |
117 |
"${S}"/runtime/doc/syntax.txt \ |
118 |
"${S}"/runtime/doc/tagsrch.txt \ |
119 |
"${S}"/runtime/doc/usr_29.txt \ |
120 |
"${S}"/runtime/menu.vim \ |
121 |
"${S}"/src/configure.in || die 'sed failed' |
122 |
|
123 |
# Don't be fooled by /usr/include/libc.h. When found, vim thinks |
124 |
# this is NeXT, but it's actually just a file in dev-libs/9libs |
125 |
# This fixes bug 43885 (20 Mar 2004 agriffis) |
126 |
sed -i 's/ libc\.h / /' "${S}"/src/configure.in || die 'sed failed' |
127 |
|
128 |
# gcc on sparc32 has this, uhm, interesting problem with detecting EOF |
129 |
# correctly. To avoid some really entertaining error messages about stuff |
130 |
# which isn't even in the source file being invalid, we'll do some trickery |
131 |
# to make the error never occur. bug 66162 (02 October 2004 ciaranm) |
132 |
find "${S}" -name '*.c' | while read c ; do echo >> "$c" ; done |
133 |
|
134 |
# Try to avoid sandbox problems. Bug #114475. |
135 |
if [[ -d "${S}"/src/po ]] ; then |
136 |
sed -i -e \ |
137 |
'/-S check.vim/s,..VIM.,ln -s $(VIM) testvim \; ./testvim -X,' \ |
138 |
"${S}"/src/po/Makefile |
139 |
fi |
140 |
|
141 |
if version_is_at_least 7.3.122 ; then |
142 |
cp "${S}"/src/config.mk.dist "${S}"/src/auto/config.mk |
143 |
fi |
144 |
|
145 |
# Bug #378107 - Build properly with >=perl-core/ExtUtils-ParseXS-3.20.0 |
146 |
if version_is_at_least 7.3 ; then |
147 |
sed -i "s:\\\$(PERLLIB)/ExtUtils/xsubpp:${EPREFIX}/usr/bin/xsubpp:" \ |
148 |
"${S}"/src/Makefile || die 'sed for ExtUtils-ParseXS failed' |
149 |
fi |
150 |
|
151 |
epatch_user |
152 |
} |
153 |
|
154 |
src_configure() { |
155 |
local myconf |
156 |
|
157 |
# Fix bug 37354: Disallow -funroll-all-loops on amd64 |
158 |
# Bug 57859 suggests that we want to do this for all archs |
159 |
filter-flags -funroll-all-loops |
160 |
|
161 |
# Fix bug 76331: -O3 causes problems, use -O2 instead. We'll do this for |
162 |
# everyone since previous flag filtering bugs have turned out to affect |
163 |
# multiple archs... |
164 |
replace-flags -O3 -O2 |
165 |
|
166 |
# Fix bug 18245: Prevent "make" from the following chain: |
167 |
# (1) Notice configure.in is newer than auto/configure |
168 |
# (2) Rebuild auto/configure |
169 |
# (3) Notice auto/configure is newer than auto/config.mk |
170 |
# (4) Run ./configure (with wrong args) to remake auto/config.mk |
171 |
sed -i 's/ auto.config.mk:/:/' src/Makefile || die "Makefile sed failed" |
172 |
rm -f src/auto/configure |
173 |
emake -j1 -C src autoconf |
174 |
|
175 |
# This should fix a sandbox violation (see bug 24447). The hvc |
176 |
# things are for ppc64, see bug 86433. |
177 |
for file in /dev/pty/s* /dev/console /dev/hvc/* /dev/hvc* ; do |
178 |
[[ -e ${file} ]] && addwrite $file |
179 |
done |
180 |
|
181 |
# Let Portage do the stripping. Some people like that. |
182 |
export ac_cv_prog_STRIP="$(type -P true ) faking strip" |
183 |
|
184 |
# Keep Gentoo Prefix env contained within the EPREFIX |
185 |
use prefix && myconf+=" --without-local-dir" |
186 |
|
187 |
econf \ |
188 |
--with-modified-by=Gentoo-${PVR} \ |
189 |
--with-features=tiny \ |
190 |
--enable-gui=no \ |
191 |
--without-x \ |
192 |
--disable-darwin \ |
193 |
--disable-perlinterp \ |
194 |
--disable-pythoninterp \ |
195 |
--disable-rubyinterp \ |
196 |
--disable-gpm \ |
197 |
--disable-selinux \ |
198 |
$(use_enable nls) \ |
199 |
$(use_enable acl) \ |
200 |
${myconf} |
201 |
} |
202 |
|
203 |
src_compile() { |
204 |
# The following allows emake to be used |
205 |
emake -j1 -C src auto/osdef.h objects |
206 |
|
207 |
emake tools |
208 |
} |
209 |
|
210 |
src_test() { :; } |
211 |
|
212 |
src_install() { |
213 |
local vimfiles=/usr/share/vim/vim${VIM_VERSION/.} |
214 |
|
215 |
dodir /usr/{bin,share/{man/man1,vim}} |
216 |
cd src || die "cd src failed" |
217 |
emake \ |
218 |
installruntime \ |
219 |
installmanlinks \ |
220 |
installmacros \ |
221 |
installtutor \ |
222 |
installtutorbin \ |
223 |
installtools \ |
224 |
install-languages \ |
225 |
install-icons \ |
226 |
DESTDIR="${D}" \ |
227 |
BINDIR="${EPREFIX}"/usr/bin \ |
228 |
MANDIR="${EPREFIX}"/usr/share/man \ |
229 |
DATADIR="${EPREFIX}"/usr/share |
230 |
|
231 |
keepdir ${vimfiles}/keymap |
232 |
|
233 |
# default vimrc is installed by vim-core since it applies to |
234 |
# both vim and gvim |
235 |
insinto /etc/vim/ |
236 |
newins "${FILESDIR}"/vimrc-r4 vimrc |
237 |
eprefixify "${ED}"/etc/vim/vimrc |
238 |
|
239 |
if use minimal ; then |
240 |
# To save space, install only a subset of the files. |
241 |
# Helps minimalize the livecd, bug 65144. |
242 |
eshopts_push -s extglob |
243 |
|
244 |
rm -fr "${ED}${vimfiles}"/{compiler,doc,ftplugin,indent} |
245 |
rm -fr "${ED}${vimfiles}"/{macros,print,tools,tutor} |
246 |
rm "${ED}"/usr/bin/vimtutor |
247 |
|
248 |
local keep_colors="default" |
249 |
ignore=$(rm -fr "${ED}${vimfiles}"/colors/!(${keep_colors}).vim ) |
250 |
|
251 |
local keep_syntax="conf|crontab|fstab|inittab|resolv|sshdconfig" |
252 |
# tinkering with the next line might make bad things happen ... |
253 |
keep_syntax="${keep_syntax}|syntax|nosyntax|synload" |
254 |
ignore=$(rm -fr "${ED}${vimfiles}"/syntax/!(${keep_syntax}).vim ) |
255 |
|
256 |
eshopts_pop |
257 |
fi |
258 |
|
259 |
# These files might have slight security issues, so we won't |
260 |
# install them. See bug #77841. We don't mind if these don't |
261 |
# exist. |
262 |
rm "${ED}${vimfiles}"/tools/{vimspell.sh,tcltags} 2>/dev/null |
263 |
|
264 |
newbashcomp "${FILESDIR}"/xxd-completion xxd |
265 |
|
266 |
# We shouldn't be installing the ex or view man page symlinks, as they |
267 |
# are managed by eselect-vi |
268 |
rm -f "${ED}"/usr/share/man/man1/{ex,view}.1 |
269 |
} |
270 |
|
271 |
pkg_postinst() { |
272 |
# Update documentation tags (from vim-doc.eclass) |
273 |
update_vim_helptags |
274 |
} |
275 |
|
276 |
pkg_postrm() { |
277 |
# Update documentation tags (from vim-doc.eclass) |
278 |
update_vim_helptags |
279 |
} |