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(){ |