From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by finch.gentoo.org (Postfix) with ESMTPS id 29DB01382C5 for ; Tue, 13 Feb 2018 21:30:18 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 91D0DE0ADC; Tue, 13 Feb 2018 21:30:17 +0000 (UTC) Received: from smtp.gentoo.org (smtp.gentoo.org [140.211.166.183]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id 6075BE0ADC for ; Tue, 13 Feb 2018 21:30:17 +0000 (UTC) Received: from oystercatcher.gentoo.org (unknown [IPv6:2a01:4f8:202:4333:225:90ff:fed9:fc84]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id 0501C335C3C for ; Tue, 13 Feb 2018 21:30:16 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id 8B71F1DE for ; Tue, 13 Feb 2018 21:30:14 +0000 (UTC) From: "Pacho Ramos" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Pacho Ramos" Message-ID: <1518557406.09376e45b02fac4ed13f6d7f7b8820980667526d.pacho@gentoo> Subject: [gentoo-commits] repo/gentoo:master commit in: app-office/wps-office/ X-VCS-Repository: repo/gentoo X-VCS-Files: app-office/wps-office/wps-office-10.1.0.5707_alpha21-r1.ebuild X-VCS-Directories: app-office/wps-office/ X-VCS-Committer: pacho X-VCS-Committer-Name: Pacho Ramos X-VCS-Revision: 09376e45b02fac4ed13f6d7f7b8820980667526d X-VCS-Branch: master Date: Tue, 13 Feb 2018 21:30:14 +0000 (UTC) Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-commits@lists.gentoo.org X-Archives-Salt: 0849a664-28f0-4f18-859e-5c8b8d752bad X-Archives-Hash: 26e8a6c26e9d98e919e7624055d8c542 commit: 09376e45b02fac4ed13f6d7f7b8820980667526d Author: Pacho Ramos gentoo org> AuthorDate: Tue Feb 13 21:28:59 2018 +0000 Commit: Pacho Ramos gentoo org> CommitDate: Tue Feb 13 21:30:06 2018 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=09376e45 app-office/wps-office: Update the deps completely as they were obsolete for a long time Package-Manager: Portage-2.3.20, Repoman-2.3.6 .../wps-office-10.1.0.5707_alpha21-r1.ebuild | 130 +++++++++++++++++++++ 1 file changed, 130 insertions(+) diff --git a/app-office/wps-office/wps-office-10.1.0.5707_alpha21-r1.ebuild b/app-office/wps-office/wps-office-10.1.0.5707_alpha21-r1.ebuild new file mode 100644 index 00000000000..d892d28e7b2 --- /dev/null +++ b/app-office/wps-office/wps-office-10.1.0.5707_alpha21-r1.ebuild @@ -0,0 +1,130 @@ +# Copyright 1999-2018 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +EAPI=6 +inherit font gnome2-utils unpacker versionator xdg + +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" + +# 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 + sys-devel/gcc + sys-libs/glibc + 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/systemd + 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}" + +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() { + xdg_pkg_preinst + gnome2_icon_savelist +} + +pkg_postinst() { + use sharedfonts && font_pkg_postinst + xdg_pkg_postinst + gnome2_icon_cache_update +} + +pkg_postrm() { + xdg_pkg_postrm + gnome2_icon_cache_update +}