Gentoo Archives: gentoo-commits

From: Andreas Sturmlechner <asturm@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: app-office/libreoffice/
Date: Thu, 27 Jun 2019 09:59:19
Message-Id: 1561629374.52fd68f949964514e3e6874ad23f9e93c0799c37.asturm@gentoo
1 commit: 52fd68f949964514e3e6874ad23f9e93c0799c37
2 Author: Andreas Sturmlechner <asturm <AT> gentoo <DOT> org>
3 AuthorDate: Thu Jun 27 08:32:02 2019 +0000
4 Commit: Andreas Sturmlechner <asturm <AT> gentoo <DOT> org>
5 CommitDate: Thu Jun 27 09:56:14 2019 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=52fd68f9
7
8 app-office/libreoffice: Switch back to xdg-utils.eclass for now
9
10 Bug: https://bugs.gentoo.org/683302
11 Package-Manager: Portage-2.3.67, Repoman-2.3.16
12 Signed-off-by: Andreas Sturmlechner <asturm <AT> gentoo.org>
13
14 app-office/libreoffice/libreoffice-6.2.9999.ebuild | 18 +++++++++++++-----
15 app-office/libreoffice/libreoffice-9999.ebuild | 18 +++++++++++++-----
16 2 files changed, 26 insertions(+), 10 deletions(-)
17
18 diff --git a/app-office/libreoffice/libreoffice-6.2.9999.ebuild b/app-office/libreoffice/libreoffice-6.2.9999.ebuild
19 index 0fa4dccc4d5..64438bc0c90 100644
20 --- a/app-office/libreoffice/libreoffice-6.2.9999.ebuild
21 +++ b/app-office/libreoffice/libreoffice-6.2.9999.ebuild
22 @@ -21,7 +21,7 @@ BRANDING="${PN}-branding-gentoo-0.8.tar.xz"
23 # PATCHSET="${P}-patchset-01.tar.xz"
24
25 [[ ${MY_PV} == *9999* ]] && inherit git-r3
26 -inherit autotools bash-completion-r1 check-reqs flag-o-matic java-pkg-opt-2 multiprocessing python-single-r1 qmake-utils toolchain-funcs xdg
27 +inherit autotools bash-completion-r1 check-reqs flag-o-matic java-pkg-opt-2 multiprocessing python-single-r1 qmake-utils toolchain-funcs xdg-utils
28
29 DESCRIPTION="A full office productivity suite"
30 HOMEPAGE="https://www.libreoffice.org"
31 @@ -283,6 +283,7 @@ pkg_pretend() {
32 pkg_setup() {
33 java-pkg-opt-2_pkg_setup
34 python-single-r1_pkg_setup
35 + xdg_environment_reset
36
37 [[ ${MERGE_TYPE} != binary ]] && _check_reqs pkg_setup
38 }
39 @@ -306,7 +307,7 @@ src_unpack() {
40 }
41
42 src_prepare() {
43 - xdg_src_prepare
44 + default
45
46 # sandbox violations on many systems, we don't need it. Bug #646406
47 sed -i \
48 @@ -539,7 +540,14 @@ src_install() {
49 fi
50 }
51
52 -pkg_preinst() {
53 - java-utils-2_pkg_preinst
54 - xdg_pkg_preinst
55 +pkg_postinst() {
56 + xdg_icon_cache_update
57 + xdg_desktop_database_update
58 + xdg_mimeinfo_database_update
59 +}
60 +
61 +pkg_postrm() {
62 + xdg_icon_cache_update
63 + xdg_desktop_database_update
64 + xdg_mimeinfo_database_update
65 }
66
67 diff --git a/app-office/libreoffice/libreoffice-9999.ebuild b/app-office/libreoffice/libreoffice-9999.ebuild
68 index 25021012eee..2a035a036e8 100644
69 --- a/app-office/libreoffice/libreoffice-9999.ebuild
70 +++ b/app-office/libreoffice/libreoffice-9999.ebuild
71 @@ -21,7 +21,7 @@ BRANDING="${PN}-branding-gentoo-0.8.tar.xz"
72 # PATCHSET="${P}-patchset-01.tar.xz"
73
74 [[ ${MY_PV} == *9999* ]] && inherit git-r3
75 -inherit autotools bash-completion-r1 check-reqs flag-o-matic java-pkg-opt-2 multiprocessing python-single-r1 qmake-utils toolchain-funcs xdg
76 +inherit autotools bash-completion-r1 check-reqs flag-o-matic java-pkg-opt-2 multiprocessing python-single-r1 qmake-utils toolchain-funcs xdg-utils
77
78 DESCRIPTION="A full office productivity suite"
79 HOMEPAGE="https://www.libreoffice.org"
80 @@ -281,6 +281,7 @@ pkg_pretend() {
81 pkg_setup() {
82 java-pkg-opt-2_pkg_setup
83 python-single-r1_pkg_setup
84 + xdg_environment_reset
85
86 [[ ${MERGE_TYPE} != binary ]] && _check_reqs pkg_setup
87 }
88 @@ -304,7 +305,7 @@ src_unpack() {
89 }
90
91 src_prepare() {
92 - xdg_src_prepare
93 + default
94
95 # sandbox violations on many systems, we don't need it. Bug #646406
96 sed -i \
97 @@ -537,7 +538,14 @@ src_install() {
98 fi
99 }
100
101 -pkg_preinst() {
102 - java-utils-2_pkg_preinst
103 - xdg_pkg_preinst
104 +pkg_postinst() {
105 + xdg_icon_cache_update
106 + xdg_desktop_database_update
107 + xdg_mimeinfo_database_update
108 +}
109 +
110 +pkg_postrm() {
111 + xdg_icon_cache_update
112 + xdg_desktop_database_update
113 + xdg_mimeinfo_database_update
114 }