Diff gvim-9.1.0794 with a gvim-9999

/usr/portage/app-editors/gvim/gvim-9999.ebuild 2025-09-22 18:21:08.296677308 +0300
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
......
22 23
else
23 24
	SRC_URI="https://github.com/vim/vim/archive/v${PV}.tar.gz -> vim-${PV}.tar.gz
24 25
		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"
26
	KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ppc ~ppc64 ~riscv ~s390 ~sparc ~x86 ~amd64-linux ~x86-linux ~ppc-macos"
26 27
fi
27 28

  
28 29
DESCRIPTION="GUI version of the Vim text editor"
......
31 32

  
32 33
LICENSE="vim"
33 34
SLOT="0"
34
IUSE="acl crypt cscope debug lua minimal motif netbeans nls perl python racket ruby selinux session sound tcl"
35
IUSE="acl crypt cscope debug lua minimal motif netbeans nls perl python racket ruby selinux session sound tcl ${GENTOO_PERL_USESTRING}"
35 36
REQUIRED_USE="
36 37
	lua? ( ${LUA_REQUIRED_USE} )
37 38
	python? ( ${PYTHON_REQUIRED_USE} )
......
58 59
		$(lua_gen_impl_dep 'deprecated' lua5-1)
59 60
	)
60 61
	nls? ( virtual/libintl )
61
	perl? ( dev-lang/perl:= )
62
	perl? (
63
		${GENTOO_PERL_DEPSTRING}
64
		dev-lang/perl:=
65
	)
62 66
	python? ( ${PYTHON_DEPS} )
63 67
	racket? ( dev-scheme/racket )
64 68
	ruby? ( ${RUBY_DEPS} )
......
68 72
	tcl? ( dev-lang/tcl:0= )
69 73
"
70 74
DEPEND="${RDEPEND}
71
	x11-base/xorg-proto"
75
	x11-base/xorg-proto
76
"
72 77
# configure runs the Lua interpreter
73 78
BDEPEND="
74 79
	dev-build/autoconf
......
88 93
# various failures (bugs #630042 and #682320)
89 94
RESTRICT="test"
90 95

  
91
# platform-specific checks (bug #898450):
96
# platform-specific checks (bug #898450 #898452):
92 97
# - acl()     -- Solaris
93 98
# - statacl() -- AIX
94 99
QA_CONFIG_IMPL_DECL_SKIP=(
......
97 102
)
98 103

  
99 104
pkg_setup() {
100
	# people with broken alphabets run into trouble. bug 82186.
105
	# people with broken alphabets run into trouble. bug #82186.
101 106
	unset LANG LC_ALL
102 107
	export LC_COLLATE="C"
103 108

  
......
121 126

  
122 127
	# Use exuberant ctags which installs as /usr/bin/exuberant-ctags.
123 128
	# Hopefully this pattern won't break for a while at least.
124
	# This fixes bug 29398 (27 Sep 2003 agriffis)
129
	# This fixes bug #29398 (27 Sep 2003 agriffis)
125 130
	sed -i -e \
126 131
		's/\<ctags\("\| [-*.]\)/exuberant-&/g' \
127 132
		"${S}"/runtime/doc/syntax.txt \
......
142 147
	if [[ -d "${S}"/src/po ]]; then
143 148
		sed -i -e \
144 149
			'/-S check.vim/s,..VIM.,ln -s $(VIM) testvim \; ./testvim -X,' \
145
			"${S}"/src/po/Makefile || die
150
			"${S}"/src/po/Makefile || die "sed failed"
146 151
	fi
147 152

  
148 153
	cp -v "${S}"/src/config.mk.dist "${S}"/src/auto/config.mk || die "cp failed"
......
154 159
	# (4) Run ./configure (with wrong args) to remake auto/config.mk
155 160
	sed -i -e \
156 161
		's# auto/config\.mk:#:#' src/Makefile || die "Makefile sed failed"
157
	rm -v src/auto/configure || die "rm failed"
162
	rm src/auto/configure || die "rm failed"
158 163

  
159 164
	# --with-features=huge forces on cscope even if we --disable it. We need
160 165
	# to sed this out to avoid screwiness. (1 Sep 2004 ciaranm)
......
170 175
}
171 176

  
172 177
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 178
	emake -j1 -C src autoconf
184 179

  
185
	# This should fix a sandbox violation (see bug 24447). The hvc
186
	# things are for ppc64, see bug 86433.
180
	# This should fix a sandbox violation (see bug #24447). The hvc
181
	# things are for ppc64, see bug #86433.
187 182
	local file
188 183
	for file in /dev/pty/s* /dev/console /dev/hvc/* /dev/hvc*; do
189 184
		if [[ -e ${file} ]]; then
190
			addwrite $file
185
			addwrite ${file}
191 186
		fi
192 187
	done
193 188

  
189
	local myconf=(
190
		--with-modified-by="Gentoo-${PVR} (RIP Bram)"
191
		--with-vim-name=gvim
192
		--with-x
193
	)
194

  
194 195
	use debug && append-flags "-DDEBUG"
195 196

  
196
	local myconf=(
197
	myconf+=(
197 198
		--with-features=huge
198 199
		--disable-gpm
199 200
		--with-gnome=no
......
251 252
			   vim_cv_toupper_broken=no
252 253
	fi
253 254

  
254
	econf \
255
		--with-modified-by="Gentoo-${PVR} (RIP Bram)" \
256
		--with-vim-name=gvim \
257
		--with-x \
258
		"${myconf[@]}"
255
	econf "${myconf[@]}"
259 256
}
260 257

  
261 258
src_compile() {
......
290 287
}
291 288

  
292 289
# Call eselect vi update with --if-unset
293
# to respect user's choice (bug 187449)
290
# to respect user's choice (bug #187449)
294 291
eselect_vi_update() {
295 292
	ebegin "Calling eselect vi update"
296 293
	eselect vi update --if-unset
......
331 328
	# update documentation tags (from vim-doc.eclass)
332 329
	update_vim_helptags
333 330

  
334
	# update fdo mime stuff, bug #78394
331
	# update desktop file mime cache
335 332
	xdg_desktop_database_update
336 333

  
337 334
	# update icon cache
......
345 342
	# update documentation tags (from vim-doc.eclass)
346 343
	update_vim_helptags
347 344

  
348
	# update fdo mime stuff, bug #78394
345
	# update desktop file mime cache
349 346
	xdg_desktop_database_update
350 347

  
351 348
	# update icon cache
Thank you!