1 |
commit: 087928add8a0b3e3df1f6276b03c09843144962b |
2 |
Author: Andreas Sturmlechner <asturm <AT> gentoo <DOT> org> |
3 |
AuthorDate: Wed Apr 3 11:50:19 2019 +0000 |
4 |
Commit: Andreas Sturmlechner <asturm <AT> gentoo <DOT> org> |
5 |
CommitDate: Wed Apr 3 12:02:33 2019 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=087928ad |
7 |
|
8 |
app-office/libreoffice: 6.2.3.1 version bump, pre-release w/o keywords |
9 |
|
10 |
With backported patch from 6.2 branch fixing dire hidpi scaling. |
11 |
|
12 |
Package-Manager: Portage-2.3.62, Repoman-2.3.12 |
13 |
Signed-off-by: Andreas Sturmlechner <asturm <AT> gentoo.org> |
14 |
|
15 |
app-office/libreoffice/Manifest | 2 + |
16 |
...6.2.3.1-kf5-update-delayed-frame-destruct.patch | 113 +++++ |
17 |
...-6.2.3.1-qt5-kf5-disable-qt-hidpi-scaling.patch | 82 +++ |
18 |
app-office/libreoffice/libreoffice-6.2.3.1.ebuild | 549 +++++++++++++++++++++ |
19 |
4 files changed, 746 insertions(+) |
20 |
|
21 |
diff --git a/app-office/libreoffice/Manifest b/app-office/libreoffice/Manifest |
22 |
index 7f795f47d96..de991b313cf 100644 |
23 |
--- a/app-office/libreoffice/Manifest |
24 |
+++ b/app-office/libreoffice/Manifest |
25 |
@@ -6,6 +6,8 @@ DIST a7983f859eafb2677d7ff386a023bc40-xsltml_2.1.2.zip 23150 BLAKE2B 51db6bd9058 |
26 |
DIST libreoffice-6.1.5.2.tar.xz 207918636 BLAKE2B bb4e57a5363e7dc6757c537ef46231ff748649ca4b79993f371e787adba8cd1f3dd988f11e8813c24eb952d00355b02b15f0b126ea2c1f9d9ce7d6c26bf71c38 SHA512 36027ad8a3940e803908561e04feebce297db2fd570b7e43bb43d8c0b7885729eeaf0a64fc5f9e642c1008ffea0b3b1b6d0008e349cd1897425dc818ac8bf140 |
27 |
DIST libreoffice-6.2.2.2-patchset-01.tar.xz 6952 BLAKE2B 6b6b5280c9c65b7995d49bd0a5c0667226366f498f04d747e883d21490c88fcdd5abe4348ffe37d3060d0b685d4c3c3cd5e826351b22f24b68779bc5ca9d92b3 SHA512 63cce0839f65962df425f212306ed65e3899c6da857f74d7ea335bd48712fab2faa1de7dbc28a5022021a408f02cb972c3bb7b511f6e1209f103b8d214e163ac |
28 |
DIST libreoffice-6.2.2.2.tar.xz 214029032 BLAKE2B fc95d9dcb594bd18317285ecf593fb69825ecf061f7a339b48c01c858ee0340390d635a75f9be2d522f0b8883365d013b72b52f81cded509a2748ad354b9006c SHA512 f58f73fc76c57cbcbc24f63680ebc06f72cbbff9c1339c8186e70bf5f0f9ad0203ed2898ee7dd82cfb2bd0239d96a1534cec635847fe8fb50a0abe70848d2125 |
29 |
+DIST libreoffice-6.2.3.1.tar.xz 214212540 BLAKE2B 62898ab40a19e8517d32c427d68364289b73a8f13ea9c7b33f380f784908f5dbad2cbefe5e6e878c337b42306e29e2d7c574da36397b1bcd48651a519a8c04e0 SHA512 d835725f769af98c91ffe2e9cd6edb0361bbd7d8122ec6660fabebeec5830d14bc485ffa2b50a6bebcc72271440763e4aee427228c37ea81773bc83ef0650035 |
30 |
DIST libreoffice-branding-gentoo-0.8.tar.xz 151568 BLAKE2B f03c7ddeb53c5ca3fd23401679601fcf2c4037ba17be4eb7b784c7ce7ebb71a24b8ab4aac8b7da8c6b1f14dd23bc1294ba85ff4f70ad271fb4ee3c5372e10883 SHA512 785031a699b1d1895ce4b50ffc3ddf645f3a0ef9acdf37facfd18cf75db9484cb8f53a50abb63d6006ead76a80b6ff5aa99661063245ebb84bd64013d713de7f |
31 |
DIST libreoffice-help-6.1.5.2.tar.xz 15758000 BLAKE2B e8db833db00116e210cd6da578ab05089fd12128bfb8015600027c9afca09a1afe7a62e30a0271dffead5d176c0195eae9095d0e00450a926999efadf3f7572f SHA512 0575244ae595af7383b244fd3f1855b7d63820f9c3ebf87bc9d0758463b4b289988bbed99f0985508d34793967734fd83ae2d1a5db514479bb2fe32e0498fc9f |
32 |
DIST libreoffice-help-6.2.2.2.tar.xz 15267780 BLAKE2B 6e5300f8cbd202ccf411d7f5d5268075e53d004b986917a382b0bcae6e3eb2a6b69ff36bbb38b23e9661f2f0df0388032dfc2156c7e2665414137e125cc83247 SHA512 c9aebd77aa44ea54e08c9e305aa073e29a02b11fbe118f346f2bb17a6aa8c3ff13fa3ba212a29eaa4c2b3861365bf4a8683979c5e77c57fa538ef18f4aea7ae4 |
33 |
+DIST libreoffice-help-6.2.3.1.tar.xz 13023992 BLAKE2B 5cb0f6081f60cf2ac6fe9e1e8715c5e48a4e8769a44dda1dd8a66aed18992710c6075a18ff19d3c5dba136d41396da42fd66d9ce1f1cc4d5fbc77a5c04f72e6d SHA512 1bc10999401bd7fe2a7454eb036675fd43cca9c4d0ef817f28c82cb6d3818afd44428b75fd31b2dac84a77a79f0a026679fd582ffa572b79bba38de1470f8857 |
34 |
|
35 |
diff --git a/app-office/libreoffice/files/libreoffice-6.2.3.1-kf5-update-delayed-frame-destruct.patch b/app-office/libreoffice/files/libreoffice-6.2.3.1-kf5-update-delayed-frame-destruct.patch |
36 |
new file mode 100644 |
37 |
index 00000000000..17843e007e0 |
38 |
--- /dev/null |
39 |
+++ b/app-office/libreoffice/files/libreoffice-6.2.3.1-kf5-update-delayed-frame-destruct.patch |
40 |
@@ -0,0 +1,113 @@ |
41 |
+From d622be2d6bcfcc2c7260421e0eaa09c76ce15da2 Mon Sep 17 00:00:00 2001 |
42 |
+From: Aleksei Nikiforov <darktemplar@×××××××.ru> |
43 |
+Date: Wed, 6 Mar 2019 16:10:17 +0300 |
44 |
+Subject: tdf#123406 KDE5: Update delayed frame destruction |
45 |
+ |
46 |
+Move deleteLater() call to the different event loop. |
47 |
+This fixes issue with frames not being disposed of |
48 |
+deterministically, and previously opened window |
49 |
+not reactivating. |
50 |
+ |
51 |
+Also hide modal dialog window before unsetting modal mode. |
52 |
+Unsetting modal mode may require to toggle window visibility. |
53 |
+Window will be hidden soon anyway, |
54 |
+and additional generated events might make finding correct |
55 |
+focused window harder. |
56 |
+ |
57 |
+Change-Id: Id7839f817075785287b09f6ac79eb3fb211726aa |
58 |
+Reviewed-on: https://gerrit.libreoffice.org/68852 |
59 |
+Tested-by: Jenkins |
60 |
+Reviewed-by: Katarina Behrens <Katarina.Behrens@×××.de> |
61 |
+Reviewed-on: https://gerrit.libreoffice.org/70078 |
62 |
+Reviewed-by: Thorsten Behrens <Thorsten.Behrens@×××.de> |
63 |
+--- |
64 |
+ vcl/inc/qt5/Qt5Instance.hxx | 2 ++ |
65 |
+ vcl/qt5/Qt5Instance.cxx | 12 ++++++++++-- |
66 |
+ vcl/source/window/dialog.cxx | 4 ++-- |
67 |
+ 3 files changed, 14 insertions(+), 4 deletions(-) |
68 |
+ |
69 |
+diff --git a/vcl/inc/qt5/Qt5Instance.hxx b/vcl/inc/qt5/Qt5Instance.hxx |
70 |
+index 91682bd..cece484 100644 |
71 |
+--- a/vcl/inc/qt5/Qt5Instance.hxx |
72 |
++++ b/vcl/inc/qt5/Qt5Instance.hxx |
73 |
+@@ -50,10 +50,12 @@ public: |
74 |
+ |
75 |
+ private Q_SLOTS: |
76 |
+ bool ImplYield(bool bWait, bool bHandleAllCurrentEvents); |
77 |
++ static void deleteObjectLater(QObject* pObject); |
78 |
+ |
79 |
+ Q_SIGNALS: |
80 |
+ bool ImplYieldSignal(bool bWait, bool bHandleAllCurrentEvents); |
81 |
+ std::unique_ptr<SalMenu> createMenuSignal(bool, Menu*); |
82 |
++ void deleteObjectLaterSignal(QObject* pObject); |
83 |
+ |
84 |
+ public: |
85 |
+ explicit Qt5Instance(bool bUseCairo = false); |
86 |
+diff --git a/vcl/qt5/Qt5Instance.cxx b/vcl/qt5/Qt5Instance.cxx |
87 |
+index 8de9fc7..58f93fe 100644 |
88 |
+--- a/vcl/qt5/Qt5Instance.cxx |
89 |
++++ b/vcl/qt5/Qt5Instance.cxx |
90 |
+@@ -67,6 +67,12 @@ Qt5Instance::Qt5Instance(bool bUseCairo) |
91 |
+ Qt::BlockingQueuedConnection); |
92 |
+ connect(this, &Qt5Instance::createMenuSignal, this, &Qt5Instance::CreateMenu, |
93 |
+ Qt::BlockingQueuedConnection); |
94 |
++ |
95 |
++ // this one needs to be queued non-blocking |
96 |
++ // in order to have this event arriving to correct event processing loop |
97 |
++ connect(this, &Qt5Instance::deleteObjectLaterSignal, this, |
98 |
++ [](QObject* pObject) { Qt5Instance::deleteObjectLater(pObject); }, |
99 |
++ Qt::QueuedConnection); |
100 |
+ } |
101 |
+ |
102 |
+ Qt5Instance::~Qt5Instance() |
103 |
+@@ -78,6 +84,8 @@ Qt5Instance::~Qt5Instance() |
104 |
+ free(m_pFakeArgvFreeable[i]); |
105 |
+ } |
106 |
+ |
107 |
++void Qt5Instance::deleteObjectLater(QObject* pObject) { pObject->deleteLater(); } |
108 |
++ |
109 |
+ SalFrame* Qt5Instance::CreateChildFrame(SystemParentData* /*pParent*/, SalFrameStyleFlags nStyle) |
110 |
+ { |
111 |
+ return new Qt5Frame(nullptr, nStyle, m_bUseCairo); |
112 |
+@@ -94,7 +102,7 @@ void Qt5Instance::DestroyFrame(SalFrame* pFrame) |
113 |
+ if (pFrame) |
114 |
+ { |
115 |
+ assert(dynamic_cast<Qt5Frame*>(pFrame)); |
116 |
+- static_cast<Qt5Frame*>(pFrame)->deleteLater(); |
117 |
++ Q_EMIT deleteObjectLaterSignal(static_cast<Qt5Frame*>(pFrame)); |
118 |
+ } |
119 |
+ } |
120 |
+ |
121 |
+@@ -109,7 +117,7 @@ void Qt5Instance::DestroyObject(SalObject* pObject) |
122 |
+ if (pObject) |
123 |
+ { |
124 |
+ assert(dynamic_cast<Qt5Object*>(pObject)); |
125 |
+- static_cast<Qt5Object*>(pObject)->deleteLater(); |
126 |
++ Q_EMIT deleteObjectLaterSignal(static_cast<Qt5Object*>(pObject)); |
127 |
+ } |
128 |
+ } |
129 |
+ |
130 |
+diff --git a/vcl/source/window/dialog.cxx b/vcl/source/window/dialog.cxx |
131 |
+index 0c75f85..1688163 100644 |
132 |
+--- a/vcl/source/window/dialog.cxx |
133 |
++++ b/vcl/source/window/dialog.cxx |
134 |
+@@ -1097,6 +1097,8 @@ void Dialog::EndDialog( long nResult ) |
135 |
+ |
136 |
+ const bool bModal = GetType() != WindowType::MODELESSDIALOG; |
137 |
+ |
138 |
++ Hide(); |
139 |
++ |
140 |
+ if (bModal) |
141 |
+ { |
142 |
+ SetModalInputMode(false); |
143 |
+@@ -1121,8 +1123,6 @@ void Dialog::EndDialog( long nResult ) |
144 |
+ } |
145 |
+ } |
146 |
+ |
147 |
+- Hide(); |
148 |
+- |
149 |
+ if (bModal && GetParent()) |
150 |
+ { |
151 |
+ NotifyEvent aNEvt( MouseNotifyEvent::ENDEXECUTEDIALOG, this ); |
152 |
+-- |
153 |
+cgit v1.1 |
154 |
|
155 |
diff --git a/app-office/libreoffice/files/libreoffice-6.2.3.1-qt5-kf5-disable-qt-hidpi-scaling.patch b/app-office/libreoffice/files/libreoffice-6.2.3.1-qt5-kf5-disable-qt-hidpi-scaling.patch |
156 |
new file mode 100644 |
157 |
index 00000000000..12f3ddc2958 |
158 |
--- /dev/null |
159 |
+++ b/app-office/libreoffice/files/libreoffice-6.2.3.1-qt5-kf5-disable-qt-hidpi-scaling.patch |
160 |
@@ -0,0 +1,82 @@ |
161 |
+From c3eeb421526f284419e90d2c4c4da5b0d7bbcc0e Mon Sep 17 00:00:00 2001 |
162 |
+From: Jan-Marek Glogowski <glogow@×××××××.de> |
163 |
+Date: Fri, 29 Mar 2019 02:58:59 +0100 |
164 |
+Subject: tdf#124292 Qt5 / KDE5 disable Qt's HiDPI scaling |
165 |
+ |
166 |
+LO does its own layouting and also all the scaling, so disable |
167 |
+the automatic HiDPI scaling explicitly. Otherwise fonts will be |
168 |
+rendered in LoDPI and just scaled as an image, if UI scaling is |
169 |
+enabled in KDE, resulting in really blocky / ugly fonts. |
170 |
+ |
171 |
+Change-Id: I38503ce27c1671e80d0749d21c6c6dcff1a808a6 |
172 |
+Reviewed-on: https://gerrit.libreoffice.org/69941 |
173 |
+Tested-by: Jenkins |
174 |
+Reviewed-by: Jan-Marek Glogowski <glogow@×××××××.de> |
175 |
+(cherry picked from commit b4698a2241ec26d796c66da3a814f7cc693785b6) |
176 |
+Reviewed-on: https://gerrit.libreoffice.org/69984 |
177 |
+Reviewed-by: Thorsten Behrens <Thorsten.Behrens@×××.de> |
178 |
+--- |
179 |
+ vcl/qt5/Qt5Graphics_GDI.cxx | 4 ++-- |
180 |
+ vcl/qt5/Qt5Instance.cxx | 2 ++ |
181 |
+ vcl/unx/kde5/KDE5SalGraphics.cxx | 4 ++-- |
182 |
+ vcl/unx/kde5/KDE5SalInstance.cxx | 2 ++ |
183 |
+ 4 files changed, 8 insertions(+), 4 deletions(-) |
184 |
+ |
185 |
+diff --git a/vcl/qt5/Qt5Graphics_GDI.cxx b/vcl/qt5/Qt5Graphics_GDI.cxx |
186 |
+index 90baba3..851d222 100644 |
187 |
+--- a/vcl/qt5/Qt5Graphics_GDI.cxx |
188 |
++++ b/vcl/qt5/Qt5Graphics_GDI.cxx |
189 |
+@@ -643,8 +643,8 @@ void Qt5Graphics::GetResolution(sal_Int32& rDPIX, sal_Int32& rDPIY) |
190 |
+ return; |
191 |
+ |
192 |
+ QScreen* pScreen = m_pFrame->GetQWidget()->window()->windowHandle()->screen(); |
193 |
+- rDPIX = pScreen->logicalDotsPerInchX(); |
194 |
+- rDPIY = pScreen->logicalDotsPerInchY(); |
195 |
++ rDPIX = pScreen->logicalDotsPerInchX() * pScreen->devicePixelRatio() + 0.5; |
196 |
++ rDPIY = pScreen->logicalDotsPerInchY() * pScreen->devicePixelRatio() + 0.5; |
197 |
+ } |
198 |
+ |
199 |
+ sal_uInt16 Qt5Graphics::GetBitCount() const { return getFormatBits(m_pQImage->format()); } |
200 |
+diff --git a/vcl/qt5/Qt5Instance.cxx b/vcl/qt5/Qt5Instance.cxx |
201 |
+index adbe70b..8de9fc7 100644 |
202 |
+--- a/vcl/qt5/Qt5Instance.cxx |
203 |
++++ b/vcl/qt5/Qt5Instance.cxx |
204 |
+@@ -336,6 +336,8 @@ VCLPLUG_QT5_PUBLIC SalInstance* create_SalInstance() |
205 |
+ unsetenv("SESSION_MANAGER"); |
206 |
+ } |
207 |
+ |
208 |
++ QApplication::setAttribute(Qt::AA_DisableHighDpiScaling); |
209 |
++ |
210 |
+ int* pFakeArgc = new int; |
211 |
+ *pFakeArgc = nFakeArgc; |
212 |
+ pQApplication = new QApplication(*pFakeArgc, pFakeArgv); |
213 |
+diff --git a/vcl/unx/kde5/KDE5SalGraphics.cxx b/vcl/unx/kde5/KDE5SalGraphics.cxx |
214 |
+index 290127d..0b4b428 100644 |
215 |
+--- a/vcl/unx/kde5/KDE5SalGraphics.cxx |
216 |
++++ b/vcl/unx/kde5/KDE5SalGraphics.cxx |
217 |
+@@ -78,8 +78,8 @@ void KDE5SalGraphics::GetResolution(sal_Int32& rDPIX, sal_Int32& rDPIY) |
218 |
+ return; |
219 |
+ |
220 |
+ QScreen* pScreen = m_pFrame->GetQWidget()->window()->windowHandle()->screen(); |
221 |
+- rDPIX = pScreen->logicalDotsPerInchX(); |
222 |
+- rDPIY = pScreen->logicalDotsPerInchY(); |
223 |
++ rDPIX = pScreen->logicalDotsPerInchX() * pScreen->devicePixelRatio() + 0.5; |
224 |
++ rDPIY = pScreen->logicalDotsPerInchY() * pScreen->devicePixelRatio() + 0.5; |
225 |
+ } |
226 |
+ |
227 |
+ /* vim:set shiftwidth=4 softtabstop=4 expandtab: */ |
228 |
+diff --git a/vcl/unx/kde5/KDE5SalInstance.cxx b/vcl/unx/kde5/KDE5SalInstance.cxx |
229 |
+index 401afbc..32998cd 100644 |
230 |
+--- a/vcl/unx/kde5/KDE5SalInstance.cxx |
231 |
++++ b/vcl/unx/kde5/KDE5SalInstance.cxx |
232 |
+@@ -144,6 +144,8 @@ VCLPLUG_KDE5_PUBLIC SalInstance* create_SalInstance() |
233 |
+ unsetenv("SESSION_MANAGER"); |
234 |
+ } |
235 |
+ |
236 |
++ QApplication::setAttribute(Qt::AA_DisableHighDpiScaling); |
237 |
++ |
238 |
+ int* pFakeArgc = new int; |
239 |
+ *pFakeArgc = nFakeArgc; |
240 |
+ pQApplication = new QApplication(*pFakeArgc, pFakeArgv); |
241 |
+-- |
242 |
+cgit v1.1 |
243 |
|
244 |
diff --git a/app-office/libreoffice/libreoffice-6.2.3.1.ebuild b/app-office/libreoffice/libreoffice-6.2.3.1.ebuild |
245 |
new file mode 100644 |
246 |
index 00000000000..ff477aefb76 |
247 |
--- /dev/null |
248 |
+++ b/app-office/libreoffice/libreoffice-6.2.3.1.ebuild |
249 |
@@ -0,0 +1,549 @@ |
250 |
+# Copyright 1999-2019 Gentoo Authors |
251 |
+# Distributed under the terms of the GNU General Public License v2 |
252 |
+ |
253 |
+EAPI=7 |
254 |
+ |
255 |
+PYTHON_COMPAT=( python2_7 python3_{5,6,7} ) |
256 |
+PYTHON_REQ_USE="threads(+),xml" |
257 |
+ |
258 |
+MY_PV="${PV/_alpha/.alpha}" |
259 |
+MY_PV="${MY_PV/_beta/.beta}" |
260 |
+# experimental ; release ; old |
261 |
+# Usually the tarballs are moved a lot so this should make everyone happy. |
262 |
+DEV_URI=" |
263 |
+ https://dev-builds.libreoffice.org/pre-releases/src |
264 |
+ https://download.documentfoundation.org/libreoffice/src/${MY_PV:0:5}/ |
265 |
+ https://downloadarchive.documentfoundation.org/libreoffice/old/${MY_PV}/src |
266 |
+" |
267 |
+ADDONS_URI="https://dev-www.libreoffice.org/src/" |
268 |
+ |
269 |
+BRANDING="${PN}-branding-gentoo-0.8.tar.xz" |
270 |
+# PATCHSET="${P}-patchset-01.tar.xz" |
271 |
+ |
272 |
+[[ ${MY_PV} == *9999* ]] && inherit git-r3 |
273 |
+inherit autotools bash-completion-r1 check-reqs flag-o-matic java-pkg-opt-2 multiprocessing python-single-r1 qmake-utils toolchain-funcs xdg |
274 |
+ |
275 |
+DESCRIPTION="A full office productivity suite" |
276 |
+HOMEPAGE="https://www.libreoffice.org" |
277 |
+SRC_URI="branding? ( https://dev.gentoo.org/~dilfridge/distfiles/${BRANDING} )" |
278 |
+[[ -n ${PATCHSET} ]] && SRC_URI+=" https://dev.gentoo.org/~asturm/distfiles/${PATCHSET}" |
279 |
+ |
280 |
+# Split modules following git/tarballs; Core MUST be first! |
281 |
+# Help is used for the image generator |
282 |
+# Only release has the tarballs |
283 |
+if [[ ${MY_PV} != *9999* ]]; then |
284 |
+ for i in ${DEV_URI}; do |
285 |
+ SRC_URI+=" ${i}/${PN}-${MY_PV}.tar.xz" |
286 |
+ SRC_URI+=" ${i}/${PN}-help-${MY_PV}.tar.xz" |
287 |
+ done |
288 |
+ unset i |
289 |
+fi |
290 |
+unset DEV_URI |
291 |
+ |
292 |
+# Really required addons |
293 |
+# These are bundles that can't be removed for now due to huge patchsets. |
294 |
+# If you want them gone, patches are welcome. |
295 |
+ADDONS_SRC=( |
296 |
+ "java? ( ${ADDONS_URI}/17410483b5b5f267aa18b7e00b65e6e0-hsqldb_1_8_0.zip )" |
297 |
+ # no release for 8 years, should we package it? |
298 |
+ "libreoffice_extensions_wiki-publisher? ( ${ADDONS_URI}/a7983f859eafb2677d7ff386a023bc40-xsltml_2.1.2.zip )" |
299 |
+ # Does not build with 1.6 rhino at all |
300 |
+ "libreoffice_extensions_scripting-javascript? ( ${ADDONS_URI}/798b2ffdc8bcfe7bca2cf92b62caf685-rhino1_5R5.zip )" |
301 |
+ # requirement of rhino |
302 |
+ "libreoffice_extensions_scripting-javascript? ( ${ADDONS_URI}/35c94d2df8893241173de1d16b6034c0-swingExSrc.zip )" |
303 |
+ # not packageable |
304 |
+ "odk? ( http://download.go-oo.org/extern/185d60944ea767075d27247c3162b3bc-unowinreg.dll )" |
305 |
+) |
306 |
+SRC_URI+=" ${ADDONS_SRC[*]}" |
307 |
+ |
308 |
+unset ADDONS_URI |
309 |
+unset ADDONS_SRC |
310 |
+ |
311 |
+# Extensions that need extra work: |
312 |
+LO_EXTS="nlpsolver scripting-beanshell scripting-javascript wiki-publisher" |
313 |
+ |
314 |
+IUSE="accessibility bluetooth +branding coinmp +cups dbus debug eds firebird |
315 |
+googledrive gstreamer +gtk gtk2 kde ldap +mariadb odk pdfimport postgres test vlc |
316 |
+$(printf 'libreoffice_extensions_%s ' ${LO_EXTS})" |
317 |
+ |
318 |
+REQUIRED_USE="${PYTHON_REQUIRED_USE} |
319 |
+ bluetooth? ( dbus ) |
320 |
+ libreoffice_extensions_nlpsolver? ( java ) |
321 |
+ libreoffice_extensions_scripting-beanshell? ( java ) |
322 |
+ libreoffice_extensions_scripting-javascript? ( java ) |
323 |
+ libreoffice_extensions_wiki-publisher? ( java ) |
324 |
+" |
325 |
+ |
326 |
+LICENSE="|| ( LGPL-3 MPL-1.1 )" |
327 |
+SLOT="0" |
328 |
+[[ ${MY_PV} == *9999* ]] || \ |
329 |
+KEYWORDS="" |
330 |
+# KEYWORDS="~amd64 ~arm ~arm64 ~ppc64 ~x86 ~amd64-linux ~x86-linux" |
331 |
+ |
332 |
+BDEPEND=" |
333 |
+ dev-util/intltool |
334 |
+ sys-devel/bison |
335 |
+ sys-devel/flex |
336 |
+ sys-devel/gettext |
337 |
+ virtual/pkgconfig |
338 |
+ odk? ( >=app-doc/doxygen-1.8.4 ) |
339 |
+" |
340 |
+COMMON_DEPEND="${PYTHON_DEPS} |
341 |
+ app-arch/unzip |
342 |
+ app-arch/zip |
343 |
+ app-crypt/gpgme[cxx] |
344 |
+ app-text/hunspell:= |
345 |
+ >=app-text/libabw-0.1.0 |
346 |
+ >=app-text/libebook-0.1 |
347 |
+ app-text/libepubgen |
348 |
+ >=app-text/libetonyek-0.1 |
349 |
+ app-text/libexttextcat |
350 |
+ app-text/liblangtag |
351 |
+ >=app-text/libmspub-0.1.0 |
352 |
+ >=app-text/libmwaw-0.3.1 |
353 |
+ app-text/libnumbertext |
354 |
+ >=app-text/libodfgen-0.1.0 |
355 |
+ app-text/libqxp |
356 |
+ app-text/libstaroffice |
357 |
+ app-text/libwpd:0.10[tools] |
358 |
+ app-text/libwpg:0.3 |
359 |
+ >=app-text/libwps-0.4 |
360 |
+ app-text/mythes |
361 |
+ >=dev-cpp/clucene-2.3.3.4-r2 |
362 |
+ =dev-cpp/libcmis-0.5* |
363 |
+ dev-db/unixODBC |
364 |
+ dev-lang/perl |
365 |
+ dev-libs/boost:=[nls] |
366 |
+ dev-libs/expat |
367 |
+ dev-libs/hyphen |
368 |
+ dev-libs/icu:= |
369 |
+ dev-libs/libassuan |
370 |
+ dev-libs/libgpg-error |
371 |
+ >=dev-libs/liborcus-0.14.0 |
372 |
+ dev-libs/librevenge |
373 |
+ dev-libs/libxml2 |
374 |
+ dev-libs/libxslt |
375 |
+ dev-libs/nspr |
376 |
+ dev-libs/nss |
377 |
+ >=dev-libs/redland-1.0.16 |
378 |
+ >=dev-libs/xmlsec-1.2.24[nss] |
379 |
+ media-gfx/fontforge |
380 |
+ media-gfx/graphite2 |
381 |
+ media-libs/fontconfig |
382 |
+ media-libs/freetype:2 |
383 |
+ >=media-libs/harfbuzz-0.9.42:=[graphite,icu] |
384 |
+ media-libs/lcms:2 |
385 |
+ >=media-libs/libcdr-0.1.0 |
386 |
+ >=media-libs/libepoxy-1.3.1[X] |
387 |
+ >=media-libs/libfreehand-0.1.0 |
388 |
+ media-libs/libpagemaker |
389 |
+ >=media-libs/libpng-1.4:0= |
390 |
+ >=media-libs/libvisio-0.1.0 |
391 |
+ media-libs/libzmf |
392 |
+ net-libs/neon |
393 |
+ net-misc/curl |
394 |
+ sci-mathematics/lpsolve |
395 |
+ sys-libs/zlib |
396 |
+ virtual/glu |
397 |
+ virtual/jpeg:0 |
398 |
+ virtual/opengl |
399 |
+ x11-libs/cairo[X] |
400 |
+ x11-libs/libXinerama |
401 |
+ x11-libs/libXrandr |
402 |
+ x11-libs/libXrender |
403 |
+ accessibility? ( dev-python/lxml[${PYTHON_USEDEP}] ) |
404 |
+ bluetooth? ( |
405 |
+ dev-libs/glib:2 |
406 |
+ net-wireless/bluez |
407 |
+ ) |
408 |
+ coinmp? ( sci-libs/coinor-mp ) |
409 |
+ cups? ( net-print/cups ) |
410 |
+ dbus? ( sys-apps/dbus ) |
411 |
+ eds? ( |
412 |
+ dev-libs/glib:2 |
413 |
+ gnome-base/dconf |
414 |
+ gnome-extra/evolution-data-server |
415 |
+ ) |
416 |
+ firebird? ( >=dev-db/firebird-3.0.2.32703.0-r1[server] ) |
417 |
+ gstreamer? ( |
418 |
+ media-libs/gstreamer:1.0 |
419 |
+ media-libs/gst-plugins-base:1.0 |
420 |
+ ) |
421 |
+ gtk? ( |
422 |
+ dev-libs/glib:2 |
423 |
+ dev-libs/gobject-introspection |
424 |
+ gnome-base/dconf |
425 |
+ media-libs/mesa[egl] |
426 |
+ x11-libs/gtk+:3 |
427 |
+ x11-libs/pango |
428 |
+ ) |
429 |
+ gtk2? ( |
430 |
+ x11-libs/gdk-pixbuf |
431 |
+ >=x11-libs/gtk+-2.24:2 |
432 |
+ x11-libs/pango |
433 |
+ ) |
434 |
+ kde? ( |
435 |
+ dev-qt/qtcore:5 |
436 |
+ dev-qt/qtgui:5 |
437 |
+ dev-qt/qtx11extras:5 |
438 |
+ dev-qt/qtwidgets:5 |
439 |
+ kde-frameworks/kconfig:5 |
440 |
+ kde-frameworks/kcoreaddons:5 |
441 |
+ kde-frameworks/ki18n:5 |
442 |
+ kde-frameworks/kio:5 |
443 |
+ kde-frameworks/kwindowsystem:5 |
444 |
+ ) |
445 |
+ ldap? ( net-nds/openldap ) |
446 |
+ libreoffice_extensions_scripting-beanshell? ( dev-java/bsh ) |
447 |
+ libreoffice_extensions_scripting-javascript? ( dev-java/rhino:1.6 ) |
448 |
+ mariadb? ( dev-db/mariadb-connector-c ) |
449 |
+ !mariadb? ( dev-db/mysql-connector-c ) |
450 |
+ pdfimport? ( app-text/poppler:=[cxx] ) |
451 |
+ postgres? ( >=dev-db/postgresql-9.0:*[kerberos] ) |
452 |
+" |
453 |
+# FIXME: cppunit should be moved to test conditional |
454 |
+# after everything upstream is under gbuild |
455 |
+# as dmake execute tests right away |
456 |
+# tests apparently also need google-carlito-fonts (not packaged) |
457 |
+DEPEND="${COMMON_DEPEND} |
458 |
+ >=dev-libs/libatomic_ops-7.2d |
459 |
+ dev-perl/Archive-Zip |
460 |
+ >=dev-util/cppunit-1.14.0 |
461 |
+ >=dev-util/gperf-3 |
462 |
+ >=dev-util/mdds-1.4.1:1= |
463 |
+ media-libs/glm |
464 |
+ sys-devel/ucpp |
465 |
+ x11-base/xorg-proto |
466 |
+ x11-libs/libXt |
467 |
+ x11-libs/libXtst |
468 |
+ java? ( |
469 |
+ dev-java/ant-core |
470 |
+ >=virtual/jdk-1.6 |
471 |
+ ) |
472 |
+ test? ( |
473 |
+ app-crypt/gnupg |
474 |
+ dev-util/cppunit |
475 |
+ media-fonts/dejavu |
476 |
+ media-fonts/liberation-fonts |
477 |
+ ) |
478 |
+" |
479 |
+RDEPEND="${COMMON_DEPEND} |
480 |
+ !app-office/libreoffice-bin |
481 |
+ !app-office/libreoffice-bin-debug |
482 |
+ !app-office/openoffice |
483 |
+ media-fonts/liberation-fonts |
484 |
+ || ( x11-misc/xdg-utils kde-plasma/kde-cli-tools ) |
485 |
+ java? ( >=virtual/jre-1.6 ) |
486 |
+ kde? ( kde-frameworks/breeze-icons:* ) |
487 |
+ vlc? ( media-video/vlc ) |
488 |
+" |
489 |
+if [[ ${MY_PV} != *9999* ]] && [[ ${PV} != *_* ]]; then |
490 |
+ PDEPEND="=app-office/libreoffice-l10n-$(ver_cut 1-2)*" |
491 |
+else |
492 |
+ # Translations are not reliable on live ebuilds |
493 |
+ # rather force people to use english only. |
494 |
+ PDEPEND="!app-office/libreoffice-l10n" |
495 |
+fi |
496 |
+ |
497 |
+PATCHES=( |
498 |
+ # master branch |
499 |
+ "${FILESDIR}/${PN}-6.2-ldap-optional.patch" |
500 |
+ # 6.2 stable branch |
501 |
+ "${FILESDIR}/${P}-qt5-kf5-disable-qt-hidpi-scaling.patch" |
502 |
+ "${FILESDIR}/${P}-kf5-update-delayed-frame-destruct.patch" |
503 |
+ # "${WORKDIR}"/${PATCHSET/.tar.xz/} |
504 |
+ |
505 |
+ # not upstreamable stuff |
506 |
+ "${FILESDIR}/${PN}-5.4-system-pyuno.patch" |
507 |
+ "${FILESDIR}/${PN}-5.3.4.2-kioclient5.patch" |
508 |
+ "${FILESDIR}/${PN}-6.1-nomancompress.patch" |
509 |
+) |
510 |
+ |
511 |
+S="${WORKDIR}/${PN}-${MY_PV}" |
512 |
+ |
513 |
+_check_reqs() { |
514 |
+ CHECKREQS_MEMORY="512M" |
515 |
+ if is-flagq "-g*" && ! is-flagq "-g*0" ; then |
516 |
+ CHECKREQS_DISK_BUILD="22G" |
517 |
+ else |
518 |
+ CHECKREQS_DISK_BUILD="6G" |
519 |
+ fi |
520 |
+ check-reqs_$1 |
521 |
+} |
522 |
+ |
523 |
+pkg_pretend() { |
524 |
+ use java || \ |
525 |
+ ewarn "If you plan to use Base application you should enable java or you will get various crashes." |
526 |
+ |
527 |
+ if has_version "<app-office/libreoffice-5.3.0[firebird]"; then |
528 |
+ ewarn "Firebird has been upgraded to version 3. It is unable to read back Firebird 2.5 data, so" |
529 |
+ ewarn "embedded firebird odb files created in LibreOffice pre-5.3 can't be opened with this version." |
530 |
+ ewarn "See also: https://wiki.documentfoundation.org/ReleaseNotes/5.3#Base" |
531 |
+ fi |
532 |
+ |
533 |
+ [[ ${MERGE_TYPE} != binary ]] && _check_reqs pkg_pretend |
534 |
+} |
535 |
+ |
536 |
+pkg_setup() { |
537 |
+ java-pkg-opt-2_pkg_setup |
538 |
+ python-single-r1_pkg_setup |
539 |
+ |
540 |
+ [[ ${MERGE_TYPE} != binary ]] && _check_reqs pkg_setup |
541 |
+} |
542 |
+ |
543 |
+src_unpack() { |
544 |
+ default |
545 |
+ |
546 |
+ if [[ ${MY_PV} = *9999* ]]; then |
547 |
+ local base_uri branch mypv |
548 |
+ base_uri="https://anongit.freedesktop.org/git" |
549 |
+ branch="master" |
550 |
+ mypv=${MY_PV/.9999} |
551 |
+ [[ ${mypv} != ${MY_PV} ]] && branch="${PN}-${mypv/./-}" |
552 |
+ git-r3_fetch "${base_uri}/${PN}/core" "refs/heads/${branch}" |
553 |
+ git-r3_checkout "${base_uri}/${PN}/core" |
554 |
+ LOCOREGIT_VERSION=${EGIT_VERSION} |
555 |
+ |
556 |
+ git-r3_fetch "${base_uri}/${PN}/help" "refs/heads/master" |
557 |
+ git-r3_checkout "${base_uri}/${PN}/help" "helpcontent2" # doesn't match on help |
558 |
+ fi |
559 |
+} |
560 |
+ |
561 |
+src_prepare() { |
562 |
+ xdg_src_prepare |
563 |
+ |
564 |
+ # sandbox violations on many systems, we don't need it. Bug #646406 |
565 |
+ sed -i \ |
566 |
+ -e "/KF5_CONFIG/s/kf5-config/no/" \ |
567 |
+ configure.ac || die "Failed to disable kf5-config" |
568 |
+ |
569 |
+ AT_M4DIR="m4" eautoreconf |
570 |
+ # hack in the autogen.sh |
571 |
+ touch autogen.lastrun |
572 |
+ |
573 |
+ # system pyuno mess |
574 |
+ sed -i \ |
575 |
+ -e "s:%eprefix%:${EPREFIX}:g" \ |
576 |
+ -e "s:%libdir%:$(get_libdir):g" \ |
577 |
+ pyuno/source/module/uno.py \ |
578 |
+ pyuno/source/officehelper.py || die |
579 |
+ # sed in the tests |
580 |
+ sed -i \ |
581 |
+ -e "s#all : build unitcheck#all : build#g" \ |
582 |
+ solenv/gbuild/Module.mk || die |
583 |
+ sed -i \ |
584 |
+ -e "s#check: dev-install subsequentcheck#check: unitcheck slowcheck dev-install subsequentcheck#g" \ |
585 |
+ -e "s#Makefile.gbuild all slowcheck#Makefile.gbuild all#g" \ |
586 |
+ Makefile.in || die |
587 |
+ |
588 |
+ sed -i \ |
589 |
+ -e "s,/usr/share/bash-completion/completions,$(get_bashcompdir)," \ |
590 |
+ -e "s,\$INSTALLDIRNAME.sh,${PN}," \ |
591 |
+ bin/distro-install-desktop-integration || die |
592 |
+ |
593 |
+ if use branding; then |
594 |
+ # hack... |
595 |
+ mv -v "${WORKDIR}/branding-intro.png" "icon-themes/colibre/brand/intro.png" || die |
596 |
+ fi |
597 |
+ |
598 |
+ # Don't list pdfimport support in desktop when built with none, bug # 605464 |
599 |
+ if ! use pdfimport; then |
600 |
+ sed -i \ |
601 |
+ -e ":MimeType: s:application/pdf;::" \ |
602 |
+ -e ":Keywords: s:pdf;::" \ |
603 |
+ sysui/desktop/menus/draw.desktop || die |
604 |
+ fi |
605 |
+} |
606 |
+ |
607 |
+src_configure() { |
608 |
+ # Set up Google API keys, see https://www.chromium.org/developers/how-tos/api-keys |
609 |
+ # Note: these are for Gentoo use ONLY. For your own distribution, please get |
610 |
+ # your own set of keys. Feel free to contact chromium@g.o for more info. |
611 |
+ local google_default_client_id="329227923882.apps.googleusercontent.com" |
612 |
+ local google_default_client_secret="vgKG0NNv7GoDpbtoFNLxCUXu" |
613 |
+ |
614 |
+ # optimization flags |
615 |
+ export GMAKE_OPTIONS="${MAKEOPTS}" |
616 |
+ # System python enablement: |
617 |
+ export PYTHON_CFLAGS=$(python_get_CFLAGS) |
618 |
+ export PYTHON_LIBS=$(python_get_LIBS) |
619 |
+ |
620 |
+ if use kde; then |
621 |
+ export QT_SELECT=5 # bug 639620 needs proper fix though |
622 |
+ export QT5DIR="$(qt5_get_bindir)/../" |
623 |
+ export MOC5="$(qt5_get_bindir)/moc" |
624 |
+ fi |
625 |
+ |
626 |
+ local gentoo_buildid="Gentoo official package" |
627 |
+ if [[ -n ${LOCOREGIT_VERSION} ]]; then |
628 |
+ gentoo_buildid+=" (from git: ${LOCOREGIT_VERSION})" |
629 |
+ fi |
630 |
+ |
631 |
+ # system headers/libs/...: enforce using system packages |
632 |
+ # --disable-breakpad: requires not-yet-in-tree dev-utils/breakpad |
633 |
+ # --enable-cairo: ensure that cairo is always required |
634 |
+ # --enable-*-link: link to the library rather than just dlopen on runtime |
635 |
+ # --enable-release-build: build the libreoffice as release |
636 |
+ # --disable-fetch-external: prevent dowloading during compile phase |
637 |
+ # --enable-extension-integration: enable any extension integration support |
638 |
+ # --without-{fonts,myspell-dicts,ppsd}: prevent install of sys pkgs |
639 |
+ # --disable-report-builder: too much java packages pulled in without pkgs |
640 |
+ # --without-system-sane: just sane.h header that is used for scan in writer, |
641 |
+ # not linked or anything else, worthless to depend on |
642 |
+ # --disable-pdfium: not yet packaged |
643 |
+ local myeconfargs=( |
644 |
+ --with-system-dicts |
645 |
+ --with-system-epoxy |
646 |
+ --with-system-headers |
647 |
+ --with-system-jars |
648 |
+ --with-system-libs |
649 |
+ --enable-build-opensymbol |
650 |
+ --enable-cairo-canvas |
651 |
+ --enable-largefile |
652 |
+ --enable-mergelibs |
653 |
+ --enable-neon |
654 |
+ --enable-python=system |
655 |
+ --enable-randr |
656 |
+ --enable-release-build |
657 |
+ --disable-breakpad |
658 |
+ --disable-bundle-mariadb |
659 |
+ --disable-ccache |
660 |
+ --disable-dependency-tracking |
661 |
+ --disable-epm |
662 |
+ --disable-fetch-external |
663 |
+ --disable-gstreamer-0-10 |
664 |
+ --disable-online-update |
665 |
+ --disable-openssl |
666 |
+ --disable-pdfium |
667 |
+ --disable-report-builder |
668 |
+ --with-build-version="${gentoo_buildid}" |
669 |
+ --enable-extension-integration |
670 |
+ --with-external-dict-dir="${EPREFIX}/usr/share/myspell" |
671 |
+ --with-external-hyph-dir="${EPREFIX}/usr/share/myspell" |
672 |
+ --with-external-thes-dir="${EPREFIX}/usr/share/myspell" |
673 |
+ --with-external-tar="${DISTDIR}" |
674 |
+ --with-lang="" |
675 |
+ --with-parallelism=$(makeopts_jobs) |
676 |
+ --with-system-ucpp |
677 |
+ --with-tls=nss |
678 |
+ --with-vendor="Gentoo Foundation" |
679 |
+ --with-x |
680 |
+ --without-fonts |
681 |
+ --without-myspell-dicts |
682 |
+ --with-help="html" |
683 |
+ --without-helppack-integration |
684 |
+ --with-system-gpgmepp |
685 |
+ --without-system-sane |
686 |
+ $(use_enable bluetooth sdremote-bluetooth) |
687 |
+ $(use_enable coinmp) |
688 |
+ $(use_enable cups) |
689 |
+ $(use_enable dbus) |
690 |
+ $(use_enable debug) |
691 |
+ $(use_enable eds evolution2) |
692 |
+ $(use_enable firebird firebird-sdbc) |
693 |
+ $(use_enable gstreamer gstreamer-1-0) |
694 |
+ $(use_enable gtk gtk3) |
695 |
+ $(use_enable gtk2 gtk) |
696 |
+ $(use_enable kde kde5) |
697 |
+ $(use_enable kde qt5) |
698 |
+ $(use_enable ldap) |
699 |
+ $(use_enable odk) |
700 |
+ $(use_enable pdfimport) |
701 |
+ $(use_enable postgres postgresql-sdbc) |
702 |
+ $(use_enable vlc) |
703 |
+ $(use_with accessibility lxml) |
704 |
+ $(use_with coinmp system-coinmp) |
705 |
+ $(use_with googledrive gdrive-client-id ${google_default_client_id}) |
706 |
+ $(use_with googledrive gdrive-client-secret ${google_default_client_secret}) |
707 |
+ $(use_with java) |
708 |
+ $(use_with odk doxygen) |
709 |
+ ) |
710 |
+ |
711 |
+ if use gtk && use kde; then |
712 |
+ myeconfargs+=( --enable-gtk3-kde5 ) |
713 |
+ fi |
714 |
+ |
715 |
+ if use eds || use gtk; then |
716 |
+ myeconfargs+=( --enable-dconf --enable-gio ) |
717 |
+ else |
718 |
+ myeconfargs+=( --disable-dconf --disable-gio ) |
719 |
+ fi |
720 |
+ |
721 |
+ # libreoffice extensions handling |
722 |
+ for lo_xt in ${LO_EXTS}; do |
723 |
+ if [[ "${lo_xt}" == "scripting-beanshell" || "${lo_xt}" == "scripting-javascript" ]]; then |
724 |
+ myeconfargs+=( $(use_enable libreoffice_extensions_${lo_xt} ${lo_xt}) ) |
725 |
+ else |
726 |
+ myeconfargs+=( $(use_enable libreoffice_extensions_${lo_xt} ext-${lo_xt}) ) |
727 |
+ fi |
728 |
+ done |
729 |
+ |
730 |
+ if use java; then |
731 |
+ # hsqldb: system one is too new |
732 |
+ myeconfargs+=( |
733 |
+ --without-junit |
734 |
+ --without-system-hsqldb |
735 |
+ --with-ant-home="${ANT_HOME}" |
736 |
+ --with-jdk-home=$(java-config --jdk-home 2>/dev/null) |
737 |
+ --with-jvm-path="${EPREFIX}/usr/lib/" |
738 |
+ ) |
739 |
+ |
740 |
+ use libreoffice_extensions_scripting-beanshell && \ |
741 |
+ myeconfargs+=( --with-beanshell-jar=$(java-pkg_getjar bsh bsh.jar) ) |
742 |
+ |
743 |
+ use libreoffice_extensions_scripting-javascript && \ |
744 |
+ myeconfargs+=( --with-rhino-jar=$(java-pkg_getjar rhino-1.6 js.jar) ) |
745 |
+ fi |
746 |
+ |
747 |
+ is-flagq "-flto*" && myeconfargs+=( --enable-lto ) |
748 |
+ |
749 |
+ MARIADBCONFIG="$(type -p $(usex mariadb mariadb mysql)_config)" \ |
750 |
+ econf "${myeconfargs[@]}" |
751 |
+} |
752 |
+ |
753 |
+src_compile() { |
754 |
+ # more and more LO stuff tries to use OpenGL, including tests during build |
755 |
+ # bug 501508, bug 540624, bug 545974 and probably more |
756 |
+ addpredict /dev/dri |
757 |
+ addpredict /dev/ati |
758 |
+ addpredict /dev/nvidiactl |
759 |
+ |
760 |
+ local target |
761 |
+ use test && target="build" || target="build-nocheck" |
762 |
+ |
763 |
+ # this is not a proper make script |
764 |
+ make ${target} || die |
765 |
+} |
766 |
+ |
767 |
+src_test() { |
768 |
+ make unitcheck || die |
769 |
+ make slowcheck || die |
770 |
+} |
771 |
+ |
772 |
+src_install() { |
773 |
+ # This is not Makefile so no buildserver |
774 |
+ make DESTDIR="${D}" distro-pack-install -o build -o check || die |
775 |
+ |
776 |
+ # bug 593514 |
777 |
+ if use gtk; then |
778 |
+ dosym libreoffice/program/liblibreofficekitgtk.so \ |
779 |
+ /usr/$(get_libdir)/liblibreofficekitgtk.so |
780 |
+ fi |
781 |
+ |
782 |
+ # bash completion aliases |
783 |
+ bashcomp_alias \ |
784 |
+ libreoffice \ |
785 |
+ unopkg loimpress lobase localc lodraw lomath lowriter lofromtemplate loweb loffice |
786 |
+ |
787 |
+ if use branding; then |
788 |
+ insinto /usr/$(get_libdir)/${PN}/program |
789 |
+ newins "${WORKDIR}/branding-sofficerc" sofficerc |
790 |
+ dodir /etc/env.d |
791 |
+ echo "CONFIG_PROTECT=/usr/$(get_libdir)/${PN}/program/sofficerc" > "${ED}"/etc/env.d/99${PN} || die |
792 |
+ fi |
793 |
+} |
794 |
+ |
795 |
+pkg_preinst() { |
796 |
+ java-utils-2_pkg_preinst |
797 |
+ xdg_pkg_preinst |
798 |
+} |