1 |
commit: eed7c643bbd0418cfd8b98e9d5e57cad5fb33ece |
2 |
Author: Andreas Sturmlechner <asturm <AT> gentoo <DOT> org> |
3 |
AuthorDate: Fri Feb 9 23:14:21 2018 +0000 |
4 |
Commit: Andreas Sturmlechner <asturm <AT> gentoo <DOT> org> |
5 |
CommitDate: Fri Feb 9 23:14:21 2018 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=eed7c643 |
7 |
|
8 |
app-office/libreoffice: Drop 6.0.0.3 |
9 |
|
10 |
Package-Manager: Portage-2.3.24, Repoman-2.3.6 |
11 |
|
12 |
app-office/libreoffice/Manifest | 2 - |
13 |
.../files/libreoffice-6.0.0.1-poppler-0.62.patch | 44 -- |
14 |
.../files/libreoffice-6.0.0.3-jpeg-9.patch | 41 -- |
15 |
app-office/libreoffice/libreoffice-6.0.0.3.ebuild | 571 --------------------- |
16 |
4 files changed, 658 deletions(-) |
17 |
|
18 |
diff --git a/app-office/libreoffice/Manifest b/app-office/libreoffice/Manifest |
19 |
index e4802dfc595..266e3bc93e3 100644 |
20 |
--- a/app-office/libreoffice/Manifest |
21 |
+++ b/app-office/libreoffice/Manifest |
22 |
@@ -6,9 +6,7 @@ DIST 798b2ffdc8bcfe7bca2cf92b62caf685-rhino1_5R5.zip 1521926 BLAKE2B d2769842c18 |
23 |
DIST a7983f859eafb2677d7ff386a023bc40-xsltml_2.1.2.zip 23150 BLAKE2B 51db6bd90585b13857ecb494c805c9fb6874e1e65d7aee73d23e1716670836a14b376bcca810f96fd55b0ed653b2660a268030f246c822cbb04f867ef763a3b3 SHA512 2d3835f7ac356805025cafedcad97faa48d0f5da386e6ac7b7451030059df8e2fdb0861ade07a576ebf9fb5b88a973585ab0437944b06aac9289d6898ba8586a |
24 |
DIST libreoffice-5.4.4.2.tar.xz 193657116 BLAKE2B 1be8565481bbdf930f6bbbd894dbe5d0be7faeba068517e15a2b23acfd2d8d06960e5991fd9d990c49ad13857177020e22fdb5c272587bc25cac4bdf23bb7fa1 SHA512 f7142fd73aa037b0bbffd3fa5af58049ab6688900976296ba2e53956227aef8920cb229aad4eec05ff36c8dde584415f7893893cc81cac72b305f67b80e36882 |
25 |
DIST libreoffice-6.0.0.3-patchset-01.tar.xz 33032 BLAKE2B 1fad88d703b9ff097a6870d6f74731de3e6bd5f7b91938e674b28bf82bae0b075d910a930b2e3c82fc1ff5dff81f13575fed351f8165cec67903e8949e06b9d4 SHA512 2fb4f02e93b648fbf611b62ad8bfe93fd4b228bee84612a9d62e9bc061cabf51ae76d7d9cbfbad186669db109fe829765c816eb27960f97ca37e7fe0536d72e9 |
26 |
-DIST libreoffice-6.0.0.3.tar.xz 203284136 BLAKE2B 2d8190499439addddfa017f12b22c4b80001169af5021a546cdbf5eaea3c47a2ac1d190e98efe5022050431805417824c29295068631ec596a6357b13528c52d SHA512 2b2c0fafec5db23317a2c3236b482b0cef9c0edfabab94495a0fd3007b271eaa1dbfa97711819b3b8fb2e2375fbdfb4c662df4ffc8c519255ac84357b4c45e62 |
27 |
DIST libreoffice-6.0.1.1.tar.xz 203420780 BLAKE2B 80478e0627843abcf61c067592f3220f83ae43123d95dcab82197389f538f843001a6fabdc0d67e3cbca734cf68f2effdc09fa7d15e7b49c719f26d9ebf70791 SHA512 dc9dbef56a5c1df0ac0a4418a42e9200fe1a2e52d3708ad9d86ad1b35171c258fa9a88a4427992aeae83f5e0f22613cf885f068c99e76e5fe376888f4edf7855 |
28 |
DIST libreoffice-branding-gentoo-0.8.tar.xz 151568 BLAKE2B f03c7ddeb53c5ca3fd23401679601fcf2c4037ba17be4eb7b784c7ce7ebb71a24b8ab4aac8b7da8c6b1f14dd23bc1294ba85ff4f70ad271fb4ee3c5372e10883 SHA512 785031a699b1d1895ce4b50ffc3ddf645f3a0ef9acdf37facfd18cf75db9484cb8f53a50abb63d6006ead76a80b6ff5aa99661063245ebb84bd64013d713de7f |
29 |
DIST libreoffice-help-5.4.4.2.tar.xz 2343352 BLAKE2B d94528f6dcc85730f2443f3a84beff0cd113bb9c423d767c74d831649e56b0c92279474a0f1169ebc0ffd7804d57dba86aaa352e7fd1d9df9721f3ff6059047c SHA512 55abdde1cf0f62d213a897cc30b92ae04960c9b1e6e69c4f86242d2beecd787f44be9c3d0c8684d775ffe40b17d685a71739c9c2f08753649c4e1298fdf94226 |
30 |
-DIST libreoffice-help-6.0.0.3.tar.xz 2972556 BLAKE2B 6805f6a28cf29c6d55732051763f12ad2dc2c76c27c518dc40b85f2ef8f7ad4943de3a55629da4de77ee1ebd3b62a8e225e0ee260081f3c25cbffc60a21970c1 SHA512 9058edf71e34e55e23f5559af94d12d5f12c38385b30d75919283f435eac07dfc790d116b556aca0d0aa30f5119aea39f07a123a1f1e5ad172f5b19b3f7dc4b0 |
31 |
DIST libreoffice-help-6.0.1.1.tar.xz 2972872 BLAKE2B fed3b8182a9459453a71c0cf76b53220081b33bf4a5f88ef603b39101a19a80f4545033c5e2f817c973d0edfdca48c954249761246d53c1eea798a5059ee2800 SHA512 bbebc878b25f80642c6ebd961e8531cf4f1379cc409a63391ca731e83e71e4e83e2a7ef6ae00b56812a8a4ae2c5de5ea5465aba70b357850b7b9c5f672521336 |
32 |
|
33 |
diff --git a/app-office/libreoffice/files/libreoffice-6.0.0.1-poppler-0.62.patch b/app-office/libreoffice/files/libreoffice-6.0.0.1-poppler-0.62.patch |
34 |
deleted file mode 100644 |
35 |
index f0ecc3b990b..00000000000 |
36 |
--- a/app-office/libreoffice/files/libreoffice-6.0.0.1-poppler-0.62.patch |
37 |
+++ /dev/null |
38 |
@@ -1,44 +0,0 @@ |
39 |
-Fix build with >=poppler-0.62.0, cleanup ifdef and raise minimum poppler version. |
40 |
- |
41 |
---- a/configure.ac 2017-12-12 18:45:07.000000000 +0100 |
42 |
-+++ b/configure.ac 2018-01-04 23:57:16.410999542 +0100 |
43 |
-@@ -10403,7 +10403,7 @@ |
44 |
- if test "$with_system_poppler" = "yes"; then |
45 |
- AC_MSG_RESULT([external]) |
46 |
- SYSTEM_POPPLER=TRUE |
47 |
-- PKG_CHECK_MODULES( POPPLER, poppler >= 0.12.0 ) |
48 |
-+ PKG_CHECK_MODULES( POPPLER, poppler >= 0.21.1 ) |
49 |
- AC_LANG_PUSH([C++]) |
50 |
- save_CXXFLAGS=$CXXFLAGS |
51 |
- save_CPPFLAGS=$CPPFLAGS |
52 |
---- a/sdext/source/pdfimport/xpdfwrapper/pdfioutdev_gpl.cxx 2017-12-12 18:45:07.000000000 +0100 |
53 |
-+++ b/sdext/source/pdfimport/xpdfwrapper/pdfioutdev_gpl.cxx 2018-01-05 00:29:16.541246738 +0100 |
54 |
-@@ -32,13 +32,11 @@ |
55 |
- #pragma warning(push, 1) |
56 |
- #endif |
57 |
- |
58 |
--// sigh, UTF8.h was removed in poppler-0.21.0 and put back in 0.21.1 |
59 |
- // FIXME: we can't use #if POPPLER_CHECK_VERSION(0, 21, 0) && !POPPLER_CHECK_VERSION(0, 21, 1) |
60 |
- // because the internal poppler does not provide poppler-version.h and the macro always returns 0 |
61 |
--#if POPPLER_CHECK_VERSION(0, 21, 1) |
62 |
--#include <UTF8.h> |
63 |
--#elif POPPLER_CHECK_VERSION(0, 21, 0) |
64 |
--#include "UTF.h" |
65 |
-+// UTF8.h was renamed to UnicodeMapFuncs.h in poppler-0.62.0 |
66 |
-+#if POPPLER_CHECK_VERSION(0, 62, 0) |
67 |
-+#include "UnicodeMapFuncs.h" |
68 |
- #else |
69 |
- #include "UTF8.h" |
70 |
- #endif |
71 |
-@@ -918,7 +916,11 @@ |
72 |
- ); |
73 |
- |
74 |
- // silence spurious warning |
75 |
-+#if POPPLER_CHECK_VERSION(0, 62, 0) |
76 |
-+ (void)&mapUTF16; |
77 |
-+#else |
78 |
- (void)&mapUCS2; |
79 |
-+#endif |
80 |
- |
81 |
- char buf[9]; |
82 |
- for( int i=0; i<uLen; ++i ) |
83 |
|
84 |
diff --git a/app-office/libreoffice/files/libreoffice-6.0.0.3-jpeg-9.patch b/app-office/libreoffice/files/libreoffice-6.0.0.3-jpeg-9.patch |
85 |
deleted file mode 100644 |
86 |
index 40dfb08d56a..00000000000 |
87 |
--- a/app-office/libreoffice/files/libreoffice-6.0.0.3-jpeg-9.patch |
88 |
+++ /dev/null |
89 |
@@ -1,41 +0,0 @@ |
90 |
-From 5184506ffddca982f22eede24cffad64ff3576e3 Mon Sep 17 00:00:00 2001 |
91 |
-From: =?UTF-8?q?Caol=C3=A1n=20McNamara?= <caolanm@××××××.com> |
92 |
-Date: Sat, 3 Feb 2018 16:39:12 +0000 |
93 |
-Subject: tdf#115416 allow build with classic libjpeg |
94 |
-MIME-Version: 1.0 |
95 |
-Content-Type: text/plain; charset=UTF-8 |
96 |
-Content-Transfer-Encoding: 8bit |
97 |
- |
98 |
-Change-Id: I96252e1a78dbc52d21095e11b7bdb0807e5d76b6 |
99 |
-Reviewed-on: https://gerrit.libreoffice.org/49187 |
100 |
-Tested-by: Jenkins <ci@×××××××××××.org> |
101 |
-Reviewed-by: Caolán McNamara <caolanm@××××××.com> |
102 |
-Tested-by: Caolán McNamara <caolanm@××××××.com> |
103 |
---- |
104 |
- vcl/source/filter/jpeg/jpegc.cxx | 3 ++- |
105 |
- 1 file changed, 2 insertions(+), 1 deletion(-) |
106 |
- |
107 |
-diff --git a/vcl/source/filter/jpeg/jpegc.cxx b/vcl/source/filter/jpeg/jpegc.cxx |
108 |
-index 570c036..059ec20 100644 |
109 |
---- a/vcl/source/filter/jpeg/jpegc.cxx |
110 |
-+++ b/vcl/source/filter/jpeg/jpegc.cxx |
111 |
-@@ -244,6 +244,7 @@ void ReadJPEG(JpegStuff& rContext, JPEGReader* pJPEGReader, void* pInputStream, |
112 |
- eScanlineFormat = ScanlineFormat::N8BitPal; |
113 |
- nPixelSize = 1; |
114 |
- } |
115 |
-+#if defined(JCS_EXTENSIONS) |
116 |
- else if (eFinalFormat == ScanlineFormat::N32BitTcBgra) |
117 |
- { |
118 |
- best_out_color_space = JCS_EXT_BGRA; |
119 |
-@@ -262,7 +263,7 @@ void ReadJPEG(JpegStuff& rContext, JPEGReader* pJPEGReader, void* pInputStream, |
120 |
- eScanlineFormat = eFinalFormat; |
121 |
- nPixelSize = 4; |
122 |
- } |
123 |
-- |
124 |
-+#endif |
125 |
- if (rContext.cinfo.jpeg_color_space == JCS_YCCK) |
126 |
- rContext.cinfo.out_color_space = JCS_CMYK; |
127 |
- |
128 |
--- |
129 |
-cgit v1.1 |
130 |
- |
131 |
|
132 |
diff --git a/app-office/libreoffice/libreoffice-6.0.0.3.ebuild b/app-office/libreoffice/libreoffice-6.0.0.3.ebuild |
133 |
deleted file mode 100644 |
134 |
index 170a95f8825..00000000000 |
135 |
--- a/app-office/libreoffice/libreoffice-6.0.0.3.ebuild |
136 |
+++ /dev/null |
137 |
@@ -1,571 +0,0 @@ |
138 |
-# Copyright 1999-2018 Gentoo Foundation |
139 |
-# Distributed under the terms of the GNU General Public License v2 |
140 |
- |
141 |
-EAPI=6 |
142 |
- |
143 |
-PYTHON_COMPAT=( python2_7 python3_{4,5,6} ) |
144 |
-PYTHON_REQ_USE="threads,xml" |
145 |
- |
146 |
-# experimental ; release ; old |
147 |
-# Usually the tarballs are moved a lot so this should make |
148 |
-# everyone happy. |
149 |
-DEV_URI=" |
150 |
- https://dev-builds.libreoffice.org/pre-releases/src |
151 |
- https://download.documentfoundation.org/libreoffice/src/${PV:0:5}/ |
152 |
- https://download.documentfoundation.org/libreoffice/old/${PV}/ |
153 |
-" |
154 |
-ADDONS_URI="https://dev-www.libreoffice.org/src/" |
155 |
- |
156 |
-BRANDING="${PN}-branding-gentoo-0.8.tar.xz" |
157 |
-PATCHSET="${PN}-6.0.0.3-patchset-01.tar.xz" |
158 |
- |
159 |
-[[ ${PV} == *9999* ]] && SCM_ECLASS="git-r3" |
160 |
-inherit multiprocessing autotools bash-completion-r1 check-reqs gnome2-utils java-pkg-opt-2 pax-utils python-single-r1 toolchain-funcs flag-o-matic versionator xdg-utils qmake-utils ${SCM_ECLASS} |
161 |
-unset SCM_ECLASS |
162 |
- |
163 |
-DESCRIPTION="A full office productivity suite" |
164 |
-HOMEPAGE="https://www.libreoffice.org" |
165 |
-SRC_URI="branding? ( https://dev.gentoo.org/~dilfridge/distfiles/${BRANDING} )" |
166 |
-[[ -n ${PATCHSET} ]] && SRC_URI+=" https://dev.gentoo.org/~asturm/distfiles/${PATCHSET}" |
167 |
- |
168 |
-# Split modules following git/tarballs |
169 |
-# Core MUST be first! |
170 |
-# Help is used for the image generator |
171 |
-# Only release has the tarballs |
172 |
-if [[ ${PV} != *9999* ]]; then |
173 |
- for i in ${DEV_URI}; do |
174 |
- SRC_URI+=" ${i}/${P}.tar.xz" |
175 |
- SRC_URI+=" ${i}/${PN}-help-${PV}.tar.xz" |
176 |
- done |
177 |
- unset i |
178 |
-fi |
179 |
-unset DEV_URI |
180 |
- |
181 |
-# Really required addons |
182 |
-# These are bundles that can't be removed for now due to huge patchsets. |
183 |
-# If you want them gone, patches are welcome. |
184 |
-ADDONS_SRC=( |
185 |
- "java? ( ${ADDONS_URI}/17410483b5b5f267aa18b7e00b65e6e0-hsqldb_1_8_0.zip )" |
186 |
- # no release for 8 years, should we package it? |
187 |
- "libreoffice_extensions_wiki-publisher? ( ${ADDONS_URI}/a7983f859eafb2677d7ff386a023bc40-xsltml_2.1.2.zip )" |
188 |
- # Does not build with 1.6 rhino at all |
189 |
- "libreoffice_extensions_scripting-javascript? ( ${ADDONS_URI}/798b2ffdc8bcfe7bca2cf92b62caf685-rhino1_5R5.zip )" |
190 |
- # requirement of rhino |
191 |
- "libreoffice_extensions_scripting-javascript? ( ${ADDONS_URI}/35c94d2df8893241173de1d16b6034c0-swingExSrc.zip )" |
192 |
- # not packageable |
193 |
- "odk? ( http://download.go-oo.org/extern/185d60944ea767075d27247c3162b3bc-unowinreg.dll )" |
194 |
-) |
195 |
-SRC_URI+=" ${ADDONS_SRC[*]}" |
196 |
- |
197 |
-unset ADDONS_URI |
198 |
-unset ADDONS_SRC |
199 |
- |
200 |
-# Extensions that need extra work: |
201 |
-LO_EXTS="nlpsolver scripting-beanshell scripting-javascript wiki-publisher" |
202 |
- |
203 |
-IUSE="bluetooth +branding coinmp +cups dbus debug eds firebird googledrive |
204 |
-gstreamer +gtk gtk2 jemalloc kde libressl mysql odk pdfimport postgres test vlc |
205 |
-$(printf 'libreoffice_extensions_%s ' ${LO_EXTS})" |
206 |
- |
207 |
-LICENSE="|| ( LGPL-3 MPL-1.1 )" |
208 |
-SLOT="0" |
209 |
-[[ ${PV} == *9999* ]] || \ |
210 |
-KEYWORDS="~amd64 ~x86 ~amd64-linux ~x86-linux" |
211 |
- |
212 |
-COMMON_DEPEND="${PYTHON_DEPS} |
213 |
- app-arch/unzip |
214 |
- app-arch/zip |
215 |
- app-crypt/gpgme[cxx] |
216 |
- app-text/hunspell:= |
217 |
- >=app-text/libabw-0.1.0 |
218 |
- >=app-text/libebook-0.1 |
219 |
- app-text/libepubgen |
220 |
- >=app-text/libetonyek-0.1 |
221 |
- app-text/libexttextcat |
222 |
- app-text/liblangtag |
223 |
- >=app-text/libmspub-0.1.0 |
224 |
- >=app-text/libmwaw-0.3.1 |
225 |
- >=app-text/libodfgen-0.1.0 |
226 |
- app-text/libqxp |
227 |
- app-text/libstaroffice |
228 |
- app-text/libwpd:0.10[tools] |
229 |
- app-text/libwpg:0.3 |
230 |
- >=app-text/libwps-0.4 |
231 |
- app-text/mythes |
232 |
- >=dev-cpp/clucene-2.3.3.4-r2 |
233 |
- =dev-cpp/libcmis-0.5* |
234 |
- dev-db/unixODBC |
235 |
- dev-lang/perl |
236 |
- dev-libs/boost:= |
237 |
- dev-libs/expat |
238 |
- dev-libs/hyphen |
239 |
- dev-libs/icu:= |
240 |
- dev-libs/libassuan |
241 |
- dev-libs/libgpg-error |
242 |
- =dev-libs/liborcus-0.13* |
243 |
- dev-libs/librevenge |
244 |
- dev-libs/nspr |
245 |
- dev-libs/nss |
246 |
- !libressl? ( >=dev-libs/openssl-1.0.0d:0 ) |
247 |
- libressl? ( dev-libs/libressl ) |
248 |
- >=dev-libs/redland-1.0.16 |
249 |
- >=dev-libs/xmlsec-1.2.24[nss] |
250 |
- media-gfx/graphite2 |
251 |
- media-libs/fontconfig |
252 |
- media-libs/freetype:2 |
253 |
- >=media-libs/harfbuzz-0.9.42:=[graphite,icu] |
254 |
- media-libs/lcms:2 |
255 |
- >=media-libs/libcdr-0.1.0 |
256 |
- >=media-libs/libepoxy-1.3.1[X] |
257 |
- >=media-libs/libfreehand-0.1.0 |
258 |
- media-libs/libpagemaker |
259 |
- >=media-libs/libpng-1.4:0= |
260 |
- >=media-libs/libvisio-0.1.0 |
261 |
- media-libs/libzmf |
262 |
- net-libs/neon |
263 |
- net-misc/curl |
264 |
- net-nds/openldap |
265 |
- sci-mathematics/lpsolve |
266 |
- virtual/glu |
267 |
- virtual/jpeg:0 |
268 |
- virtual/opengl |
269 |
- x11-libs/cairo[X] |
270 |
- x11-libs/libXinerama |
271 |
- x11-libs/libXrandr |
272 |
- x11-libs/libXrender |
273 |
- bluetooth? ( net-wireless/bluez ) |
274 |
- coinmp? ( sci-libs/coinor-mp ) |
275 |
- cups? ( net-print/cups ) |
276 |
- dbus? ( dev-libs/dbus-glib ) |
277 |
- eds? ( |
278 |
- dev-libs/glib:2 |
279 |
- gnome-base/dconf |
280 |
- gnome-extra/evolution-data-server |
281 |
- ) |
282 |
- firebird? ( >=dev-db/firebird-3.0.2.32703.0-r1 ) |
283 |
- gstreamer? ( |
284 |
- media-libs/gstreamer:1.0 |
285 |
- media-libs/gst-plugins-base:1.0 |
286 |
- ) |
287 |
- gtk? ( |
288 |
- dev-libs/glib:2 |
289 |
- dev-libs/gobject-introspection |
290 |
- gnome-base/dconf |
291 |
- x11-libs/gtk+:3 |
292 |
- ) |
293 |
- gtk2? ( |
294 |
- x11-libs/gdk-pixbuf |
295 |
- >=x11-libs/gtk+-2.24:2 |
296 |
- ) |
297 |
- kde? ( |
298 |
- dev-qt/qtcore:5 |
299 |
- dev-qt/qtgui:5 |
300 |
- dev-qt/qtx11extras:5 |
301 |
- dev-qt/qtwidgets:5 |
302 |
- kde-frameworks/kconfig:5 |
303 |
- kde-frameworks/kcoreaddons:5 |
304 |
- kde-frameworks/ki18n:5 |
305 |
- kde-frameworks/kio:5 |
306 |
- kde-frameworks/kwindowsystem:5 |
307 |
- ) |
308 |
- jemalloc? ( dev-libs/jemalloc ) |
309 |
- libreoffice_extensions_scripting-beanshell? ( dev-java/bsh ) |
310 |
- libreoffice_extensions_scripting-javascript? ( dev-java/rhino:1.6 ) |
311 |
- mysql? ( dev-db/mysql-connector-c++ ) |
312 |
- pdfimport? ( app-text/poppler:=[cxx] ) |
313 |
- postgres? ( >=dev-db/postgresql-9.0:*[kerberos] ) |
314 |
-" |
315 |
- |
316 |
-RDEPEND="${COMMON_DEPEND} |
317 |
- !app-office/libreoffice-bin |
318 |
- !app-office/libreoffice-bin-debug |
319 |
- !app-office/openoffice |
320 |
- media-fonts/dejavu |
321 |
- media-fonts/liberation-fonts |
322 |
- media-fonts/libertine |
323 |
- || ( x11-misc/xdg-utils kde-plasma/kde-cli-tools ) |
324 |
- java? ( >=virtual/jre-1.6 ) |
325 |
- kde? ( kde-frameworks/oxygen-icons:* ) |
326 |
- vlc? ( media-video/vlc ) |
327 |
-" |
328 |
- |
329 |
-if [[ ${PV} != *9999* ]]; then |
330 |
- PDEPEND="=app-office/libreoffice-l10n-$(get_version_component_range 1-2)*" |
331 |
-else |
332 |
- # Translations are not reliable on live ebuilds |
333 |
- # rather force people to use english only. |
334 |
- PDEPEND="!app-office/libreoffice-l10n" |
335 |
-fi |
336 |
- |
337 |
-# FIXME: cppunit should be moved to test conditional |
338 |
-# after everything upstream is under gbuild |
339 |
-# as dmake execute tests right away |
340 |
-DEPEND="${COMMON_DEPEND} |
341 |
- !<sys-devel/make-3.82 |
342 |
- >=dev-libs/libatomic_ops-7.2d |
343 |
- >=dev-libs/libxml2-2.7.8 |
344 |
- dev-libs/libxslt |
345 |
- dev-perl/Archive-Zip |
346 |
- >=dev-util/cppunit-1.14.0 |
347 |
- >=dev-util/gperf-3 |
348 |
- dev-util/intltool |
349 |
- >=dev-util/mdds-1.2.3:1= |
350 |
- media-libs/glm |
351 |
- sys-devel/bison |
352 |
- sys-devel/flex |
353 |
- sys-devel/gettext |
354 |
- sys-devel/ucpp |
355 |
- sys-libs/zlib |
356 |
- virtual/pkgconfig |
357 |
- x11-libs/libXt |
358 |
- x11-libs/libXtst |
359 |
- x11-proto/randrproto |
360 |
- x11-proto/xextproto |
361 |
- x11-proto/xineramaproto |
362 |
- x11-proto/xproto |
363 |
- java? ( |
364 |
- dev-java/ant-core |
365 |
- >=virtual/jdk-1.6 |
366 |
- ) |
367 |
- odk? ( >=app-doc/doxygen-1.8.4 ) |
368 |
- test? ( |
369 |
- dev-util/cppunit |
370 |
- media-fonts/dejavu |
371 |
- ) |
372 |
-" |
373 |
- |
374 |
-REQUIRED_USE="${PYTHON_REQUIRED_USE} |
375 |
- bluetooth? ( dbus ) |
376 |
- kde? ( gtk ) |
377 |
- libreoffice_extensions_nlpsolver? ( java ) |
378 |
- libreoffice_extensions_scripting-beanshell? ( java ) |
379 |
- libreoffice_extensions_scripting-javascript? ( java ) |
380 |
- libreoffice_extensions_wiki-publisher? ( java ) |
381 |
-" |
382 |
- |
383 |
-PATCHES=( |
384 |
- # not upstreamable stuff |
385 |
- "${FILESDIR}/${PN}-5.4-system-pyuno.patch" |
386 |
- "${FILESDIR}/${PN}-5.3.4.2-kioclient5.patch" |
387 |
- |
388 |
- # TODO: upstream |
389 |
- "${FILESDIR}/${PN}-5.2.5.1-glibc-2.24.patch" |
390 |
- "${FILESDIR}/${PN}-6.0.0.1-poppler-0.62.patch" # bug 642602 |
391 |
- |
392 |
- # gtk3-kde5 vcl plugin backported from master |
393 |
- "${WORKDIR}"/${PATCHSET/.tar.xz/} |
394 |
- |
395 |
- # 6.1 branch |
396 |
- "${FILESDIR}/${P}-jpeg-9.patch" |
397 |
-) |
398 |
- |
399 |
-pkg_pretend() { |
400 |
- use java || \ |
401 |
- ewarn "If you plan to use Base application you should enable java or you will get various crashes." |
402 |
- |
403 |
- if has_version "<app-office/libreoffice-5.3.0[firebird]"; then |
404 |
- ewarn "Firebird has been upgraded to version 3. It is unable to read back Firebird 2.5 data, so" |
405 |
- ewarn "embedded firebird odb files created in LibreOffice pre-5.3 can't be opened with this version." |
406 |
- ewarn "See also: https://wiki.documentfoundation.org/ReleaseNotes/5.3#Base" |
407 |
- fi |
408 |
- |
409 |
- if [[ ${MERGE_TYPE} != binary ]]; then |
410 |
- CHECKREQS_MEMORY="512M" |
411 |
- if is-flagq "-g*" && ! is-flagq "-g*0" ; then |
412 |
- CHECKREQS_DISK_BUILD="22G" |
413 |
- else |
414 |
- CHECKREQS_DISK_BUILD="6G" |
415 |
- fi |
416 |
- check-reqs_pkg_pretend |
417 |
- fi |
418 |
-} |
419 |
- |
420 |
-pkg_setup() { |
421 |
- java-pkg-opt-2_pkg_setup |
422 |
- python-single-r1_pkg_setup |
423 |
- xdg_environment_reset |
424 |
- |
425 |
- if [[ ${MERGE_TYPE} != binary ]]; then |
426 |
- CHECKREQS_MEMORY="512M" |
427 |
- if is-flagq "-g*" && ! is-flagq "-g*0" ; then |
428 |
- CHECKREQS_DISK_BUILD="22G" |
429 |
- else |
430 |
- CHECKREQS_DISK_BUILD="6G" |
431 |
- fi |
432 |
- check-reqs_pkg_setup |
433 |
- fi |
434 |
-} |
435 |
- |
436 |
-src_unpack() { |
437 |
- default |
438 |
- |
439 |
- if [[ ${PV} = *9999* ]]; then |
440 |
- local base_uri branch mypv |
441 |
- base_uri="https://anongit.freedesktop.org/git" |
442 |
- branch="master" |
443 |
- mypv=${PV/.9999} |
444 |
- [[ ${mypv} != ${PV} ]] && branch="${PN}-${mypv/./-}" |
445 |
- git-r3_fetch "${base_uri}/${PN}/core" "refs/heads/${branch}" |
446 |
- git-r3_checkout "${base_uri}/${PN}/core" |
447 |
- |
448 |
- git-r3_fetch "${base_uri}/${PN}/help" "refs/heads/master" |
449 |
- git-r3_checkout "${base_uri}/${PN}/help" "helpcontent2" # doesn't match on help |
450 |
- fi |
451 |
-} |
452 |
- |
453 |
-src_prepare() { |
454 |
- default |
455 |
- |
456 |
- AT_M4DIR="m4" eautoreconf |
457 |
- # hack in the autogen.sh |
458 |
- touch autogen.lastrun |
459 |
- |
460 |
- # system pyuno mess |
461 |
- sed -i \ |
462 |
- -e "s:%eprefix%:${EPREFIX}:g" \ |
463 |
- -e "s:%libdir%:$(get_libdir):g" \ |
464 |
- pyuno/source/module/uno.py \ |
465 |
- pyuno/source/officehelper.py || die |
466 |
- # sed in the tests |
467 |
- sed -i \ |
468 |
- -e "s#all : build unitcheck#all : build#g" \ |
469 |
- solenv/gbuild/Module.mk || die |
470 |
- sed -i \ |
471 |
- -e "s#check: dev-install subsequentcheck#check: unitcheck slowcheck dev-install subsequentcheck#g" \ |
472 |
- -e "s#Makefile.gbuild all slowcheck#Makefile.gbuild all#g" \ |
473 |
- Makefile.in || die |
474 |
- |
475 |
- sed -i \ |
476 |
- -e "s,/usr/share/bash-completion/completions,$(get_bashcompdir)," \ |
477 |
- -e "s,\$INSTALLDIRNAME.sh,${PN}," \ |
478 |
- bin/distro-install-desktop-integration || die |
479 |
- |
480 |
- if use branding; then |
481 |
- # hack... |
482 |
- mv -v "${WORKDIR}/branding-intro.png" "${S}/icon-themes/galaxy/brand/intro.png" || die |
483 |
- fi |
484 |
- |
485 |
- # Don't list pdfimport support in desktop when built with none, bug # 605464 |
486 |
- if ! use pdfimport; then |
487 |
- sed -i \ |
488 |
- -e ":MimeType: s:application/pdf;::" \ |
489 |
- -e ":Keywords: s:pdf;::" \ |
490 |
- sysui/desktop/menus/draw.desktop || die |
491 |
- fi |
492 |
-} |
493 |
- |
494 |
-src_configure() { |
495 |
- # Set up Google API keys, see https://www.chromium.org/developers/how-tos/api-keys |
496 |
- # Note: these are for Gentoo use ONLY. For your own distribution, please get |
497 |
- # your own set of keys. Feel free to contact chromium@g.o for more info. |
498 |
- local google_default_client_id="329227923882.apps.googleusercontent.com" |
499 |
- local google_default_client_secret="vgKG0NNv7GoDpbtoFNLxCUXu" |
500 |
- |
501 |
- # optimization flags |
502 |
- export GMAKE_OPTIONS="${MAKEOPTS}" |
503 |
- # System python enablement: |
504 |
- export PYTHON_CFLAGS=$(python_get_CFLAGS) |
505 |
- export PYTHON_LIBS=$(python_get_LIBS) |
506 |
- |
507 |
- if use kde; then |
508 |
- export QT_SELECT=5 # bug 639620 needs proper fix though |
509 |
- export QT5DIR="$(qt5_get_bindir)/../" |
510 |
- export MOC5="$(qt5_get_bindir)/moc" |
511 |
- fi |
512 |
- |
513 |
- # system headers/libs/...: enforce using system packages |
514 |
- # --disable-breakpad: requires not-yet-in-tree dev-utils/breakpad |
515 |
- # --enable-cairo: ensure that cairo is always required |
516 |
- # --enable-*-link: link to the library rather than just dlopen on runtime |
517 |
- # --enable-release-build: build the libreoffice as release |
518 |
- # --disable-fetch-external: prevent dowloading during compile phase |
519 |
- # --enable-extension-integration: enable any extension integration support |
520 |
- # --without-{fonts,myspell-dicts,ppsd}: prevent install of sys pkgs |
521 |
- # --disable-report-builder: too much java packages pulled in without pkgs |
522 |
- # --without-system-sane: just sane.h header that is used for scan in writer, |
523 |
- # not linked or anything else, worthless to depend on |
524 |
- # --disable-pdfium: not yet packaged |
525 |
- local myeconfargs=( |
526 |
- --with-system-dicts |
527 |
- --with-system-epoxy |
528 |
- --with-system-headers |
529 |
- --with-system-jars |
530 |
- --with-system-libs |
531 |
- --enable-cairo-canvas |
532 |
- --enable-largefile |
533 |
- --enable-mergelibs |
534 |
- --enable-neon |
535 |
- --enable-python=system |
536 |
- --enable-randr |
537 |
- --enable-release-build |
538 |
- --disable-breakpad |
539 |
- --disable-ccache |
540 |
- --disable-dependency-tracking |
541 |
- --disable-epm |
542 |
- --disable-fetch-external |
543 |
- --disable-gstreamer-0-10 |
544 |
- --disable-online-update |
545 |
- --disable-pdfium |
546 |
- --disable-report-builder |
547 |
- --with-alloc=$(use jemalloc && echo "jemalloc" || echo "system") |
548 |
- --with-build-version="Gentoo official package" |
549 |
- --enable-extension-integration |
550 |
- --with-external-dict-dir="${EPREFIX}/usr/share/myspell" |
551 |
- --with-external-hyph-dir="${EPREFIX}/usr/share/myspell" |
552 |
- --with-external-thes-dir="${EPREFIX}/usr/share/myspell" |
553 |
- --with-external-tar="${DISTDIR}" |
554 |
- --with-lang="" |
555 |
- --with-parallelism=$(makeopts_jobs) |
556 |
- --with-system-ucpp |
557 |
- --with-vendor="Gentoo Foundation" |
558 |
- --with-x |
559 |
- --without-fonts |
560 |
- --without-myspell-dicts |
561 |
- --without-help |
562 |
- --with-helppack-integration |
563 |
- --with-system-gpgmepp |
564 |
- --without-system-sane |
565 |
- $(use_enable bluetooth sdremote-bluetooth) |
566 |
- $(use_enable coinmp) |
567 |
- $(use_enable cups) |
568 |
- $(use_enable dbus) |
569 |
- $(use_enable debug) |
570 |
- $(use_enable eds evolution2) |
571 |
- $(use_enable firebird firebird-sdbc) |
572 |
- $(use_enable gstreamer gstreamer-1-0) |
573 |
- $(use_enable gtk gtk3) |
574 |
- $(use_enable gtk2 gtk) |
575 |
- $(use_enable kde gtk3-kde5) |
576 |
- $(use_enable kde qt5) |
577 |
- $(use_enable mysql ext-mariadb-connector) |
578 |
- $(use_enable odk) |
579 |
- $(use_enable pdfimport) |
580 |
- $(use_enable postgres postgresql-sdbc) |
581 |
- $(use_enable vlc) |
582 |
- $(use_with coinmp system-coinmp) |
583 |
- $(use_with googledrive gdrive-client-id ${google_default_client_id}) |
584 |
- $(use_with googledrive gdrive-client-secret ${google_default_client_secret}) |
585 |
- $(use_with java) |
586 |
- $(use_with mysql system-mysql-cppconn) |
587 |
- $(use_with odk doxygen) |
588 |
- ) |
589 |
- |
590 |
- if use eds || use gtk; then |
591 |
- myeconfargs+=( --enable-dconf --enable-gio ) |
592 |
- else |
593 |
- myeconfargs+=( --disable-dconf --disable-gio ) |
594 |
- fi |
595 |
- |
596 |
- # libreoffice extensions handling |
597 |
- for lo_xt in ${LO_EXTS}; do |
598 |
- if [[ "${lo_xt}" == "scripting-beanshell" || "${lo_xt}" == "scripting-javascript" ]]; then |
599 |
- myeconfargs+=( $(use_enable libreoffice_extensions_${lo_xt} ${lo_xt}) ) |
600 |
- else |
601 |
- myeconfargs+=( $(use_enable libreoffice_extensions_${lo_xt} ext-${lo_xt}) ) |
602 |
- fi |
603 |
- done |
604 |
- |
605 |
- if use java; then |
606 |
- # hsqldb: system one is too new |
607 |
- myeconfargs+=( |
608 |
- --without-junit |
609 |
- --without-system-hsqldb |
610 |
- --with-ant-home="${ANT_HOME}" |
611 |
- --with-jdk-home=$(java-config --jdk-home 2>/dev/null) |
612 |
- --with-jvm-path="${EPREFIX}/usr/lib/" |
613 |
- ) |
614 |
- |
615 |
- use libreoffice_extensions_scripting-beanshell && \ |
616 |
- myeconfargs+=( --with-beanshell-jar=$(java-pkg_getjar bsh bsh.jar) ) |
617 |
- |
618 |
- use libreoffice_extensions_scripting-javascript && \ |
619 |
- myeconfargs+=( --with-rhino-jar=$(java-pkg_getjar rhino-1.6 js.jar) ) |
620 |
- fi |
621 |
- |
622 |
- econf "${myeconfargs[@]}" |
623 |
-} |
624 |
- |
625 |
-src_compile() { |
626 |
- # more and more LO stuff tries to use OpenGL, including tests during build |
627 |
- # bug 501508, bug 540624, bug 545974 and probably more |
628 |
- addpredict /dev/dri |
629 |
- addpredict /dev/ati |
630 |
- addpredict /dev/nvidiactl |
631 |
- |
632 |
- # hack for offlinehelp, this needs fixing upstream at some point |
633 |
- # it is broken because we send --without-help |
634 |
- # https://bugs.freedesktop.org/show_bug.cgi?id=46506 |
635 |
- ( |
636 |
- grep "^export" "${S}/config_host.mk" > "${T}/config_host.mk" || die |
637 |
- source "${T}/config_host.mk" 2&> /dev/null |
638 |
- |
639 |
- local path="${WORKDIR}/helpcontent2/source/auxiliary/" |
640 |
- mkdir -p "${path}" || die |
641 |
- |
642 |
- echo "perl \"${S}/helpcontent2/helpers/create_ilst.pl\" -dir=helpcontent2/source/media/helpimg > \"${path}/helpimg.ilst\"" |
643 |
- perl "${S}/helpcontent2/helpers/create_ilst.pl" \ |
644 |
- -dir=helpcontent2/source/media/helpimg \ |
645 |
- > "${path}/helpimg.ilst" |
646 |
- [[ -s "${path}/helpimg.ilst" ]] || \ |
647 |
- ewarn "The help images list is empty, something is fishy, report a bug." |
648 |
- ) |
649 |
- |
650 |
- local target |
651 |
- use test && target="build" || target="build-nocheck" |
652 |
- |
653 |
- # this is not a proper make script |
654 |
- make ${target} || die |
655 |
-} |
656 |
- |
657 |
-src_test() { |
658 |
- make unitcheck || die |
659 |
- make slowcheck || die |
660 |
-} |
661 |
- |
662 |
-src_install() { |
663 |
- # This is not Makefile so no buildserver |
664 |
- make DESTDIR="${D}" distro-pack-install -o build -o check || die |
665 |
- |
666 |
- # bug 593514 |
667 |
- if use gtk; then |
668 |
- dosym libreoffice/program/liblibreofficekitgtk.so \ |
669 |
- /usr/$(get_libdir)/liblibreofficekitgtk.so |
670 |
- fi |
671 |
- |
672 |
- # bash completion aliases |
673 |
- bashcomp_alias \ |
674 |
- libreoffice \ |
675 |
- unopkg loimpress lobase localc lodraw lomath lowriter lofromtemplate loweb loffice |
676 |
- |
677 |
- if use branding; then |
678 |
- insinto /usr/$(get_libdir)/${PN}/program |
679 |
- newins "${WORKDIR}/branding-sofficerc" sofficerc |
680 |
- dodir /etc/env.d |
681 |
- echo "CONFIG_PROTECT=/usr/$(get_libdir)/${PN}/program/sofficerc" > "${ED}"etc/env.d/99${PN} || die |
682 |
- fi |
683 |
- |
684 |
- # Hack for offlinehelp, this needs fixing upstream at some point. |
685 |
- # It is broken because we send --without-help |
686 |
- # https://bugs.freedesktop.org/show_bug.cgi?id=46506 |
687 |
- insinto /usr/$(get_libdir)/libreoffice/help |
688 |
- doins xmlhelp/util/*.xsl |
689 |
- |
690 |
- pax-mark -m "${ED}"usr/$(get_libdir)/libreoffice/program/soffice.bin |
691 |
- pax-mark -m "${ED}"usr/$(get_libdir)/libreoffice/program/unopkg.bin |
692 |
-} |
693 |
- |
694 |
-pkg_preinst() { |
695 |
- gnome2_icon_savelist |
696 |
-} |
697 |
- |
698 |
-pkg_postinst() { |
699 |
- gnome2_icon_cache_update |
700 |
- xdg_desktop_database_update |
701 |
- xdg_mimeinfo_database_update |
702 |
-} |
703 |
- |
704 |
-pkg_postrm() { |
705 |
- gnome2_icon_cache_update |
706 |
- xdg_desktop_database_update |
707 |
- xdg_mimeinfo_database_update |
708 |
-} |