-
Notifications
You must be signed in to change notification settings - Fork 193
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
app-office/wps-office: add 11.1.0.11708
- Loading branch information
1 parent
2a390b4
commit 860f809
Showing
2 changed files
with
94 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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} | ||
} |