Created attachment 722404 [details] ebuild with the change QtWebengine is an optional dependency as of this merge: https://github.com/nextcloud/desktop/pull/3471 Only required change is adding the USE flag since they didn't add an explicit compile option. Ebuild attached.
This is good news! Though we will need to wait for 3.2.x stable backport or new major release, as this is currently only in master (you can see in src/CMakeLists.txt we still have WebEngineWidgets WebEngine REQUIRED) It is sad the configure option WITH_WEBENGINE from initial patch was not kept, though with some cmake hacks we may be able to still force a configure option - setting Qt5WebEngine_FOUND to false, or worst case by patching it
Created attachment 722419 [details, diff] backport optional webengine patch (In reply to Bernard Cafarelli from comment #1) > This is good news! Though we will need to wait for 3.2.x stable backport or > new major release, as this is currently only in master (you can see in > src/CMakeLists.txt we still have WebEngineWidgets WebEngine REQUIRED) > > It is sad the configure option WITH_WEBENGINE from initial patch was not > kept, though with some cmake hacks we may be able to still force a configure > option - setting Qt5WebEngine_FOUND to false, or worst case by patching it Ah, whoops; I got too excited and didn't realize that the change hadn't been merged into a release branch yet. I've attached my personal backport patch that works for 3.2.x; it uses the WITH_WEBENGINE option as well.
*** Bug 800896 has been marked as a duplicate of this bug. ***
OK let's get this in :) Final patch is not too large, and cmake allows to override cleanly that Qt5WebEngine_FOUND variable, like in: https://gitweb.gentoo.org/repo/gentoo.git/tree/kde-apps/marble/marble-21.04.2.ebuild#n87 I spotted some enhancements to the build system and ebuild too, once done -r1 should have webengine optional
The bug has been closed via the following commit(s): https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=9e05aaacaa41045d2f7b08efe61899a0087e699b commit 9e05aaacaa41045d2f7b08efe61899a0087e699b Author: Bernard Cafarelli <voyageur@gentoo.org> AuthorDate: 2021-07-07 19:16:04 +0000 Commit: Bernard Cafarelli <voyageur@gentoo.org> CommitDate: 2021-07-07 19:16:17 +0000 net-misc/nextcloud-client: make qtwebengine optional This large dependency is not needed for most current authentications Also updated many build options (doc, dolphin and nautilus integration) Closes: https://bugs.gentoo.org/800863 Package-Manager: Portage-3.0.20, Repoman-3.0.3 Signed-off-by: Bernard Cafarelli <voyageur@gentoo.org> .../files/nextcloud-client-3.2.3-webengine.patch | 419 +++++++++++++++++++++ net-misc/nextcloud-client/metadata.xml | 1 + .../nextcloud-client-3.2.3-r1.ebuild | 94 +++++ 3 files changed, 514 insertions(+)