| 6 |
6 |
# Please bump with app-editors/vim-core and app-editors/vim
|
| 7 |
7 |
|
| 8 |
8 |
VIM_VERSION="9.1"
|
| 9 |
|
VIM_PATCHES_VERSION="9.0.2092"
|
|
9 |
VIM_PATCHES_VERSION="9.1.1432"
|
| 10 |
10 |
|
| 11 |
11 |
LUA_COMPAT=( lua5-{1..4} luajit )
|
| 12 |
12 |
PYTHON_COMPAT=( python3_{11..14} )
|
| 13 |
13 |
PYTHON_REQ_USE="threads(+)"
|
| 14 |
14 |
USE_RUBY="ruby31 ruby32"
|
|
15 |
GENTOO_DEPEND_ON_PERL=no
|
| 15 |
16 |
|
| 16 |
|
inherit bash-completion-r1 flag-o-matic lua-single prefix python-single-r1 ruby-single toolchain-funcs vim-doc xdg-utils
|
|
17 |
inherit bash-completion-r1 flag-o-matic lua-single perl-module prefix python-single-r1 ruby-single toolchain-funcs vim-doc xdg-utils
|
| 17 |
18 |
|
| 18 |
19 |
if [[ ${PV} == 9999* ]]; then
|
| 19 |
20 |
inherit git-r3
|
| 20 |
21 |
EGIT_REPO_URI="https://github.com/vim/vim.git"
|
| 21 |
22 |
EGIT_CHECKOUT_DIR=${WORKDIR}/vim-${PV}
|
| 22 |
23 |
else
|
| 23 |
|
SRC_URI="https://github.com/vim/vim/archive/v${PV}.tar.gz -> vim-${PV}.tar.gz
|
| 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"
|
|
24 |
SRC_URI="
|
|
25 |
https://github.com/vim/vim/archive/v${PV}.tar.gz -> vim-${PV}.tar.gz
|
|
26 |
https://gitweb.gentoo.org/proj/vim-patches.git/snapshot/vim-patches-vim-${VIM_PATCHES_VERSION}-patches.tar.bz2
|
|
27 |
"
|
|
28 |
KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~loong ~m68k ~mips ~ppc ~ppc64 ~riscv ~s390 ~sparc ~x86 ~arm64-macos ~x64-macos ~x64-solaris"
|
| 26 |
29 |
fi
|
| 27 |
30 |
|
| 28 |
31 |
DESCRIPTION="GUI version of the Vim text editor"
|
| ... | ... | |
| 31 |
34 |
|
| 32 |
35 |
LICENSE="vim"
|
| 33 |
36 |
SLOT="0"
|
| 34 |
|
IUSE="acl crypt cscope debug lua minimal motif netbeans nls perl python racket ruby selinux session sound tcl"
|
|
37 |
IUSE="acl crypt cscope debug lua minimal motif netbeans nls perl python racket ruby selinux session sound tcl wayland ${GENTOO_PERL_USESTRING}"
|
| 35 |
38 |
REQUIRED_USE="
|
| 36 |
39 |
lua? ( ${LUA_REQUIRED_USE} )
|
| 37 |
40 |
python? ( ${PYTHON_REQUIRED_USE} )
|
| ... | ... | |
| 48 |
51 |
acl? ( kernel_linux? ( sys-apps/acl ) )
|
| 49 |
52 |
motif? ( >=x11-libs/motif-2.3:0 )
|
| 50 |
53 |
!motif? (
|
| 51 |
|
x11-libs/gtk+:3
|
|
54 |
x11-libs/gtk+:3[X]
|
| 52 |
55 |
x11-libs/libXft
|
| 53 |
56 |
)
|
| 54 |
57 |
crypt? ( dev-libs/libsodium:= )
|
| ... | ... | |
| 58 |
61 |
$(lua_gen_impl_dep 'deprecated' lua5-1)
|
| 59 |
62 |
)
|
| 60 |
63 |
nls? ( virtual/libintl )
|
| 61 |
|
perl? ( dev-lang/perl:= )
|
|
64 |
perl? (
|
|
65 |
${GENTOO_PERL_DEPSTRING}
|
|
66 |
dev-lang/perl:=
|
|
67 |
)
|
| 62 |
68 |
python? ( ${PYTHON_DEPS} )
|
| 63 |
69 |
racket? ( dev-scheme/racket )
|
| 64 |
70 |
ruby? ( ${RUBY_DEPS} )
|
| ... | ... | |
| 66 |
72 |
session? ( x11-libs/libSM )
|
| 67 |
73 |
sound? ( media-libs/libcanberra )
|
| 68 |
74 |
tcl? ( dev-lang/tcl:0= )
|
|
75 |
wayland? ( dev-libs/wayland )
|
| 69 |
76 |
"
|
| 70 |
77 |
DEPEND="${RDEPEND}
|
| 71 |
78 |
x11-base/xorg-proto"
|
| ... | ... | |
| 81 |
88 |
if [[ ${PV} != 9999* ]]; then
|
| 82 |
89 |
# Gentoo patches to fix runtime issues, cross-compile errors, etc
|
| 83 |
90 |
PATCHES=(
|
| 84 |
|
"${WORKDIR}/vim-${VIM_PATCHES_VERSION}-patches"
|
|
91 |
"${WORKDIR}/vim-patches-vim-${VIM_PATCHES_VERSION}-patches"
|
| 85 |
92 |
)
|
| 86 |
93 |
fi
|
| 87 |
94 |
|
| 88 |
95 |
# various failures (bugs #630042 and #682320)
|
| 89 |
96 |
RESTRICT="test"
|
| 90 |
97 |
|
| 91 |
|
# platform-specific checks (bug #898450):
|
|
98 |
# platform-specific checks (bug #898450 #898452):
|
| 92 |
99 |
# - acl() -- Solaris
|
| 93 |
100 |
# - statacl() -- AIX
|
| 94 |
101 |
QA_CONFIG_IMPL_DECL_SKIP=(
|
| ... | ... | |
| 97 |
104 |
)
|
| 98 |
105 |
|
| 99 |
106 |
pkg_setup() {
|
| 100 |
|
# people with broken alphabets run into trouble. bug 82186.
|
|
107 |
# people with broken alphabets run into trouble. bug #82186.
|
| 101 |
108 |
unset LANG LC_ALL
|
| 102 |
109 |
export LC_COLLATE="C"
|
| 103 |
110 |
|
| ... | ... | |
| 170 |
177 |
}
|
| 171 |
178 |
|
| 172 |
179 |
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 |
180 |
emake -j1 -C src autoconf
|
| 184 |
181 |
|
| 185 |
182 |
# This should fix a sandbox violation (see bug 24447). The hvc
|
| ... | ... | |
| 187 |
184 |
local file
|
| 188 |
185 |
for file in /dev/pty/s* /dev/console /dev/hvc/* /dev/hvc*; do
|
| 189 |
186 |
if [[ -e ${file} ]]; then
|
| 190 |
|
addwrite $file
|
|
187 |
addwrite ${file}
|
| 191 |
188 |
fi
|
| 192 |
189 |
done
|
| 193 |
190 |
|
| ... | ... | |
| 211 |
208 |
$(use_enable selinux)
|
| 212 |
209 |
$(use_enable session xsmp)
|
| 213 |
210 |
$(use_enable tcl tclinterp)
|
|
211 |
$(use_with wayland)
|
| 214 |
212 |
)
|
| 215 |
213 |
|
| 216 |
214 |
if use lua; then
|
| ... | ... | |
| 290 |
288 |
}
|
| 291 |
289 |
|
| 292 |
290 |
# Call eselect vi update with --if-unset
|
| 293 |
|
# to respect user's choice (bug 187449)
|
|
291 |
# to respect user's choice (bug #187449)
|
| 294 |
292 |
eselect_vi_update() {
|
| 295 |
293 |
ebegin "Calling eselect vi update"
|
| 296 |
294 |
eselect vi update --if-unset
|