This patch makes libqalculate compiles with -Wl,--as-needed (otherwise, some unresolved symbols in the lib prevent linking of the 'qalc' binary). The ebuild patch also do some cleanup on deps: - nls is not an option since it can't be enabled/disabled - perl is just an rdep of intltool, but intltool is needed - libs should go to DEPEND too
Created attachment 85880 [details, diff] files/libqalculate-0.9.2-asneeded.patch
Created attachment 85881 [details, diff] libqalculate-0.9.2-ebuild.patch the ebuild patch
If you want to update the ebuild, you might as well bump the version. libqalculate-0.9.3 is out, along with it's frontends.
Patch sent upstream: https://sourceforge.net/tracker/index.php?func=detail&aid=1488289&group_id=86696&atid=580548
confirmed working on x86/~x86: sci-libs/libqalculate-0.9.3 sci-calculators/qalculate-kde-0.9.3.1
It seems the patch was merged upstream in 0.9.4. (If I am wrong, feel free to reopen.)
I forgot to say I applied your other suggestions. (Sorry for the bugspam.)