remove ia64 keywords
[gentoo-zh.git] / app-office / wps-office / wps-office-11.1.0.11719-r1.ebuild
blobe22a4e008f5a1aa3220bdda2af529a66337fc1f1
1 # Copyright 1999-2024 Gentoo Authors
2 # Distributed under the terms of the GNU General Public License v2
4 EAPI=8
6 inherit unpacker xdg
8 DESCRIPTION="WPS Office is an office productivity suite, Here is the Chinese version"
9 HOMEPAGE="https://www.wps.cn/product/wpslinux/"
11 SRC_URI="
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 )
18 S="${WORKDIR}"
20 LICENSE="WPS-EULA"
21 SLOT="0"
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
32 RDEPEND="
33 app-arch/bzip2:0
34 app-arch/lz4
35 app-arch/xz-utils
36 dev-libs/expat
37 dev-libs/glib:2
38 dev-libs/libbsd
39 dev-libs/libffi
40 dev-libs/libgcrypt:0
41 dev-libs/libgpg-error
42 dev-libs/libpcre:3
43 media-libs/flac
44 media-libs/fontconfig:1.0
45 media-libs/freetype:2
46 media-libs/libogg
47 media-libs/libsndfile
48 media-libs/libvorbis
49 media-libs/tiff-compat:4
50 media-libs/libpulse
51 net-libs/libasyncns
52 net-print/cups
53 sys-apps/attr
54 sys-apps/dbus
55 sys-apps/tcp-wrappers
56 sys-apps/util-linux
57 sys-libs/libcap
58 sys-libs/zlib:0
59 virtual/glu
60 x11-libs/gtk+:2
61 x11-libs/libICE
62 x11-libs/libSM
63 x11-libs/libX11
64 x11-libs/libXau
65 x11-libs/libxcb
66 x11-libs/libXdmcp
67 x11-libs/libXext
68 x11-libs/libXrender
69 x11-libs/libXtst
70 loong? (
71 virtual/loong-ow-compat
75 pkg_nofetch() {
76 einfo "Please download WPS Office 2019 For Linux version ${PV} from"
77 einfo " ${HOMEPAGE}"
78 einfo "The archive should then be placed into your distfiles directory."
81 src_install() {
82 exeinto /usr/bin
83 exeopts -m0755
84 doexe "${S}"/usr/bin/*
86 insinto /usr/share
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/office6/libdbus-1.so* || die ; }
91 rm "${S}"/opt/kingsoft/wps-office/office6/libstdc++.so* || die
92 doins -r "${S}"/opt/kingsoft/wps-office/{office6,templates}
94 fperms 0755 /opt/kingsoft/wps-office/office6/{wps,wpp,et,wpspdf,wpsoffice,promecefpluginhost,transerr,ksolaunch,wpscloudsvr}