Skip to content

Commit

Permalink
app-office/wps-office: add 11.1.0.11708
Browse files Browse the repository at this point in the history
  • Loading branch information
liangyongxiang committed Nov 7, 2023
1 parent 2a390b4 commit 860f809
Show file tree
Hide file tree
Showing 2 changed files with 94 additions and 0 deletions.
4 changes: 4 additions & 0 deletions app-office/wps-office/Manifest
Original file line number Diff line number Diff line change
Expand Up @@ -10,3 +10,7 @@ DIST wps-office_11.1.0.11704_amd64.deb 413402466 BLAKE2B 8ea87bc5bee14c154e809d2
DIST wps-office_11.1.0.11704_arm64.deb 364030244 BLAKE2B d2697c7d816b7c826b80e5ff385d0fc3e9ed470f743e00895e0c826d343e41ad704a5e0cd085edf147da0bdc7a4e429af5ca31dedd5f9200bd59385b9f8ef99e SHA512 f5a866e0142db9635eaf0b5c10c63534468a4b3521e33b89246b2348906c34aec99b983c69aef341abb5b7b6c9e5a7ba226a07c28ea947d2ce319f25f4e8910d
DIST wps-office_11.1.0.11704_loongarch64.deb 377093304 BLAKE2B 7b3c64480585a397e3c9d5f282d1d6c0100172b3c96d65b77a2856925bc55afa918859ca6cd5bb340fcc46764f8caa2edc5b1d1f48b3659b59b1452d46e5628b SHA512 a2695d235972a9e3fcfc9372644f2241d0c7e607d350cf27a1be21986657d7a4bb6d2caf12a194bfb6e80f845ba05995683ea78832fc0edb5d1e5bba9b773aae
DIST wps-office_11.1.0.11704_mips64el.deb 362774346 BLAKE2B 3709628e6a32c4e6311ed4df410dcf9bdbcd125906bd43eeb521fbe7a9462fdec2ef8e3d6934b8b308e237903955224026183eb89bd942ef378087114b54276a SHA512 4af03d08d3eef6b63e97f31f32854ae8d0b8999c3bea0a0b784ad7cd580d5df9f6749f74d3191f9d7aa394d71d1c11d5f4677afc2912402ed63e14e534e47e75
DIST wps-office_11.1.0.11708_amd64.deb 413279302 BLAKE2B 433002925a88054bd8d22264866ce1c93b304226e0f07d9557520ad0245f2521aba4579cb17d7d239379ffb4214f42c2e1b66862263cea5c14da2d130ea71c97 SHA512 379edddbb046673c5fcb94be1e43a1506e1357fc21cb1a0b9d1b97f45450b82038211ea1bc53872d7ecda912ac3b39de4506eb271737923b9e6d9056e9c5b819
DIST wps-office_11.1.0.11708_arm64.deb 364025562 BLAKE2B 3b0c383b3bdd7e45cf1d603524f445480f5a50f12f58a626f548416ab7b4b7c84da82f40874bd14558871ab7f09d8009b2428845b6e8623a2344af3940237caa SHA512 db2e40b072a8d4e8ff0cd80b3a8bf1f74b1019d71f8caf6ecf6f68653ca12fcd6e8cc0bfb04ffe8b029c8094ce375669394308dd3424e3bf38806c84bbdb102d
DIST wps-office_11.1.0.11708_loongarch64.deb 377101730 BLAKE2B e4f6d5ac54fce3b5182ee7043ecddd5c48e5b341f1ffae93da8f724ad83edb4ee67f10e6d63e2dd7c1512ea97cc3e2aae754499e65552f5f3524f6717a40d68a SHA512 b6a1d7f71d0c4fff85b8ba2b65b159e68189fe232f008189b03c0d4adf84bd922a5aa2b6e35f4af80a09da981cb2cd481176b8e23cf2cd86463123f4cb1f7fa3
DIST wps-office_11.1.0.11708_mips64el.deb 362689758 BLAKE2B 8a68b1d6d8403f4349799df01b34e535f4e8c4ff741586f960adf9c7b68203f9f6596c6d67efb9a3e440a774caa746e11bef373969986bf776e8e6e3f5d3f6a5 SHA512 8825088f178f45f9d29c20c70b84b7a502f03c1253afcc76fdaec05267b04ab212cc7b1e8331a29296a8e729423cad78884a2f04e20b23b3f0829ccbf4fed9ca
90 changes: 90 additions & 0 deletions app-office/wps-office/wps-office-11.1.0.11708.ebuild
Original file line number Diff line number Diff line change
@@ -0,0 +1,90 @@
# Copyright 1999-2023 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2

