Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
View | Details | Raw Unified | Return to bug 93970
Collapse All | Expand All

(-)vim.eclass (-15 / +37 lines)
Lines 47-53 Link Here
47
INHERITED="$INHERITED $ECLASS"
47
INHERITED="$INHERITED $ECLASS"
48
EXPORT_FUNCTIONS src_unpack pkg_setup
48
EXPORT_FUNCTIONS src_unpack pkg_setup
49
49
50
IUSE="$IUSE selinux ncurses nls acl"
50
IUSE="$IUSE selinux nls acl"
51
52
if version_is_at_least "6.3.074-r1" ; then
53
	IUSE="${IUSE} termcap-compat"
54
else
55
	IUSE="${IUSE} ncurses"
56
fi
51
57
52
if [[ "${MY_PN}" == "vim-core" ]] ; then
58
if [[ "${MY_PN}" == "vim-core" ]] ; then
53
	IUSE="$IUSE livecd"
59
	IUSE="$IUSE livecd"
Lines 122-140 Link Here
122
# Portage dependancy is for use_with/use_enable.
128
# Portage dependancy is for use_with/use_enable.
123
# ctags dependancy allows help tags to be rebuilt properly, along
129
# ctags dependancy allows help tags to be rebuilt properly, along
124
# with detection of exuberant-ctags by configure.
130
# with detection of exuberant-ctags by configure.
125
DEPEND="$DEPEND 
131
DEPEND="$DEPEND
126
	>=sys-apps/portage-2.0.45-r3
132
	>=sys-apps/portage-2.0.45-r3
127
	>=sys-apps/sed-4
133
	>=sys-apps/sed-4
128
	sys-devel/autoconf
134
	sys-devel/autoconf
129
	ncurses?  ( >=sys-libs/ncurses-5.2-r2 )
135
	dev-util/ctags"
130
	!ncurses? ( sys-libs/libtermcap-compat )
136
RDEPEND="$RDEPEND dev-util/ctags"
131
	dev-util/ctags
137
132
	"
138
if version_is_at_least "6.3.074-r1" ; then
133
RDEPEND="$RDEPEND 
139
	DEPEND="$DEPEND
134
	ncurses?  ( >=sys-libs/ncurses-5.2-r2 )
140
		!termcap-compat?  ( >=sys-libs/ncurses-5.2-r2 )
135
	!ncurses? ( sys-libs/libtermcap-compat )
141
		termcap-compat?   ( sys-libs/libtermcap-compat )"
136
	dev-util/ctags
142
	RDEPEND="$RDEPEND
137
	"
143
		!termcap-compat?  ( >=sys-libs/ncurses-5.2-r2 )
144
		termcap-compat?   ( sys-libs/libtermcap-compat )"
145
else
146
	DEPEND="$DEPEND
147
		ncurses?  ( >=sys-libs/ncurses-5.2-r2 )
148
		!ncurses? ( sys-libs/libtermcap-compat )"
149
	RDEPEND="$RDEPEND
150
		ncurses?  ( >=sys-libs/ncurses-5.2-r2 )
151
		!ncurses? ( sys-libs/libtermcap-compat )"
152
fi
138
153
139
apply_vim_patches() {
154
apply_vim_patches() {
140
	local p
155
	local p
Lines 448-457 Link Here
448
		myconf="${myconf} `use_enable nls` `use_enable acl`"
463
		myconf="${myconf} `use_enable nls` `use_enable acl`"
449
	fi
464
	fi
450
465
451
	# Note: If USE=gpm, then ncurses will still be required
466
	# Note: If USE=gpm, then ncurses will still be required. See bug #93970
452
	use ncurses \
467
	# for the reasons behind the USE flag change.
453
		&& myconf="${myconf} --with-tlib=ncurses" \
468
	if version_is_at_least "6.3.074-r1" ; then
454
		|| myconf="${myconf} --with-tlib=termcap"
469
		use ncurses \
470
			&& myconf="${myconf} --with-tlib=ncurses" \
471
			|| myconf="${myconf} --with-tlib=termcap"
472
	else
473
		use termcap-compat \
474
			&& myconf="${myconf} --with-tlib=termcap" \
475
			|| myconf="${myconf} --with-tlib=ncurses"
476
	fi
455
477
456
	use selinux \
478
	use selinux \
457
		|| myconf="${myconf} --disable-selinux"
479
		|| myconf="${myconf} --disable-selinux"

Return to bug 93970