http->https and moved/renamed HOMEPAGE URLs; document local USE flags, correct
remote-ids, fix the DOCTYPE line, and normalise metadata.xml whitespace. Pure
metadata: no SRC_URI, ebuild logic, or Manifest changes.
Signed-off-by: Zakk <zakk@gentoozh.org>
The RDEPEND was still the 2017 10.1.0.5707 rpm's dependency list -- the same
staleness #6574 flagged for the 12.x ebuilds, which the Gentoo main tree's
11.1.0.11723-r1 also still carries. Rederive it from the actual NEEDED sonames
of the 11.x binaries and the bundled Qt5 (Kso) / WebKit / CEF libraries: drop
gtk+:2, flac, libogg, libvorbis, libpulse, libgcrypt, libpcre, attr,
tcp-wrappers, libcap, lz4 and glu, which the build no longer links; add
gtk+:3[X], at-spi2-core, cairo, gdk-pixbuf, pango, nspr, libglvnd, mesa[gbm],
libxkbcommon[X], the X extension libs, dev-db/sqlite, dev-libs/libxslt,
dev-libs/libxml2-compat:2 and media-libs/tiff-compat:4.
Make it pass the unresolved-soname QA check too: drop the default (Qt4) and
_sysqt5 (system Qt5) RPC plugin variants (Qt4 is gone from Gentoo and the
bundled _wpsqt variant provides the same API), drop the dangling
libpdfbatchcompressionapp.so (it needs an unshipped libkappessframework.so),
and replace the unversioned libc++.so soname libicu*/libv8* link with the
bundled libc++.so.1.
Add QA_PREBUILT, drop the obsolete pkg_nofetch, and restore the executable bit
doins strips off the office6 helper binaries (the old fperms list covered only
nine of them).
Set QT_IM_MODULE from XMODIFIERS in the launchers so the input method works in
the document area (WPS's bundled Qt is X11-only). The .desktop files already
carry the Office category in the 11.x .deb, so no fix-up is needed there.
Stay on 11719 rather than following the main tree to 11723: the upstream .XA
11723 build ships no zh_CN UI (amd64-only, en/ru/mn/ug), whereas 11719 bundles
Simplified Chinese and builds for arm64 and loong too.
Ship the amd64 Personal edition (upstream ships no arm64/loong build of the
Personal edition; the multi-arch WPS 365 edition is packaged separately).
Refresh the 12.x runtime deps (they were still extracted from the 2017
10.1.0.5707 rpm) from the actual NEEDED sonames: drop gtk+:2, tcp-wrappers,
tiff-compat and friends; add gtk+:3[X], libxkbcommon[X] (needed under
wayland), at-spi2-core, libglvnd, mesa[gbm], cairo, pango, etc. Closes#6574.
Fix the et/wpp/wpspdf launchers so components open again in the default
fusion component mode (they only re-exec on "/prometheus"). Closes#7907.
Make the bundled plugin libraries resolve statically: they load at runtime
via the host process's global scope, but Portage's unresolved-soname QA
check inspects each ELF in isolation. Rewrite every RPATH to a clean
$ORIGIN-relative set that reaches office6/ and the cross-addon dirs, so the
libraries genuinely resolve (verified: 0 "not found" across the bundled .so
set, no QA elog). Drop the Peony/KPacketInstall/FontWatermark components that
need libraries absent on Gentoo, replace the Debian libbz2.so.1.0 soname, and
restore the executable bit doins strips off the office6 helper binaries.
Set QT_IM_MODULE from XMODIFIERS in the et/wpp/wps/wpspdf launchers so the input
method works in the document area (WPS's bundled Qt is X11-only and runs under
XWayland), and add the Office freedesktop main category to the .desktop files so
the menu entries file under Office rather than Uncategorized.
Note in pkg_postinst that WPS's sign-in dialog can be dismissed with Esc.
Supersedes #10531, which stalled on exactly this unresolved-soname QA gate.
Add the WPS 365 edition (the ".365" upstream build) as a separate package.
It ships the full cloud / AI / collaboration add-on set and is the only
edition upstream builds for arm64 and loong, so it carries KEYWORDS for all
three. app-office/wps-office keeps the leaner amd64-only Personal edition;
the two install the same /opt/kingsoft/wps-office tree and /usr/bin wrappers,
so wps-office365 hard-blocks app-office/wps-office.
The runtime deps, the #7907 fusion-mode launcher fix and the unresolved-soname
RPATH rewrite are shared with wps-office (the #6574 / #7907 fixes; those bugs
are closed by the wps-office PR). The 365 tree needs a few extras over the
Personal edition:
- drop librpc{et,wpp,wps}api_sysqt5.so: the system-Qt5 build of the RPC API
plugins, which NEED libQt5Core.so.5. Nothing loads them at runtime -- the
default and _wpsqt bundled-Qt variants provide the same API -- so they are
dropped rather than pulling dev-qt/qtcore:5 in for every user;
- extend the RPATH reach to the cross-addon library directories the 365
add-ons reference (ksoftbuscore, knewshare, kwpscloudmodule, wpsbox,
kpdf2wordv3/ofd2pdf);
- add media-libs/libpulse (the bundled Qt5 multimedia libraries link it);
- remove xiezuo.desktop, a dead menu entry: it launches /opt/xiezuo/xiezuo
(WPS Collaboration), a separate Electron app this .deb does not ship.
Set QT_IM_MODULE from XMODIFIERS in the et/wpp/wps/wpspdf launchers so the input
method works in the document area (WPS's bundled Qt is X11-only), and add the
Office freedesktop main category to the .desktop files so the menu entries file
under Office rather than Uncategorized.
SRC_URI uses the official WPS CDN direct links, which are tokenless for the
365 build. pkg_postinst notes that the sign-in dialog can be dismissed with Esc.
Verified with a real amd64 emerge (rc=0, no QA elog, pkgcheck clean, 496
bundled .so resolve with 0 "not found", launchers patched, sysqt5 removed).
arm64 and loong were verified statically: the same removals + reach leave 0
real unresolved sonames on every ELF (only the arch loader is "external").