EAPI=7

inherit unpacker xdg

MY_PV="$(ver_cut 4)"

DESCRIPTION="WPS Office is an office productivity suite, Here is the Chinese version"
HOMEPAGE="http://www.wps.cn/product/wpslinux/ http://wps-community.org/"

KEYWORDS="~amd64 ~arm64 ~mips"

SRC_URI="
amd64? ( https://wps-linux-personal.wpscdn.cn/wps/download/ep/Linux2019/${MY_PV}/${PN}_${PV}_amd64.deb )
arm64? ( https://wps-linux-personal.wpscdn.cn/wps/download/ep/Linux2019/${MY_PV}/${PN}_${PV}_arm64.deb )
loong? ( https://wps-linux-personal.wpscdn.cn/wps/download/ep/Linux2019/${MY_PV}/${PN}_${PV}_loongarch64.deb )
mips? ( https://wps-linux-personal.wpscdn.cn/wps/download/ep/Linux2019/${MY_PV}/${PN}_${PV}_mips64el.deb )
"

SLOT="0"
RESTRICT="strip mirror bindist" # mirror as explained at bug #547372
LICENSE="WPS-EULA"
IUSE="big-endian systemd"
REQUIRED_USE="mips? ( !big-endian )"

# Deps got from this (listed in order):
# rpm -qpR wps-office-10.1.0.5707-1.a21.x86_64.rpm
# ldd /opt/kingsoft/wps-office/office6/wps
# ldd /opt/kingsoft/wps-office/office6/wpp
RDEPEND="
app-arch/bzip2:0
app-arch/lz4
app-arch/xz-utils
dev-libs/expat
dev-libs/glib:2
dev-libs/libbsd
dev-libs/libffi
dev-libs/libgcrypt:0
dev-libs/libgpg-error
dev-libs/libpcre:3
media-libs/flac
media-libs/fontconfig:1.0
media-libs/freetype:2
media-libs/libogg
media-libs/libsndfile
media-libs/libvorbis
media-libs/tiff-compat:4
media-sound/pulseaudio
net-libs/libasyncns
net-print/cups
sys-apps/attr
sys-apps/dbus
sys-apps/tcp-wrappers
sys-apps/util-linux
sys-libs/libcap
sys-libs/zlib:0
virtual/glu
x11-libs/gtk+:2
x11-libs/libICE
x11-libs/libSM
x11-libs/libX11
x11-libs/libXau
x11-libs/libxcb
x11-libs/libXdmcp
x11-libs/libXext
x11-libs/libXrender
x11-libs/libXtst
"
DEPEND=""
BDEPEND=""

S="${WORKDIR}"

src_install() {
exeinto /usr/bin
exeopts -m0755
doexe "${S}"/usr/bin/*

insinto /usr/share
doins -r "${S}"/usr/share/{applications,desktop-directories,icons,mime,templates}

insinto /opt/kingsoft/wps-office
use systemd || { rm "${S}"/opt/kingsoft/wps-office/office6/libdbus-1.so* || die ; }
rm "${S}"/opt/kingsoft/wps-office/office6/libstdc++.so* || die
doins -r "${S}"/opt/kingsoft/wps-office/{office6,templates}

fperms 0755 /opt/kingsoft/wps-office/office6/{wps,wpp,et,wpspdf,wpsoffice,promecefpluginhost,transerr,ksolaunch,wpscloudsvr}
}

0 comments on commit 860f809

Please sign in to comment.