Trying to build rstudio on the x86 system I stumbled upon a silly problem of ebuild containing file paths that refer only to amd64 lib directories: rstudio-1.0.136.ebuild line #176: "${EROOT}"/usr/lib64/qt5/mkspecs/features/qtsingleapplication.prf \ line #199: -DQT_QMAKE_EXECUTABLE="${EROOT}"usr/lib64/qt5/bin/qmake Which in turn led to the config error where cmake couldn't find QTSINGLEAPPLIB. Replacing 'lib64' with just 'lib' did the trick and the compilation proceeded as expected.
@gienah, there's some helper functions in qmake-utils to help get the correct paths - qt5_get_mkspecsdir and qt5_get_bindir.
commit 01bdf0bb499aa42200b8544622fe706020d7949b Author: Mark Wright <gienah@gentoo.org> Date: Wed Apr 26 18:42:42 2017 +1000 sci-mathematics/rstudio: Bump to 1.0.143, fix 609644 and 606166. Thanks to Matthias Schwartz for reporting 606166. Thanks to malices.gossips for reporting 609644, and kensington for the fix. Gentoo-Bug: 606166, 609644