--- nmon-14g-orig.ebuild 2014-03-19 12:42:47.945969690 -0700 +++ nmon-14g.ebuild 2014-03-19 13:14:00.826920147 -0700 @@ -25,8 +25,22 @@ } src_compile() { + # if ncurses is built with separate tinfo libs, then... + if has_version "sys-libs/ncurses[tinfo]" ; then + if has_version "sys-libs/ncurses[unicode]" ; then + CURSES_LIB="-lncursesw -ltinfow" + else + CURSES_LIB="-lncurses -ltinfo" + fi + else + if has_version "sys-libs/ncurses[unicode]" ; then + CURSES_LIB="-lncursesw" + else + CURSES_LIB="-lncurses" + fi + fi append-cppflags -DJFS -DGETUSER -DLARGEMEM - emake CC="$(tc-getCC)" LDLIBS="-lncurses" nmon + emake CC="$(tc-getCC)" LDLIBS="${CURSES_LIB}" nmon } src_install() {