| 22 |
22 |
else
|
| 23 |
23 |
SRC_URI="https://github.com/vim/vim/archive/v${PV}.tar.gz -> vim-${PV}.tar.gz
|
| 24 |
24 |
https://git.sr.ht/~xxc3nsoredxx/vim-patches/refs/download/vim-${VIM_PATCHES_VERSION}-patches/vim-${VIM_PATCHES_VERSION}-patches.tar.xz"
|
| 25 |
|
KEYWORDS="~alpha amd64 arm arm64 ~hppa ppc ppc64 ~riscv ~s390 sparc x86 ~amd64-linux ~x86-linux ~ppc-macos"
|
|
25 |
KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ppc ~ppc64 ~riscv ~s390 ~sparc ~x86 ~amd64-linux ~x86-linux ~ppc-macos"
|
| 26 |
26 |
fi
|
| 27 |
27 |
|
| 28 |
28 |
DESCRIPTION="GUI version of the Vim text editor"
|
| ... | ... | |
| 68 |
68 |
tcl? ( dev-lang/tcl:0= )
|
| 69 |
69 |
"
|
| 70 |
70 |
DEPEND="${RDEPEND}
|
| 71 |
|
x11-base/xorg-proto"
|
|
71 |
x11-base/xorg-proto
|
|
72 |
"
|
| 72 |
73 |
# configure runs the Lua interpreter
|
| 73 |
74 |
BDEPEND="
|
| 74 |
75 |
dev-build/autoconf
|
| ... | ... | |
| 88 |
89 |
# various failures (bugs #630042 and #682320)
|
| 89 |
90 |
RESTRICT="test"
|
| 90 |
91 |
|
| 91 |
|
# platform-specific checks (bug #898450):
|
|
92 |
# platform-specific checks (bug #898450 #898452):
|
| 92 |
93 |
# - acl() -- Solaris
|
| 93 |
94 |
# - statacl() -- AIX
|
| 94 |
95 |
QA_CONFIG_IMPL_DECL_SKIP=(
|
| ... | ... | |
| 97 |
98 |
)
|
| 98 |
99 |
|
| 99 |
100 |
pkg_setup() {
|
| 100 |
|
# people with broken alphabets run into trouble. bug 82186.
|
|
101 |
# people with broken alphabets run into trouble. bug #82186.
|
| 101 |
102 |
unset LANG LC_ALL
|
| 102 |
103 |
export LC_COLLATE="C"
|
| 103 |
104 |
|
| ... | ... | |
| 121 |
122 |
|
| 122 |
123 |
# Use exuberant ctags which installs as /usr/bin/exuberant-ctags.
|
| 123 |
124 |
# Hopefully this pattern won't break for a while at least.
|
| 124 |
|
# This fixes bug 29398 (27 Sep 2003 agriffis)
|
|
125 |
# This fixes bug #29398 (27 Sep 2003 agriffis)
|
| 125 |
126 |
sed -i -e \
|
| 126 |
127 |
's/\<ctags\("\| [-*.]\)/exuberant-&/g' \
|
| 127 |
128 |
"${S}"/runtime/doc/syntax.txt \
|
| ... | ... | |
| 142 |
143 |
if [[ -d "${S}"/src/po ]]; then
|
| 143 |
144 |
sed -i -e \
|
| 144 |
145 |
'/-S check.vim/s,..VIM.,ln -s $(VIM) testvim \; ./testvim -X,' \
|
| 145 |
|
"${S}"/src/po/Makefile || die
|
|
146 |
"${S}"/src/po/Makefile || die "sed failed"
|
| 146 |
147 |
fi
|
| 147 |
148 |
|
| 148 |
149 |
cp -v "${S}"/src/config.mk.dist "${S}"/src/auto/config.mk || die "cp failed"
|
| ... | ... | |
| 154 |
155 |
# (4) Run ./configure (with wrong args) to remake auto/config.mk
|
| 155 |
156 |
sed -i -e \
|
| 156 |
157 |
's# auto/config\.mk:#:#' src/Makefile || die "Makefile sed failed"
|
| 157 |
|
rm -v src/auto/configure || die "rm failed"
|
|
158 |
rm src/auto/configure || die "rm failed"
|
| 158 |
159 |
|
| 159 |
160 |
# --with-features=huge forces on cscope even if we --disable it. We need
|
| 160 |
161 |
# to sed this out to avoid screwiness. (1 Sep 2004 ciaranm)
|
| ... | ... | |
| 170 |
171 |
}
|
| 171 |
172 |
|
| 172 |
173 |
src_configure() {
|
| 173 |
|
|
| 174 |
|
# Fix bug 37354: Disallow -funroll-all-loops on amd64
|
| 175 |
|
# Bug 57859 suggests that we want to do this for all archs
|
| 176 |
|
filter-flags -funroll-all-loops
|
| 177 |
|
|
| 178 |
|
# Fix bug 76331: -O3 causes problems, use -O2 instead. We'll do this for
|
| 179 |
|
# everyone since previous flag filtering bugs have turned out to affect
|
| 180 |
|
# multiple archs...
|
| 181 |
|
replace-flags -O3 -O2
|
| 182 |
|
|
| 183 |
174 |
emake -j1 -C src autoconf
|
| 184 |
175 |
|
| 185 |
|
# This should fix a sandbox violation (see bug 24447). The hvc
|
| 186 |
|
# things are for ppc64, see bug 86433.
|
|
176 |
# This should fix a sandbox violation (see bug #24447). The hvc
|
|
177 |
# things are for ppc64, see bug #86433.
|
| 187 |
178 |
local file
|
| 188 |
179 |
for file in /dev/pty/s* /dev/console /dev/hvc/* /dev/hvc*; do
|
| 189 |
180 |
if [[ -e ${file} ]]; then
|
| 190 |
|
addwrite $file
|
|
181 |
addwrite ${file}
|
| 191 |
182 |
fi
|
| 192 |
183 |
done
|
| 193 |
184 |
|
|
185 |
local myconf=(
|
|
186 |
--with-modified-by="Gentoo-${PVR} (RIP Bram)"
|
|
187 |
--with-vim-name=gvim
|
|
188 |
--with-x
|
|
189 |
)
|
|
190 |
|
| 194 |
191 |
use debug && append-flags "-DDEBUG"
|
| 195 |
192 |
|
| 196 |
|
local myconf=(
|
|
193 |
myconf+=(
|
| 197 |
194 |
--with-features=huge
|
| 198 |
195 |
--disable-gpm
|
| 199 |
196 |
--with-gnome=no
|
| ... | ... | |
| 251 |
248 |
vim_cv_toupper_broken=no
|
| 252 |
249 |
fi
|
| 253 |
250 |
|
| 254 |
|
econf \
|
| 255 |
|
--with-modified-by="Gentoo-${PVR} (RIP Bram)" \
|
| 256 |
|
--with-vim-name=gvim \
|
| 257 |
|
--with-x \
|
| 258 |
|
"${myconf[@]}"
|
|
251 |
econf "${myconf[@]}"
|
| 259 |
252 |
}
|
| 260 |
253 |
|
| 261 |
254 |
src_compile() {
|
| ... | ... | |
| 290 |
283 |
}
|
| 291 |
284 |
|
| 292 |
285 |
# Call eselect vi update with --if-unset
|
| 293 |
|
# to respect user's choice (bug 187449)
|
|
286 |
# to respect user's choice (bug #187449)
|
| 294 |
287 |
eselect_vi_update() {
|
| 295 |
288 |
ebegin "Calling eselect vi update"
|
| 296 |
289 |
eselect vi update --if-unset
|
| ... | ... | |
| 331 |
324 |
# update documentation tags (from vim-doc.eclass)
|
| 332 |
325 |
update_vim_helptags
|
| 333 |
326 |
|
| 334 |
|
# update fdo mime stuff, bug #78394
|
|
327 |
# update desktop file mime cache
|
| 335 |
328 |
xdg_desktop_database_update
|
| 336 |
329 |
|
| 337 |
330 |
# update icon cache
|
| ... | ... | |
| 345 |
338 |
# update documentation tags (from vim-doc.eclass)
|
| 346 |
339 |
update_vim_helptags
|
| 347 |
340 |
|
| 348 |
|
# update fdo mime stuff, bug #78394
|
|
341 |
# update desktop file mime cache
|
| 349 |
342 |
xdg_desktop_database_update
|
| 350 |
343 |
|
| 351 |
344 |
# update icon cache
|