Current ebuild is doing this strange thing: if use wxwidgets; then . "${ROOT}/var/lib/wxwidgets/current" if [[ "${WXCONFIG}" -eq "none" ]]; then die "The wxGTK profile should be selected!" fi local mycmakeargs=(-D GUI=WX) else Instead it should set WX_GTK_VER, inherit wxwidgets eclass and call setup-wxwidgets().
No package should ever depend on what is eselected by user for their system. This completely breaks package management predictability and tracking and lots of other problems. Please see about doing what Alexander has proposed.
The bug has been closed via the following commit(s): https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=f8d88a85978c7a6546971c853c40da02cdcad2f8 commit f8d88a85978c7a6546971c853c40da02cdcad2f8 Author: Andrey Grozin <grozin@gentoo.org> AuthorDate: 2017-12-31 02:35:26 +0000 Commit: Andrey Grozin <grozin@gentoo.org> CommitDate: 2017-12-31 02:36:50 +0000 app-text/coolreader: use wxwidgets.eclass See https://github.com/gentoo/gentoo/pull/6692 Closes: https://bugs.gentoo.org/642638 Package-Manager: Portage-2.3.19, Repoman-2.3.6 app-text/coolreader/coolreader-3.1.2.71-r3.ebuild | 58 +++++++++++++++++++++++ app-text/coolreader/metadata.xml | 3 ++ 2 files changed, 61 insertions(+)