1 |
commit: a493916aac9b87e177628e2fedd0f267a7a25dd8 |
2 |
Author: Anthony G. Basile <blueness <AT> gentoo <DOT> org> |
3 |
AuthorDate: Fri May 4 12:54:10 2018 +0000 |
4 |
Commit: Anthony G. Basile <blueness <AT> gentoo <DOT> org> |
5 |
CommitDate: Fri May 4 12:54:10 2018 +0000 |
6 |
URL: https://gitweb.gentoo.org/proj/musl.git/commit/?id=a493916a |
7 |
|
8 |
app-office/libreoffice: very out of date, breaks overlay |
9 |
|
10 |
app-office/libreoffice/Manifest | 9 - |
11 |
.../files/libreoffice-5.2.3.3-fix-includes.patch | 26 - |
12 |
.../files/libreoffice-5.2.5.1-glibc-2.24.patch | 10 - |
13 |
.../files/libreoffice-5.2.5.1-musl-vlc.patch | 10 - |
14 |
.../files/libreoffice-5.3.4.2-kioclient5.patch | 11 - |
15 |
.../files/libreoffice-5.4-system-pyuno.patch | 42 -- |
16 |
.../files/libreoffice-5.4.2.2-linux-musl.patch | 76 --- |
17 |
.../libreoffice-5.4.2.2-musl-fix-execinfo.patch | 39 -- |
18 |
app-office/libreoffice/libreoffice-5.4.2.2.ebuild | 579 --------------------- |
19 |
app-office/libreoffice/metadata.xml | 25 - |
20 |
10 files changed, 827 deletions(-) |
21 |
|
22 |
diff --git a/app-office/libreoffice/Manifest b/app-office/libreoffice/Manifest |
23 |
deleted file mode 100644 |
24 |
index 79ff2b0..0000000 |
25 |
--- a/app-office/libreoffice/Manifest |
26 |
+++ /dev/null |
27 |
@@ -1,9 +0,0 @@ |
28 |
-DIST 17410483b5b5f267aa18b7e00b65e6e0-hsqldb_1_8_0.zip 3519470 SHA256 d30b13f4ba2e3b6a2d4f020c0dee0a9fb9fc6fbcc2d561f36b78da4bf3802370 SHA512 a231eba4a1baca11766ef292ab45e302081115477fe23018652882923308856835cf8c9ecba61a5cf22543474ccef3136965d794a90c9e4e9e6dcc21f9af6e1a WHIRLPOOL c4b3b0c3e10171155e1d3431e8ab9b495dbf2fb924882024306bfb53f533f5b0231c06f47e3cfa77052013a816ea4cc5f237cc76fdb44a048fb6d5c177729aec |
29 |
-DIST 185d60944ea767075d27247c3162b3bc-unowinreg.dll 12288 SHA256 eafde646a7dbe46d20c291685b0beac2382174d78d66ee990e229a1bf6e6cec6 SHA512 854b8ae29b57b40ba6bb6ff66e723a0e8dad053fcc2849f0ad763cd8a31352f4aeba9636fd4e3f0f2a0cd985a6f49b4261b9ace68d6be821ed42cfa7a73eb13c WHIRLPOOL 16eb79e3674250fcb760b9698b4980414052d20f720d946701d1915c9b8915b4af75378668653d29581b77c19fcdba8f51d1f834c286cfcefcf4a420f8fcc1d5 |
30 |
-DIST 35c94d2df8893241173de1d16b6034c0-swingExSrc.zip 9796 SHA256 64585ac36a81291a58269ec5347e7e3e2e8596dbacb9221015c208191333c6e1 SHA512 4a48f1e32907fb2dee601cda3cd7a0d7198b2d51f2a572b647f1e93f901fd511eef3567676e52dfb1723a2cdfbc01f2015ca0bb22903b0bc1476dd618cc9aa8a WHIRLPOOL a5156d06323699d2cbf539f14f5f44f54ebf33e86c7f14e98acd4c6e29c3e496f91dd6792401148ffa32e3dcb1cd4f087ed804e306b241cef86de0aa347d25d4 |
31 |
-DIST 4b87018f7fff1d054939d19920b751a0-collada2gltf-master-cb1d97788a.tar.bz2 555291 SHA256 b0adb8e71aef80751b999c9c055e419a625c4a05184e407aef2aee28752ad8cb SHA512 1e8a39205f21206d239871bd636f17768eb3997e08ba065c1111a537564bec2b4e97bcb2f7cd9e652a1d9b4f31cb0662010303c393aedc84b920bb5f41b27be8 WHIRLPOOL d809712c3fcaca922d64f67a14d9dc3e750ecf359687c7ba0e8c6c7fc7750e43721a21ce29d5a3b0b87b83bfe7b71947e701ba4aed0a337ec35ecbb22d8dec34 |
32 |
-DIST 798b2ffdc8bcfe7bca2cf92b62caf685-rhino1_5R5.zip 1521926 SHA256 1fb458d6aab06932693cc8a9b6e4e70944ee1ff052fa63606e3131df34e21753 SHA512 ec5ae23c8fe2f5efc377f7a9665039afadf28b4d8f2791379296766a5fbc9a3bf7548f9b0e3b3b07762229ec733a92ccbb69791ee0318c9c6f78f8e847253d3f WHIRLPOOL 8e446eb44188046b0e90694feba232f42c2e9f13d0f43783a18de37c94b86ff919b994931125c5d8001ecd320c1f4db5da482847304aa61646600a3bb33144b4 |
33 |
-DIST a7983f859eafb2677d7ff386a023bc40-xsltml_2.1.2.zip 23150 SHA256 75823776fb51a9c526af904f1503a7afaaab900fba83eda64f8a41073724c870 SHA512 2d3835f7ac356805025cafedcad97faa48d0f5da386e6ac7b7451030059df8e2fdb0861ade07a576ebf9fb5b88a973585ab0437944b06aac9289d6898ba8586a WHIRLPOOL 60b98d9af2c83c0cf12a5a60ba30957d335b8b967cac07971e1edbc787b9caecd4b3c5bb480e8b38fe8109c1cf74439ebafae130c976182c2c15399f38f5d28c |
34 |
-DIST libreoffice-5.4.2.2.tar.xz 192795940 SHA256 2fda4a8c446786a3afff2cf1b07b818c45c9dcd136bfae1f3191b0b1565ba675 SHA512 37edf44b4b3c3e694f5b5915647f9555413c3fcc6d29f5f8d74806439b65ed90418905476d7b75ce58a032abb1f55cecf1ca74b63279666ca2af5f3ac95a645c WHIRLPOOL 1d2f55af8da2d1c8f2998cc3ab6346be7f6e2e524fef664281ba585910a9e98914c9e07612d597a89c77ab6dc25beffc4dcb1b4575f314752a892d18ea15415d |
35 |
-DIST libreoffice-branding-gentoo-0.8.tar.xz 151568 SHA256 22722121be062742624e0634beae92289c75e6a99ed507d3bf0a05c5164e3c69 SHA512 785031a699b1d1895ce4b50ffc3ddf645f3a0ef9acdf37facfd18cf75db9484cb8f53a50abb63d6006ead76a80b6ff5aa99661063245ebb84bd64013d713de7f WHIRLPOOL 1f36652a52d501d6548cfa9aa013b3e3a1867aa2b0693d2274cf7816d4aa4e0cde3c7096cc71ed47cf74e5f96da2757bf537f553021f8fd86939accb227bf538 |
36 |
-DIST libreoffice-help-5.4.2.2.tar.xz 2343504 SHA256 5fc740dbe77876b96ed731f0a6ce793925a9a4a4ba983b5a3506ab24beb73057 SHA512 ba845653d6388bae53eaa945abebb367fedace81c1949ed975a2ad0c270c688649b385b463256b362a6397f18d214aed9b876869434c6c3868649180e57c3112 WHIRLPOOL f5c81288d7d6f608a47f59fe6ae75b6d90b30383fc7fafbc398394c3274014c29fc6933c7b09c517e033e2477355584cb8970f55cf925d645bee57b935e1d253 |
37 |
|
38 |
diff --git a/app-office/libreoffice/files/libreoffice-5.2.3.3-fix-includes.patch b/app-office/libreoffice/files/libreoffice-5.2.3.3-fix-includes.patch |
39 |
deleted file mode 100644 |
40 |
index 1c925fc..0000000 |
41 |
--- a/app-office/libreoffice/files/libreoffice-5.2.3.3-fix-includes.patch |
42 |
+++ /dev/null |
43 |
@@ -1,26 +0,0 @@ |
44 |
-diff --git a/sd/source/ui/remotecontrol/BluetoothServer.cxx b/sd/source/ui/remotecontrol/BluetoothServer.cxx |
45 |
-index f177d86..99bb408 100644 |
46 |
---- a/sd/source/ui/remotecontrol/BluetoothServer.cxx |
47 |
-+++ b/sd/source/ui/remotecontrol/BluetoothServer.cxx |
48 |
-@@ -21,7 +21,7 @@ |
49 |
- #include <dbus/dbus.h> |
50 |
- #include <errno.h> |
51 |
- #include <fcntl.h> |
52 |
-- #include <sys/unistd.h> |
53 |
-+ #include <unistd.h> |
54 |
- #include <sys/socket.h> |
55 |
- #include <bluetooth/bluetooth.h> |
56 |
- #include <bluetooth/rfcomm.h> |
57 |
-diff --git a/vcl/inc/headless/svpinst.hxx b/vcl/inc/headless/svpinst.hxx |
58 |
-index 932e928..b65ced7 100644 |
59 |
---- a/vcl/inc/headless/svpinst.hxx |
60 |
-+++ b/vcl/inc/headless/svpinst.hxx |
61 |
-@@ -30,7 +30,7 @@ |
62 |
- |
63 |
- #include <list> |
64 |
- |
65 |
--#include <time.h> |
66 |
-+#include <sys/time.h> |
67 |
- |
68 |
- #define VIRTUAL_DESKTOP_WIDTH 1024 |
69 |
- #define VIRTUAL_DESKTOP_HEIGHT 768 |
70 |
|
71 |
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 |
72 |
deleted file mode 100644 |
73 |
index d714ff2..0000000 |
74 |
--- a/app-office/libreoffice/files/libreoffice-5.2.5.1-glibc-2.24.patch |
75 |
+++ /dev/null |
76 |
@@ -1,10 +0,0 @@ |
77 |
---- libreoffice-5.2.5.1.orig/desktop/unx/source/pagein.c 2017-01-11 16:54:33.000000000 -0800 |
78 |
-+++ libreoffice-5.2.5.1/desktop/unx/source/pagein.c 2017-02-03 10:22:51.697673613 -0800 |
79 |
-@@ -26,6 +26,7 @@ |
80 |
- #include <string.h> |
81 |
- #include <sys/stat.h> |
82 |
- #include <sys/types.h> |
83 |
-+#include <sys/sysmacros.h> |
84 |
- |
85 |
- /* do_pagein */ |
86 |
- static void do_pagein (const char * filename) |
87 |
|
88 |
diff --git a/app-office/libreoffice/files/libreoffice-5.2.5.1-musl-vlc.patch b/app-office/libreoffice/files/libreoffice-5.2.5.1-musl-vlc.patch |
89 |
deleted file mode 100644 |
90 |
index 2188309..0000000 |
91 |
--- a/app-office/libreoffice/files/libreoffice-5.2.5.1-musl-vlc.patch |
92 |
+++ /dev/null |
93 |
@@ -1,10 +0,0 @@ |
94 |
---- libreoffice-5.2.5.1.orig/avmedia/source/vlc/wrapper/Types.hxx 2017-01-12 01:54:33.000000000 +0100 |
95 |
-+++ libreoffice-5.2.5.1/avmedia/source/vlc/wrapper/Types.hxx 2017-01-27 20:03:39.243895504 +0100 |
96 |
-@@ -15,6 +15,7 @@ |
97 |
- #if defined(_WIN32) |
98 |
- typedef __int64 libvlc_time_t; |
99 |
- #else |
100 |
-+# include <stdint.h> |
101 |
- typedef int64_t libvlc_time_t; |
102 |
- #endif |
103 |
- |
104 |
|
105 |
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 |
106 |
deleted file mode 100644 |
107 |
index a6e732f..0000000 |
108 |
--- a/app-office/libreoffice/files/libreoffice-5.3.4.2-kioclient5.patch |
109 |
+++ /dev/null |
110 |
@@ -1,11 +0,0 @@ |
111 |
---- a/shell/source/unix/misc/senddoc.sh 2017-06-15 15:44:22.000000000 +0200 |
112 |
-+++ b/shell/source/unix/misc/senddoc.sh 2017-06-25 01:00:08.525435930 +0200 |
113 |
-@@ -389,6 +389,8 @@ |
114 |
- elif [ -n "$DESKTOP_LAUNCH" ]; then |
115 |
- # http://lists.freedesktop.org/pipermail/xdg/2004-August/002873.html |
116 |
- MAILER=${DESKTOP_LAUNCH} |
117 |
-+ elif [ -n "$KDE_FULL_SESSION" -a -x /usr/bin/kde-open5 ] ; then |
118 |
-+ MAILER=/usr/bin/kde-open5 |
119 |
- elif [ -n "$KDE_FULL_SESSION" -a -x /usr/bin/kde-open ] ; then |
120 |
- MAILER=/usr/bin/kde-open |
121 |
- elif [ -x /usr/bin/xdg-open ] ; then |
122 |
|
123 |
diff --git a/app-office/libreoffice/files/libreoffice-5.4-system-pyuno.patch b/app-office/libreoffice/files/libreoffice-5.4-system-pyuno.patch |
124 |
deleted file mode 100644 |
125 |
index 83b56d1..0000000 |
126 |
--- a/app-office/libreoffice/files/libreoffice-5.4-system-pyuno.patch |
127 |
+++ /dev/null |
128 |
@@ -1,42 +0,0 @@ |
129 |
---- a/desktop/scripts/soffice.sh |
130 |
-+++ a/desktop/scripts/soffice.sh |
131 |
-@@ -147,6 +147,9 @@ if echo "$checks" | grep -q "cc" ; then |
132 |
- exit 1; |
133 |
- fi |
134 |
- |
135 |
-+PYTHONPATH=$sd_prog${PYTHONPATH+:$PYTHONPATH} |
136 |
-+export PYTHONPATH |
137 |
-+ |
138 |
- case "$(uname -s)" in |
139 |
- NetBSD|OpenBSD|DragonFly) |
140 |
- # this is a temporary hack until we can live with the default search paths |
141 |
---- a/pyuno/source/module/uno.py |
142 |
-+++ a/pyuno/source/module/uno.py |
143 |
-@@ -16,11 +16,16 @@ |
144 |
- # except in compliance with the License. You may obtain a copy of |
145 |
- # the License at http://www.apache.org/licenses/LICENSE-2.0 . |
146 |
- # |
147 |
-+import os |
148 |
- import pyuno |
149 |
- import sys |
150 |
- import traceback |
151 |
- import warnings |
152 |
- |
153 |
-+sys.path.append('%eprefix%/usr/%libdir%/libreoffice/program') |
154 |
-+if getattr(os.environ, 'URE_BOOTSTRAP', None) is None: |
155 |
-+ os.environ['URE_BOOTSTRAP'] = "vnd.sun.star.pathname:%eprefix%/usr/%libdir%/libreoffice/program/fundamentalrc" |
156 |
-+ |
157 |
- # since on Windows sal3.dll no longer calls WSAStartup |
158 |
- import socket |
159 |
- |
160 |
---- a/pyuno/source/officehelper.py |
161 |
-+++ a/pyuno/source/officehelper.py |
162 |
-@@ -45,7 +45,7 @@ def bootstrap(): |
163 |
- if "UNO_PATH" in os.environ: |
164 |
- sOffice = os.environ["UNO_PATH"] |
165 |
- else: |
166 |
-- sOffice = "" # lets hope for the best |
167 |
-+ sOffice = "%eprefix%/usr/%libdir%/libreoffice/program" |
168 |
- sOffice = os.path.join(sOffice, "soffice") |
169 |
- if platform.startswith("win"): |
170 |
- sOffice += ".exe" |
171 |
|
172 |
diff --git a/app-office/libreoffice/files/libreoffice-5.4.2.2-linux-musl.patch b/app-office/libreoffice/files/libreoffice-5.4.2.2-linux-musl.patch |
173 |
deleted file mode 100644 |
174 |
index b170c03..0000000 |
175 |
--- a/app-office/libreoffice/files/libreoffice-5.4.2.2-linux-musl.patch |
176 |
+++ /dev/null |
177 |
@@ -1,76 +0,0 @@ |
178 |
-diff -Naur libreoffice-5.4.2.2.orig/configure.ac libreoffice-5.4.2.2/configure.ac |
179 |
---- libreoffice-5.4.2.2.orig/configure.ac 2017-09-27 14:03:26.000000000 -0400 |
180 |
-+++ libreoffice-5.4.2.2/configure.ac 2017-11-20 04:22:51.742130616 -0500 |
181 |
-@@ -1,4 +1,4 @@ |
182 |
--dnl -*- Mode: Autoconf; tab-width: 4; indent-tabs-mode: nil; fill-column: 102 -*- |
183 |
-+12927dnl -*- Mode: Autoconf; tab-width: 4; indent-tabs-mode: nil; fill-column: 102 -*- |
184 |
- dnl configure.ac serves as input for the GNU autoconf package |
185 |
- dnl in order to create a configure script. |
186 |
- |
187 |
-@@ -441,7 +441,7 @@ |
188 |
- # all objects have been built with debug information.) |
189 |
- toolchain_system='*' |
190 |
- case $build_os in |
191 |
-- linux-gnu*) |
192 |
-+ linux-gnu*|linux-musl*) |
193 |
- ndk_build_os=linux |
194 |
- ;; |
195 |
- darwin*) |
196 |
-@@ -664,7 +664,7 @@ |
197 |
- fi |
198 |
- ;; |
199 |
- |
200 |
--linux-gnu*|k*bsd*-gnu*) |
201 |
-+linux-gnu*|linux-musl*|k*bsd*-gnu*) |
202 |
- test_gtk=yes |
203 |
- build_gstreamer_1_0=yes |
204 |
- build_gstreamer_0_10=yes |
205 |
-@@ -4129,7 +4129,7 @@ |
206 |
- esac |
207 |
- ;; |
208 |
- |
209 |
--linux-gnu*) |
210 |
-+linux-gnu*|linux-musl*) |
211 |
- COM=GCC |
212 |
- USING_X11=TRUE |
213 |
- OS=LINUX |
214 |
-@@ -7135,7 +7135,7 @@ |
215 |
- test -d "$JAVA_HOME/include/native_thread" && JAVAINC="$JAVAINC -I$JAVA_HOME/include/native_thread" |
216 |
- ;; |
217 |
- |
218 |
-- linux-gnu*) |
219 |
-+ linux-gnu*|linux-musl*) |
220 |
- JAVAINC="-I$JAVA_HOME/include" |
221 |
- JAVAINC="$JAVAINC -I$JAVA_HOME/include/linux" |
222 |
- test -d "$JAVA_HOME/include/native_thread" && JAVAINC="$JAVAINC -I$JAVA_HOME/include/native_thread" |
223 |
-@@ -9645,21 +9645,6 @@ |
224 |
- fi |
225 |
- AC_SUBST(SYSTEM_LIBEXTTEXTCAT_DATA) |
226 |
- |
227 |
--dnl *************************************** |
228 |
--dnl testing libc version for Linux... |
229 |
--dnl *************************************** |
230 |
--if test "$_os" = "Linux"; then |
231 |
-- AC_MSG_CHECKING([whether libc is >= 2.1.1]) |
232 |
-- exec 6>/dev/null # no output |
233 |
-- AC_CHECK_LIB(c, gnu_get_libc_version, HAVE_LIBC=yes; export HAVE_LIBC) |
234 |
-- exec 6>&1 # output on again |
235 |
-- if test "$HAVE_LIBC"; then |
236 |
-- AC_MSG_RESULT([yes]) |
237 |
-- else |
238 |
-- AC_MSG_ERROR([no, upgrade libc]) |
239 |
-- fi |
240 |
--fi |
241 |
-- |
242 |
- dnl ========================================= |
243 |
- dnl Check for uuidgen |
244 |
- dnl ========================================= |
245 |
-@@ -12572,7 +12557,7 @@ |
246 |
- |
247 |
- case "$host_os" in |
248 |
- |
249 |
-- aix*|dragonfly*|freebsd*|linux-gnu*|*netbsd*|openbsd*) |
250 |
-+ aix*|dragonfly*|freebsd*|linux-gnu*|linux-musl*|*netbsd*|openbsd*) |
251 |
- if test "$ENABLE_JAVA" != ""; then |
252 |
- pathmunge "$JAVA_HOME/bin" "after" |
253 |
- fi |
254 |
|
255 |
diff --git a/app-office/libreoffice/files/libreoffice-5.4.2.2-musl-fix-execinfo.patch b/app-office/libreoffice/files/libreoffice-5.4.2.2-musl-fix-execinfo.patch |
256 |
deleted file mode 100644 |
257 |
index 4c3b359..0000000 |
258 |
--- a/app-office/libreoffice/files/libreoffice-5.4.2.2-musl-fix-execinfo.patch |
259 |
+++ /dev/null |
260 |
@@ -1,39 +0,0 @@ |
261 |
-diff --git a/sal/osl/unx/backtrace.h b/sal/osl/unx/backtrace.h |
262 |
-index 5fafc1c..408c12c 100644 |
263 |
---- a/sal/osl/unx/backtrace.h |
264 |
-+++ b/sal/osl/unx/backtrace.h |
265 |
-@@ -20,7 +20,7 @@ |
266 |
- #ifndef INCLUDED_SAL_OSL_UNX_BACKTRACE_H |
267 |
- #define INCLUDED_SAL_OSL_UNX_BACKTRACE_H |
268 |
- |
269 |
--#if defined (LINUX) |
270 |
-+#if defined (LINUX) && defined (__GLIBC__) |
271 |
- |
272 |
- #include <execinfo.h> |
273 |
- |
274 |
-diff --git a/sal/osl/unx/signal.cxx b/sal/osl/unx/signal.cxx |
275 |
-index f4c9a9c..da6d9cf 100644 |
276 |
---- a/sal/osl/unx/signal.cxx |
277 |
-+++ b/sal/osl/unx/signal.cxx |
278 |
-@@ -35,7 +35,7 @@ |
279 |
- |
280 |
- #endif /* MACOSX */ |
281 |
- |
282 |
--#ifdef LINUX |
283 |
-+#if defined(LINUX) && defined(__GLIBC__) |
284 |
- #include <execinfo.h> |
285 |
- #include <link.h> |
286 |
- #define INCLUDE_BACKTRACE |
287 |
-diff --git a/sal/osl/unx/backtrace.c b/sal/osl/unx/backtrace.c |
288 |
-index 1d9a58b..fd648e4 100644 |
289 |
---- a/sal/osl/unx/backtrace.c |
290 |
-+++ b/sal/osl/unx/backtrace.c |
291 |
-@@ -282,7 +282,7 @@ void backtrace_symbols_fd( void **buffer, int size, int fd ) |
292 |
- } |
293 |
- } |
294 |
- |
295 |
--#elif !defined LINUX |
296 |
-+#elif !defined(__GLIBC__) |
297 |
- |
298 |
- int backtrace( void **buffer, int max_frames ) |
299 |
- { |
300 |
|
301 |
diff --git a/app-office/libreoffice/libreoffice-5.4.2.2.ebuild b/app-office/libreoffice/libreoffice-5.4.2.2.ebuild |
302 |
deleted file mode 100644 |
303 |
index 3715395..0000000 |
304 |
--- a/app-office/libreoffice/libreoffice-5.4.2.2.ebuild |
305 |
+++ /dev/null |
306 |
@@ -1,579 +0,0 @@ |
307 |
-# Copyright 1999-2017 Gentoo Foundation |
308 |
-# Distributed under the terms of the GNU General Public License v2 |
309 |
- |
310 |
-EAPI=6 |
311 |
- |
312 |
-KDE_REQUIRED="optional" |
313 |
-KDE_SCM="git" |
314 |
-CMAKE_REQUIRED="never" |
315 |
- |
316 |
-PYTHON_COMPAT=( python2_7 python3_{4,5,6} ) |
317 |
-PYTHON_REQ_USE="threads,xml" |
318 |
- |
319 |
-# experimental ; release ; old |
320 |
-# Usually the tarballs are moved a lot so this should make |
321 |
-# everyone happy. |
322 |
-DEV_URI=" |
323 |
- https://dev-builds.libreoffice.org/pre-releases/src |
324 |
- https://download.documentfoundation.org/libreoffice/src/${PV:0:5}/ |
325 |
- https://download.documentfoundation.org/libreoffice/old/${PV}/ |
326 |
-" |
327 |
-ADDONS_URI="https://dev-www.libreoffice.org/src/" |
328 |
- |
329 |
-BRANDING="${PN}-branding-gentoo-0.8.tar.xz" |
330 |
-# PATCHSET="${P}-patchset-01.tar.xz" |
331 |
- |
332 |
-[[ ${PV} == *9999* ]] && SCM_ECLASS="git-r3" |
333 |
-inherit multiprocessing autotools bash-completion-r1 check-reqs eutils java-pkg-opt-2 kde4-base pax-utils python-single-r1 toolchain-funcs flag-o-matic versionator xdg-utils qmake-utils ${SCM_ECLASS} |
334 |
-unset SCM_ECLASS |
335 |
- |
336 |
-DESCRIPTION="A full office productivity suite" |
337 |
-HOMEPAGE="https://www.libreoffice.org" |
338 |
-SRC_URI="branding? ( https://dev.gentoo.org/~dilfridge/distfiles/${BRANDING} )" |
339 |
-[[ -n ${PATCHSET} ]] && SRC_URI+=" http://dev.gentooexperimental.org/~scarabeus/${PATCHSET}" |
340 |
- |
341 |
-# Split modules following git/tarballs |
342 |
-# Core MUST be first! |
343 |
-# Help is used for the image generator |
344 |
-# Only release has the tarballs |
345 |
-if [[ ${PV} != *9999* ]]; then |
346 |
- for i in ${DEV_URI}; do |
347 |
- SRC_URI+=" ${i}/${P}.tar.xz" |
348 |
- SRC_URI+=" ${i}/${PN}-help-${PV}.tar.xz" |
349 |
- done |
350 |
- unset i |
351 |
-fi |
352 |
-unset DEV_URI |
353 |
- |
354 |
-# Really required addons |
355 |
-# These are bundles that can't be removed for now due to huge patchsets. |
356 |
-# If you want them gone, patches are welcome. |
357 |
-ADDONS_SRC=( |
358 |
- "collada? ( ${ADDONS_URI}/4b87018f7fff1d054939d19920b751a0-collada2gltf-master-cb1d97788a.tar.bz2 )" |
359 |
- "java? ( ${ADDONS_URI}/17410483b5b5f267aa18b7e00b65e6e0-hsqldb_1_8_0.zip )" |
360 |
- # no release for 8 years, should we package it? |
361 |
- "libreoffice_extensions_wiki-publisher? ( ${ADDONS_URI}/a7983f859eafb2677d7ff386a023bc40-xsltml_2.1.2.zip )" |
362 |
- # Does not build with 1.6 rhino at all |
363 |
- "libreoffice_extensions_scripting-javascript? ( ${ADDONS_URI}/798b2ffdc8bcfe7bca2cf92b62caf685-rhino1_5R5.zip )" |
364 |
- # requirement of rhino |
365 |
- "libreoffice_extensions_scripting-javascript? ( ${ADDONS_URI}/35c94d2df8893241173de1d16b6034c0-swingExSrc.zip )" |
366 |
- # not packageable |
367 |
- "odk? ( http://download.go-oo.org/extern/185d60944ea767075d27247c3162b3bc-unowinreg.dll )" |
368 |
-) |
369 |
-SRC_URI+=" ${ADDONS_SRC[*]}" |
370 |
- |
371 |
-unset ADDONS_URI |
372 |
-unset ADDONS_SRC |
373 |
- |
374 |
-# Extensions that need extra work: |
375 |
-LO_EXTS="nlpsolver scripting-beanshell scripting-javascript wiki-publisher" |
376 |
- |
377 |
-IUSE="bluetooth +branding coinmp collada +cups dbus debug eds firebird gltf gnome googledrive |
378 |
-gstreamer +gtk gtk3 jemalloc kde libressl mysql odk pdfimport postgres quickstarter test vlc |
379 |
-$(printf 'libreoffice_extensions_%s ' ${LO_EXTS})" |
380 |
- |
381 |
-LICENSE="|| ( LGPL-3 MPL-1.1 )" |
382 |
-SLOT="0" |
383 |
-[[ ${PV} == *9999* ]] || \ |
384 |
-KEYWORDS="amd64 ~arm x86" |
385 |
- |
386 |
-COMMON_DEPEND="${PYTHON_DEPS} |
387 |
- app-arch/unzip |
388 |
- app-arch/zip |
389 |
- app-crypt/gpgme[cxx] |
390 |
- app-text/hunspell:= |
391 |
- >=app-text/libabw-0.1.0 |
392 |
- >=app-text/libebook-0.1 |
393 |
- >=app-text/libetonyek-0.1 |
394 |
- app-text/libexttextcat |
395 |
- app-text/liblangtag |
396 |
- >=app-text/libmspub-0.1.0 |
397 |
- >=app-text/libmwaw-0.3.1 |
398 |
- >=app-text/libodfgen-0.1.0 |
399 |
- app-text/libstaroffice |
400 |
- app-text/libwpd:0.10[tools] |
401 |
- app-text/libwpg:0.3 |
402 |
- >=app-text/libwps-0.4 |
403 |
- app-text/mythes |
404 |
- >=dev-cpp/clucene-2.3.3.4-r2 |
405 |
- =dev-cpp/libcmis-0.5* |
406 |
- dev-db/unixODBC |
407 |
- dev-lang/perl |
408 |
- dev-libs/boost:= |
409 |
- dev-libs/expat |
410 |
- dev-libs/hyphen |
411 |
- dev-libs/icu:= |
412 |
- dev-libs/libassuan |
413 |
- dev-libs/libgpg-error |
414 |
- =dev-libs/liborcus-0.12* |
415 |
- dev-libs/librevenge |
416 |
- dev-libs/nspr |
417 |
- dev-libs/nss |
418 |
- !libressl? ( >=dev-libs/openssl-1.0.0d:0 ) |
419 |
- libressl? ( dev-libs/libressl ) |
420 |
- >=dev-libs/redland-1.0.16 |
421 |
- >=dev-libs/xmlsec-1.2.24[nss] |
422 |
- media-gfx/graphite2 |
423 |
- media-libs/fontconfig |
424 |
- media-libs/freetype:2 |
425 |
- >=media-libs/harfbuzz-0.9.42:=[graphite,icu] |
426 |
- media-libs/lcms:2 |
427 |
- >=media-libs/libcdr-0.1.0 |
428 |
- >=media-libs/libepoxy-1.3.1 |
429 |
- >=media-libs/libfreehand-0.1.0 |
430 |
- media-libs/libpagemaker |
431 |
- >=media-libs/libpng-1.4:0= |
432 |
- >=media-libs/libvisio-0.1.0 |
433 |
- media-libs/libzmf |
434 |
- net-libs/neon |
435 |
- net-misc/curl |
436 |
- net-nds/openldap |
437 |
- sci-mathematics/lpsolve |
438 |
- x11-libs/cairo[X] |
439 |
- x11-libs/libXinerama |
440 |
- x11-libs/libXrandr |
441 |
- x11-libs/libXrender |
442 |
- virtual/glu |
443 |
- virtual/jpeg:0 |
444 |
- virtual/opengl |
445 |
- bluetooth? ( net-wireless/bluez ) |
446 |
- coinmp? ( sci-libs/coinor-mp ) |
447 |
- collada? ( media-libs/opencollada ) |
448 |
- cups? ( net-print/cups ) |
449 |
- dbus? ( dev-libs/dbus-glib ) |
450 |
- eds? ( |
451 |
- dev-libs/glib:2 |
452 |
- gnome-extra/evolution-data-server |
453 |
- ) |
454 |
- firebird? ( >=dev-db/firebird-3.0.2.32703.0-r1 ) |
455 |
- gltf? ( >=media-libs/libgltf-0.1.0 ) |
456 |
- gnome? ( gnome-base/dconf ) |
457 |
- gstreamer? ( |
458 |
- media-libs/gstreamer:1.0 |
459 |
- media-libs/gst-plugins-base:1.0 |
460 |
- ) |
461 |
- gtk? ( |
462 |
- x11-libs/gdk-pixbuf |
463 |
- >=x11-libs/gtk+-2.24:2 |
464 |
- ) |
465 |
- gtk3? ( |
466 |
- dev-libs/glib:2 |
467 |
- dev-libs/gobject-introspection |
468 |
- x11-libs/gtk+:3 |
469 |
- ) |
470 |
- jemalloc? ( dev-libs/jemalloc ) |
471 |
- libreoffice_extensions_scripting-beanshell? ( dev-java/bsh ) |
472 |
- libreoffice_extensions_scripting-javascript? ( dev-java/rhino:1.6 ) |
473 |
- mysql? ( dev-db/mysql-connector-c++ ) |
474 |
- pdfimport? ( app-text/poppler:=[cxx] ) |
475 |
- postgres? ( >=dev-db/postgresql-9.0:*[kerberos] ) |
476 |
-" |
477 |
- |
478 |
-RDEPEND="${COMMON_DEPEND} |
479 |
- !app-office/libreoffice-bin |
480 |
- !app-office/libreoffice-bin-debug |
481 |
- !app-office/openoffice |
482 |
- media-fonts/dejavu |
483 |
- media-fonts/liberation-fonts |
484 |
- media-fonts/libertine |
485 |
- || ( x11-misc/xdg-utils kde-plasma/kde-cli-tools ) |
486 |
- java? ( >=virtual/jre-1.6 ) |
487 |
- vlc? ( media-video/vlc ) |
488 |
-" |
489 |
- |
490 |
-if [[ ${PV} != *9999* ]]; then |
491 |
- PDEPEND="=app-office/libreoffice-l10n-$(get_version_component_range 1-2)*" |
492 |
-else |
493 |
- # Translations are not reliable on live ebuilds |
494 |
- # rather force people to use english only. |
495 |
- PDEPEND="!app-office/libreoffice-l10n" |
496 |
-fi |
497 |
- |
498 |
-# FIXME: cppunit should be moved to test conditional |
499 |
-# after everything upstream is under gbuild |
500 |
-# as dmake execute tests right away |
501 |
-DEPEND="${COMMON_DEPEND} |
502 |
- !<sys-devel/make-3.82 |
503 |
- >=dev-libs/libatomic_ops-7.2d |
504 |
- >=dev-libs/libxml2-2.7.8 |
505 |
- dev-libs/libxslt |
506 |
- dev-perl/Archive-Zip |
507 |
- >=dev-util/cppunit-1.14.0 |
508 |
- >=dev-util/gperf-3 |
509 |
- dev-util/intltool |
510 |
- >=dev-util/mdds-1.2.2:1= |
511 |
- media-libs/glm |
512 |
- sys-devel/bison |
513 |
- sys-devel/flex |
514 |
- sys-devel/gettext |
515 |
- sys-devel/ucpp |
516 |
- sys-libs/zlib |
517 |
- virtual/pkgconfig |
518 |
- x11-libs/libXt |
519 |
- x11-libs/libXtst |
520 |
- x11-proto/randrproto |
521 |
- x11-proto/xextproto |
522 |
- x11-proto/xineramaproto |
523 |
- x11-proto/xproto |
524 |
- java? ( |
525 |
- dev-java/ant-core |
526 |
- >=virtual/jdk-1.6 |
527 |
- ) |
528 |
- odk? ( >=app-doc/doxygen-1.8.4 ) |
529 |
- test? ( |
530 |
- dev-util/cppunit |
531 |
- media-fonts/dejavu |
532 |
- ) |
533 |
-" |
534 |
- |
535 |
-REQUIRED_USE="${PYTHON_REQUIRED_USE} |
536 |
- bluetooth? ( dbus ) |
537 |
- collada? ( gltf ) |
538 |
- eds? ( gnome ) |
539 |
- gnome? ( gtk ) |
540 |
- libreoffice_extensions_nlpsolver? ( java ) |
541 |
- libreoffice_extensions_scripting-beanshell? ( java ) |
542 |
- libreoffice_extensions_scripting-javascript? ( java ) |
543 |
- libreoffice_extensions_wiki-publisher? ( java ) |
544 |
-" |
545 |
- |
546 |
-PATCHES=( |
547 |
- # not upstreamable stuff |
548 |
- "${FILESDIR}/${PN}-5.4-system-pyuno.patch" |
549 |
- "${FILESDIR}/${PN}-5.3.4.2-kioclient5.patch" |
550 |
- |
551 |
- # TODO: upstream |
552 |
- "${FILESDIR}/${PN}-5.2.5.1-glibc-2.24.patch" |
553 |
- |
554 |
- # musl patches |
555 |
- "${FILESDIR}/${PN}-5.4.2.2-musl-fix-execinfo.patch" |
556 |
- "${FILESDIR}/${PN}-5.4.2.2-linux-musl.patch" |
557 |
- "${FILESDIR}/${PN}-5.2.3.3-fix-includes.patch" |
558 |
- "${FILESDIR}/${PN}-5.2.5.1-musl-vlc.patch" |
559 |
-) |
560 |
- |
561 |
-pkg_pretend() { |
562 |
- use java || \ |
563 |
- ewarn "If you plan to use Base application you should enable java or you will get various crashes." |
564 |
- |
565 |
- if has_version "<app-office/libreoffice-5.3.0[firebird]"; then |
566 |
- ewarn "Firebird has been upgraded to version 3.0.0. It is unable to read back Firebird 2.5 data," |
567 |
- ewarn "so embedded firebird odb files created in LibreOffice pre-5.3 cannot be opened with LibreOffice 5.3." |
568 |
- ewarn "See also: https://wiki.documentfoundation.org/ReleaseNotes/5.3#Base" |
569 |
- fi |
570 |
- |
571 |
- if [[ ${MERGE_TYPE} != binary ]]; then |
572 |
- |
573 |
- CHECKREQS_MEMORY="512M" |
574 |
- if is-flagq "-g*" && ! is-flagq "-g*0" ; then |
575 |
- CHECKREQS_DISK_BUILD="22G" |
576 |
- else |
577 |
- CHECKREQS_DISK_BUILD="6G" |
578 |
- fi |
579 |
- check-reqs_pkg_pretend |
580 |
- fi |
581 |
-} |
582 |
- |
583 |
-pkg_setup() { |
584 |
- java-pkg-opt-2_pkg_setup |
585 |
- kde4-base_pkg_setup |
586 |
- python-single-r1_pkg_setup |
587 |
- xdg_environment_reset |
588 |
- |
589 |
- if [[ ${MERGE_TYPE} != binary ]]; then |
590 |
- CHECKREQS_MEMORY="512M" |
591 |
- if is-flagq "-g*" && ! is-flagq "-g*0" ; then |
592 |
- CHECKREQS_DISK_BUILD="22G" |
593 |
- else |
594 |
- CHECKREQS_DISK_BUILD="6G" |
595 |
- fi |
596 |
- check-reqs_pkg_setup |
597 |
- fi |
598 |
-} |
599 |
- |
600 |
-src_unpack() { |
601 |
- [[ -n ${PATCHSET} ]] && unpack ${PATCHSET} |
602 |
- use branding && unpack "${BRANDING}" |
603 |
- |
604 |
- if [[ ${PV} != *9999* ]]; then |
605 |
- unpack "${P}.tar.xz" |
606 |
- unpack "${PN}-help-${PV}.tar.xz" |
607 |
- else |
608 |
- local base_uri branch mypv |
609 |
- base_uri="https://anongit.freedesktop.org/git" |
610 |
- branch="master" |
611 |
- mypv=${PV/.9999} |
612 |
- [[ ${mypv} != ${PV} ]] && branch="${PN}-${mypv/./-}" |
613 |
- git-r3_fetch "${base_uri}/${PN}/core" "refs/heads/${branch}" |
614 |
- git-r3_checkout "${base_uri}/${PN}/core" |
615 |
- |
616 |
- git-r3_fetch "${base_uri}/${PN}/help" "refs/heads/master" |
617 |
- git-r3_checkout "${base_uri}/${PN}/help" "helpcontent2" # doesn't match on help |
618 |
- fi |
619 |
-} |
620 |
- |
621 |
-src_prepare() { |
622 |
- [[ -n ${PATCHSET} ]] && eapply "${WORKDIR}/${PATCHSET/.tar.xz/}" |
623 |
- eapply "${PATCHES[@]}" |
624 |
- eapply_user |
625 |
- |
626 |
- AT_M4DIR="m4" eautoreconf |
627 |
- # hack in the autogen.sh |
628 |
- touch autogen.lastrun |
629 |
- |
630 |
- # system pyuno mess |
631 |
- sed -i \ |
632 |
- -e "s:%eprefix%:${EPREFIX}:g" \ |
633 |
- -e "s:%libdir%:$(get_libdir):g" \ |
634 |
- pyuno/source/module/uno.py \ |
635 |
- pyuno/source/officehelper.py || die |
636 |
- # sed in the tests |
637 |
- sed -i \ |
638 |
- -e "s#all : build unitcheck#all : build#g" \ |
639 |
- solenv/gbuild/Module.mk || die |
640 |
- sed -i \ |
641 |
- -e "s#check: dev-install subsequentcheck#check: unitcheck slowcheck dev-install subsequentcheck#g" \ |
642 |
- -e "s#Makefile.gbuild all slowcheck#Makefile.gbuild all#g" \ |
643 |
- Makefile.in || die |
644 |
- |
645 |
- sed -i \ |
646 |
- -e "s,/usr/share/bash-completion/completions,$(get_bashcompdir)," \ |
647 |
- -e "s,\$INSTALLDIRNAME.sh,${PN}," \ |
648 |
- bin/distro-install-desktop-integration || die |
649 |
- |
650 |
- if use branding; then |
651 |
- # hack... |
652 |
- mv -v "${WORKDIR}/branding-intro.png" "${S}/icon-themes/galaxy/brand/intro.png" || die |
653 |
- fi |
654 |
- |
655 |
- # Don't list pdfimport support in desktop when built with none, bug # 605464 |
656 |
- if ! use pdfimport; then |
657 |
- sed -i \ |
658 |
- -e ":MimeType: s:application/pdf;::" \ |
659 |
- -e ":Keywords: s:pdf;::" \ |
660 |
- sysui/desktop/menus/draw.desktop || die |
661 |
- fi |
662 |
-} |
663 |
- |
664 |
-src_configure() { |
665 |
- local java_opts |
666 |
- local ext_opts |
667 |
- |
668 |
- # Set up Google API keys, see https://www.chromium.org/developers/how-tos/api-keys |
669 |
- # Note: these are for Gentoo use ONLY. For your own distribution, please get |
670 |
- # your own set of keys. Feel free to contact chromium@g.o for more info. |
671 |
- local google_default_client_id="329227923882.apps.googleusercontent.com" |
672 |
- local google_default_client_secret="vgKG0NNv7GoDpbtoFNLxCUXu" |
673 |
- |
674 |
- # optimization flags |
675 |
- export GMAKE_OPTIONS="${MAKEOPTS}" |
676 |
- # System python enablement: |
677 |
- export PYTHON_CFLAGS=$(python_get_CFLAGS) |
678 |
- export PYTHON_LIBS=$(python_get_LIBS) |
679 |
- |
680 |
- if use collada; then |
681 |
- export OPENCOLLADA_CFLAGS="-I/usr/include/opencollada/COLLADABaseUtils -I/usr/include/opencollada/COLLADAFramework -I/usr/include/opencollada/COLLADASaxFrameworkLoader -I/usr/include/opencollada/GeneratedSaxParser" |
682 |
- export OPENCOLLADA_LIBS="-L /usr/$(get_libdir)/opencollada -lOpenCOLLADABaseUtils -lOpenCOLLADAFramework -lOpenCOLLADASaxFrameworkLoader -lGeneratedSaxParser" |
683 |
- fi |
684 |
- |
685 |
- # libreoffice extensions handling |
686 |
- for lo_xt in ${LO_EXTS}; do |
687 |
- if [[ "${lo_xt}" == "scripting-beanshell" || "${lo_xt}" == "scripting-javascript" ]]; then |
688 |
- ext_opts+=" $(use_enable libreoffice_extensions_${lo_xt} ${lo_xt})" |
689 |
- else |
690 |
- ext_opts+=" $(use_enable libreoffice_extensions_${lo_xt} ext-${lo_xt})" |
691 |
- fi |
692 |
- done |
693 |
- |
694 |
- if use java; then |
695 |
- # hsqldb: system one is too new |
696 |
- java_opts=" |
697 |
- --without-junit |
698 |
- --without-system-hsqldb |
699 |
- --with-ant-home="${ANT_HOME}" |
700 |
- --with-jdk-home=$(java-config --jdk-home 2>/dev/null) |
701 |
- --with-jvm-path="${EPREFIX}/usr/lib/" |
702 |
- " |
703 |
- |
704 |
- use libreoffice_extensions_scripting-beanshell && \ |
705 |
- java_opts+=" --with-beanshell-jar=$(java-pkg_getjar bsh bsh.jar)" |
706 |
- |
707 |
- use libreoffice_extensions_scripting-javascript && \ |
708 |
- java_opts+=" --with-rhino-jar=$(java-pkg_getjar rhino-1.6 js.jar)" |
709 |
- fi |
710 |
- |
711 |
- if use kde; then |
712 |
- # bug 544108, bug 599076 |
713 |
- export QMAKEQT4="$(qt4_get_bindir)/qmake" |
714 |
- export MOCQT4="$(qt4_get_bindir)/moc" |
715 |
- fi |
716 |
- |
717 |
- # system headers/libs/...: enforce using system packages |
718 |
- # --disable-breakpad: requires not-yet-in-tree dev-utils/breakpad |
719 |
- # --enable-cairo: ensure that cairo is always required |
720 |
- # --enable-*-link: link to the library rather than just dlopen on runtime |
721 |
- # --enable-release-build: build the libreoffice as release |
722 |
- # --disable-fetch-external: prevent dowloading during compile phase |
723 |
- # --enable-extension-integration: enable any extension integration support |
724 |
- # --without-{fonts,myspell-dicts,ppsd}: prevent install of sys pkgs |
725 |
- # --disable-report-builder: too much java packages pulled in without pkgs |
726 |
- # --without-system-sane: just sane.h header that is used for scan in writer, |
727 |
- # not linked or anything else, worthless to depend on |
728 |
- # --disable-pdfium: not yet packaged |
729 |
- econf \ |
730 |
- --with-system-dicts \ |
731 |
- --with-system-epoxy \ |
732 |
- --with-system-headers \ |
733 |
- --with-system-jars \ |
734 |
- --with-system-libs \ |
735 |
- --enable-cairo-canvas \ |
736 |
- --enable-largefile \ |
737 |
- --enable-mergelibs \ |
738 |
- --enable-neon \ |
739 |
- --enable-python=system \ |
740 |
- --enable-randr \ |
741 |
- --enable-release-build \ |
742 |
- --disable-breakpad \ |
743 |
- --disable-ccache \ |
744 |
- --disable-dependency-tracking \ |
745 |
- --disable-epm \ |
746 |
- --disable-fetch-external \ |
747 |
- --disable-gstreamer-0-10 \ |
748 |
- --disable-online-update \ |
749 |
- --disable-pdfium \ |
750 |
- --disable-report-builder \ |
751 |
- --with-alloc=$(use jemalloc && echo "jemalloc" || echo "system") \ |
752 |
- --with-build-version="Gentoo official package" \ |
753 |
- --enable-extension-integration \ |
754 |
- --with-external-dict-dir="${EPREFIX}/usr/share/myspell" \ |
755 |
- --with-external-hyph-dir="${EPREFIX}/usr/share/myspell" \ |
756 |
- --with-external-thes-dir="${EPREFIX}/usr/share/myspell" \ |
757 |
- --with-external-tar="${DISTDIR}" \ |
758 |
- --with-lang="" \ |
759 |
- --with-parallelism=$(makeopts_jobs) \ |
760 |
- --with-system-ucpp \ |
761 |
- --with-vendor="Gentoo Foundation" \ |
762 |
- --with-x \ |
763 |
- --without-fonts \ |
764 |
- --without-myspell-dicts \ |
765 |
- --without-help \ |
766 |
- --with-helppack-integration \ |
767 |
- --with-system-gpgmepp \ |
768 |
- --without-system-sane \ |
769 |
- $(use_enable bluetooth sdremote-bluetooth) \ |
770 |
- $(use_enable coinmp) \ |
771 |
- $(use_enable collada) \ |
772 |
- $(use_enable cups) \ |
773 |
- $(use_enable debug) \ |
774 |
- $(use_enable dbus) \ |
775 |
- $(use_enable eds evolution2) \ |
776 |
- $(use_enable firebird firebird-sdbc) \ |
777 |
- $(use_enable gltf) \ |
778 |
- $(use_enable gnome gio) \ |
779 |
- $(use_enable gnome dconf) \ |
780 |
- $(use_enable gstreamer gstreamer-1-0) \ |
781 |
- $(use_enable gtk) \ |
782 |
- $(use_enable gtk3) \ |
783 |
- $(use_enable kde kde4) \ |
784 |
- $(use_enable mysql ext-mariadb-connector) \ |
785 |
- $(use_enable odk) \ |
786 |
- $(use_enable pdfimport) \ |
787 |
- $(use_enable postgres postgresql-sdbc) \ |
788 |
- $(use_enable quickstarter systray) \ |
789 |
- $(use_enable vlc) \ |
790 |
- $(use_with coinmp system-coinmp) \ |
791 |
- $(use_with collada system-opencollada) \ |
792 |
- $(use_with gltf system-libgltf) \ |
793 |
- $(use_with googledrive gdrive-client-id ${google_default_client_id}) \ |
794 |
- $(use_with googledrive gdrive-client-secret ${google_default_client_secret}) \ |
795 |
- $(use_with java) \ |
796 |
- $(use_with mysql system-mysql-cppconn) \ |
797 |
- $(use_with odk doxygen) \ |
798 |
- ${java_opts} \ |
799 |
- ${ext_opts} |
800 |
-} |
801 |
- |
802 |
-src_compile() { |
803 |
- # more and more LO stuff tries to use OpenGL, including tests during build |
804 |
- # bug 501508, bug 540624, bug 545974 and probably more |
805 |
- addpredict /dev/dri |
806 |
- addpredict /dev/ati |
807 |
- addpredict /dev/nvidiactl |
808 |
- |
809 |
- # hack for offlinehelp, this needs fixing upstream at some point |
810 |
- # it is broken because we send --without-help |
811 |
- # https://bugs.freedesktop.org/show_bug.cgi?id=46506 |
812 |
- ( |
813 |
- grep "^export" "${S}/config_host.mk" > "${T}/config_host.mk" || die |
814 |
- source "${T}/config_host.mk" 2&> /dev/null |
815 |
- |
816 |
- local path="${WORKDIR}/helpcontent2/source/auxiliary/" |
817 |
- mkdir -p "${path}" || die |
818 |
- |
819 |
- echo "perl \"${S}/helpcontent2/helpers/create_ilst.pl\" -dir=helpcontent2/source/media/helpimg > \"${path}/helpimg.ilst\"" |
820 |
- perl "${S}/helpcontent2/helpers/create_ilst.pl" \ |
821 |
- -dir=helpcontent2/source/media/helpimg \ |
822 |
- > "${path}/helpimg.ilst" |
823 |
- [[ -s "${path}/helpimg.ilst" ]] || \ |
824 |
- ewarn "The help images list is empty, something is fishy, report a bug." |
825 |
- ) |
826 |
- |
827 |
- local target |
828 |
- use test && target="build" || target="build-nocheck" |
829 |
- |
830 |
- # this is not a proper make script |
831 |
- make ${target} || die |
832 |
-} |
833 |
- |
834 |
-src_test() { |
835 |
- make unitcheck || die |
836 |
- make slowcheck || die |
837 |
-} |
838 |
- |
839 |
-src_install() { |
840 |
- # This is not Makefile so no buildserver |
841 |
- make DESTDIR="${D}" distro-pack-install -o build -o check || die |
842 |
- |
843 |
- # bug 593514 |
844 |
- if use gtk3; then |
845 |
- dosym libreoffice/program/liblibreofficekitgtk.so \ |
846 |
- /usr/$(get_libdir)/liblibreofficekitgtk.so |
847 |
- fi |
848 |
- |
849 |
- # bash completion aliases |
850 |
- bashcomp_alias \ |
851 |
- libreoffice \ |
852 |
- unopkg loimpress lobase localc lodraw lomath lowriter lofromtemplate loweb loffice |
853 |
- |
854 |
- if use branding; then |
855 |
- insinto /usr/$(get_libdir)/${PN}/program |
856 |
- newins "${WORKDIR}/branding-sofficerc" sofficerc |
857 |
- dodir /etc/env.d |
858 |
- echo "CONFIG_PROTECT=/usr/$(get_libdir)/${PN}/program/sofficerc" > "${ED}"etc/env.d/99${PN} || die |
859 |
- fi |
860 |
- |
861 |
- # Hack for offlinehelp, this needs fixing upstream at some point. |
862 |
- # It is broken because we send --without-help |
863 |
- # https://bugs.freedesktop.org/show_bug.cgi?id=46506 |
864 |
- insinto /usr/$(get_libdir)/libreoffice/help |
865 |
- doins xmlhelp/util/*.xsl |
866 |
- |
867 |
- # Remove desktop files to support old installs that can't parse mime |
868 |
- rm -r "${ED}"usr/share/mimelnk/ || die |
869 |
- |
870 |
- pax-mark -m "${ED}"usr/$(get_libdir)/libreoffice/program/soffice.bin |
871 |
- pax-mark -m "${ED}"usr/$(get_libdir)/libreoffice/program/unopkg.bin |
872 |
-} |
873 |
- |
874 |
-pkg_preinst() { |
875 |
- # Cache updates - all handled by kde eclass for all environments |
876 |
- kde4-base_pkg_preinst |
877 |
-} |
878 |
- |
879 |
-pkg_postinst() { |
880 |
- kde4-base_pkg_postinst |
881 |
-} |
882 |
- |
883 |
-pkg_postrm() { |
884 |
- kde4-base_pkg_postrm |
885 |
-} |
886 |
|
887 |
diff --git a/app-office/libreoffice/metadata.xml b/app-office/libreoffice/metadata.xml |
888 |
deleted file mode 100644 |
889 |
index 1d3010d..0000000 |
890 |
--- a/app-office/libreoffice/metadata.xml |
891 |
+++ /dev/null |
892 |
@@ -1,25 +0,0 @@ |
893 |
-<?xml version="1.0" encoding="UTF-8"?> |
894 |
-<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> |
895 |
-<pkgmetadata> |
896 |
- <maintainer type="project"> |
897 |
- <email>office@g.o</email> |
898 |
- <name>Gentoo Office project</name> |
899 |
- </maintainer> |
900 |
- <longdescription>LibreOffice is the successor of OpenOffice.org. |
901 |
-This ebuild allows you to compile it yourself. Unfortunately this |
902 |
-compilation can take up to a day depending on the speed of your |
903 |
-computer. It will however make a snappier LibreOffice than the binary |
904 |
-version</longdescription> |
905 |
- <use> |
906 |
- <flag name="coinmp">Use sci-libs/coinor-mp as alternative solver</flag> |
907 |
- <flag name="collada">Enable Collada for rendering 3D models stored in *.dae and *.kmz format</flag> |
908 |
- <flag name="gltf">Use media-libs/libgltf for inserting 3D models in the glTF format into presentations</flag> |
909 |
- <flag name="googledrive">Enable support for remote files on Google Drive</flag> |
910 |
- <flag name="gtk3">Enable highly experimental gtk3 frontend</flag> |
911 |
- <flag name="jemalloc">Use <pkg>dev-libs/jemalloc</pkg> for allocations</flag> |
912 |
- <flag name="odk">Build the Office Development Kit</flag> |
913 |
- <flag name="pdfimport">Enable PDF import via the Poppler library</flag> |
914 |
- <flag name="quickstarter">Build the system tray quickstarter</flag> |
915 |
- <flag name="vlc">Use <pkg>media-video/vlc</pkg> for video embedding</flag> |
916 |
- </use> |
917 |
-</pkgmetadata> |