You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
103 lines
2.1 KiB
103 lines
2.1 KiB
5 years ago
|
# Copyright 1999-2019 Gentoo Authors
|
||
6 years ago
|
# Distributed under the terms of the GNU General Public License v2
|
||
|
|
||
5 years ago
|
EAPI=7
|
||
|
inherit xdg
|
||
6 years ago
|
|
||
|
MY_PV="$(ver_cut 4)"
|
||
|
|
||
|
case ${ARCH} in
|
||
|
amd64)
|
||
|
MY_P="${PN}_${PV}_x86_64"
|
||
|
;;
|
||
|
x86)
|
||
|
MY_P="${PN}_${PV}_x86"
|
||
|
;;
|
||
|
esac
|
||
|
|
||
|
DESCRIPTION="WPS Office is an office productivity suite"
|
||
|
HOMEPAGE="http://www.wps.cn/product/wpslinux/ http://wps-community.org/"
|
||
|
|
||
|
KEYWORDS="~amd64 ~x86"
|
||
|
|
||
|
SRC_URI="
|
||
|
amd64? ( http://kdl.cc.ksosoft.com/wps-community/download/${MY_PV}/${PN}_${PV}_x86_64.tar.xz )
|
||
|
x86? ( http://kdl.cc.ksosoft.com/wps-community/download/${MY_PV}/${PN}_${PV}_x86.tar.xz )
|
||
|
"
|
||
|
|
||
|
SLOT="0"
|
||
|
RESTRICT="strip mirror" # mirror as explained at bug #547372
|
||
|
LICENSE="WPS-EULA"
|
||
|
IUSE=""
|
||
|
|
||
|
# 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="
|
||
|
x11-libs/libICE
|
||
|
x11-libs/libSM
|
||
|
x11-libs/libX11
|
||
|
x11-libs/libXext
|
||
|
x11-libs/libXrender
|
||
|
x11-libs/libxcb
|
||
|
media-libs/fontconfig:1.0
|
||
|
media-libs/freetype:2
|
||
|
dev-libs/glib:2
|
||
|
sys-libs/zlib:0
|
||
|
net-print/cups
|
||
|
media-libs/libpng:1.2
|
||
|
virtual/glu
|
||
|
|
||
|
dev-libs/libpcre:3
|
||
|
dev-libs/libffi
|
||
|
media-sound/pulseaudio
|
||
|
app-arch/bzip2:0
|
||
|
media-libs/libpng:0
|
||
|
dev-libs/expat
|
||
|
sys-apps/util-linux
|
||
|
dev-libs/libbsd
|
||
|
x11-libs/libXau
|
||
|
x11-libs/libXdmcp
|
||
|
sys-apps/dbus
|
||
|
x11-libs/libXtst
|
||
|
sys-apps/tcp-wrappers
|
||
|
media-libs/libsndfile
|
||
|
net-libs/libasyncns
|
||
|
dev-libs/libgcrypt:0
|
||
|
app-arch/xz-utils
|
||
|
app-arch/lz4
|
||
|
sys-libs/libcap
|
||
|
media-libs/flac
|
||
|
media-libs/libogg
|
||
|
media-libs/libvorbis
|
||
|
dev-libs/libgpg-error
|
||
|
sys-apps/attr
|
||
|
"
|
||
|
DEPEND=""
|
||
|
|
||
|
S="${WORKDIR}/${MY_P}"
|
||
|
|
||
|
#src_prepare() {
|
||
|
# default
|
||
|
# We need to drop qtwebkit bundled lib completely because it causes
|
||
|
# crashes in *some* setups (https://bugs.gentoo.org/647950)
|
||
|
# rm -f "${S}"/opt/kingsoft/wps-office/office6/libQtWebKit* || die
|
||
|
#}
|
||
|
|
||
|
src_install() {
|
||
|
exeinto /usr/bin
|
||
|
exeopts -m0755
|
||
|
doexe "${S}"/wps
|
||
|
doexe "${S}"/wpp
|
||
|
doexe "${S}"/et
|
||
|
|
||
|
insinto /usr/share
|
||
|
doins -r "${S}"/resource/{applications,icons,mime}
|
||
|
|
||
|
insinto /opt/kingsoft/wps-office
|
||
|
doins -r "${S}"/office6
|
||
|
|
||
|
fperms 0755 /opt/kingsoft/wps-office/office6/{wps,wpp,et}
|
||
|
}
|