diff options
author | V3n3RiX <venerix@redcorelinux.org> | 2017-10-09 18:53:29 +0100 |
---|---|---|
committer | V3n3RiX <venerix@redcorelinux.org> | 2017-10-09 18:53:29 +0100 |
commit | 4f2d7949f03e1c198bc888f2d05f421d35c57e21 (patch) | |
tree | ba5f07bf3f9d22d82e54a462313f5d244036c768 /app-office/wps-office |
reinit the tree, so we can have metadata
Diffstat (limited to 'app-office/wps-office')
-rw-r--r-- | app-office/wps-office/Manifest | 6 | ||||
-rw-r--r-- | app-office/wps-office/metadata.xml | 11 | ||||
-rw-r--r-- | app-office/wps-office/wps-office-10.1.0.5707_alpha21.ebuild | 145 |
3 files changed, 162 insertions, 0 deletions
diff --git a/app-office/wps-office/Manifest b/app-office/wps-office/Manifest new file mode 100644 index 000000000000..008a969f31fc --- /dev/null +++ b/app-office/wps-office/Manifest @@ -0,0 +1,6 @@ +DIST wps-office_10.1.0.5707~a21_amd64.deb 88085156 SHA256 210c340ef9a1e8f127a18c32e0f53aa2bf58af7c94f532a546fb999fbf8bf2fa SHA512 3812237ef2662a9b7e3777dc253c8c410fca73627eb42e33c177b7a2c52b27324fd3ff75b24e1309ecf77279086ab639e3b7fe3e42a4a420036e2989e1941ebd WHIRLPOOL 9843b391562db0fb7fa6c9fb72e4fbcd5177d929cc4d96a626f2db9b2dfc891dfd7cdf05668805c35e2e39b86fac5e2afc27cf4f63e1fa60f66afc96a562c751 +DIST wps-office_10.1.0.5707~a21_i386.deb 87863566 SHA256 8e4625f4feabe010dccd95f9e09d488aa72fb9652c3db2aa7f4a671d0ee98355 SHA512 0fb3eb873f0017d9dbe7a3dc7d849086cdbbd5eaaf5fbfb9bdbe737c40029799df83d98e4e0bf04f6737a0033c76fccba206a3342624b045e309b6d2c35fffe7 WHIRLPOOL d5dd9ee250ad2333246fa7f71ed347cdb44986a1efada85e746282164092538917d72961e22a36473810f7ae394af2055c881c4129921c3bb25c3cb6762a16f0 +EBUILD wps-office-10.1.0.5707_alpha21.ebuild 3070 SHA256 2753eccd57d27547ea71e121c6fa060d86c93d66ffbd01b5216d27713e3b96b2 SHA512 7cc98570d739126a8f32ee5c8ab86ef004257cd790d72012de8673c4389b053245cb85abf714bd6b227342e675e36d4ae9dc9e78eadddf8e866f8e0a9e258bee WHIRLPOOL 38d6475be2623dd9550b0386675eafc20cf27197f5c226b79ba83c8019a7d3d9f556c71865f195fe326773803ab3e68eeddf2b227b82bf932656cd1c6f6ed0b7 +MISC ChangeLog 4224 SHA256 b81acc178f3e361ba6623454101914b2ebefce08d2f7edb6423415ed1fdb612c SHA512 233324f72039935158b5bc90c930731c38f36ece384919c8d9670cca0a38e93fa44fb864f4b0f94241a8cc64f945668a24668d5ec9541c29a9e2f950abd2f191 WHIRLPOOL 349d0ad05bd2a03238a199e633f3860ac0c8763adfc09df435ed1711943d560ebc99a90fe0b57987d89651236c91376b39b23f7dd84024164691366198b2df9e +MISC ChangeLog-2015 857 SHA256 5b1950712f891946274580895146ea02167443b270b9254b155ea424ad2cf386 SHA512 10930defac05f9c80d7754a182db56051020aa4f5dd54885f211eeab310fa618d663ed224b68d9764f8cd485c56d32310e32fe1008073981022d01ef78d1626f WHIRLPOOL 9b5483e80ac07a9c90c2a2cfa1dfd218959926cb238dc6986d6e896f1ecc871b8ca39022b60a100d7a2e5fc49d396ca67a0b07bd4216426ea73f449c08dedf30 +MISC metadata.xml 325 SHA256 38cdaf47877c55a4ffa3981a3a5f5081692b3ce73a326e2c1d387bdc110bf72d SHA512 f0dc46dcbbf409c15db60a6dc1b0e002300d0813385ff5bc006c333bea01be8c037edab4808b67256cd90a31790ad70f432eaedd41f8da8e4fa78e3f7440ac84 WHIRLPOOL ef04687cd858c3f1266fd64f9cab2dd329edfb4d1ca2709c393ca0f74f8a82fa6c1f9f5478e3fc337413370f84582b0b9d71cc7d370128600c2b76edead0526b diff --git a/app-office/wps-office/metadata.xml b/app-office/wps-office/metadata.xml new file mode 100644 index 000000000000..c659f42cdfe7 --- /dev/null +++ b/app-office/wps-office/metadata.xml @@ -0,0 +1,11 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> +<pkgmetadata> +<maintainer type="person"> + <email>pacho@gentoo.org</email> + <name>Pacho Ramos</name> +</maintainer> +<use> + <flag name="sharedfonts">Install WPS fonts available system wide</flag> +</use> +</pkgmetadata> diff --git a/app-office/wps-office/wps-office-10.1.0.5707_alpha21.ebuild b/app-office/wps-office/wps-office-10.1.0.5707_alpha21.ebuild new file mode 100644 index 000000000000..e480a1469eb2 --- /dev/null +++ b/app-office/wps-office/wps-office-10.1.0.5707_alpha21.ebuild @@ -0,0 +1,145 @@ +# Copyright 1999-2017 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +EAPI=6 +inherit fdo-mime font gnome2-utils 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 ~x86" + +SRC_URI=" + x86? ( http://kdl.cc.ksosoft.com/wps-community/download/${MY_BRANCH}/${PN}_${MY_VV}_i386.deb ) + amd64? ( http://kdl.cc.ksosoft.com/wps-community/download/${MY_BRANCH}/${PN}_${MY_VV}_amd64.deb ) +" + +SLOT="0" +RESTRICT="strip mirror" # mirror as explained at bug #547372 +LICENSE="WPS-EULA" +IUSE="+sharedfonts" + +UNBUNDLED_LIBS=" + media-libs/phonon +" +# Not fully unbundled: media-libs/phonon , libkso.so needs system copy, but +# wpp fails to run if bundled one is not present due to invalid symbols +# media-libs/phonon +# media-libs/tiff:3 +# dev-qt/qtwebkit:4 +# dev-qt/qtcore:4 +# dev-qt/qtdbus:4 + +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}" + +#src_prepare() { +# default + + # Remove bundled libs and rely on system versions if possible + # Commented lines are about the libs that cannot be unbundled yet. +# cd "${S}"/opt/kingsoft/wps-office/office6/ +# rm -f libQtCore.so* || die +# rm -f libQtDBus.so* || die +# rm -f libQtNetwork.so || die +# rm -f libQtWebKit.so* || die +# rm -f libphonon.so* +# rm -f libtiff.so.4* || die +#} + +src_install() { + exeinto /usr/bin + exeopts -m0755 + doexe "${S}"/usr/bin/wps + doexe "${S}"/usr/bin/wpp + doexe "${S}"/usr/bin/et + + if ! use sharedfonts; then + insinto /opt/kingsoft/wps-office/office6/fonts + doins -r "${S}"/usr/share/fonts/wps-office/* + rm -rf "${S}"/usr/share/fonts || die + fi + + insinto /usr + doins -r "${S}"/usr/share + + insinto / + doins -r "${S}"/opt + fperms 0755 /opt/kingsoft/wps-office/office6/{wps,wpp,et} +} + +pkg_preinst() { + gnome2_icon_savelist +} + +pkg_postinst() { + use sharedfonts && font_pkg_postinst + fdo-mime_desktop_database_update + fdo-mime_mime_database_update + gnome2_icon_cache_update +} + +pkg_postrm() { + fdo-mime_desktop_database_update + gnome2_icon_cache_update +} |