Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
View | Details | Raw Unified | Return to bug 503732 | Differences between
and this patch

Collapse All | Expand All

(-)/var/db/repos/gentoo/app-editors/vim/vim-8.2.3428-r1.ebuild (-61 / +42 lines)
Lines 24-34 Link Here
24
24
25
SLOT="0"
25
SLOT="0"
26
LICENSE="vim"
26
LICENSE="vim"
27
IUSE="X acl crypt cscope debug gpm lua minimal nls perl python racket ruby selinux sound tcl terminal vim-pager"
27
IUSE="X acl crypt cscope debug gpm lua nls perl python racket ruby selinux sound tcl terminal tiny vim-pager"
28
REQUIRED_USE="
28
REQUIRED_USE="
29
	lua? ( ${LUA_REQUIRED_USE} )
29
	lua? ( ${LUA_REQUIRED_USE} )
30
	python? ( ${PYTHON_REQUIRED_USE} )
30
	python? ( ${PYTHON_REQUIRED_USE} )
31
	vim-pager? ( !minimal )
31
	tiny? ( !lua !perl !python !vim-pager )
32
"
32
"
33
33
34
RDEPEND="
34
RDEPEND="
Lines 42-49 Link Here
42
	lua? ( ${LUA_DEPS}
42
	lua? ( ${LUA_DEPS}
43
		$(lua_gen_impl_dep 'deprecated' lua5-1)
43
		$(lua_gen_impl_dep 'deprecated' lua5-1)
44
	)
44
	)
45
	!minimal? ( ~app-editors/vim-core-${PV} )
45
	vim-pager? ( app-editors/vim-core[-tiny] )
46
	vim-pager? ( app-editors/vim-core[-minimal] )
47
	perl? ( dev-lang/perl:= )
46
	perl? ( dev-lang/perl:= )
48
	python? ( ${PYTHON_DEPS} )
47
	python? ( ${PYTHON_DEPS} )
49
	racket? ( dev-scheme/racket )
48
	racket? ( dev-scheme/racket )
Lines 51-56 Link Here
51
	selinux? ( sys-libs/libselinux )
50
	selinux? ( sys-libs/libselinux )
52
	sound? ( media-libs/libcanberra )
51
	sound? ( media-libs/libcanberra )
53
	tcl? ( dev-lang/tcl:0= )
52
	tcl? ( dev-lang/tcl:0= )
53
	!tiny? ( ~app-editors/vim-core-${PV} )
54
	X? ( x11-libs/libXt )
54
	X? ( x11-libs/libXt )
55
"
55
"
56
56
Lines 176-244 Link Here
176
		fi
176
		fi
177
	done
177
	done
178
178
179
	if use minimal; then
179
	use debug && append-flags "-DDEBUG"
180
		myconf=(
181
			--with-features=tiny
182
			--disable-nls
183
			--disable-canberra
184
			--disable-acl
185
			--enable-gui=no
186
			--without-x
187
			--disable-darwin
188
			--disable-luainterp
189
			--disable-perlinterp
190
			--disable-pythoninterp
191
			--disable-mzschemeinterp
192
			--disable-rubyinterp
193
			--disable-selinux
194
			--disable-tclinterp
195
			--disable-gpm
196
		)
197
	else
198
		use debug && append-flags "-DDEBUG"
199
200
		myconf=(
201
			--with-features=huge
202
			$(use_enable sound canberra)
203
			$(use_enable acl)
204
			$(use_enable crypt libsodium)
205
			$(use_enable cscope)
206
			$(use_enable gpm)
207
			$(use_enable nls)
208
			$(use_enable perl perlinterp)
209
			$(use_enable python python3interp)
210
			$(use_with python python3-command "${PYTHON}")
211
			$(use_enable racket mzschemeinterp)
212
			$(use_enable ruby rubyinterp)
213
			$(use_enable selinux)
214
			$(use_enable tcl tclinterp)
215
			$(use_enable terminal)
216
		)
217
180
218
		# --with-features=huge forces on cscope even if we --disable it. We need
181
	myconf=(
219
		# to sed this out to avoid screwiness. (1 Sep 2004 ciaranm)
182
		--with-features=$(usex tiny tiny huge)
220
		if ! use cscope; then
183
		$(use_enable sound canberra)
221
			sed -i -e \
184
		$(use_enable acl)
222
				'/# define FEAT_CSCOPE/d' src/feature.h || die "sed failed"
185
		$(use_enable crypt libsodium)
223
		fi
186
		$(use_enable cscope)
187
		$(use_enable gpm)
188
		$(use_enable nls)
189
		$(use_enable perl perlinterp)
190
		$(use_enable python python3interp)
191
		$(use_with python python3-command "${PYTHON}")
192
		$(use_enable racket mzschemeinterp)
193
		$(use_enable ruby rubyinterp)
194
		$(use_enable selinux)
195
		$(use_enable tcl tclinterp)
196
		$(use_enable terminal)
197
	)
224
198
225
		if use lua; then
199
	# --with-features=huge forces on cscope even if we --disable it. We need
226
			myconf+=(
200
	# to sed this out to avoid screwiness. (1 Sep 2004 ciaranm)
227
				--enable-luainterp
201
	if ! use cscope; then
228
				$(use_with lua_single_target_luajit luajit)
202
		sed -i -e \
229
				--with-lua-prefix="${EPREFIX}/usr"
203
			'/# define FEAT_CSCOPE/d' src/feature.h || die "sed failed"
230
			)
204
	fi
231
		fi
232
205
233
		# don't test USE=X here ... see bug #19115
206
	if use lua; then
234
		# but need to provide a way to link against X ... see bug #20093
235
		myconf+=(
207
		myconf+=(
236
			--enable-gui=no
208
			--enable-luainterp
237
			--disable-darwin
209
			$(use_with lua_single_target_luajit luajit)
238
			$(use_with X x)
210
			--with-lua-prefix="${EPREFIX}/usr"
239
		)
211
		)
240
	fi
212
	fi
241
213
214
	# don't test USE=X here ... see bug #19115
215
	# but need to provide a way to link against X ... see bug #20093
216
	myconf+=(
217
		--enable-gui=no
218
		--disable-darwin
219
		$(use_with X x)
220
	)
221
242
	# let package manager strip binaries
222
	# let package manager strip binaries
243
	export ac_cv_prog_STRIP="$(type -P true ) faking strip"
223
	export ac_cv_prog_STRIP="$(type -P true ) faking strip"
244
224
Lines 301-307 Link Here
301
	# Note: Do not install symlinks for 'vi', 'ex', or 'view', as these are
281
	# Note: Do not install symlinks for 'vi', 'ex', or 'view', as these are
302
	#       managed by eselect-vi
282
	#       managed by eselect-vi
303
	dobin src/vim
283
	dobin src/vim
304
	if ! use minimal ; then
284
	if ! use tiny ; then
305
		dosym vim /usr/bin/vimdiff
285
		dosym vim /usr/bin/vimdiff
306
	fi
286
	fi
307
	dosym vim /usr/bin/rvim
287
	dosym vim /usr/bin/rvim
Lines 320-325 Link Here
320
300
321
	# keep in sync with 'complete ... -F' list
301
	# keep in sync with 'complete ... -F' list
322
	bashcomp_alias vim ex vi view rvim rview vimdiff
302
	bashcomp_alias vim ex vi view rvim rview vimdiff
303
323
}
304
}
324
305
325
pkg_postinst() {
306
pkg_postinst() {

Return to bug 503732