summaryrefslogtreecommitdiff
path: root/app-office/wps-office
diff options
context:
space:
mode:
authorV3n3RiX <venerix@rogentos.ro>2016-07-19 15:09:26 +0100
committerV3n3RiX <venerix@rogentos.ro>2016-07-19 15:09:26 +0100
commit2d40ed1d3f8088574d0fc8b89217ad6385bd7df4 (patch)
tree77ce96fa56d2e75a877ab632e22f6f639e0b8984 /app-office/wps-office
parentf4d618afce6e1528a652b80b55d888139e59cfe6 (diff)
import stable thunderbird from gentoo, keep ebuild in here, in case it gets changed or deprecated sooner then we want
Diffstat (limited to 'app-office/wps-office')
-rw-r--r--app-office/wps-office/Manifest1
-rw-r--r--app-office/wps-office/wps-office-10.1.0.5672_alpha21.ebuild95
2 files changed, 96 insertions, 0 deletions
diff --git a/app-office/wps-office/Manifest b/app-office/wps-office/Manifest
new file mode 100644
index 00000000..f742d084
--- /dev/null
+++ b/app-office/wps-office/Manifest
@@ -0,0 +1 @@
+DIST wps-office_10.1.0.5672~a21_x86_64.tar.xz 161852328 SHA256 9f49052cc98958b5d60d08e2f0c81dc53f754aba1654f1407b02397a67b22356 SHA512 6b781d8b4db0173fb896e05508dd986ffb7d7c5e4ab452738b487d79588604b4a98f3616e0c775a1fd21ed20b6fbfbc9f81b1868c3cbfd34e770dfde8544c0c0 WHIRLPOOL 25b659336865f51fc1fe98300ce608c77d581db592398b8c801af44ef03c9f7892ea970e8c0f73f2c3b2420f77eb1a9d288aea5637225dc4ea1a3e01e2a35044
diff --git a/app-office/wps-office/wps-office-10.1.0.5672_alpha21.ebuild b/app-office/wps-office/wps-office-10.1.0.5672_alpha21.ebuild
new file mode 100644
index 00000000..bd3fe5a1
--- /dev/null
+++ b/app-office/wps-office/wps-office-10.1.0.5672_alpha21.ebuild
@@ -0,0 +1,95 @@
+# Copyright 1999-2016 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+EAPI=6
+inherit eutils unpacker versionator
+
+MY_PV="$(get_version_component_range 1-4)"
+MY_V="$(get_version_component_range 5)"
+
+if [ -z "$(get_version_component_range 6)" ]; then
+ MY_SP=""
+else
+ MY_SP="$(get_version_component_range 6)"
+fi
+
+case ${PV} in
+ *_alpha*)
+ MY_BRANCH=${MY_V/alpha/a}
+ ;;
+ *_beta*)
+ MY_BRANCH=${MY_V/beta/b}
+ ;;
+ *)
+ die "Invalid value for \${PV}: ${PV}"
+ ;;
+esac
+MY_VV=${MY_PV}~${MY_BRANCH}${MY_SP}
+
+DESCRIPTION="WPS Office is an office productivity suite"
+HOMEPAGE="http://linux.wps.cn/ http://wps-community.org/"
+KEYWORDS="~amd64"
+SRC_URI="http://kdl.cc.ksosoft.com/wps-community/download/${MY_BRANCH}/${PN}_${MY_VV}_x86_64.tar.xz"
+
+SLOT="0"
+RESTRICT="strip mirror" # mirror as explained at bug #547372
+LICENSE="WPS-EULA"
+IUSE=""
+
+NATIVE_DEPEND="
+ app-arch/bzip2
+ dev-libs/expat
+ dev-libs/glib:2
+ dev-libs/libffi
+ dev-libs/libxml2:2
+ media-libs/fontconfig:1.0
+ media-libs/freetype:2
+ media-libs/glu
+ media-libs/gst-plugins-base:0.10
+ media-libs/gstreamer:0.10
+ media-libs/libpng:1.2
+ virtual/opengl
+ media-libs/tiff:3
+ sys-apps/util-linux
+ sys-libs/zlib
+ x11-libs/libdrm
+ x11-libs/libICE
+ x11-libs/libSM
+ x11-libs/libX11
+ x11-libs/libXau
+ x11-libs/libxcb
+ x11-libs/libXdamage
+ x11-libs/libXdmcp
+ x11-libs/libXext
+ x11-libs/libXfixes
+ x11-libs/libXrender
+ x11-libs/libXxf86vm
+ media-libs/libmng
+ net-print/cups
+"
+RDEPEND="
+ ${UNBUNDLED_LIBS}
+ ${NATIVE_DEPEND}
+ net-nds/openldap
+ dev-db/sqlite:3
+"
+DEPEND=""
+
+S="${WORKDIR}/${PN}_${MY_VV}_x86_64"
+
+src_install() {
+ dodir /opt/kingsoft/wps-office
+ insinto /opt/kingsoft/wps-office
+ doins -r "${S}"/*
+ fperms 0755 /opt/kingsoft/wps-office/office6/{wps,wpp,et}
+ fperms 0755 /opt/kingsoft/wps-office/{wps,wpp,et}
+ dodir /usr/bin
+ for i in wps wpp et ; do
+ dosym /opt/kingsoft/wps-office/$i /usr/bin/$i
+ done
+ dodir /usr/share/applications
+ for i in wps-office-wps.desktop wps-office-wpp.desktop wps-office-et.desktop ; do
+ dosym /opt/kingsoft/wps-office/resource/applications/$i /usr/share/applications/$i
+ done
+}