summaryrefslogtreecommitdiff
path: root/app-office/wps-office
diff options
context:
space:
mode:
authorV3n3RiX <venerix@rogentos.ro>2016-07-20 21:34:07 +0100
committerV3n3RiX <venerix@rogentos.ro>2016-07-20 21:34:07 +0100
commit12f9a14ee3a0e83d5ba73eb23283782a85abb223 (patch)
tree6703c6a06cdafa6b3fd2ce520ebe98993be850a7 /app-office/wps-office
parent2d40ed1d3f8088574d0fc8b89217ad6385bd7df4 (diff)
enable wps-office mimetypes
Diffstat (limited to 'app-office/wps-office')
-rw-r--r--app-office/wps-office/wps-office-10.1.0.5672_alpha21.ebuild17
1 files changed, 16 insertions, 1 deletions
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
index bd3fe5a1..97fdfae2 100644
--- 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
@@ -3,7 +3,7 @@
# $Id$
EAPI=6
-inherit eutils unpacker versionator
+inherit eutils fdo-mime gnome2-utils unpacker versionator
MY_PV="$(get_version_component_range 1-4)"
MY_V="$(get_version_component_range 5)"
@@ -92,4 +92,19 @@ src_install() {
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
+ dodir /usr/share/mime/packages
+ for i in wps-office-wps.xml wps-office-wpp.xml wps-office-et.xml ; do
+ dosym /opt/kingsoft/wps-office/resource/mime/packages/$i /usr/share/mime/packages/$i
+ done
+}
+
+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
}