1 # Copyright 1999-2023 Gentoo Authors
2 # Distributed under the terms of the GNU General Public License v2
10 DESCRIPTION="WPS Office is an office productivity suite, Here is the Chinese version"
11 HOMEPAGE="http://www.wps.cn/product/wpslinux/ http://wps-community.org/"
13 KEYWORDS="~amd64 ~arm64 ~mips"
16 amd64? ( https://wps-linux-personal.wpscdn.cn/wps/download/ep/Linux2019/${MY_PV}/${PN}_${PV}_amd64.deb )
17 arm64? ( https://wps-linux-personal.wpscdn.cn/wps/download/ep/Linux2019/${MY_PV}/${PN}_${PV}_arm64.deb )
18 loong? ( https://wps-linux-personal.wpscdn.cn/wps/download/ep/Linux2019/${MY_PV}/${PN}_${PV}_loongarch64.deb )
19 mips? ( https://wps-linux-personal.wpscdn.cn/wps/download/ep/Linux2019/${MY_PV}/${PN}_${PV}_mips64el.deb )
23 RESTRICT="strip mirror bindist" # mirror as explained at bug #547372
25 IUSE="big-endian systemd"
26 REQUIRED_USE="mips? ( !big-endian )"
28 # Deps got from this (listed in order):
29 # rpm -qpR wps-office-10.1.0.5707-1.a21.x86_64.rpm
30 # ldd /opt/kingsoft/wps-office/office6/wps
31 # ldd /opt/kingsoft/wps-office/office6/wpp
44 media-libs/fontconfig:1.0
49 media-libs/tiff-compat:4
50 media-sound/pulseaudio
79 doexe "${S}"/usr/bin/*
82 doins -r "${S}"/usr/share/{applications,desktop-directories,icons,mime,templates}
84 insinto /opt/kingsoft/wps-office
85 use systemd || { rm "${S}"/opt/kingsoft/wps-office/office6/libdbus-1.so* || die ; }
86 rm "${S}"/opt/kingsoft/wps-office/office6/libstdc++.so* || die
87 doins -r "${S}"/opt/kingsoft/wps-office/{office6,templates}
89 fperms 0755 /opt/kingsoft/wps-office/office6/{wps,wpp,et,wpspdf,wpsoffice,promecefpluginhost,transerr,ksolaunch,wpscloudsvr}