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

Collapse All | Expand All

(-)Curses-1.320.0.ebuild (-2 / +8 lines)
Lines 24-35 Link Here
24
	echo ncurses$(use unicode && echo w)
24
	echo ncurses$(use unicode && echo w)
25
}
25
}
26
26
27
my_curses_major() {
28
	local CURSES_MAJOR=$(portageq best_version / sys-libs/ncurses | sed 's%^sys-libs/ncurses-%%; s/\..*//' | egrep '^[0-9]+$')
29
	test -n "${CURSES_MAJOR}" || die "Could not determine ncurses major version"
30
	echo "${CURSES_MAJOR}"
31
}
32
27
pkg_setup() {
33
pkg_setup() {
28
	myconf="${myconf} FORMS PANELS MENUS"
34
	myconf="${myconf} FORMS PANELS MENUS"
29
	mydoc=HISTORY
35
	mydoc=HISTORY
30
	export CURSES_LIBTYPE=$(my_curses_version)
36
	export CURSES_LIBTYPE=$(my_curses_version)
31
	export CURSES_LDFLAGS=$($(my_curses_version)5-config --libs)
37
	export CURSES_LDFLAGS=$($(my_curses_version)$(my_curses_major)-config --libs)
32
	export CURSES_CFLAGS=$( $(my_curses_version)5-config --cflags)
38
	export CURSES_CFLAGS=$( $(my_curses_version)$(my_curses_major)-config --cflags)
33
}
39
}
34
40
35
src_configure(){
41
src_configure(){

Return to bug 557434