According to the homepage of less, there is no dependency of less on ncurses. Reproducible: Always Steps to Reproduce: grep ncurses /usr/portage/sys-apps/less/ show a dependency on ncurses. Expected Results: there should be no 'DEPEND' line in the ebuild. Probably this depend has been added because of the lines export ac_cv_lib_ncursesw_initscr=$(yesno unicode) export ac_cv_lib_ncurses_initscr=$(yesno !unicode) These lines can stay in the ebuild, even if ncurses is not available on the platform.
Isn't ldd correct? %% ldd /usr/bin/less linux-vdso.so.1 => (0x00007fffde3fe000) libncursesw.so.5 => /lib/libncursesw.so.5 (0x00007f5cd5da9000) libc.so.6 => /lib/libc.so.6 (0x00007f5cd5a54000) libdl.so.2 => /lib/libdl.so.2 (0x00007f5cd5850000) /lib64/ld-linux-x86-64.so.2 (0x00007f5cd6011000) %% qfile libncursesw.so.5 sys-libs/ncurses (/lib64/libncursesw.so.5)
less needs a terminal library. ncurses is the only realistic option for Gentoo systems.