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 arm64? ( https://github.com/peeweep/gentoo-go-deps/releases/download/${PN}_${PV}/${PN}_${PV}_arm64.deb )
13 amd64? ( https://github.com/peeweep/gentoo-go-deps/releases/download/${PN}_${PV}/${PN}_${PV}_amd64.deb )
14 loong? ( https://github.com/peeweep/gentoo-go-deps/releases/download/${PN}_${PV}/${PN}_${PV}_loongarch64.deb )
15 mips? ( ${PN}_${PV}_mips64el.deb )
22 KEYWORDS
="~amd64 ~arm64 ~loong ~mips"
23 IUSE
="big-endian systemd abi_mips_n64"
24 REQUIRED_USE
="mips? ( !big-endian abi_mips_n64 )"
26 RESTRICT
="strip mirror bindist" # mirror as explained at bug #547372
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
71 virtual/loong-ow-compat
76 einfo
"Please download WPS Office 2019 For Linux version ${PV} from"
78 einfo
"The archive should then be placed into your distfiles directory."
84 doexe
"${S}"/usr
/bin
/*
87 doins
-r "${S}"/usr
/share
/{applications
,desktop-directories
,icons
,mime
,templates
}
89 insinto
/opt
/kingsoft
/wps-office
90 use systemd ||
{ rm "${S}"/opt
/kingsoft
/wps-office
/office
6/libdbus-1.so
* || die
; }
91 rm "${S}"/opt
/kingsoft
/wps-office
/office
6/libstdc
++.so
* || die
92 doins
-r "${S}"/opt
/kingsoft
/wps-office
/{office6
,templates
}
94 fperms
0755 /opt
/kingsoft
/wps-office
/office
6/{wps
,wpp
,et
,wpspdf
,wpsoffice
,promecefpluginhost
,transerr
,ksolaunch
,wpscloudsvr
}