app-office/wps-office365: add 12.1.2.29183, drop 12.1.2.28080

Switch to the .365 build, because indep365 29183 is amd64-only.
Remove the Xiezuo desktop file and icons, because /opt/xiezuo is not installed.
Remove libksai{engine,toolkits}.so, because libksailite.so is not shipped.
Depend on media-libs/libva[X] on all arches, because hardware/ links libva on amd64.
Depend on dev-db/sqlite on arm64 and loong, because libsoftokn3.so links the system libsqlite3.so.0.
Depend on dev-libs/gmp on loong, because the ofd2pdf addon links libgmp.so.10.
Recommend app-office/wps-office365-edu in pkg_postinst.

Signed-off-by: Zakk <zakk@gentoozh.org>
This commit is contained in:
Zakk committed 2026-10-13 16:30:16 +11:00
1 parent c3759847bc
commit 4c80030d1b
2 files changed
+24 -16

No files matched your search

+3 -3
View File
@@ -1,3 +1,3 @@
DIST wps-office365_12.1.2.28080_amd64.deb 600429922 BLAKE2B 57323c2917fa9b21d1764b8626cbbb5217f9e0cb3282a165b788eca47efcd199addd71663852170d9dd3d6261b4cf79a726ec1b4c431990c4ed04da13570e15c SHA512 f137f2046116ed757f8ee9213666a9923f503b0322856b04c581b2e24dc160ca0466dea3b301071ef03e16ef05bcf358d28acc3e967a846c4b44b00bed856830
DIST wps-office365_12.1.2.28080_arm64.deb 567865066 BLAKE2B 5a3bdf0a7268ceccd1157c8589d8ad5d631cf519a50bb94a4369b416d0e8121e573fc49a5b36287bf98f3815c65bb5f0535146d6a85014d93783c177fa91e12a SHA512 93f7675cf927293ccee54d90dc5f9dd6c35f046985b9187c4f2c45eb44011fc10452013e3dfb67e4f7a7a52ff0447aaad61e94bbf4eec39d0af05136b6d1d46a
DIST wps-office365_12.1.2.28080_loongarch64.deb 692018956 BLAKE2B 3b375b5809242e809196b3415bd4ecf4d67c485da8a9d6a35ef6ca17f3f9ea0c2458492837c2ec92d18f3852b09d81159473972f982d12a28442170ee61ae7a0 SHA512 4ee8c68396f158249103eddbb0a3b26fca317548de5dc821ad3b7628066ac29061a5617e9524b94949bdd0799a5ba3993b2611b4a1e42ec5539a3c539149272d
DIST wps-office365_12.1.2.29183_amd64.deb 832713576 BLAKE2B c4bb5c9b3f4e389f30dec9c5344d393a3c873580510f75cce71cbac1af7ce178e8bb073a379d648b1deff9a3ed5e570bcac68a46c125bf41fd2aa64bc0e6ece8 SHA512 fc62f93092513e21f22216a9aae16393ffee8baa4318fa5908b43657726d90a205e8f3b51936166caf4a339656411e8da4ad4ab5d90c231911564cd82bcf33a4
DIST wps-office365_12.1.2.29183_arm64.deb 789111724 BLAKE2B b9f561a60a0894a7ed8933dc060221943373abb0865ad0896d561ad2738ea08bd325647b52aba6476a3af3e6f85b4f3b61c9e3a44522b3a17bdb8992ee41ffa0 SHA512 1115d311680221d0ccfbe51b2c2c0e2e626dee2f4ca93b3d59253ed95808690272810c91b167daeb2562239c95b978e43d2648b9207527efcabf2edbe8e5c526
DIST wps-office365_12.1.2.29183_loongarch64.deb 885337842 BLAKE2B 7fe27e1524c5570deb04ba4ff072109eb06f14038aab5a87fd5346faaf17a84961e37155974bf7dcaa33f670ba80c559820f4ee8dcb26d9ad6a324dc1a9476a5 SHA512 bc34f0c7bd4c463273612d273c95b4c5fb62d6a2a7a4671fbabe687fd22a3006853fc10fa246b2f511fd8495bad86412b984607dfc2e1c96f9d44a1672cf922a
@@ -13,9 +13,9 @@ DESCRIPTION="WPS Office (WPS 365 edition), the Chinese office productivity suite
HOMEPAGE="https://www.wps.cn/product/wpslinux/"
SRC_URI="
amd64? ( https://pubwps-wps365-obs.wpscdn.cn/download/Linux/${MY_PV}/wps-office_${PV}.AK.preread.sw.indep365_763371_amd64.deb -> ${PN}_${PV}_amd64.deb )
arm64? ( https://pubwps-wps365-obs.wpscdn.cn/download/Linux/${MY_PV}/wps-office_${PV}.AK.preread.sw.indep365_763373_arm64.deb -> ${PN}_${PV}_arm64.deb )
loong? ( https://pubwps-wps365-obs.wpscdn.cn/download/Linux/${MY_PV}/wps-office_${PV}.AK.preread.sw.indep365_763378_loongarch64.deb -> ${PN}_${PV}_loongarch64.deb )
amd64? ( https://pubwps-wps365-obs.wpscdn.cn/download/Linux/${MY_PV}/wps-office_${PV}.AK.preread.sw.365_807309_amd64.deb -> ${PN}_${PV}_amd64.deb )
arm64? ( https://pubwps-wps365-obs.wpscdn.cn/download/Linux/${MY_PV}/wps-office_${PV}.AK.preread.sw.365_807310_arm64.deb -> ${PN}_${PV}_arm64.deb )
loong? ( https://pubwps-wps365-obs.wpscdn.cn/download/Linux/${MY_PV}/wps-office_${PV}.AK.preread.sw.365_807316_loongarch64.deb -> ${PN}_${PV}_loongarch64.deb )
"
S="${WORKDIR}"
@@ -54,7 +54,7 @@ RDEPEND="
media-libs/libglvnd
media-libs/libpulse
media-libs/mesa[gbm(+)]
arm64? ( media-libs/libva:0[X] )
media-libs/libva:0[X]
net-print/cups
sys-apps/dbus
sys-apps/util-linux
@@ -79,7 +79,10 @@ RDEPEND="
x11-libs/libxcb
x11-libs/libxkbcommon[X]
x11-libs/pango
arm64? ( dev-db/sqlite:3 )
loong? (
dev-db/sqlite:3
dev-libs/gmp
virtual/loong-ow-compat
)
"
@@ -119,17 +122,24 @@ src_prepare() {
# - KPacketInstall is a .deb self-installer wanting system Qt5
# - libFontWatermark.so needs libmysqlclient.so.18
# - lib{et,wpp,wps}uofrw.so are stale UOF read/write shims with no consumers
# - libksai{engine,toolkits}.so need libksailite.so, which is not shipped
rm -f "${off}"/libpeony-wpsprint-menu-plugin.so || die
rm -f "${off}"/KPacketInstall || die
rm -f "${off}"/libFontWatermark.so || die
rm -f "${off}"/lib{et,wpp,wps}uofrw.so || die
rm -f "${off}"/libksai{engine.so*,toolkits.so} || die
# The .365 build also ships the Electron WPS Xiezuo client under /opt/xiezuo,
# which is not installed; drop its menu entry and icons.
rm -f "${S}"/usr/share/applications/xiezuo.desktop \
"${S}"/usr/share/icons/hicolor/*/apps/xiezuo.png || die
# librpc{et,wpp,wps}api_sysqt5.so link the system Qt5 stack (libQt5Core / Gui
# / Network / Widgets / Xml.so.5); keeping them would fail the unresolved-
# soname QA check or force the whole dev-qt Qt5 stack into RDEPEND. Drop them:
# nothing loads them at runtime (only cfgs/wpsupgrade/ lists them), and the
# default librpc*api.so (bundled Qt4) and librpc*api_wpsqt.so (bundled Qt5)
# variants provide the same RPC API. (amd64-only .deb; rm -f no-ops elsewhere.)
# variants provide the same RPC API.
rm -f "${off}"/librpc{et,wpp,wps}api_sysqt5.so || die
# Use the system C++ runtime instead of the bundled one.
@@ -181,13 +191,11 @@ src_install() {
pkg_postinst() {
xdg_pkg_postinst
elog "WPS 365 opens a sign-in dialog on first launch that has no close"
elog "button; press Esc to dismiss it. WPS 365 may require an account, so"
elog "some features may be unavailable without signing in. If you do not"
elog "want to sign in at all, app-office/wps-office365-edu (the education"
elog "edition) works fully without an account."
elog "button; press Esc to dismiss it. Some features may require an account."
elog "app-office/wps-office365-edu (the education edition) works fully"
elog "without an account and is recommended unless you need WPS 365 features."
elog ""
elog "WPS 365 首次启动会弹出登入框且无关闭按钮,按 Esc 可关闭;"
elog "但 WPS 365 可能强制要求登入,未登入可能无法使用部分功能。"
elog "完全不想登入的话,可以改用 app-office/wps-office365-edu(教育版),"
elog "教育版不需要登入即可正常使用。"
elog "WPS 365 首次启动会弹出登录框且没有关闭按钮,按 Esc 可关闭。"
elog "部分功能可能需要登录账号。app-office/wps-office365-edu(教育版)"
elog "不需要登录即可完整使用,除非需要 WPS 365 的功能,建议改用教育版。"
}