1 |
commit: 38d6494b9df51b7e7ef14b4f4414f1c9bb5f2aee |
2 |
Author: callmetango <callmetango <AT> users <DOT> noreply <DOT> github <DOT> com> |
3 |
AuthorDate: Mon Aug 27 17:22:15 2018 +0000 |
4 |
Commit: Anthony G. Basile <blueness <AT> gentoo <DOT> org> |
5 |
CommitDate: Mon Aug 27 20:30:19 2018 +0000 |
6 |
URL: https://gitweb.gentoo.org/proj/musl.git/commit/?id=38d6494b |
7 |
|
8 |
app-office/libreoffice: readded Libreoffice version 6.0.6.2 |
9 |
|
10 |
* Readded Libreoffice by using the latest Alpine patches |
11 |
|
12 |
app-office/libreoffice/Manifest | 20 + |
13 |
.../files/libreoffice-5.2.5.1-glibc-2.24.patch | 10 + |
14 |
.../files/libreoffice-5.3.4.2-kioclient5.patch | 11 + |
15 |
.../files/libreoffice-5.4-system-pyuno.patch | 42 ++ |
16 |
...libreoffice-6.0.3.2-disable-flaky-tests-1.patch | 216 ++++++++ |
17 |
.../files/libreoffice-6.0.3.2-testTdf108947.patch | 13 + |
18 |
...eoffice-6.0.6.2-disable-liborcus-unittest.patch | 13 + |
19 |
.../files/libreoffice-6.0.6.2-linux-musl.patch | 60 +++ |
20 |
.../libreoffice-6.0.6.2-musl-fix-execinfo.patch | 39 ++ |
21 |
.../libreoffice-6.0.6.2-musl-fix-includes.patch | 36 ++ |
22 |
app-office/libreoffice/libreoffice-6.0.6.2.ebuild | 574 +++++++++++++++++++++ |
23 |
app-office/libreoffice/metadata.xml | 22 + |
24 |
12 files changed, 1056 insertions(+) |
25 |
|
26 |
diff --git a/app-office/libreoffice/Manifest b/app-office/libreoffice/Manifest |
27 |
new file mode 100644 |
28 |
index 0000000..1bba52d |
29 |
--- /dev/null |
30 |
+++ b/app-office/libreoffice/Manifest |
31 |
@@ -0,0 +1,20 @@ |
32 |
+AUX libreoffice-5.2.5.1-glibc-2.24.patch 361 BLAKE2B d95ded4f051c77aed22ce99f6273b73ec0893190622f55a3d6d3c3e3e53c59a2f3ce3f645b011c1afa02b727ee803898c65f8feff723955a2fe1a69de6d24480 SHA512 b5ff4c6d3771bcdde21613ad15459120ac1d759b1b3b422b5cba3ee23f7ddf88fde274956f2c91f0a6a37cb36a8d90d8f90bd865e6c2d3ff7c2100e2b469dbd8 |
33 |
+AUX libreoffice-5.3.4.2-kioclient5.patch 605 BLAKE2B 30961066c080c4d06ca978b7c0ad4b57a3739d6d34a2941f2ea57d3a5c4ab65e3f3c2376243aa88c9c05b1038cf9bfb7605a370d11513bb4553de2d268010519 SHA512 2aa6d1fc96749b79b3291f6e27630c6cf59d2c743f0dd8603867ba8aec2c17f87b70e1dd031365013f7e9ea53c160e9cb3f48af592a587dc05f3ae4cc1b35df6 |
34 |
+AUX libreoffice-5.4-system-pyuno.patch 1399 BLAKE2B d7516b0ac19509dae8eaaac94acad65e35c71b68ea0f2962c41d9422a89993dc90e76b1f7cd3d19f8f3860b443f063ee1c17024c7f56fd3b8470d2b690eb9c32 SHA512 41b57b857a294b8ac234aaf160dbd380008f716ffdf481b7c733f1dab8702876aad827ab9f1b8f2f26778f0b3a6dfdc9e3ae190188a484d9aeb4568df2e9b418 |
35 |
+AUX libreoffice-6.0.3.2-disable-flaky-tests-1.patch 8928 BLAKE2B e5399e0e520dfe4ac5d0a02c3bf3372ccdc7725f073aabb74c36600a7cd09eb45a9e5d5486bf700ae374723206e3a421069b298137d14a9b05e17e70f2d9d3b4 SHA512 ca100dc389ed93a5eeed35f001d9e0f6f886782bfaa3dead3105b9bce91ca9e721354b55cd67fdb40c7d2d64966c530ebc6ba6a4e3c62b0e006759c7b64f1b29 |
36 |
+AUX libreoffice-6.0.3.2-testTdf108947.patch 638 BLAKE2B 38da9bf34a921d22002d45e650c738687706c77a67ac2748ee14efb48f47a328b1339712687b525a4f66a1ad0b36fc69c0613ef441067a206ea4df81754f4727 SHA512 a712fb653d86a74a96d568805ca48d183a7ec71f32ef34cfb98a4999cb7fead3f5cd11f5d8f8944041583d5221b0dbaeb3cdfc625a1958118e867569d0c56479 |
37 |
+AUX libreoffice-6.0.6.2-disable-liborcus-unittest.patch 806 BLAKE2B 80fe7c24fad360092b9642aa2ab6bbe7eadfa561312908a7d2b5541551c6f03f17573b51fdd2d82ea435555dc0762df9d3f07d3d91a8255786ffb82a24d48c34 SHA512 056ec393ef36aa790919bdb976b100593481a3dffec0ec4095023df6706e0a2ccc3aec9383d8382b2fecbc77e13833599ead82fb712d7b7147bdf01175b4c5a9 |
38 |
+AUX libreoffice-6.0.6.2-linux-musl.patch 1812 BLAKE2B 7d18cdbd40d5b2a56f55500b57d6104cdd0bb6211aec5d4096752736cf5e71be1b8770bc6978c466ba16f139ccc3adc769015880c16bacbcbf94a54ee65c5193 SHA512 10a1ee056ebce41b2f6d3863b220f8529f70b7fd159ff2d36967ad96d9653166737db4ba865c10769c37afad553f59fb9629437c0d8a1afbbff963fc36dbbf1a |
39 |
+AUX libreoffice-6.0.6.2-musl-fix-execinfo.patch 1014 BLAKE2B d252b43c98ebf9708430d0531d0ed9f5b99f249a98fbab48f13dc750a5e5091442ae8d0c56ba81eb4a2c634be81bec6d82bbc94bda8b7b23a2ab3d9509524e3d SHA512 4aa595588226ac2060ae78f4f857db1b148735429a47389f75313df61cabf0819ad2add15c09cae5c5ebbce64852589ca89932c72281ba662ab53dddec4e1336 |
40 |
+AUX libreoffice-6.0.6.2-musl-fix-includes.patch 1123 BLAKE2B fc1c1a871ba0f8d903d0f06a9bfa71890ee5def1f55345b47d12cabb762510149a9a49e761b2ced2452b44a505ad3685f8d5ecdf23fac90871c13058c418cdf9 SHA512 ae36500897db9d758e95da1791ef2577d59b0e0865baba316b4a1f1f48ce9fd5e52fc3f14fa45aeeab73c5b93f57e89f9a42c996bdb3c85eb3beb2634543d85e |
41 |
+DIST 17410483b5b5f267aa18b7e00b65e6e0-hsqldb_1_8_0.zip 3519470 BLAKE2B ccfdf6b7f88f22d3ec7898c529c374f13059979450aabdccc9781ca91dd27d0119dfec3d33dda073c2973fa4a8aacae13924c9a67e38a1422c48bfee41b6f3e8 SHA512 a231eba4a1baca11766ef292ab45e302081115477fe23018652882923308856835cf8c9ecba61a5cf22543474ccef3136965d794a90c9e4e9e6dcc21f9af6e1a |
42 |
+DIST 185d60944ea767075d27247c3162b3bc-unowinreg.dll 12288 BLAKE2B c067f60d0ee325feae4f168ad0f84602708fe724a1d9a9a054ed4991992c1d4637b31083cf569326b8aac1ec598e71ec65fb31ee16233b9c736e97ef062b47d7 SHA512 854b8ae29b57b40ba6bb6ff66e723a0e8dad053fcc2849f0ad763cd8a31352f4aeba9636fd4e3f0f2a0cd985a6f49b4261b9ace68d6be821ed42cfa7a73eb13c |
43 |
+DIST 35c94d2df8893241173de1d16b6034c0-swingExSrc.zip 9796 BLAKE2B a30b0225313b23092bc57ccd989f26ea04a323dcb17a0ea8baaa6a21b5d5e2b6e29fcae9d18ecd043073030e104ad56c86a115760590f57eda86c22c9fe478b0 SHA512 4a48f1e32907fb2dee601cda3cd7a0d7198b2d51f2a572b647f1e93f901fd511eef3567676e52dfb1723a2cdfbc01f2015ca0bb22903b0bc1476dd618cc9aa8a |
44 |
+DIST 798b2ffdc8bcfe7bca2cf92b62caf685-rhino1_5R5.zip 1521926 BLAKE2B d2769842c180997055648a8b1a33cc89988b74628bad8aa012242e0c1afa5b5b8568323c107187072207ee69bd841ba4ca3bbfe27ef65223ddc729d1a1aa6590 SHA512 ec5ae23c8fe2f5efc377f7a9665039afadf28b4d8f2791379296766a5fbc9a3bf7548f9b0e3b3b07762229ec733a92ccbb69791ee0318c9c6f78f8e847253d3f |
45 |
+DIST a7983f859eafb2677d7ff386a023bc40-xsltml_2.1.2.zip 23150 BLAKE2B 51db6bd90585b13857ecb494c805c9fb6874e1e65d7aee73d23e1716670836a14b376bcca810f96fd55b0ed653b2660a268030f246c822cbb04f867ef763a3b3 SHA512 2d3835f7ac356805025cafedcad97faa48d0f5da386e6ac7b7451030059df8e2fdb0861ade07a576ebf9fb5b88a973585ab0437944b06aac9289d6898ba8586a |
46 |
+DIST libreoffice-6.0.5.2-patchset-01.tar.xz 39820 BLAKE2B d8b436378b05a8a58156817b5d1e0323fd6fcfde9aa9fc4fc6a8056a06a16c84c5860ffe1ae715faddb707c5aa417b43e6c7f5c05821f86208edbb3778d830a1 SHA512 ec99a6358c0a20075abc0aa136ad6ccded4562fa0f25897efe2a8783fb33b97b92a2dd8041206b3344a79dfd10ebe98b79c8bf0b4e8539e45942978f0028dc59 |
47 |
+DIST libreoffice-6.0.6.2.tar.xz 205022916 BLAKE2B 715d24c7bbfe4d570011f5090cf647421f68e73fb76047ec0fb973ec0bfb30be3ec1d521bdd92369e23abaa444e7afd3e070ff613486e8f85b9ca76d9496fd0e SHA512 8cf7bd4d8f81ee09f8a21c4ccb12f788c67cf1cba71e08b9b720f9e8b4ec2dfcc25452ef05b6b60529463241c2b23a70eb6a79a8f15b95e890a2ea9cbb458517 |
48 |
+DIST libreoffice-branding-gentoo-0.8.tar.xz 151568 BLAKE2B f03c7ddeb53c5ca3fd23401679601fcf2c4037ba17be4eb7b784c7ce7ebb71a24b8ab4aac8b7da8c6b1f14dd23bc1294ba85ff4f70ad271fb4ee3c5372e10883 SHA512 785031a699b1d1895ce4b50ffc3ddf645f3a0ef9acdf37facfd18cf75db9484cb8f53a50abb63d6006ead76a80b6ff5aa99661063245ebb84bd64013d713de7f |
49 |
+DIST libreoffice-help-6.0.6.2.tar.xz 2972748 BLAKE2B 38534d5fd08751af587fd5b5be03b39b086e2bc26878c50e98bafd7a2b48f517ac29b8d434748449b0a3e8a451c31f40255094d64965800aadfd94c111295be5 SHA512 89caab57774f85f3e58523c0debb57247a0f10959634bf296aaacc4928bcce6ea8ed9f167b267e2e0eeb52b69714eeb094fedfa3e810cf409dfbc7c5e49b7c13 |
50 |
+EBUILD libreoffice-6.0.6.2.ebuild 17001 BLAKE2B bf32a9fb7399f9bdef68abf3985fb07ff726dcecd8631f43ae936d9b815ee8c31bf11e82b2c39dc3b473726b97d90931560a9a79a556a61edc3f37d4c4a0733a SHA512 c058c8823afd9318e19b230e7d26b30b40d7d6780672767d5a6c3fb0e90257cb7cfb78f86f36061a975afe2cb86637ed0e9cdfa7944f4a85cacd1172efad0fc9 |
51 |
+MISC metadata.xml 1090 BLAKE2B b30fc707317ea0601859f327540712eae38a9fc7365675501fca648e17e2ee3b35c2391e76dc7878b53e5216ca4eb2618595fbac2e07d8680f8daeaa67aaeeeb SHA512 4ffa1f2d605bc5666e25ce126d3264f9ed272ae1b12b9dd17ae366462d58de4a64767ee63928b233c21a15a77b549eb5c574064e73164cb20b0adb6ce12a9ec2 |
52 |
|
53 |
diff --git a/app-office/libreoffice/files/libreoffice-5.2.5.1-glibc-2.24.patch b/app-office/libreoffice/files/libreoffice-5.2.5.1-glibc-2.24.patch |
54 |
new file mode 100644 |
55 |
index 0000000..d714ff2 |
56 |
--- /dev/null |
57 |
+++ b/app-office/libreoffice/files/libreoffice-5.2.5.1-glibc-2.24.patch |
58 |
@@ -0,0 +1,10 @@ |
59 |
+--- libreoffice-5.2.5.1.orig/desktop/unx/source/pagein.c 2017-01-11 16:54:33.000000000 -0800 |
60 |
++++ libreoffice-5.2.5.1/desktop/unx/source/pagein.c 2017-02-03 10:22:51.697673613 -0800 |
61 |
+@@ -26,6 +26,7 @@ |
62 |
+ #include <string.h> |
63 |
+ #include <sys/stat.h> |
64 |
+ #include <sys/types.h> |
65 |
++#include <sys/sysmacros.h> |
66 |
+ |
67 |
+ /* do_pagein */ |
68 |
+ static void do_pagein (const char * filename) |
69 |
|
70 |
diff --git a/app-office/libreoffice/files/libreoffice-5.3.4.2-kioclient5.patch b/app-office/libreoffice/files/libreoffice-5.3.4.2-kioclient5.patch |
71 |
new file mode 100644 |
72 |
index 0000000..a6e732f |
73 |
--- /dev/null |
74 |
+++ b/app-office/libreoffice/files/libreoffice-5.3.4.2-kioclient5.patch |
75 |
@@ -0,0 +1,11 @@ |
76 |
+--- a/shell/source/unix/misc/senddoc.sh 2017-06-15 15:44:22.000000000 +0200 |
77 |
++++ b/shell/source/unix/misc/senddoc.sh 2017-06-25 01:00:08.525435930 +0200 |
78 |
+@@ -389,6 +389,8 @@ |
79 |
+ elif [ -n "$DESKTOP_LAUNCH" ]; then |
80 |
+ # http://lists.freedesktop.org/pipermail/xdg/2004-August/002873.html |
81 |
+ MAILER=${DESKTOP_LAUNCH} |
82 |
++ elif [ -n "$KDE_FULL_SESSION" -a -x /usr/bin/kde-open5 ] ; then |
83 |
++ MAILER=/usr/bin/kde-open5 |
84 |
+ elif [ -n "$KDE_FULL_SESSION" -a -x /usr/bin/kde-open ] ; then |
85 |
+ MAILER=/usr/bin/kde-open |
86 |
+ elif [ -x /usr/bin/xdg-open ] ; then |
87 |
|
88 |
diff --git a/app-office/libreoffice/files/libreoffice-5.4-system-pyuno.patch b/app-office/libreoffice/files/libreoffice-5.4-system-pyuno.patch |
89 |
new file mode 100644 |
90 |
index 0000000..83b56d1 |
91 |
--- /dev/null |
92 |
+++ b/app-office/libreoffice/files/libreoffice-5.4-system-pyuno.patch |
93 |
@@ -0,0 +1,42 @@ |
94 |
+--- a/desktop/scripts/soffice.sh |
95 |
++++ a/desktop/scripts/soffice.sh |
96 |
+@@ -147,6 +147,9 @@ if echo "$checks" | grep -q "cc" ; then |
97 |
+ exit 1; |
98 |
+ fi |
99 |
+ |
100 |
++PYTHONPATH=$sd_prog${PYTHONPATH+:$PYTHONPATH} |
101 |
++export PYTHONPATH |
102 |
++ |
103 |
+ case "$(uname -s)" in |
104 |
+ NetBSD|OpenBSD|DragonFly) |
105 |
+ # this is a temporary hack until we can live with the default search paths |
106 |
+--- a/pyuno/source/module/uno.py |
107 |
++++ a/pyuno/source/module/uno.py |
108 |
+@@ -16,11 +16,16 @@ |
109 |
+ # except in compliance with the License. You may obtain a copy of |
110 |
+ # the License at http://www.apache.org/licenses/LICENSE-2.0 . |
111 |
+ # |
112 |
++import os |
113 |
+ import pyuno |
114 |
+ import sys |
115 |
+ import traceback |
116 |
+ import warnings |
117 |
+ |
118 |
++sys.path.append('%eprefix%/usr/%libdir%/libreoffice/program') |
119 |
++if getattr(os.environ, 'URE_BOOTSTRAP', None) is None: |
120 |
++ os.environ['URE_BOOTSTRAP'] = "vnd.sun.star.pathname:%eprefix%/usr/%libdir%/libreoffice/program/fundamentalrc" |
121 |
++ |
122 |
+ # since on Windows sal3.dll no longer calls WSAStartup |
123 |
+ import socket |
124 |
+ |
125 |
+--- a/pyuno/source/officehelper.py |
126 |
++++ a/pyuno/source/officehelper.py |
127 |
+@@ -45,7 +45,7 @@ def bootstrap(): |
128 |
+ if "UNO_PATH" in os.environ: |
129 |
+ sOffice = os.environ["UNO_PATH"] |
130 |
+ else: |
131 |
+- sOffice = "" # lets hope for the best |
132 |
++ sOffice = "%eprefix%/usr/%libdir%/libreoffice/program" |
133 |
+ sOffice = os.path.join(sOffice, "soffice") |
134 |
+ if platform.startswith("win"): |
135 |
+ sOffice += ".exe" |
136 |
|
137 |
diff --git a/app-office/libreoffice/files/libreoffice-6.0.3.2-disable-flaky-tests-1.patch b/app-office/libreoffice/files/libreoffice-6.0.3.2-disable-flaky-tests-1.patch |
138 |
new file mode 100644 |
139 |
index 0000000..03421c5 |
140 |
--- /dev/null |
141 |
+++ b/app-office/libreoffice/files/libreoffice-6.0.3.2-disable-flaky-tests-1.patch |
142 |
@@ -0,0 +1,216 @@ |
143 |
+Kindly borrowed from Debian. |
144 |
+ |
145 |
+14:13 < mst__> _rene_, the toolkit unoapi tests are known to be flaky (in some |
146 |
+ system dependent way) e.g. on the Win@6 tinderbox it always |
147 |
+ crashes |
148 |
+14:14 < mst__> _rene_, sc.ScAccessible* tests also fail on some systems some of |
149 |
+ the time |
150 |
+ |
151 |
+diff --git a/toolkit/Module_toolkit.mk b/toolkit/Module_toolkit.mk |
152 |
+index 25db0b6..14e507c 100644 |
153 |
+--- a/toolkit/Module_toolkit.mk |
154 |
++++ b/toolkit/Module_toolkit.mk |
155 |
+@@ -26,11 +26,11 @@ $(eval $(call gb_Module_add_targets,toolkit,\ |
156 |
+ ifneq ($(OOO_JUNIT_JAR),) |
157 |
+ $(eval $(call gb_Module_add_subsequentcheck_targets,toolkit,\ |
158 |
+ JunitTest_toolkit_complex \ |
159 |
+- JunitTest_toolkit_unoapi_1 \ |
160 |
+- JunitTest_toolkit_unoapi_2 \ |
161 |
+- JunitTest_toolkit_unoapi_3 \ |
162 |
+- JunitTest_toolkit_unoapi_4 \ |
163 |
+ )) |
164 |
+ endif |
165 |
++# JunitTest_toolkit_unoapi_1 \ |
166 |
++# JunitTest_toolkit_unoapi_2 \ |
167 |
++# JunitTest_toolkit_unoapi_3 \ |
168 |
++# JunitTest_toolkit_unoapi_4 \ |
169 |
+ |
170 |
+ # vim: set noet sw=4 ts=4: |
171 |
+diff --git a/sc/qa/unoapi/sc_1.sce b/sc/qa/unoapi/sc_1.sce |
172 |
+index fa1684c..cc8e1a5 100644 |
173 |
+--- a/sc/qa/unoapi/sc_1.sce |
174 |
++++ b/sc/qa/unoapi/sc_1.sce |
175 |
+@@ -24,10 +24,3 @@ |
176 |
+ # i84554 -o sc.AccessibleEditableTextPara_PreviewNote |
177 |
+ # i88241 -o sc.AccessibleEditableTextPara_HeaderFooter |
178 |
+ -o sc.AccessibleEditableTextPara_PreviewCell |
179 |
+--o sc.ScAccessibleCell |
180 |
+-# i91044 -o sc.ScAccessibleCsvCell |
181 |
+-# i91044 -o sc.ScAccessibleCsvGrid |
182 |
+-# i84641 -o sc.ScAccessibleCsvRuler |
183 |
+-# i88330 -o sc.ScAccessibleDocument |
184 |
+-# i91045 -o sc.ScAccessibleDocumentPagePreview |
185 |
+--o sc.ScAccessiblePageHeader |
186 |
+diff --git a/sc/qa/unoapi/sc_2.sce b/sc/qa/unoapi/sc_2.sce |
187 |
+index dbfc3e1..d235c5d 100644 |
188 |
+--- a/sc/qa/unoapi/sc_2.sce |
189 |
++++ b/sc/qa/unoapi/sc_2.sce |
190 |
+@@ -15,11 +15,6 @@ |
191 |
+ # except in compliance with the License. You may obtain a copy of |
192 |
+ # the License at http://www.apache.org/licenses/LICENSE-2.0 . |
193 |
+ # |
194 |
+-# fdo#FOO -o sc.ScAccessiblePageHeaderArea |
195 |
+--o sc.ScAccessiblePreviewCell |
196 |
+--o sc.ScAccessiblePreviewHeaderCell |
197 |
+--o sc.ScAccessiblePreviewTable |
198 |
+-# fdo#45337 -o sc.ScAccessibleSpreadsheet |
199 |
+ # FIXME_REMOVE_WHEN_RE_BASE_COMPLETE |
200 |
+ # -o sc.ScAnnotationObj |
201 |
+ # -o sc.ScAnnotationShapeObj |
202 |
+ |
203 |
+12:18 < _rene_> chris_wot: ping? |
204 |
+12:18 < chris_wot> heya |
205 |
+12:18 < chris_wot> you pinged? |
206 |
+12:19 < _rene_> chris_wot: any news on |
207 |
+ https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=815292? |
208 |
+12:20 < _rene_> (of course the this-night-uploaded rc3 also failed) |
209 |
+12:21 < chris_wot> ah, sorry - I've looked at an EMF regression, but I've not |
210 |
+ gotten any further on that one |
211 |
+12:22 < chris_wot> I honestly think that for this one just disable the test for |
212 |
+ now |
213 |
+12:22 < chris_wot> I'll ping the ML |
214 |
+ |
215 |
+This seems fixed when opening the original doc. |
216 |
+ |
217 |
+diff --git a/sw/qa/extras/ooxmlexport/ooxmlexport7.cxx b/sw/qa/extras/ooxmlexport/ooxmlexport7.cxx |
218 |
+index 54eed4d..78019bd 100644 |
219 |
+--- a/sw/qa/extras/ooxmlexport/ooxmlexport7.cxx |
220 |
++++ b/sw/qa/extras/ooxmlexport/ooxmlexport7.cxx |
221 |
+@@ -1128,30 +1128,30 @@ DECLARE_OOXMLEXPORT_TEST(testTDF93675, "no-numlevel-but-indented.odt") |
222 |
+ |
223 |
+ |
224 |
+ |
225 |
+-DECLARE_OOXMLEXPORT_TEST(testFlipAndRotateCustomShape, "flip_and_rotate.odt") |
226 |
+-{ |
227 |
+- xmlDocPtr pXmlDoc = parseExport("word/document.xml"); |
228 |
+- if (!pXmlDoc) |
229 |
+- return; |
230 |
+- // there should be no flipH and flipV attributes in this case |
231 |
+- assertXPathNoAttribute(pXmlDoc, "//a:xfrm", "flipH"); |
232 |
+- assertXPathNoAttribute(pXmlDoc, "//a:xfrm", "flipV"); |
233 |
+- // check rotation angle |
234 |
+- assertXPath(pXmlDoc, "//a:xfrm", "rot", "13500000"); |
235 |
+- // check the first few coordinates of the polygon |
236 |
+-#ifndef MACOSX /* Retina-related rounding roundtrip error |
237 |
+- * hard to smooth out due to the use of string compare |
238 |
+- * instead of number */ |
239 |
+-#if !defined(_WIN32) |
240 |
+- assertXPath(pXmlDoc, "//a:custGeom/a:pathLst/a:path/a:lnTo[1]/a:pt", "x", "2351"); |
241 |
+- assertXPath(pXmlDoc, "//a:custGeom/a:pathLst/a:path/a:lnTo[1]/a:pt", "y", "3171"); |
242 |
+- assertXPath(pXmlDoc, "//a:custGeom/a:pathLst/a:path/a:lnTo[2]/a:pt", "x", "1695"); |
243 |
+- assertXPath(pXmlDoc, "//a:custGeom/a:pathLst/a:path/a:lnTo[2]/a:pt", "y", "3171"); |
244 |
+- assertXPath(pXmlDoc, "//a:custGeom/a:pathLst/a:path/a:lnTo[3]/a:pt", "x", "1695"); |
245 |
+- assertXPath(pXmlDoc, "//a:custGeom/a:pathLst/a:path/a:lnTo[3]/a:pt", "y", "1701"); |
246 |
+-#endif |
247 |
+-#endif |
248 |
+-} |
249 |
++//DECLARE_OOXMLEXPORT_TEST(testFlipAndRotateCustomShape, "flip_and_rotate.odt") |
250 |
++//{ |
251 |
++// xmlDocPtr pXmlDoc = parseExport("word/document.xml"); |
252 |
++// if (!pXmlDoc) |
253 |
++// return; |
254 |
++// // there should be no flipH and flipV attributes in this case |
255 |
++// assertXPathNoAttribute(pXmlDoc, "//a:xfrm", "flipH"); |
256 |
++// assertXPathNoAttribute(pXmlDoc, "//a:xfrm", "flipV"); |
257 |
++// // check rotation angle |
258 |
++// assertXPath(pXmlDoc, "//a:xfrm", "rot", "13500000"); |
259 |
++// // check the first few coordinates of the polygon |
260 |
++//#ifndef MACOSX /* Retina-related rounding roundtrip error |
261 |
++// * hard to smooth out due to the use of string compare |
262 |
++// * instead of number */ |
263 |
++//#if !defined(_WIN32) |
264 |
++// assertXPath(pXmlDoc, "//a:custGeom/a:pathLst/a:path/a:lnTo[1]/a:pt", "x", "2351"); |
265 |
++// assertXPath(pXmlDoc, "//a:custGeom/a:pathLst/a:path/a:lnTo[1]/a:pt", "y", "3171"); |
266 |
++// assertXPath(pXmlDoc, "//a:custGeom/a:pathLst/a:path/a:lnTo[2]/a:pt", "x", "1695"); |
267 |
++// assertXPath(pXmlDoc, "//a:custGeom/a:pathLst/a:path/a:lnTo[2]/a:pt", "y", "3171"); |
268 |
++// assertXPath(pXmlDoc, "//a:custGeom/a:pathLst/a:path/a:lnTo[3]/a:pt", "x", "1695"); |
269 |
++// assertXPath(pXmlDoc, "//a:custGeom/a:pathLst/a:path/a:lnTo[3]/a:pt", "y", "1701"); |
270 |
++//#endif |
271 |
++//#endif |
272 |
++//} |
273 |
+ |
274 |
+ |
275 |
+ CPPUNIT_PLUGIN_IMPLEMENT(); |
276 |
+diff --git a/svx/qa/unoapi/svx.sce b/svx/qa/unoapi/svx.sce |
277 |
+index 1c3925f..a16f001 100644 |
278 |
+--- a/svx/qa/unoapi/svx.sce |
279 |
++++ b/svx/qa/unoapi/svx.sce |
280 |
+@@ -25,7 +25,7 @@ |
281 |
+ #i111216 -o svx.AccessiblePresentationGraphicShape |
282 |
+ #i111216 -o svx.AccessiblePresentationOLEShape |
283 |
+ #i85539 -o svx.AccessiblePresentationShape |
284 |
+--o svx.AccessibleShape |
285 |
++#-o svx.AccessibleShape |
286 |
+ #i90294 -o svx.GraphicExporter |
287 |
+ -o svx.SvxDrawPage |
288 |
+ #i85501 -o svx.SvxGraphCtrlAccessibleContext |
289 |
+ |
290 |
+19:26 <@x1sc0> _rene_, since that test is using exact dimensions, it seems it |
291 |
+ fails on your side probably because the paragraph style is |
292 |
+ different. 1. I will change the test to avoid the exact |
293 |
+ dimensions. 2. meantime you can skip that test: |
294 |
+https://cgit.freedesktop.org/libreoffice/core/commit/?id=e05f16e6bf36efbaab16dd2ed1427a750ce7cafd |
295 |
+19:26 < IZBot> core - disable UI test that does exact comparison |
296 |
+19:27 < _rene_> mmh, ok, saw that but that was for a different test, so.. :) |
297 |
+19:27 -!- jacobo [~jaragunde@××××××××××××××.com] has quit [Quit: Leaving.] |
298 |
+19:27 < _rene_> thanks, will do |
299 |
+ |
300 |
+diff --git a/uitest/writer_tests/tdf79236.py b/uitest/writer_tests/tdf79236.py |
301 |
+index 8585e48d8c64..704f42c009a1 100644 |
302 |
+--- a/uitest/writer_tests/tdf79236.py |
303 |
++++ b/uitest/writer_tests/tdf79236.py |
304 |
+@@ -8,8 +8,11 @@ from uitest.framework import UITestCase |
305 |
+ import time |
306 |
+ from uitest.uihelper.common import get_state_as_dict, type_text |
307 |
+ |
308 |
++import unittest |
309 |
++ |
310 |
+ class tdf79236(UITestCase): |
311 |
+ |
312 |
++ @unittest.skip("Currently broken") |
313 |
+ def test_paragraph(self): |
314 |
+ |
315 |
+ self.ui_test.create_doc_in_start_center("writer") |
316 |
+ |
317 |
+14:39 < ztamas> _rene_: chart2dump is used to fail because of font size differences, just use a bigger delta or disable it if it |
318 |
+ fails for you. |
319 |
+14:40 <@sberg_> noelgrandin, no |
320 |
+14:40 < noelgrandin> sberg_, sure seems that way both in the debugger and in the resulting SAL_WARN output |
321 |
+14:42 < ztamas> _rene_: there were some work on making font rendering consistent on different platforms, but it's not finished |
322 |
+ yet, I guess |
323 |
+diff --git a/chart2/Module_chart2.mk b/chart2/Module_chart2.mk |
324 |
+index 3273055d5373..cb452139170c 100644 |
325 |
+--- a/chart2/Module_chart2.mk |
326 |
++++ b/chart2/Module_chart2.mk |
327 |
+@@ -33,9 +33,9 @@ $(eval $(call gb_Module_add_slowcheck_targets,chart2,\ |
328 |
+ CppunitTest_chart2_export \ |
329 |
+ CppunitTest_chart2_import \ |
330 |
+ CppunitTest_chart2_trendcalculators \ |
331 |
+- CppunitTest_chart2_dump \ |
332 |
+ CppunitTest_chart2_pivot_chart_test \ |
333 |
+ )) |
334 |
++# CppunitTest_chart2_dump \ |
335 |
+ |
336 |
+ ifeq ($(ENABLE_CHART_TESTS),TRUE) |
337 |
+ ifeq ($(WITH_FONTS), TRUE) |
338 |
+diff --git a/sw/qa/extras/ooxmlimport/ooxmlimport.cxx b/sw/qa/extras/ooxmlimport/ooxmlimport.cxx |
339 |
+index 4d65beeb90c4..f3d71501c41a 100644 |
340 |
+--- a/sw/qa/extras/ooxmlimport/ooxmlimport.cxx |
341 |
++++ b/sw/qa/extras/ooxmlimport/ooxmlimport.cxx |
342 |
+@@ -1559,14 +1559,14 @@ DECLARE_OOXMLIMPORT_TEST(testTdf43017, "tdf43017.docx") |
343 |
+ } |
344 |
+ |
345 |
+ |
346 |
+-DECLARE_OOXMLIMPORT_TEST(testTdf112443, "tdf112443.docx") |
347 |
++/*DECLARE_OOXMLIMPORT_TEST(testTdf112443, "tdf112443.docx") |
348 |
+ { |
349 |
+ // the position of the flying text frame should be off page |
350 |
+ // 30624 below its anchor |
351 |
+ OUString aTop = parseDump("//fly[1]/infos/bounds", "top"); |
352 |
+ CPPUNIT_ASSERT_EQUAL( OUString("30624"), aTop ); |
353 |
+ |
354 |
+-} |
355 |
++}*/ |
356 |
+ |
357 |
+ DECLARE_OOXMLIMPORT_TEST(testTdf113946, "tdf113946.docx") |
358 |
+ { |
359 |
|
360 |
diff --git a/app-office/libreoffice/files/libreoffice-6.0.3.2-testTdf108947.patch b/app-office/libreoffice/files/libreoffice-6.0.3.2-testTdf108947.patch |
361 |
new file mode 100644 |
362 |
index 0000000..bd84b31 |
363 |
--- /dev/null |
364 |
+++ b/app-office/libreoffice/files/libreoffice-6.0.3.2-testTdf108947.patch |
365 |
@@ -0,0 +1,13 @@ |
366 |
+diff --git a/sw/qa/extras/rtfimport/rtfimport.cxx b/sw/qa/extras/rtfimport/rtfimport.cxx |
367 |
+index 457aedce0acb..4f02cf2b4040 100644 |
368 |
+--- a/sw/qa/extras/rtfimport/rtfimport.cxx |
369 |
++++ b/sw/qa/extras/rtfimport/rtfimport.cxx |
370 |
+@@ -1352,7 +1352,7 @@ DECLARE_RTFIMPORT_TEST(testImportHeaderFooter, "tdf108055.rtf") |
371 |
+ DECLARE_RTFIMPORT_TEST(testTdf108947, "tdf108947.rtf") |
372 |
+ { |
373 |
+ //Check page count |
374 |
+- CPPUNIT_ASSERT_EQUAL(2, getPages()); |
375 |
++ CPPUNIT_ASSERT_EQUAL(1, getPages()); |
376 |
+ |
377 |
+ //Check if Headers/Footers contain what they should in this document |
378 |
+ uno::Reference<text::XText> xHeaderTextRight = getProperty<uno::Reference<text::XText>>( |
379 |
|
380 |
diff --git a/app-office/libreoffice/files/libreoffice-6.0.6.2-disable-liborcus-unittest.patch b/app-office/libreoffice/files/libreoffice-6.0.6.2-disable-liborcus-unittest.patch |
381 |
new file mode 100644 |
382 |
index 0000000..afdca6b |
383 |
--- /dev/null |
384 |
+++ b/app-office/libreoffice/files/libreoffice-6.0.6.2-disable-liborcus-unittest.patch |
385 |
@@ -0,0 +1,13 @@ |
386 |
+--- a/sc/qa/unit/subsequent_filters-test.cxx 2018-02-22 18:45:41.000000000 +0100 |
387 |
++++ b/sc/qa/unit/subsequent_filters-test.cxx 2018-03-02 11:24:08.616015560 +0100 |
388 |
+@@ -2395,7 +2395,9 @@ |
389 |
+ CPPUNIT_ASSERT_MESSAGE("Style Name1 : Doesn't have Attribute background, but it should have.", |
390 |
+ pStyleSheet->GetItemSet().HasItem(ATTR_BACKGROUND, &pItem)); |
391 |
+ const SvxBrushItem* pBackground = static_cast<const SvxBrushItem*>(pItem); |
392 |
+- CPPUNIT_ASSERT_EQUAL(Color(254, 255, 204), pBackground->GetColor()); |
393 |
++ /* This test fails with liborcus >= 0.13.3 |
394 |
++ * CPPUNIT_ASSERT_EQUAL(Color(254, 255, 204), pBackground->GetColor()); |
395 |
++ */ |
396 |
+ |
397 |
+ CPPUNIT_ASSERT_MESSAGE("Style Name1 : Doesn't have Attribute border, but it should have.", |
398 |
+ pStyleSheet->GetItemSet().HasItem(ATTR_BORDER, &pItem)); |
399 |
|
400 |
diff --git a/app-office/libreoffice/files/libreoffice-6.0.6.2-linux-musl.patch b/app-office/libreoffice/files/libreoffice-6.0.6.2-linux-musl.patch |
401 |
new file mode 100644 |
402 |
index 0000000..5fbf6b3 |
403 |
--- /dev/null |
404 |
+++ b/app-office/libreoffice/files/libreoffice-6.0.6.2-linux-musl.patch |
405 |
@@ -0,0 +1,60 @@ |
406 |
+--- libreoffice-5.3.0.3/configure.ac.orig 2017-01-26 22:22:46.000000000 +0000 |
407 |
++++ libreoffice-5.3.0.3/configure.ac 2017-02-08 13:14:16.777547599 +0000 |
408 |
+@@ -652,7 +652,7 @@ |
409 |
+ fi |
410 |
+ ;; |
411 |
+ |
412 |
+-linux-gnu*|k*bsd*-gnu*) |
413 |
++linux-gnu*|linux-musl*|k*bsd*-gnu*) |
414 |
+ test_gtk=yes |
415 |
+ build_gstreamer_1_0=yes |
416 |
+ build_gstreamer_0_10=yes |
417 |
+@@ -4170,7 +4170,7 @@ |
418 |
+ esac |
419 |
+ ;; |
420 |
+ |
421 |
+-linux-gnu*) |
422 |
++linux-gnu*|linux-musl*) |
423 |
+ COM=GCC |
424 |
+ USING_X11=TRUE |
425 |
+ OS=LINUX |
426 |
+@@ -7197,7 +7197,7 @@ |
427 |
+ test -d "$JAVA_HOME/include/native_thread" && JAVAINC="$JAVAINC -I$JAVA_HOME/include/native_thread" |
428 |
+ ;; |
429 |
+ |
430 |
+- linux-gnu*) |
431 |
++ linux-gnu*|linux-musl*) |
432 |
+ JAVAINC="-I$JAVA_HOME/include" |
433 |
+ JAVAINC="$JAVAINC -I$JAVA_HOME/include/linux" |
434 |
+ test -d "$JAVA_HOME/include/native_thread" && JAVAINC="$JAVAINC -I$JAVA_HOME/include/native_thread" |
435 |
+@@ -9748,21 +9748,6 @@ |
436 |
+ fi |
437 |
+ AC_SUBST(SYSTEM_LIBEXTTEXTCAT_DATA) |
438 |
+ |
439 |
+-dnl *************************************** |
440 |
+-dnl testing libc version for Linux... |
441 |
+-dnl *************************************** |
442 |
+-if test "$_os" = "Linux"; then |
443 |
+- AC_MSG_CHECKING([whether libc is >= 2.1.1]) |
444 |
+- exec 6>/dev/null # no output |
445 |
+- AC_CHECK_LIB(c, gnu_get_libc_version, HAVE_LIBC=yes; export HAVE_LIBC) |
446 |
+- exec 6>&1 # output on again |
447 |
+- if test "$HAVE_LIBC"; then |
448 |
+- AC_MSG_RESULT([yes]) |
449 |
+- else |
450 |
+- AC_MSG_ERROR([no, upgrade libc]) |
451 |
+- fi |
452 |
+-fi |
453 |
+- |
454 |
+ dnl ========================================= |
455 |
+ dnl Check for the Windows SDK. |
456 |
+ dnl ========================================= |
457 |
+@@ -12775,7 +12760,7 @@ |
458 |
+ |
459 |
+ case "$host_os" in |
460 |
+ |
461 |
+- aix*|dragonfly*|freebsd*|linux-gnu*|*netbsd*|openbsd*) |
462 |
++ aix*|dragonfly*|freebsd*|linux-gnu*|linux-musl*|*netbsd*|openbsd*) |
463 |
+ if test "$ENABLE_JAVA" != ""; then |
464 |
+ pathmunge "$JAVA_HOME/bin" "after" |
465 |
+ fi |
466 |
|
467 |
diff --git a/app-office/libreoffice/files/libreoffice-6.0.6.2-musl-fix-execinfo.patch b/app-office/libreoffice/files/libreoffice-6.0.6.2-musl-fix-execinfo.patch |
468 |
new file mode 100644 |
469 |
index 0000000..4c3b359 |
470 |
--- /dev/null |
471 |
+++ b/app-office/libreoffice/files/libreoffice-6.0.6.2-musl-fix-execinfo.patch |
472 |
@@ -0,0 +1,39 @@ |
473 |
+diff --git a/sal/osl/unx/backtrace.h b/sal/osl/unx/backtrace.h |
474 |
+index 5fafc1c..408c12c 100644 |
475 |
+--- a/sal/osl/unx/backtrace.h |
476 |
++++ b/sal/osl/unx/backtrace.h |
477 |
+@@ -20,7 +20,7 @@ |
478 |
+ #ifndef INCLUDED_SAL_OSL_UNX_BACKTRACE_H |
479 |
+ #define INCLUDED_SAL_OSL_UNX_BACKTRACE_H |
480 |
+ |
481 |
+-#if defined (LINUX) |
482 |
++#if defined (LINUX) && defined (__GLIBC__) |
483 |
+ |
484 |
+ #include <execinfo.h> |
485 |
+ |
486 |
+diff --git a/sal/osl/unx/signal.cxx b/sal/osl/unx/signal.cxx |
487 |
+index f4c9a9c..da6d9cf 100644 |
488 |
+--- a/sal/osl/unx/signal.cxx |
489 |
++++ b/sal/osl/unx/signal.cxx |
490 |
+@@ -35,7 +35,7 @@ |
491 |
+ |
492 |
+ #endif /* MACOSX */ |
493 |
+ |
494 |
+-#ifdef LINUX |
495 |
++#if defined(LINUX) && defined(__GLIBC__) |
496 |
+ #include <execinfo.h> |
497 |
+ #include <link.h> |
498 |
+ #define INCLUDE_BACKTRACE |
499 |
+diff --git a/sal/osl/unx/backtrace.c b/sal/osl/unx/backtrace.c |
500 |
+index 1d9a58b..fd648e4 100644 |
501 |
+--- a/sal/osl/unx/backtrace.c |
502 |
++++ b/sal/osl/unx/backtrace.c |
503 |
+@@ -282,7 +282,7 @@ void backtrace_symbols_fd( void **buffer, int size, int fd ) |
504 |
+ } |
505 |
+ } |
506 |
+ |
507 |
+-#elif !defined LINUX |
508 |
++#elif !defined(__GLIBC__) |
509 |
+ |
510 |
+ int backtrace( void **buffer, int max_frames ) |
511 |
+ { |
512 |
|
513 |
diff --git a/app-office/libreoffice/files/libreoffice-6.0.6.2-musl-fix-includes.patch b/app-office/libreoffice/files/libreoffice-6.0.6.2-musl-fix-includes.patch |
514 |
new file mode 100644 |
515 |
index 0000000..4a837a9 |
516 |
--- /dev/null |
517 |
+++ b/app-office/libreoffice/files/libreoffice-6.0.6.2-musl-fix-includes.patch |
518 |
@@ -0,0 +1,36 @@ |
519 |
+diff --git a/sd/source/ui/remotecontrol/BluetoothServer.cxx b/sd/source/ui/remotecontrol/BluetoothServer.cxx |
520 |
+index f177d86..99bb408 100644 |
521 |
+--- a/sd/source/ui/remotecontrol/BluetoothServer.cxx |
522 |
++++ b/sd/source/ui/remotecontrol/BluetoothServer.cxx |
523 |
+@@ -21,7 +21,7 @@ |
524 |
+ #include <dbus/dbus.h> |
525 |
+ #include <errno.h> |
526 |
+ #include <fcntl.h> |
527 |
+- #include <sys/unistd.h> |
528 |
++ #include <unistd.h> |
529 |
+ #include <sys/socket.h> |
530 |
+ #include <bluetooth/bluetooth.h> |
531 |
+ #include <bluetooth/rfcomm.h> |
532 |
+diff --git a/vcl/inc/headless/svpinst.hxx b/vcl/inc/headless/svpinst.hxx |
533 |
+index 932e928..b65ced7 100644 |
534 |
+--- a/vcl/inc/headless/svpinst.hxx |
535 |
++++ b/vcl/inc/headless/svpinst.hxx |
536 |
+@@ -30,7 +30,7 @@ |
537 |
+ |
538 |
+ #include <list> |
539 |
+ |
540 |
+-#include <time.h> |
541 |
++#include <sys/time.h> |
542 |
+ |
543 |
+ #define VIRTUAL_DESKTOP_WIDTH 1024 |
544 |
+ #define VIRTUAL_DESKTOP_HEIGHT 768 |
545 |
+--- a/avmedia/source/vlc/wrapper/Types.hxx 2017-01-12 01:54:33.000000000 +0100 |
546 |
++++ b/avmedia/source/vlc/wrapper/Types.hxx 2017-01-27 20:03:39.243895504 +0100 |
547 |
+@@ -15,6 +15,7 @@ |
548 |
+ #if defined(_WIN32) |
549 |
+ typedef __int64 libvlc_time_t; |
550 |
+ #else |
551 |
++# include <stdint.h> |
552 |
+ typedef int64_t libvlc_time_t; |
553 |
+ #endif |
554 |
+ |
555 |
|
556 |
diff --git a/app-office/libreoffice/libreoffice-6.0.6.2.ebuild b/app-office/libreoffice/libreoffice-6.0.6.2.ebuild |
557 |
new file mode 100644 |
558 |
index 0000000..54835b3 |
559 |
--- /dev/null |
560 |
+++ b/app-office/libreoffice/libreoffice-6.0.6.2.ebuild |
561 |
@@ -0,0 +1,574 @@ |
562 |
+# Copyright 1999-2018 Gentoo Foundation |
563 |
+# Distributed under the terms of the GNU General Public License v2 |
564 |
+ |
565 |
+EAPI=6 |
566 |
+ |
567 |
+PYTHON_COMPAT=( python2_7 python3_{4,5,6} ) |
568 |
+PYTHON_REQ_USE="threads,xml" |
569 |
+ |
570 |
+MY_PV="${PV/_alpha/.alpha}" |
571 |
+MY_PV="${MY_PV/_beta/.beta}" |
572 |
+# experimental ; release ; old |
573 |
+# Usually the tarballs are moved a lot so this should make everyone happy. |
574 |
+DEV_URI=" |
575 |
+ https://dev-builds.libreoffice.org/pre-releases/src |
576 |
+ https://download.documentfoundation.org/libreoffice/src/${MY_PV:0:5}/ |
577 |
+ https://downloadarchive.documentfoundation.org/libreoffice/old/${MY_PV}/src |
578 |
+" |
579 |
+ADDONS_URI="https://dev-www.libreoffice.org/src/" |
580 |
+ |
581 |
+BRANDING="${PN}-branding-gentoo-0.8.tar.xz" |
582 |
+PATCHSET="${PN}-6.0.5.2-patchset-01.tar.xz" |
583 |
+ |
584 |
+[[ ${MY_PV} == *9999* ]] && SCM_ECLASS="git-r3" |
585 |
+inherit autotools bash-completion-r1 check-reqs eapi7-ver flag-o-matic gnome2-utils java-pkg-opt-2 multiprocessing pax-utils python-single-r1 qmake-utils toolchain-funcs xdg-utils ${SCM_ECLASS} |
586 |
+unset SCM_ECLASS |
587 |
+ |
588 |
+DESCRIPTION="A full office productivity suite" |
589 |
+HOMEPAGE="https://www.libreoffice.org" |
590 |
+SRC_URI="branding? ( https://dev.gentoo.org/~dilfridge/distfiles/${BRANDING} )" |
591 |
+[[ -n ${PATCHSET} ]] && SRC_URI+=" https://dev.gentoo.org/~asturm/distfiles/${PATCHSET}" |
592 |
+ |
593 |
+# Split modules following git/tarballs; Core MUST be first! |
594 |
+# Help is used for the image generator |
595 |
+# Only release has the tarballs |
596 |
+if [[ ${MY_PV} != *9999* ]]; then |
597 |
+ for i in ${DEV_URI}; do |
598 |
+ SRC_URI+=" ${i}/${PN}-${MY_PV}.tar.xz" |
599 |
+ SRC_URI+=" ${i}/${PN}-help-${MY_PV}.tar.xz" |
600 |
+ done |
601 |
+ unset i |
602 |
+fi |
603 |
+unset DEV_URI |
604 |
+ |
605 |
+# Really required addons |
606 |
+# These are bundles that can't be removed for now due to huge patchsets. |
607 |
+# If you want them gone, patches are welcome. |
608 |
+ADDONS_SRC=( |
609 |
+ "java? ( ${ADDONS_URI}/17410483b5b5f267aa18b7e00b65e6e0-hsqldb_1_8_0.zip )" |
610 |
+ # no release for 8 years, should we package it? |
611 |
+ "libreoffice_extensions_wiki-publisher? ( ${ADDONS_URI}/a7983f859eafb2677d7ff386a023bc40-xsltml_2.1.2.zip )" |
612 |
+ # Does not build with 1.6 rhino at all |
613 |
+ "libreoffice_extensions_scripting-javascript? ( ${ADDONS_URI}/798b2ffdc8bcfe7bca2cf92b62caf685-rhino1_5R5.zip )" |
614 |
+ # requirement of rhino |
615 |
+ "libreoffice_extensions_scripting-javascript? ( ${ADDONS_URI}/35c94d2df8893241173de1d16b6034c0-swingExSrc.zip )" |
616 |
+ # not packageable |
617 |
+ "odk? ( http://download.go-oo.org/extern/185d60944ea767075d27247c3162b3bc-unowinreg.dll )" |
618 |
+) |
619 |
+SRC_URI+=" ${ADDONS_SRC[*]}" |
620 |
+ |
621 |
+unset ADDONS_URI |
622 |
+unset ADDONS_SRC |
623 |
+ |
624 |
+# Extensions that need extra work: |
625 |
+LO_EXTS="nlpsolver scripting-beanshell scripting-javascript wiki-publisher" |
626 |
+ |
627 |
+IUSE="bluetooth +branding coinmp +cups dbus debug eds firebird googledrive |
628 |
+gstreamer +gtk gtk2 jemalloc kde mysql odk pdfimport postgres test vlc |
629 |
+$(printf 'libreoffice_extensions_%s ' ${LO_EXTS})" |
630 |
+ |
631 |
+REQUIRED_USE="${PYTHON_REQUIRED_USE} |
632 |
+ bluetooth? ( dbus ) |
633 |
+ kde? ( gtk ) |
634 |
+ libreoffice_extensions_nlpsolver? ( java ) |
635 |
+ libreoffice_extensions_scripting-beanshell? ( java ) |
636 |
+ libreoffice_extensions_scripting-javascript? ( java ) |
637 |
+ libreoffice_extensions_wiki-publisher? ( java ) |
638 |
+" |
639 |
+ |
640 |
+LICENSE="|| ( LGPL-3 MPL-1.1 )" |
641 |
+SLOT="0" |
642 |
+[[ ${MY_PV} == *9999* ]] || \ |
643 |
+KEYWORDS="amd64 ~arm ~arm64 x86 ~amd64-linux ~x86-linux" |
644 |
+ |
645 |
+COMMON_DEPEND="${PYTHON_DEPS} |
646 |
+ app-arch/unzip |
647 |
+ app-arch/zip |
648 |
+ app-crypt/gpgme[cxx] |
649 |
+ app-text/hunspell:= |
650 |
+ >=app-text/libabw-0.1.0 |
651 |
+ >=app-text/libebook-0.1 |
652 |
+ app-text/libepubgen |
653 |
+ >=app-text/libetonyek-0.1 |
654 |
+ app-text/libexttextcat |
655 |
+ app-text/liblangtag |
656 |
+ >=app-text/libmspub-0.1.0 |
657 |
+ >=app-text/libmwaw-0.3.1 |
658 |
+ >=app-text/libodfgen-0.1.0 |
659 |
+ app-text/libqxp |
660 |
+ app-text/libstaroffice |
661 |
+ app-text/libwpd:0.10[tools] |
662 |
+ app-text/libwpg:0.3 |
663 |
+ >=app-text/libwps-0.4 |
664 |
+ app-text/mythes |
665 |
+ >=dev-cpp/clucene-2.3.3.4-r2 |
666 |
+ =dev-cpp/libcmis-0.5* |
667 |
+ dev-db/unixODBC |
668 |
+ dev-lang/perl |
669 |
+ dev-libs/boost:=[nls] |
670 |
+ dev-libs/expat |
671 |
+ dev-libs/hyphen |
672 |
+ dev-libs/icu:= |
673 |
+ dev-libs/libassuan |
674 |
+ dev-libs/libgpg-error |
675 |
+ >=dev-libs/liborcus-0.13.3 |
676 |
+ dev-libs/librevenge |
677 |
+ dev-libs/libxml2 |
678 |
+ dev-libs/libxslt |
679 |
+ dev-libs/nspr |
680 |
+ dev-libs/nss |
681 |
+ >=dev-libs/redland-1.0.16 |
682 |
+ >=dev-libs/xmlsec-1.2.24[nss] |
683 |
+ media-gfx/graphite2 |
684 |
+ media-libs/fontconfig |
685 |
+ media-libs/freetype:2 |
686 |
+ >=media-libs/harfbuzz-0.9.42:=[graphite,icu] |
687 |
+ media-libs/lcms:2 |
688 |
+ >=media-libs/libcdr-0.1.0 |
689 |
+ >=media-libs/libepoxy-1.3.1[X] |
690 |
+ >=media-libs/libfreehand-0.1.0 |
691 |
+ media-libs/libpagemaker |
692 |
+ >=media-libs/libpng-1.4:0= |
693 |
+ >=media-libs/libvisio-0.1.0 |
694 |
+ media-libs/libzmf |
695 |
+ net-libs/neon |
696 |
+ net-misc/curl |
697 |
+ net-nds/openldap |
698 |
+ sci-mathematics/lpsolve |
699 |
+ sys-libs/zlib:= |
700 |
+ virtual/glu |
701 |
+ virtual/jpeg:0 |
702 |
+ virtual/opengl |
703 |
+ x11-libs/cairo[X] |
704 |
+ x11-libs/libXinerama |
705 |
+ x11-libs/libXrandr |
706 |
+ x11-libs/libXrender |
707 |
+ bluetooth? ( net-wireless/bluez ) |
708 |
+ coinmp? ( sci-libs/coinor-mp ) |
709 |
+ cups? ( net-print/cups ) |
710 |
+ dbus? ( dev-libs/dbus-glib ) |
711 |
+ eds? ( |
712 |
+ dev-libs/glib:2 |
713 |
+ gnome-base/dconf |
714 |
+ gnome-extra/evolution-data-server |
715 |
+ ) |
716 |
+ firebird? ( >=dev-db/firebird-3.0.2.32703.0-r1[server] ) |
717 |
+ gstreamer? ( |
718 |
+ media-libs/gstreamer:1.0 |
719 |
+ media-libs/gst-plugins-base:1.0 |
720 |
+ ) |
721 |
+ gtk? ( |
722 |
+ dev-libs/glib:2 |
723 |
+ dev-libs/gobject-introspection |
724 |
+ gnome-base/dconf |
725 |
+ media-libs/mesa[egl] |
726 |
+ x11-libs/gtk+:3 |
727 |
+ x11-libs/pango |
728 |
+ ) |
729 |
+ gtk2? ( |
730 |
+ x11-libs/gdk-pixbuf |
731 |
+ >=x11-libs/gtk+-2.24:2 |
732 |
+ x11-libs/pango |
733 |
+ ) |
734 |
+ jemalloc? ( dev-libs/jemalloc ) |
735 |
+ kde? ( |
736 |
+ dev-qt/qtcore:5 |
737 |
+ dev-qt/qtgui:5 |
738 |
+ dev-qt/qtx11extras:5 |
739 |
+ dev-qt/qtwidgets:5 |
740 |
+ kde-frameworks/kconfig:5 |
741 |
+ kde-frameworks/kcoreaddons:5 |
742 |
+ kde-frameworks/ki18n:5 |
743 |
+ kde-frameworks/kio:5 |
744 |
+ kde-frameworks/kwindowsystem:5 |
745 |
+ ) |
746 |
+ libreoffice_extensions_scripting-beanshell? ( dev-java/bsh ) |
747 |
+ libreoffice_extensions_scripting-javascript? ( dev-java/rhino:1.6 ) |
748 |
+ mysql? ( dev-db/mysql-connector-c++ ) |
749 |
+ pdfimport? ( app-text/poppler:=[cxx] ) |
750 |
+ postgres? ( >=dev-db/postgresql-9.0:*[kerberos] ) |
751 |
+" |
752 |
+ |
753 |
+RDEPEND="${COMMON_DEPEND} |
754 |
+ !app-office/libreoffice-bin |
755 |
+ !app-office/libreoffice-bin-debug |
756 |
+ !app-office/openoffice |
757 |
+ media-fonts/dejavu |
758 |
+ media-fonts/liberation-fonts |
759 |
+ media-fonts/libertine |
760 |
+ || ( x11-misc/xdg-utils kde-plasma/kde-cli-tools ) |
761 |
+ java? ( >=virtual/jre-1.6 ) |
762 |
+ kde? ( kde-frameworks/breeze-icons:* ) |
763 |
+ vlc? ( media-video/vlc ) |
764 |
+" |
765 |
+ |
766 |
+if [[ ${MY_PV} != *9999* ]] && [[ ${PV} != *_* ]]; then |
767 |
+ PDEPEND="=app-office/libreoffice-l10n-$(ver_cut 1-2)*" |
768 |
+else |
769 |
+ # Translations are not reliable on live ebuilds |
770 |
+ # rather force people to use english only. |
771 |
+ PDEPEND="!app-office/libreoffice-l10n" |
772 |
+fi |
773 |
+ |
774 |
+# FIXME: cppunit should be moved to test conditional |
775 |
+# after everything upstream is under gbuild |
776 |
+# as dmake execute tests right away |
777 |
+DEPEND="${COMMON_DEPEND} |
778 |
+ >=dev-libs/libatomic_ops-7.2d |
779 |
+ dev-perl/Archive-Zip |
780 |
+ >=dev-util/cppunit-1.14.0 |
781 |
+ >=dev-util/gperf-3 |
782 |
+ dev-util/intltool |
783 |
+ >=dev-util/mdds-1.2.3:1= |
784 |
+ media-libs/glm |
785 |
+ sys-devel/bison |
786 |
+ sys-devel/flex |
787 |
+ sys-devel/gettext |
788 |
+ sys-devel/ucpp |
789 |
+ virtual/pkgconfig |
790 |
+ x11-base/xorg-proto |
791 |
+ x11-libs/libXt |
792 |
+ x11-libs/libXtst |
793 |
+ java? ( |
794 |
+ dev-java/ant-core |
795 |
+ >=virtual/jdk-1.6 |
796 |
+ ) |
797 |
+ odk? ( >=app-doc/doxygen-1.8.4 ) |
798 |
+ test? ( |
799 |
+ app-crypt/gnupg |
800 |
+ dev-util/cppunit |
801 |
+ media-fonts/dejavu |
802 |
+ ) |
803 |
+" |
804 |
+ |
805 |
+PATCHES=( |
806 |
+ # not upstreamable stuff |
807 |
+ "${FILESDIR}/${PN}-5.4-system-pyuno.patch" |
808 |
+ "${FILESDIR}/${PN}-5.3.4.2-kioclient5.patch" |
809 |
+ "${FILESDIR}/${PN}-6.0.3.2-disable-flaky-tests-1.patch" #bug 656676 |
810 |
+ |
811 |
+ # musl compatibility by AlpineLinux |
812 |
+ "${FILESDIR}/${PN}-6.0.6.2-linux-musl.patch" |
813 |
+ "${FILESDIR}/${PN}-6.0.6.2-musl-fix-execinfo.patch" |
814 |
+ "${FILESDIR}/${PN}-6.0.6.2-musl-fix-includes.patch" |
815 |
+ "${FILESDIR}/${PN}-6.0.6.2-disable-liborcus-unittest.patch" |
816 |
+ |
817 |
+ # TODO: upstream |
818 |
+ "${FILESDIR}/${PN}-5.2.5.1-glibc-2.24.patch" |
819 |
+ "${FILESDIR}/${PN}-6.0.3.2-testTdf108947.patch" #bug 656600 |
820 |
+ |
821 |
+ # gtk3-kde5 vcl plugin backported from master |
822 |
+ "${WORKDIR}"/${PATCHSET/.tar.xz/} |
823 |
+) |
824 |
+ |
825 |
+S="${WORKDIR}/${PN}-${MY_PV}" |
826 |
+ |
827 |
+_check_reqs() { |
828 |
+ CHECKREQS_MEMORY="512M" |
829 |
+ if is-flagq "-g*" && ! is-flagq "-g*0" ; then |
830 |
+ CHECKREQS_DISK_BUILD="22G" |
831 |
+ else |
832 |
+ CHECKREQS_DISK_BUILD="6G" |
833 |
+ fi |
834 |
+ check-reqs_$1 |
835 |
+} |
836 |
+ |
837 |
+pkg_pretend() { |
838 |
+ use java || \ |
839 |
+ ewarn "If you plan to use Base application you should enable java or you will get various crashes." |
840 |
+ |
841 |
+ if has_version "<app-office/libreoffice-5.3.0[firebird]"; then |
842 |
+ ewarn "Firebird has been upgraded to version 3. It is unable to read back Firebird 2.5 data, so" |
843 |
+ ewarn "embedded firebird odb files created in LibreOffice pre-5.3 can't be opened with this version." |
844 |
+ ewarn "See also: https://wiki.documentfoundation.org/ReleaseNotes/5.3#Base" |
845 |
+ fi |
846 |
+ |
847 |
+ [[ ${MERGE_TYPE} != binary ]] && _check_reqs pkg_pretend |
848 |
+} |
849 |
+ |
850 |
+pkg_setup() { |
851 |
+ java-pkg-opt-2_pkg_setup |
852 |
+ python-single-r1_pkg_setup |
853 |
+ xdg_environment_reset |
854 |
+ |
855 |
+ [[ ${MERGE_TYPE} != binary ]] && _check_reqs pkg_setup |
856 |
+} |
857 |
+ |
858 |
+src_unpack() { |
859 |
+ default |
860 |
+ |
861 |
+ if [[ ${MY_PV} = *9999* ]]; then |
862 |
+ local base_uri branch mypv |
863 |
+ base_uri="https://anongit.freedesktop.org/git" |
864 |
+ branch="master" |
865 |
+ mypv=${MY_PV/.9999} |
866 |
+ [[ ${mypv} != ${MY_PV} ]] && branch="${PN}-${mypv/./-}" |
867 |
+ git-r3_fetch "${base_uri}/${PN}/core" "refs/heads/${branch}" |
868 |
+ git-r3_checkout "${base_uri}/${PN}/core" |
869 |
+ |
870 |
+ git-r3_fetch "${base_uri}/${PN}/help" "refs/heads/master" |
871 |
+ git-r3_checkout "${base_uri}/${PN}/help" "helpcontent2" # doesn't match on help |
872 |
+ fi |
873 |
+} |
874 |
+ |
875 |
+src_prepare() { |
876 |
+ default |
877 |
+ |
878 |
+ # sandbox violations on many systems, we don't need it. Bug #646406 |
879 |
+ sed -i \ |
880 |
+ -e "/KF5_CONFIG/s/kf5-config/no/" \ |
881 |
+ configure.ac || die "Failed to disable kf5-config" |
882 |
+ |
883 |
+ AT_M4DIR="m4" eautoreconf |
884 |
+ # hack in the autogen.sh |
885 |
+ touch autogen.lastrun |
886 |
+ |
887 |
+ # system pyuno mess |
888 |
+ sed -i \ |
889 |
+ -e "s:%eprefix%:${EPREFIX}:g" \ |
890 |
+ -e "s:%libdir%:$(get_libdir):g" \ |
891 |
+ pyuno/source/module/uno.py \ |
892 |
+ pyuno/source/officehelper.py || die |
893 |
+ # sed in the tests |
894 |
+ sed -i \ |
895 |
+ -e "s#all : build unitcheck#all : build#g" \ |
896 |
+ solenv/gbuild/Module.mk || die |
897 |
+ sed -i \ |
898 |
+ -e "s#check: dev-install subsequentcheck#check: unitcheck slowcheck dev-install subsequentcheck#g" \ |
899 |
+ -e "s#Makefile.gbuild all slowcheck#Makefile.gbuild all#g" \ |
900 |
+ Makefile.in || die |
901 |
+ |
902 |
+ sed -i \ |
903 |
+ -e "s,/usr/share/bash-completion/completions,$(get_bashcompdir)," \ |
904 |
+ -e "s,\$INSTALLDIRNAME.sh,${PN}," \ |
905 |
+ bin/distro-install-desktop-integration || die |
906 |
+ |
907 |
+ if use branding; then |
908 |
+ # hack... |
909 |
+ mv -v "${WORKDIR}/branding-intro.png" "icon-themes/galaxy/brand/intro.png" || die |
910 |
+ fi |
911 |
+ |
912 |
+ # Don't list pdfimport support in desktop when built with none, bug # 605464 |
913 |
+ if ! use pdfimport; then |
914 |
+ sed -i \ |
915 |
+ -e ":MimeType: s:application/pdf;::" \ |
916 |
+ -e ":Keywords: s:pdf;::" \ |
917 |
+ sysui/desktop/menus/draw.desktop || die |
918 |
+ fi |
919 |
+} |
920 |
+ |
921 |
+src_configure() { |
922 |
+ # Set up Google API keys, see https://www.chromium.org/developers/how-tos/api-keys |
923 |
+ # Note: these are for Gentoo use ONLY. For your own distribution, please get |
924 |
+ # your own set of keys. Feel free to contact chromium@g.o for more info. |
925 |
+ local google_default_client_id="329227923882.apps.googleusercontent.com" |
926 |
+ local google_default_client_secret="vgKG0NNv7GoDpbtoFNLxCUXu" |
927 |
+ |
928 |
+ # optimization flags |
929 |
+ export GMAKE_OPTIONS="${MAKEOPTS}" |
930 |
+ # System python enablement: |
931 |
+ export PYTHON_CFLAGS=$(python_get_CFLAGS) |
932 |
+ export PYTHON_LIBS=$(python_get_LIBS) |
933 |
+ |
934 |
+ if use kde; then |
935 |
+ export QT_SELECT=5 # bug 639620 needs proper fix though |
936 |
+ export QT5DIR="$(qt5_get_bindir)/../" |
937 |
+ export MOC5="$(qt5_get_bindir)/moc" |
938 |
+ fi |
939 |
+ |
940 |
+ # system headers/libs/...: enforce using system packages |
941 |
+ # --disable-breakpad: requires not-yet-in-tree dev-utils/breakpad |
942 |
+ # --enable-cairo: ensure that cairo is always required |
943 |
+ # --enable-*-link: link to the library rather than just dlopen on runtime |
944 |
+ # --enable-release-build: build the libreoffice as release |
945 |
+ # --disable-fetch-external: prevent dowloading during compile phase |
946 |
+ # --enable-extension-integration: enable any extension integration support |
947 |
+ # --without-{fonts,myspell-dicts,ppsd}: prevent install of sys pkgs |
948 |
+ # --disable-report-builder: too much java packages pulled in without pkgs |
949 |
+ # --without-system-sane: just sane.h header that is used for scan in writer, |
950 |
+ # not linked or anything else, worthless to depend on |
951 |
+ # --disable-pdfium: not yet packaged |
952 |
+ local myeconfargs=( |
953 |
+ --with-system-dicts |
954 |
+ --with-system-epoxy |
955 |
+ --with-system-headers |
956 |
+ --with-system-jars |
957 |
+ --with-system-libs |
958 |
+ --enable-cairo-canvas |
959 |
+ --enable-largefile |
960 |
+ --enable-mergelibs |
961 |
+ --enable-neon |
962 |
+ --enable-python=system |
963 |
+ --enable-randr |
964 |
+ --enable-release-build |
965 |
+ --disable-breakpad |
966 |
+ --disable-ccache |
967 |
+ --disable-dependency-tracking |
968 |
+ --disable-epm |
969 |
+ --disable-fetch-external |
970 |
+ --disable-gstreamer-0-10 |
971 |
+ --disable-online-update |
972 |
+ --disable-openssl |
973 |
+ --disable-pdfium |
974 |
+ --disable-report-builder |
975 |
+ --with-alloc=$(use jemalloc && echo "jemalloc" || echo "system") |
976 |
+ --with-build-version="Gentoo official package" |
977 |
+ --enable-extension-integration |
978 |
+ --with-external-dict-dir="${EPREFIX}/usr/share/myspell" |
979 |
+ --with-external-hyph-dir="${EPREFIX}/usr/share/myspell" |
980 |
+ --with-external-thes-dir="${EPREFIX}/usr/share/myspell" |
981 |
+ --with-external-tar="${DISTDIR}" |
982 |
+ --with-lang="" |
983 |
+ --with-parallelism=$(makeopts_jobs) |
984 |
+ --with-system-ucpp |
985 |
+ --with-tls=nss |
986 |
+ --with-vendor="Gentoo Foundation" |
987 |
+ --with-x |
988 |
+ --without-fonts |
989 |
+ --without-myspell-dicts |
990 |
+ --without-help |
991 |
+ --with-helppack-integration |
992 |
+ --with-system-gpgmepp |
993 |
+ --without-system-sane |
994 |
+ $(use_enable bluetooth sdremote-bluetooth) |
995 |
+ $(use_enable coinmp) |
996 |
+ $(use_enable cups) |
997 |
+ $(use_enable dbus) |
998 |
+ $(use_enable debug) |
999 |
+ $(use_enable eds evolution2) |
1000 |
+ $(use_enable firebird firebird-sdbc) |
1001 |
+ $(use_enable gstreamer gstreamer-1-0) |
1002 |
+ $(use_enable gtk gtk3) |
1003 |
+ $(use_enable gtk2 gtk) |
1004 |
+ $(use_enable kde gtk3-kde5) |
1005 |
+ $(use_enable kde qt5) |
1006 |
+ $(use_enable mysql ext-mariadb-connector) |
1007 |
+ $(use_enable odk) |
1008 |
+ $(use_enable pdfimport) |
1009 |
+ $(use_enable postgres postgresql-sdbc) |
1010 |
+ $(use_enable vlc) |
1011 |
+ $(use_with coinmp system-coinmp) |
1012 |
+ $(use_with googledrive gdrive-client-id ${google_default_client_id}) |
1013 |
+ $(use_with googledrive gdrive-client-secret ${google_default_client_secret}) |
1014 |
+ $(use_with java) |
1015 |
+ $(use_with mysql system-mysql-cppconn) |
1016 |
+ $(use_with odk doxygen) |
1017 |
+ ) |
1018 |
+ |
1019 |
+ if use eds || use gtk; then |
1020 |
+ myeconfargs+=( --enable-dconf --enable-gio ) |
1021 |
+ else |
1022 |
+ myeconfargs+=( --disable-dconf --disable-gio ) |
1023 |
+ fi |
1024 |
+ |
1025 |
+ # libreoffice extensions handling |
1026 |
+ for lo_xt in ${LO_EXTS}; do |
1027 |
+ if [[ "${lo_xt}" == "scripting-beanshell" || "${lo_xt}" == "scripting-javascript" ]]; then |
1028 |
+ myeconfargs+=( $(use_enable libreoffice_extensions_${lo_xt} ${lo_xt}) ) |
1029 |
+ else |
1030 |
+ myeconfargs+=( $(use_enable libreoffice_extensions_${lo_xt} ext-${lo_xt}) ) |
1031 |
+ fi |
1032 |
+ done |
1033 |
+ |
1034 |
+ if use java; then |
1035 |
+ # hsqldb: system one is too new |
1036 |
+ myeconfargs+=( |
1037 |
+ --without-junit |
1038 |
+ --without-system-hsqldb |
1039 |
+ --with-ant-home="${ANT_HOME}" |
1040 |
+ --with-jdk-home=$(java-config --jdk-home 2>/dev/null) |
1041 |
+ --with-jvm-path="${EPREFIX}/usr/lib/" |
1042 |
+ ) |
1043 |
+ |
1044 |
+ use libreoffice_extensions_scripting-beanshell && \ |
1045 |
+ myeconfargs+=( --with-beanshell-jar=$(java-pkg_getjar bsh bsh.jar) ) |
1046 |
+ |
1047 |
+ use libreoffice_extensions_scripting-javascript && \ |
1048 |
+ myeconfargs+=( --with-rhino-jar=$(java-pkg_getjar rhino-1.6 js.jar) ) |
1049 |
+ fi |
1050 |
+ |
1051 |
+ is-flagq "-flto*" && myeconfargs+=( --enable-lto ) |
1052 |
+ |
1053 |
+ econf "${myeconfargs[@]}" |
1054 |
+} |
1055 |
+ |
1056 |
+src_compile() { |
1057 |
+ # more and more LO stuff tries to use OpenGL, including tests during build |
1058 |
+ # bug 501508, bug 540624, bug 545974 and probably more |
1059 |
+ addpredict /dev/dri |
1060 |
+ addpredict /dev/ati |
1061 |
+ addpredict /dev/nvidiactl |
1062 |
+ |
1063 |
+ # hack for offlinehelp, this needs fixing upstream at some point |
1064 |
+ # it is broken because we send --without-help |
1065 |
+ # https://bugs.freedesktop.org/show_bug.cgi?id=46506 |
1066 |
+ ( |
1067 |
+ grep "^export" "${S}/config_host.mk" > "${T}/config_host.mk" || die |
1068 |
+ source "${T}/config_host.mk" 2&> /dev/null |
1069 |
+ |
1070 |
+ local path="${WORKDIR}/helpcontent2/source/auxiliary/" |
1071 |
+ mkdir -p "${path}" || die |
1072 |
+ |
1073 |
+ echo "perl \"${S}/helpcontent2/helpers/create_ilst.pl\" -dir=helpcontent2/source/media/helpimg > \"${path}/helpimg.ilst\"" |
1074 |
+ perl "${S}/helpcontent2/helpers/create_ilst.pl" \ |
1075 |
+ -dir=helpcontent2/source/media/helpimg \ |
1076 |
+ > "${path}/helpimg.ilst" |
1077 |
+ [[ -s "${path}/helpimg.ilst" ]] || \ |
1078 |
+ ewarn "The help images list is empty, something is fishy, report a bug." |
1079 |
+ ) |
1080 |
+ |
1081 |
+ local target |
1082 |
+ use test && target="build" || target="build-nocheck" |
1083 |
+ |
1084 |
+ # this is not a proper make script |
1085 |
+ make ${target} || die |
1086 |
+} |
1087 |
+ |
1088 |
+src_test() { |
1089 |
+ make unitcheck || die |
1090 |
+ make slowcheck || die |
1091 |
+} |
1092 |
+ |
1093 |
+src_install() { |
1094 |
+ # This is not Makefile so no buildserver |
1095 |
+ make DESTDIR="${D}" distro-pack-install -o build -o check || die |
1096 |
+ |
1097 |
+ # bug 593514 |
1098 |
+ if use gtk; then |
1099 |
+ dosym libreoffice/program/liblibreofficekitgtk.so \ |
1100 |
+ /usr/$(get_libdir)/liblibreofficekitgtk.so |
1101 |
+ fi |
1102 |
+ |
1103 |
+ # bash completion aliases |
1104 |
+ bashcomp_alias \ |
1105 |
+ libreoffice \ |
1106 |
+ unopkg loimpress lobase localc lodraw lomath lowriter lofromtemplate loweb loffice |
1107 |
+ |
1108 |
+ if use branding; then |
1109 |
+ insinto /usr/$(get_libdir)/${PN}/program |
1110 |
+ newins "${WORKDIR}/branding-sofficerc" sofficerc |
1111 |
+ dodir /etc/env.d |
1112 |
+ echo "CONFIG_PROTECT=/usr/$(get_libdir)/${PN}/program/sofficerc" > "${ED}"etc/env.d/99${PN} || die |
1113 |
+ fi |
1114 |
+ |
1115 |
+ # Hack for offlinehelp, this needs fixing upstream at some point. |
1116 |
+ # It is broken because we send --without-help |
1117 |
+ # https://bugs.freedesktop.org/show_bug.cgi?id=46506 |
1118 |
+ insinto /usr/$(get_libdir)/libreoffice/help |
1119 |
+ doins xmlhelp/util/*.xsl |
1120 |
+ |
1121 |
+ pax-mark -m "${ED}"usr/$(get_libdir)/libreoffice/program/soffice.bin |
1122 |
+ pax-mark -m "${ED}"usr/$(get_libdir)/libreoffice/program/unopkg.bin |
1123 |
+} |
1124 |
+ |
1125 |
+pkg_postinst() { |
1126 |
+ gnome2_icon_cache_update |
1127 |
+ xdg_desktop_database_update |
1128 |
+ xdg_mimeinfo_database_update |
1129 |
+} |
1130 |
+ |
1131 |
+pkg_postrm() { |
1132 |
+ gnome2_icon_cache_update |
1133 |
+ xdg_desktop_database_update |
1134 |
+ xdg_mimeinfo_database_update |
1135 |
+} |
1136 |
|
1137 |
diff --git a/app-office/libreoffice/metadata.xml b/app-office/libreoffice/metadata.xml |
1138 |
new file mode 100644 |
1139 |
index 0000000..b63d524 |
1140 |
--- /dev/null |
1141 |
+++ b/app-office/libreoffice/metadata.xml |
1142 |
@@ -0,0 +1,22 @@ |
1143 |
+<?xml version="1.0" encoding="UTF-8"?> |
1144 |
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> |
1145 |
+<pkgmetadata> |
1146 |
+ <maintainer type="project"> |
1147 |
+ <email>office@g.o</email> |
1148 |
+ <name>Gentoo Office project</name> |
1149 |
+ </maintainer> |
1150 |
+ <longdescription>LibreOffice is the successor of OpenOffice.org. |
1151 |
+This ebuild allows you to compile it yourself. Unfortunately this |
1152 |
+compilation can take up to a day depending on the speed of your |
1153 |
+computer. It will however make a snappier LibreOffice than the binary |
1154 |
+version</longdescription> |
1155 |
+ <use> |
1156 |
+ <flag name="coinmp">Use sci-libs/coinor-mp as alternative solver</flag> |
1157 |
+ <flag name="googledrive">Enable support for remote files on Google Drive</flag> |
1158 |
+ <flag name="gtk2">Enable legacy gtk2 frontend</flag> |
1159 |
+ <flag name="jemalloc">Use <pkg>dev-libs/jemalloc</pkg> for allocations</flag> |
1160 |
+ <flag name="odk">Build the Office Development Kit</flag> |
1161 |
+ <flag name="pdfimport">Enable PDF import via the Poppler library</flag> |
1162 |
+ <flag name="vlc">Use <pkg>media-video/vlc</pkg> for video embedding</flag> |
1163 |
+ </use> |
1164 |
+</pkgmetadata> |