1 # Copyright 1999-2024 Gentoo Authors
2 # Distributed under the terms of the GNU General Public License v2
8 DESCRIPTION="WPS Office is an office productivity suite, Here is the Chinese version"
9 HOMEPAGE="https://www.wps.cn/product/wpslinux/"
12 amd64? ( https://dogfood.gnupg.uk/wps302/${PV}/amd64 -> ${PN}_${PV}_amd64.deb )
23 RESTRICT="strip mirror bindist" # mirror as explained at bug #547372
25 # Deps got from this (listed in order):
26 # rpm -qpR wps-office-10.1.0.5707-1.a21.x86_64.rpm
27 # ldd /opt/kingsoft/wps-office/office6/wps
28 # ldd /opt/kingsoft/wps-office/office6/wpp
41 media-libs/fontconfig:1.0
46 media-libs/tiff-compat:4
68 virtual/loong-ow-compat
73 einfo "Please download WPS Office 2019 For Linux version ${PV} from"
75 einfo "The archive should then be placed into your distfiles directory."
81 doexe "${S}"/usr/bin/*
84 doins -r "${S}"/usr/share/{applications,desktop-directories,icons,mime,templates}
86 insinto /opt/kingsoft/wps-office
87 use systemd || { rm "${S}"/opt/kingsoft/wps-office/office6/libdbus-1.so* || die ; }
88 rm "${S}"/opt/kingsoft/wps-office/office6/libstdc++.so* || die
89 doins -r "${S}"/opt/kingsoft/wps-office/{office6,templates}
91 fperms 0755 /opt/kingsoft/wps-office/office6/{wps,wpp,et,wpspdf,wpsoffice,promecefpluginhost,transerr,ksolaunch,wpscloudsvr}