dev-python/conda-libmamba-solver: bump version to 24.11.1
[gentoo-zh.git] / app-office / wps-office / wps-office-12.1.0.17900.ebuild
blob44e8f5090df9a052b5595d1da8099312ccb32814
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 amd64? ( https://dogfood.gnupg.uk/wps302/${PV}/amd64 -> ${PN}_${PV}_amd64.deb )
15 S="${WORKDIR}"
17 LICENSE="WPS-EULA"
18 SLOT="0"
19 KEYWORDS="~amd64"
20 IUSE="systemd"
21 REQUIRED_USE=""
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
29 RDEPEND="
30 app-arch/bzip2:0
31 app-arch/lz4
32 app-arch/xz-utils
33 dev-libs/expat
34 dev-libs/glib:2
35 dev-libs/libbsd
36 dev-libs/libffi
37 dev-libs/libgcrypt:0
38 dev-libs/libgpg-error
39 dev-libs/libpcre:3
40 media-libs/flac
41 media-libs/fontconfig:1.0
42 media-libs/freetype:2
43 media-libs/libogg
44 media-libs/libsndfile
45 media-libs/libvorbis
46 media-libs/tiff-compat:4
47 media-libs/libpulse
48 net-libs/libasyncns
49 net-print/cups
50 sys-apps/attr
51 sys-apps/dbus
52 sys-apps/tcp-wrappers
53 sys-apps/util-linux
54 sys-libs/libcap
55 sys-libs/zlib:0
56 virtual/glu
57 x11-libs/gtk+:2
58 x11-libs/libICE
59 x11-libs/libSM
60 x11-libs/libX11
61 x11-libs/libXau
62 x11-libs/libxcb
63 x11-libs/libXdmcp
64 x11-libs/libXext
65 x11-libs/libXrender
66 x11-libs/libXtst
67 loong? (
68 virtual/loong-ow-compat
72 pkg_nofetch() {
73 einfo "Please download WPS Office 2019 For Linux version ${PV} from"
74 einfo " ${HOMEPAGE}"
75 einfo "The archive should then be placed into your distfiles directory."
78 src_install() {
79 exeinto /usr/bin
80 exeopts -m0755
81 doexe "${S}"/usr/bin/*
83 insinto /usr/share
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}