Gentoo Archives: gentoo-commits

From: "Andreas Hüttel" <dilfridge@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: app-office/libreoffice/files/, app-office/libreoffice/
Date: Tue, 29 Nov 2016 19:55:15
Message-Id: 1480449305.5353274f08c187aaeb38b6688e6a6e20177977aa.dilfridge@gentoo
1 commit: 5353274f08c187aaeb38b6688e6a6e20177977aa
2 Author: Andreas K. Hüttel <dilfridge <AT> gentoo <DOT> org>
3 AuthorDate: Tue Nov 29 19:52:49 2016 +0000
4 Commit: Andreas Hüttel <dilfridge <AT> gentoo <DOT> org>
5 CommitDate: Tue Nov 29 19:55:05 2016 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=5353274f
7
8 app-office/libreoffice: Remove old
9
10 Package-Manager: portage-2.3.2
11
12 app-office/libreoffice/Manifest | 6 -
13 .../files/libreoffice-4.4-system-pyuno.patch | 44 --
14 .../files/libreoffice-5.1.4.2-gcc6.patch | 40 --
15 .../files/libreoffice-curl-7.50.0.patch | 23 -
16 app-office/libreoffice/libreoffice-5.1.4.2.ebuild | 578 ---------------------
17 app-office/libreoffice/libreoffice-5.2.2.2.ebuild | 558 --------------------
18 app-office/libreoffice/libreoffice-5.2.3.3.ebuild | 567 --------------------
19 7 files changed, 1816 deletions(-)
20
21 diff --git a/app-office/libreoffice/Manifest b/app-office/libreoffice/Manifest
22 index 07c1897..d9ff85e 100644
23 --- a/app-office/libreoffice/Manifest
24 +++ b/app-office/libreoffice/Manifest
25 @@ -1,17 +1,11 @@
26 DIST 17410483b5b5f267aa18b7e00b65e6e0-hsqldb_1_8_0.zip 3519470 SHA256 d30b13f4ba2e3b6a2d4f020c0dee0a9fb9fc6fbcc2d561f36b78da4bf3802370 SHA512 a231eba4a1baca11766ef292ab45e302081115477fe23018652882923308856835cf8c9ecba61a5cf22543474ccef3136965d794a90c9e4e9e6dcc21f9af6e1a WHIRLPOOL c4b3b0c3e10171155e1d3431e8ab9b495dbf2fb924882024306bfb53f533f5b0231c06f47e3cfa77052013a816ea4cc5f237cc76fdb44a048fb6d5c177729aec
27 DIST 185d60944ea767075d27247c3162b3bc-unowinreg.dll 12288 SHA256 eafde646a7dbe46d20c291685b0beac2382174d78d66ee990e229a1bf6e6cec6 SHA512 854b8ae29b57b40ba6bb6ff66e723a0e8dad053fcc2849f0ad763cd8a31352f4aeba9636fd4e3f0f2a0cd985a6f49b4261b9ace68d6be821ed42cfa7a73eb13c WHIRLPOOL 16eb79e3674250fcb760b9698b4980414052d20f720d946701d1915c9b8915b4af75378668653d29581b77c19fcdba8f51d1f834c286cfcefcf4a420f8fcc1d5
28 -DIST 1f24ab1d39f4a51faf22244c94a6203f-xmlsec1-1.2.14.tar.gz 1652670 SHA256 390a5085651828b8fe12aa978b200f59b9155eedbb91a4be89bf7cf39eefdd4a SHA512 5664203e6426880041cdb227e91f79f00d2ca7ae28c6997f61b72cc599aac55838d082d2b2b551bd7a228424c350ddea5d41599b8ca58d444a2cd46c9206ea91 WHIRLPOOL 6486c48b73a4f79760b443cfd397b704eca0fd32b72304ae7e7cfa0f43583b0af15c7384548b5215ae57513ed8366c8f3a74630ab466ba19a63b346af8c5eaca
29 DIST 35c94d2df8893241173de1d16b6034c0-swingExSrc.zip 9796 SHA256 64585ac36a81291a58269ec5347e7e3e2e8596dbacb9221015c208191333c6e1 SHA512 4a48f1e32907fb2dee601cda3cd7a0d7198b2d51f2a572b647f1e93f901fd511eef3567676e52dfb1723a2cdfbc01f2015ca0bb22903b0bc1476dd618cc9aa8a WHIRLPOOL a5156d06323699d2cbf539f14f5f44f54ebf33e86c7f14e98acd4c6e29c3e496f91dd6792401148ffa32e3dcb1cd4f087ed804e306b241cef86de0aa347d25d4
30 DIST 4b87018f7fff1d054939d19920b751a0-collada2gltf-master-cb1d97788a.tar.bz2 555291 SHA256 b0adb8e71aef80751b999c9c055e419a625c4a05184e407aef2aee28752ad8cb SHA512 1e8a39205f21206d239871bd636f17768eb3997e08ba065c1111a537564bec2b4e97bcb2f7cd9e652a1d9b4f31cb0662010303c393aedc84b920bb5f41b27be8 WHIRLPOOL d809712c3fcaca922d64f67a14d9dc3e750ecf359687c7ba0e8c6c7fc7750e43721a21ce29d5a3b0b87b83bfe7b71947e701ba4aed0a337ec35ecbb22d8dec34
31 DIST 798b2ffdc8bcfe7bca2cf92b62caf685-rhino1_5R5.zip 1521926 SHA256 1fb458d6aab06932693cc8a9b6e4e70944ee1ff052fa63606e3131df34e21753 SHA512 ec5ae23c8fe2f5efc377f7a9665039afadf28b4d8f2791379296766a5fbc9a3bf7548f9b0e3b3b07762229ec733a92ccbb69791ee0318c9c6f78f8e847253d3f WHIRLPOOL 8e446eb44188046b0e90694feba232f42c2e9f13d0f43783a18de37c94b86ff919b994931125c5d8001ecd320c1f4db5da482847304aa61646600a3bb33144b4
32 DIST 86b1daaa438f5a7bea9a52d7b9799ac0-xmlsec1-1.2.23.tar.gz 1794694 SHA256 41d463d16c9894cd3317098d027c038039c6d896b9cbb9bad9c4e29959e10e9f SHA512 20b0c0ba517c764fcd32165254ae6dcdda8fb72ca3279dbfcf42d899e91d380b78d9be3b1c3d32910eaad5544a4fc51218e32579b10e6b6639338a7bd8b1ddc5 WHIRLPOOL f4d783d01346860ed2cf1d15e692e70e65034bee120c853cf7692358799a6e3339a1bb022f4d72ee4364adddd43766aa01770070a0081d1adcc588e4f84786f9
33 DIST a7983f859eafb2677d7ff386a023bc40-xsltml_2.1.2.zip 23150 SHA256 75823776fb51a9c526af904f1503a7afaaab900fba83eda64f8a41073724c870 SHA512 2d3835f7ac356805025cafedcad97faa48d0f5da386e6ac7b7451030059df8e2fdb0861ade07a576ebf9fb5b88a973585ab0437944b06aac9289d6898ba8586a WHIRLPOOL 60b98d9af2c83c0cf12a5a60ba30957d335b8b967cac07971e1edbc787b9caecd4b3c5bb480e8b38fe8109c1cf74439ebafae130c976182c2c15399f38f5d28c
34 DIST ce12af00283eb90d9281956524250d6e-xmlsec1-1.2.20.tar.gz 1769329 SHA256 3221593ca50f362b546a0888a1431ad24be1470f96b2469c0e0df5e1c55e7305 SHA512 2f8d473916abf9822367edbe857fc2e12dc9858d12e790d689d787e439904bd6a452bf631043aa66e7502457ab0815a473657f58fca17a213e2490f5655e5ae5 WHIRLPOOL 29ddaef03d46fe08aa2dba200be755817f8e77de3bbbb3ed86dae65e891239f3051f79fdfadec6ae56023197e32e1c44a94385a1ce306081f3bf94be6226f8c7
35 -DIST d62650a6f908e85643e557a236ea989c-vigra1.6.0.tar.gz 16525605 SHA256 1f188ac03a8aa4663223eca8c82f91a55293d066d67127082e29a7dba1a98c9f SHA512 d08a7fe432e8df47d1d8992a45bb5f33149cb75b90eb74b2f2e457628d21a94b17eae0045096b053d2a866bf7710c775581c3e417b5dfaf66601aa18071b7305 WHIRLPOOL 95dc6ec0fb293c3538c1d51241283edf4e21647dcfd10229233ab7c3f13f7c78e6bb02c4d292a7cd2a2ec95575d775f0395e837bbc88ab4ddbaa5adfd62be2f0
36 -DIST libreoffice-5.1.4.2.tar.xz 176233960 SHA256 cae54a79ed858ad92044179b5c33bd29c5770a8eccde04ed80c5ebfd92078385 SHA512 80e79b6a20f85e295fead9fc5f9578d846a889fe6bc7a0f51b76117408ee6c8e7fbddf99c22e2caaac3253f10907121ed3508cefab2fb1b2ccaa90c4cf52c33a WHIRLPOOL 2005e5321b6e25196db535a786c50b66c635b07d1482e562f1595f3f84fbf0c702717d934d50e319822f194f1bdc9d15da1885658042d277ae8535f75f9856ba
37 -DIST libreoffice-5.2.2.2.tar.xz 182258452 SHA256 5952eaa0b06a0659cf7cca397f95c00e73f0f410f14310deb363985746dad9e0 SHA512 1b59a0b8e28471a9ea97334b4e383d177f6cd6624dd2dad6541aa87fd836188a1c26a8755aef22510e53c2cf1b7b711a647867e07bde6e86ea8692a61b4679c8 WHIRLPOOL 0b9a1e59f6211a3196f6efb3f445f9b1c841e6ed640c2023c0791820de3b3166e99ad4d6b74e0abb24b35fa849fbf0a32dae4f630bb723d2af1b4e84d0c36855
38 DIST libreoffice-5.2.3.3.tar.xz 183870036 SHA256 a8f1365d166bf24ac4b97ed8466f46cca29cf72e7e992bb84d24c3dc8e1c32c1 SHA512 8628a820ad620ca946457adf0b0ed9741f13c67aa061761d04b743340d13ef498f23e75e6183206b34ce7154b1ec3096f8afcb69b2ab02e17c6ef00155e1b084 WHIRLPOOL 17edc4dd47938db71a5b5ec3ba318d02fbcab7c389bdb51432d36f1f018667c58b1ec3b38b09610542653c9442b65950e0daa062149cfeb7e35e699c6c9f89eb
39 DIST libreoffice-branding-gentoo-0.8.tar.xz 151568 SHA256 22722121be062742624e0634beae92289c75e6a99ed507d3bf0a05c5164e3c69 SHA512 785031a699b1d1895ce4b50ffc3ddf645f3a0ef9acdf37facfd18cf75db9484cb8f53a50abb63d6006ead76a80b6ff5aa99661063245ebb84bd64013d713de7f WHIRLPOOL 1f36652a52d501d6548cfa9aa013b3e3a1867aa2b0693d2274cf7816d4aa4e0cde3c7096cc71ed47cf74e5f96da2757bf537f553021f8fd86939accb227bf538
40 -DIST libreoffice-help-5.1.4.2.tar.xz 1905160 SHA256 60356c3e3a8e5ba8216c18e127cfa2b7d0eb55c69e50f056e8f78a7d9dc735cc SHA512 a8af619dff4b873574afd4b6cfc930543ab58a449a5cfa4b76a0edf242e18a885b6cba1f1a660e9a07e902c367f1a305c2c525f2b0a70e99f56ae5303abef5fe WHIRLPOOL 2e195dac9e6d2280ec3ac36243c4c62010e04763c5510a1f5e06f39e2f6e44aad555b460f72b2f09aba43a9571b3d20b50d6caf4a028e3e6acfe4e37d7598b70
41 -DIST libreoffice-help-5.2.2.2.tar.xz 1919792 SHA256 01c639223d9a31b58480935e1fef4f1bc7b82306f5fac8b6269541ab411ca2be SHA512 3691d843d84d21aae8be2d9dfe88f47e83fb13d0b92f9158e55bdfa40193c5102bafef40f048757d35c5c4b9660740c87614b5140760293e069ec01934b02223 WHIRLPOOL c0b29a181fa9b6df5299b77032908d88842f41ff2a66ca84af7f02ddbf2540b668649ea3e8be205cbc6ccde70fe30e548a38dd43877ea394be0e7fcd467b50cb
42 DIST libreoffice-help-5.2.3.3.tar.xz 1936920 SHA256 443be26b35c6b454d5d1ca17c58cc33ae90946f8e1003a98118467b49989cd3a SHA512 927421887d2d41538ba79d6d584bf84ad3fd7a58d3b9d95801cf67a0dcce61421934cd273a38803b5519c434232d1aaeb88d52cab391ae7292809ebbb3b501f9 WHIRLPOOL 36da9c200c0174f745827afb099530d06f6489f8be4a521b7dd37441fc2a1f9691a7d4a07e2914dec0f57845f96e4e143133105e5a730eebeb2e1c5c3283d3bb
43
44 diff --git a/app-office/libreoffice/files/libreoffice-4.4-system-pyuno.patch b/app-office/libreoffice/files/libreoffice-4.4-system-pyuno.patch
45 deleted file mode 100644
46 index 1cf8e19..00000000
47 --- a/app-office/libreoffice/files/libreoffice-4.4-system-pyuno.patch
48 +++ /dev/null
49 @@ -1,44 +0,0 @@
50 -diff --git a/desktop/scripts/soffice.sh b/desktop/scripts/soffice.sh
51 -index a259bf6..672fa23 100755
52 ---- a/desktop/scripts/soffice.sh
53 -+++ b/desktop/scripts/soffice.sh
54 -@@ -129,6 +129,9 @@ if echo "$checks" | grep -q "cc" ; then
55 - exit 1;
56 - fi
57 -
58 -+PYTHONPATH=$sd_prog${PYTHONPATH+:$PYTHONPATH}
59 -+export PYTHONPATH
60 -+
61 - case "`uname -s`" in
62 - NetBSD|OpenBSD|FreeBSD|DragonFly)
63 - # this is a temporary hack until we can live with the default search paths
64 -diff --git a/pyuno/source/module/uno.py b/pyuno/source/module/uno.py
65 -index 4ff2606..6a05eed 100644
66 ---- a/pyuno/source/module/uno.py
67 -+++ b/pyuno/source/module/uno.py
68 -@@ -16,8 +16,12 @@
69 - # except in compliance with the License. You may obtain a copy of
70 - # the License at http://www.apache.org/licenses/LICENSE-2.0 .
71 - #
72 -+import os
73 - import sys
74 -
75 -+sys.path.append('%eprefix%/usr/%libdir%/libreoffice/program')
76 -+if getattr(os.environ, 'URE_BOOTSTRAP', None) is None:
77 -+ os.environ['URE_BOOTSTRAP'] = "vnd.sun.star.pathname:%eprefix%/usr/%libdir%/libreoffice/program/fundamentalrc"
78 - import pyuno
79 -
80 - try:
81 -diff --git a/pyuno/source/officehelper.py b/pyuno/source/officehelper.py
82 -index 99d3b03..704edab 100755
83 ---- a/pyuno/source/officehelper.py
84 -+++ b/pyuno/source/officehelper.py
85 -@@ -44,7 +44,7 @@ def bootstrap():
86 - if "UNO_PATH" in os.environ:
87 - sOffice = os.environ["UNO_PATH"]
88 - else:
89 -- sOffice = "" # lets hope for the best
90 -+ sOffice = "%eprefix%/usr/%libdir%/libreoffice/program"
91 - sOffice = os.path.join(sOffice, "soffice")
92 - if platform.startswith("win"):
93 - sOffice += ".exe"
94
95 diff --git a/app-office/libreoffice/files/libreoffice-5.1.4.2-gcc6.patch b/app-office/libreoffice/files/libreoffice-5.1.4.2-gcc6.patch
96 deleted file mode 100644
97 index 9e7ee73..00000000
98 --- a/app-office/libreoffice/files/libreoffice-5.1.4.2-gcc6.patch
99 +++ /dev/null
100 @@ -1,40 +0,0 @@
101 -From 91fcc0032c2d0d343b914dfe3bea0b0bf1589e91 Mon Sep 17 00:00:00 2001
102 -From: Rene Engelhard <rene@××××××.org>
103 -Date: Tue, 24 May 2016 16:35:57 +0200
104 -Subject: [PATCH] KDE4 cflags no /usr/include usage to fix build failure with
105 - gcc6
106 -
107 -Change-Id: I53106b9ebfa7cc5c7b6c6d6f3bb3a4e5f2261f4f
108 ----
109 - configure.ac | 8 +++++++-
110 - 1 file changed, 7 insertions(+), 1 deletion(-)
111 -
112 -diff --git a/configure.ac b/configure.ac
113 -index 091abb4..86cc7b6 100644
114 ---- a/configure.ac
115 -+++ b/configure.ac
116 -@@ -11117,6 +11117,7 @@ the root of your Qt installation by exporting QT4DIR before running "configure".
117 - if test "x$kde_incdir" = "xno"; then
118 - AC_MSG_ERROR([KDE4 headers not found. Please specify the root of your KDE4 installation by exporting KDE4DIR before running "configure".])
119 - fi
120 -+ if test "$kde_incdir" = "/usr/include"; then kde_incdir=; fi
121 -
122 - dnl Check for KDE4 libraries
123 - AC_MSG_CHECKING([for KDE4 libraries])
124 -@@ -11134,7 +11135,12 @@ the root of your Qt installation by exporting QT4DIR before running "configure".
125 - fi
126 -
127 - PKG_CHECK_MODULES([QT4],[QtNetwork QtGui])
128 -- KDE4_CFLAGS="-I$kde_incdir $QT4_CFLAGS -DQT_CLEAN_NAMESPACE -DQT_THREAD_SUPPORT"
129 -+ if ! test -z "$kde_incdir"; then
130 -+ KDE4_CFLAGS="-I$kde_incdir $QT4_CFLAGS -DQT_CLEAN_NAMESPACE -DQT_THREAD_SUPPORT"
131 -+ else
132 -+ KDE4_CFLAGS="$QT4_CFLAGS -DQT_CLEAN_NAMESPACE -DQT_THREAD_SUPPORT"
133 -+ fi
134 -+
135 - KDE4_LIBS="-L$kde_libdir -lkio -lkfile -lkdeui -lkdecore -L$qt_lib_dir $QT4_LIBS"
136 - KDE4_CFLAGS=$(printf '%s' "$KDE4_CFLAGS" | sed -e "s/-I/${ISYSTEM?}/g")
137 - FilterLibs "$KDE4_LIBS"
138 ---
139 -2.9.0
140 -
141
142 diff --git a/app-office/libreoffice/files/libreoffice-curl-7.50.0.patch b/app-office/libreoffice/files/libreoffice-curl-7.50.0.patch
143 deleted file mode 100644
144 index 4a947d0..00000000
145 --- a/app-office/libreoffice/files/libreoffice-curl-7.50.0.patch
146 +++ /dev/null
147 @@ -1,23 +0,0 @@
148 -From 0b8e589875ffd84150470832de18ebd79989efc0 Mon Sep 17 00:00:00 2001
149 -From: =?UTF-8?q?Caol=C3=A1n=20McNamara?= <caolanm@××××××.com>
150 -Date: Mon, 25 Jul 2016 12:08:35 +0100
151 -Subject: curl 7.50.0 has CURL as typedef struct Curl_easy
152 -
153 -Change-Id: I22e5e2cdf78c38087579071c1b1570a8adc7d3c4
154 -
155 -diff --git a/ucb/source/ucp/ftp/ftploaderthread.cxx b/ucb/source/ucp/ftp/ftploaderthread.cxx
156 -index be68d9a..315ccb7 100644
157 ---- a/ucb/source/ucp/ftp/ftploaderthread.cxx
158 -+++ b/ucb/source/ucp/ftp/ftploaderthread.cxx
159 -@@ -71,7 +71,7 @@ FTPLoaderThread::~FTPLoaderThread() {
160 -
161 -
162 - CURL* FTPLoaderThread::handle() {
163 -- CURL* ret = osl_getThreadKeyData(m_threadKey);
164 -+ CURL* ret = static_cast<CURL*>(osl_getThreadKeyData(m_threadKey));
165 - if(!ret) {
166 - ret = curl_easy_init();
167 - if (ret != nullptr) {
168 ---
169 -cgit v0.10.2
170 -
171
172 diff --git a/app-office/libreoffice/libreoffice-5.1.4.2.ebuild b/app-office/libreoffice/libreoffice-5.1.4.2.ebuild
173 deleted file mode 100644
174 index ddada96..00000000
175 --- a/app-office/libreoffice/libreoffice-5.1.4.2.ebuild
176 +++ /dev/null
177 @@ -1,578 +0,0 @@
178 -# Copyright 1999-2016 Gentoo Foundation
179 -# Distributed under the terms of the GNU General Public License v2
180 -# $Id$
181 -
182 -EAPI=6
183 -
184 -KDE_REQUIRED="optional"
185 -KDE_SCM="git"
186 -CMAKE_REQUIRED="never"
187 -
188 -PYTHON_COMPAT=( python{2_7,3_4,3_5} )
189 -PYTHON_REQ_USE="threads,xml"
190 -
191 -# experimental ; release ; old
192 -# Usually the tarballs are moved a lot so this should make
193 -# everyone happy.
194 -DEV_URI="
195 - http://dev-builds.libreoffice.org/pre-releases/src
196 - http://download.documentfoundation.org/libreoffice/src/${PV:0:5}/
197 - http://download.documentfoundation.org/libreoffice/old/${PV}/
198 -"
199 -ADDONS_URI="http://dev-www.libreoffice.org/src/"
200 -
201 -BRANDING="${PN}-branding-gentoo-0.8.tar.xz"
202 -# PATCHSET="${P}-patchset-01.tar.xz"
203 -
204 -[[ ${PV} == *9999* ]] && SCM_ECLASS="git-r3"
205 -inherit multiprocessing autotools bash-completion-r1 check-reqs eutils java-pkg-opt-2 kde4-base pax-utils python-single-r1 multilib toolchain-funcs flag-o-matic versionator xdg-utils ${SCM_ECLASS}
206 -unset SCM_ECLASS
207 -
208 -DESCRIPTION="A full office productivity suite"
209 -HOMEPAGE="http://www.libreoffice.org"
210 -SRC_URI="branding? ( http://dev.gentoo.org/~dilfridge/distfiles/${BRANDING} )"
211 -[[ -n ${PATCHSET} ]] && SRC_URI+=" http://dev.gentooexperimental.org/~scarabeus/${PATCHSET}"
212 -
213 -# Split modules following git/tarballs
214 -# Core MUST be first!
215 -# Help is used for the image generator
216 -MODULES="core help"
217 -# Only release has the tarballs
218 -if [[ ${PV} != *9999* ]]; then
219 - for i in ${DEV_URI}; do
220 - for mod in ${MODULES}; do
221 - if [[ ${mod} == core ]]; then
222 - SRC_URI+=" ${i}/${P}.tar.xz"
223 - else
224 - SRC_URI+=" ${i}/${PN}-${mod}-${PV}.tar.xz"
225 - fi
226 - done
227 - unset mod
228 - done
229 - unset i
230 -fi
231 -unset DEV_URI
232 -
233 -# Really required addons
234 -# These are bundles that can't be removed for now due to huge patchsets.
235 -# If you want them gone, patches are welcome.
236 -ADDONS_SRC=(
237 - "${ADDONS_URI}/d62650a6f908e85643e557a236ea989c-vigra1.6.0.tar.gz"
238 - "${ADDONS_URI}/1f24ab1d39f4a51faf22244c94a6203f-xmlsec1-1.2.14.tar.gz" # modifies source code
239 - "collada? ( ${ADDONS_URI}/4b87018f7fff1d054939d19920b751a0-collada2gltf-master-cb1d97788a.tar.bz2 )"
240 - "java? ( ${ADDONS_URI}/17410483b5b5f267aa18b7e00b65e6e0-hsqldb_1_8_0.zip )"
241 - # no release for 8 years, should we package it?
242 - "libreoffice_extensions_wiki-publisher? ( ${ADDONS_URI}/a7983f859eafb2677d7ff386a023bc40-xsltml_2.1.2.zip )"
243 - # Does not build with 1.6 rhino at all
244 - "libreoffice_extensions_scripting-javascript? ( ${ADDONS_URI}/798b2ffdc8bcfe7bca2cf92b62caf685-rhino1_5R5.zip )"
245 - # requirement of rhino
246 - "libreoffice_extensions_scripting-javascript? ( ${ADDONS_URI}/35c94d2df8893241173de1d16b6034c0-swingExSrc.zip )"
247 - # not packageable
248 - "odk? ( http://download.go-oo.org/extern/185d60944ea767075d27247c3162b3bc-unowinreg.dll )"
249 -)
250 -SRC_URI+=" ${ADDONS_SRC[*]}"
251 -
252 -unset ADDONS_URI
253 -unset ADDONS_SRC
254 -
255 -# Extensions that need extra work:
256 -LO_EXTS="nlpsolver scripting-beanshell scripting-javascript wiki-publisher"
257 -
258 -IUSE="bluetooth +branding coinmp collada +cups dbus debug eds firebird gltf gnome google
259 -gstreamer +gtk gtk3 jemalloc kde libressl mysql odk postgres quickstarter telepathy test vlc
260 -$(printf 'libreoffice_extensions_%s ' ${LO_EXTS})"
261 -
262 -LICENSE="|| ( LGPL-3 MPL-1.1 )"
263 -SLOT="0"
264 -[[ ${PV} == *9999* ]] || \
265 -KEYWORDS="amd64 ~arm x86 ~amd64-linux ~x86-linux"
266 -
267 -COMMON_DEPEND="${PYTHON_DEPS}
268 - app-arch/unzip
269 - app-arch/zip
270 - app-text/hunspell
271 - >=app-text/libabw-0.1.0
272 - >=app-text/libebook-0.1
273 - >=app-text/libetonyek-0.1
274 - app-text/libexttextcat
275 - app-text/liblangtag
276 - >=app-text/libmspub-0.1.0
277 - >=app-text/libmwaw-0.3.1
278 - >=app-text/libodfgen-0.1.0
279 - app-text/libwpd:0.10[tools]
280 - app-text/libwpg:0.3
281 - >=app-text/libwps-0.4
282 - app-text/mythes
283 - app-text/poppler:=[cxx]
284 - >=dev-cpp/clucene-2.3.3.4-r2
285 - =dev-cpp/libcmis-0.5*
286 - dev-db/unixODBC
287 - dev-lang/perl
288 - >=dev-libs/boost-1.55:=
289 - dev-libs/expat
290 - dev-libs/hyphen
291 - <dev-libs/icu-58:=
292 - =dev-libs/liborcus-0.9*
293 - dev-libs/librevenge
294 - dev-libs/nspr
295 - dev-libs/nss
296 - !libressl? ( >=dev-libs/openssl-1.0.0d:0 )
297 - libressl? ( dev-libs/libressl )
298 - >=dev-libs/redland-1.0.16
299 - media-gfx/graphite2
300 - media-libs/fontconfig
301 - media-libs/freetype:2
302 - >=media-libs/glew-1.10:=
303 - >=media-libs/harfbuzz-0.9.18:=[icu(+)]
304 - media-libs/lcms:2
305 - >=media-libs/libcdr-0.1.0
306 - >=media-libs/libfreehand-0.1.0
307 - media-libs/libpagemaker
308 - >=media-libs/libpng-1.4:0=
309 - >=media-libs/libvisio-0.1.0
310 - net-libs/neon
311 - net-misc/curl
312 - net-nds/openldap
313 - sci-mathematics/lpsolve
314 - virtual/jpeg:0
315 - x11-libs/cairo[X,-xlib-xcb]
316 - x11-libs/libXinerama
317 - x11-libs/libXrandr
318 - x11-libs/libXrender
319 - virtual/glu
320 - virtual/opengl
321 - bluetooth? ( net-wireless/bluez )
322 - coinmp? ( sci-libs/coinor-mp )
323 - collada? ( >=media-libs/opencollada-1.2.2_p20150207 )
324 - cups? ( net-print/cups )
325 - dbus? ( dev-libs/dbus-glib )
326 - eds? (
327 - dev-libs/glib:2
328 - gnome-extra/evolution-data-server
329 - )
330 - firebird? ( >=dev-db/firebird-2.5 )
331 - gltf? ( media-libs/libgltf )
332 - gnome? ( gnome-base/dconf )
333 - gstreamer? (
334 - media-libs/gstreamer:1.0
335 - media-libs/gst-plugins-base:1.0
336 - )
337 - gtk? (
338 - x11-libs/gdk-pixbuf
339 - >=x11-libs/gtk+-2.24:2
340 - )
341 - gtk3? (
342 - dev-libs/glib:2
343 - dev-libs/gobject-introspection
344 - >=x11-libs/gtk+-3.8:3
345 - )
346 - jemalloc? ( dev-libs/jemalloc )
347 - libreoffice_extensions_scripting-beanshell? ( dev-java/bsh )
348 - libreoffice_extensions_scripting-javascript? ( dev-java/rhino:1.6 )
349 - mysql? ( dev-db/mysql-connector-c++ )
350 - postgres? ( >=dev-db/postgresql-9.0:*[kerberos] )
351 - telepathy? ( net-libs/telepathy-glib )
352 -"
353 -
354 -RDEPEND="${COMMON_DEPEND}
355 - !app-office/libreoffice-bin
356 - !app-office/libreoffice-bin-debug
357 - !app-office/openoffice
358 - media-fonts/liberation-fonts
359 - media-fonts/libertine
360 - media-fonts/urw-fonts
361 - java? ( >=virtual/jre-1.6 )
362 - kde? ( $(add_kdeapps_dep kioclient) )
363 - vlc? ( media-video/vlc )
364 -"
365 -
366 -if [[ ${PV} != *9999* ]]; then
367 - PDEPEND="=app-office/libreoffice-l10n-$(get_version_component_range 1-2)*"
368 -else
369 - # Translations are not reliable on live ebuilds
370 - # rather force people to use english only.
371 - PDEPEND="!app-office/libreoffice-l10n"
372 -fi
373 -
374 -# FIXME: cppunit should be moved to test conditional
375 -# after everything upstream is under gbuild
376 -# as dmake execute tests right away
377 -DEPEND="${COMMON_DEPEND}
378 - !<sys-devel/make-3.82
379 - >=dev-libs/libatomic_ops-7.2d
380 - >=dev-libs/libxml2-2.7.8
381 - dev-libs/libxslt
382 - dev-perl/Archive-Zip
383 - dev-util/cppunit
384 - >=dev-util/gperf-3
385 - dev-util/intltool
386 - >=dev-util/mdds-0.12.0:0=
387 - media-libs/glm
388 - net-misc/npapi-sdk
389 - sys-devel/bison
390 - sys-devel/flex
391 - sys-devel/gettext
392 - sys-devel/ucpp
393 - sys-libs/zlib
394 - virtual/pkgconfig
395 - x11-libs/libXt
396 - x11-libs/libXtst
397 - x11-proto/randrproto
398 - x11-proto/xextproto
399 - x11-proto/xineramaproto
400 - x11-proto/xproto
401 - java? (
402 - dev-java/ant-core
403 - >=virtual/jdk-1.6
404 - )
405 - odk? ( >=app-doc/doxygen-1.8.4 )
406 - test? ( dev-util/cppunit )
407 -"
408 -
409 -REQUIRED_USE="${PYTHON_REQUIRED_USE}
410 - bluetooth? ( dbus )
411 - collada? ( gltf )
412 - eds? ( gnome )
413 - gnome? ( gtk )
414 - telepathy? ( gtk )
415 - libreoffice_extensions_nlpsolver? ( java )
416 - libreoffice_extensions_scripting-beanshell? ( java )
417 - libreoffice_extensions_scripting-javascript? ( java )
418 - libreoffice_extensions_wiki-publisher? ( java )
419 -"
420 -
421 -PATCHES=(
422 - # from 5.2 branch
423 - "${FILESDIR}/${PN}-5.1.4.2-gcc6.patch"
424 - "${FILESDIR}/${PN}-curl-7.50.0.patch"
425 -
426 - # not upstreamable stuff
427 - "${FILESDIR}/${PN}-4.4-system-pyuno.patch"
428 -)
429 -
430 -CHECKREQS_MEMORY="512M"
431 -
432 -if [[ ${MERGE_TYPE} != binary ]] && is-flagq "-g*" && ! is-flagq "-g*0" ; then
433 - CHECKREQS_DISK_BUILD="22G"
434 -elif [[ ${MERGE_TYPE} != binary ]] ; then
435 - CHECKREQS_DISK_BUILD="6G"
436 -fi
437 -
438 -pkg_pretend() {
439 - use java || \
440 - ewarn "If you plan to use lbase application you should enable java or you will get various crashes."
441 -
442 - if [[ ${MERGE_TYPE} != binary ]]; then
443 - check-reqs_pkg_pretend
444 -
445 - if ! $(tc-is-clang) && [[ $(gcc-major-version) -lt 4 ]] || {
446 - [[ $(gcc-major-version) -eq 4 && $(gcc-minor-version) -lt 7 ]]; } then
447 - eerror "Compilation with gcc older than 4.7 is not supported"
448 - die "Too old gcc found."
449 - fi
450 - fi
451 -
452 - # Ensure pg version but we have to be sure the pg is installed (first
453 - # install on clean system)
454 - if use postgres && has_version dev-db/postgresql; then
455 - local pgslot=$(postgresql-config show)
456 - if [[ ${pgslot//.} -lt 90 ]] ; then
457 - eerror "PostgreSQL slot must be set to 9.0 or higher."
458 - eerror " postgresql-config set 9.0"
459 - die "PostgreSQL slot is not set to 9.0 or higher."
460 - fi
461 - fi
462 -}
463 -
464 -pkg_setup() {
465 - java-pkg-opt-2_pkg_setup
466 - kde4-base_pkg_setup
467 - python-single-r1_pkg_setup
468 - xdg_environment_reset
469 -
470 - [[ ${MERGE_TYPE} != binary ]] && check-reqs_pkg_setup
471 -}
472 -
473 -src_unpack() {
474 - local mod
475 -
476 - [[ -n ${PATCHSET} ]] && unpack ${PATCHSET}
477 - use branding && unpack "${BRANDING}"
478 -
479 - if [[ ${PV} != *9999* ]]; then
480 - unpack "${P}.tar.xz"
481 - for mod in ${MODULES}; do
482 - [[ ${mod} == core ]] && continue
483 - unpack "${PN}-${mod}-${PV}.tar.xz"
484 - done
485 - else
486 - local base_uri branch checkout mypv
487 - base_uri="git://anongit.freedesktop.org"
488 - for mod in ${MODULES}; do
489 - branch="master"
490 - mypv=${PV/.9999}
491 - [[ ${mypv} != ${PV} ]] && branch="${PN}-${mypv/./-}"
492 - git-r3_fetch "${base_uri}/${PN}/${mod}" "refs/heads/${branch}"
493 - [[ ${mod} != core ]] && checkout="${S}/${mod}"
494 - [[ ${mod} == help ]] && checkout="helpcontent2" # doesn't match on help
495 - git-r3_checkout "${base_uri}/${PN}/${mod}" ${checkout}
496 - done
497 - fi
498 -}
499 -
500 -src_prepare() {
501 - [[ -n ${PATCHSET} ]] && eapply "${WORKDIR}/${PATCHSET/.tar.xz/}"
502 - eapply "${PATCHES[@]}"
503 - eapply_user
504 -
505 - AT_M4DIR="m4" eautoreconf
506 - # hack in the autogen.sh
507 - touch autogen.lastrun
508 -
509 - # system pyuno mess
510 - sed -i \
511 - -e "s:%eprefix%:${EPREFIX}:g" \
512 - -e "s:%libdir%:$(get_libdir):g" \
513 - pyuno/source/module/uno.py \
514 - pyuno/source/officehelper.py || die
515 - # sed in the tests
516 - sed -i \
517 - -e "s#all : build unitcheck#all : build#g" \
518 - solenv/gbuild/Module.mk || die
519 - sed -i \
520 - -e "s#check: dev-install subsequentcheck#check: unitcheck slowcheck dev-install subsequentcheck#g" \
521 - -e "s#Makefile.gbuild all slowcheck#Makefile.gbuild all#g" \
522 - Makefile.in || die
523 -
524 - if use branding; then
525 - # hack...
526 - mv -v "${WORKDIR}/branding-intro.png" "${S}/icon-themes/galaxy/brand/intro.png" || die
527 - fi
528 -}
529 -
530 -src_configure() {
531 - local java_opts
532 - local internal_libs
533 - local ext_opts
534 -
535 - # Set up Google API keys, see http://www.chromium.org/developers/how-tos/api-keys
536 - # Note: these are for Gentoo use ONLY. For your own distribution, please get
537 - # your own set of keys. Feel free to contact chromium@g.o for more info.
538 - local google_default_client_id="329227923882.apps.googleusercontent.com"
539 - local google_default_client_secret="vgKG0NNv7GoDpbtoFNLxCUXu"
540 -
541 - # optimization flags
542 - export GMAKE_OPTIONS="${MAKEOPTS}"
543 - # System python enablement:
544 - export PYTHON_CFLAGS=$(python_get_CFLAGS)
545 - export PYTHON_LIBS=$(python_get_LIBS)
546 -
547 - if use collada; then
548 - export OPENCOLLADA_CFLAGS="-I/usr/include/opencollada/COLLADABaseUtils -I/usr/include/opencollada/COLLADAFramework -I/usr/include/opencollada/COLLADASaxFrameworkLoader -I/usr/include/opencollada/GeneratedSaxParser"
549 - export OPENCOLLADA_LIBS="-L /usr/$(get_libdir)/opencollada -lOpenCOLLADABaseUtils -lOpenCOLLADAFramework -lOpenCOLLADASaxFrameworkLoader -lGeneratedSaxParser"
550 - fi
551 -
552 - # sane: just sane.h header that is used for scan in writer, not
553 - # linked or anything else, worthless to depend on
554 - # vigra: just uses templates from there
555 - # it is serious pain in the ass for packaging
556 - # should be replaced by boost::gil if someone interested
557 - internal_libs+="
558 - --without-system-sane
559 - --without-system-vigra
560 - "
561 -
562 - # libreoffice extensions handling
563 - for lo_xt in ${LO_EXTS}; do
564 - if [[ "${lo_xt}" == "scripting-beanshell" || "${lo_xt}" == "scripting-javascript" ]]; then
565 - ext_opts+=" $(use_enable libreoffice_extensions_${lo_xt} ${lo_xt})"
566 - else
567 - ext_opts+=" $(use_enable libreoffice_extensions_${lo_xt} ext-${lo_xt})"
568 - fi
569 - done
570 -
571 - if use java; then
572 - # hsqldb: system one is too new
573 - java_opts="
574 - --without-junit
575 - --without-system-hsqldb
576 - --with-ant-home="${ANT_HOME}"
577 - --with-jdk-home=$(java-config --jdk-home 2>/dev/null)
578 - --with-jvm-path="${EPREFIX}/usr/lib/"
579 - "
580 -
581 - use libreoffice_extensions_scripting-beanshell && \
582 - java_opts+=" --with-beanshell-jar=$(java-pkg_getjar bsh bsh.jar)"
583 -
584 - use libreoffice_extensions_scripting-javascript && \
585 - java_opts+=" --with-rhino-jar=$(java-pkg_getjar rhino-1.6 js.jar)"
586 - fi
587 -
588 - # system headers/libs/...: enforce using system packages
589 - # --enable-cairo: ensure that cairo is always required
590 - # --enable-graphite: disabling causes build breakages
591 - # --enable-*-link: link to the library rather than just dlopen on runtime
592 - # --enable-release-build: build the libreoffice as release
593 - # --disable-fetch-external: prevent dowloading during compile phase
594 - # --enable-extension-integration: enable any extension integration support
595 - # --without-{fonts,myspell-dicts,ppsd}: prevent install of sys pkgs
596 - # --disable-report-builder: too much java packages pulled in without pkgs
597 - econf \
598 - --docdir="${EPREFIX}/usr/share/doc/${PF}/" \
599 - --with-system-headers \
600 - --with-system-libs \
601 - --with-system-jars \
602 - --with-system-dicts \
603 - --enable-cairo-canvas \
604 - --enable-graphite \
605 - --enable-largefile \
606 - --enable-mergelibs \
607 - --enable-neon \
608 - --enable-python=system \
609 - --enable-randr \
610 - --enable-randr-link \
611 - --enable-release-build \
612 - --disable-hardlink-deliver \
613 - --disable-ccache \
614 - --disable-crashdump \
615 - --disable-dependency-tracking \
616 - --disable-epm \
617 - --disable-fetch-external \
618 - --disable-gstreamer-0-10 \
619 - --disable-report-builder \
620 - --disable-online-update \
621 - --with-alloc=$(use jemalloc && echo "jemalloc" || echo "system") \
622 - --with-build-version="Gentoo official package" \
623 - --enable-extension-integration \
624 - --with-external-dict-dir="${EPREFIX}/usr/share/myspell" \
625 - --with-external-hyph-dir="${EPREFIX}/usr/share/myspell" \
626 - --with-external-thes-dir="${EPREFIX}/usr/share/myspell" \
627 - --with-external-tar="${DISTDIR}" \
628 - --with-lang="" \
629 - --with-parallelism=$(makeopts_jobs) \
630 - --with-system-ucpp \
631 - --with-vendor="Gentoo Foundation" \
632 - --with-x \
633 - --without-fonts \
634 - --without-myspell-dicts \
635 - --without-help \
636 - --with-helppack-integration \
637 - --without-sun-templates \
638 - $(use_enable bluetooth sdremote-bluetooth) \
639 - $(use_enable coinmp) \
640 - $(use_enable collada) \
641 - $(use_enable cups) \
642 - $(use_enable debug) \
643 - $(use_enable dbus) \
644 - $(use_enable eds evolution2) \
645 - $(use_enable firebird firebird-sdbc) \
646 - $(use_enable gltf) \
647 - $(use_enable gnome gio) \
648 - $(use_enable gnome dconf) \
649 - $(use_enable gstreamer gstreamer-1-0) \
650 - $(use_enable gtk) \
651 - $(use_enable gtk3) \
652 - $(use_enable kde kde4) \
653 - $(use_enable mysql ext-mariadb-connector) \
654 - $(use_enable odk) \
655 - $(use_enable postgres postgresql-sdbc) \
656 - $(use_enable quickstarter systray) \
657 - $(use_enable telepathy) \
658 - $(use_enable vlc) \
659 - $(use_with coinmp system-coinmp) \
660 - $(use_with collada system-opencollada) \
661 - $(use_with gltf system-libgltf) \
662 - $(use_with google gdrive-client-id ${google_default_client_id}) \
663 - $(use_with google gdrive-client-secret ${google_default_client_secret}) \
664 - $(use_with java) \
665 - $(use_with mysql system-mysql-cppconn) \
666 - $(use_with odk doxygen) \
667 - ${internal_libs} \
668 - ${java_opts} \
669 - ${ext_opts}
670 -}
671 -
672 -src_compile() {
673 - # more and more LO stuff tries to use OpenGL, including tests during build
674 - # bug 501508, bug 540624, bug 545974 and probably more
675 - addpredict /dev/dri
676 - addpredict /dev/ati
677 - addpredict /dev/nvidiactl
678 -
679 - # hack for offlinehelp, this needs fixing upstream at some point
680 - # it is broken because we send --without-help
681 - # https://bugs.freedesktop.org/show_bug.cgi?id=46506
682 - (
683 - grep "^export" "${S}/config_host.mk" > "${T}/config_host.mk" || die
684 - source "${T}/config_host.mk" 2&> /dev/null
685 -
686 - local path="${WORKDIR}/helpcontent2/source/auxiliary/"
687 - mkdir -p "${path}" || die
688 -
689 - echo "perl \"${S}/helpcontent2/helpers/create_ilst.pl\" -dir=icon-themes/galaxy/res/helpimg > \"${path}/helpimg.ilst\""
690 - perl "${S}/helpcontent2/helpers/create_ilst.pl" \
691 - -dir=icon-themes/galaxy/res/helpimg \
692 - > "${path}/helpimg.ilst"
693 - [[ -s "${path}/helpimg.ilst" ]] || \
694 - ewarn "The help images list is empty, something is fishy, report a bug."
695 - )
696 -
697 - local target
698 - use test && target="build" || target="build-nocheck"
699 -
700 - # this is not a proper make script
701 - make ${target} || die
702 -}
703 -
704 -src_test() {
705 - make unitcheck || die
706 - make slowcheck || die
707 -}
708 -
709 -src_install() {
710 - # This is not Makefile so no buildserver
711 - make DESTDIR="${D}" distro-pack-install -o build -o check || die
712 -
713 - # Fix bash completion placement
714 - newbashcomp "${ED}"etc/bash_completion.d/libreoffice.sh ${PN}
715 - bashcomp_alias \
716 - libreoffice \
717 - unopkg loimpress lobase localc lodraw lomath lowriter lofromtemplate loweb loffice
718 - rm -rf "${ED}"etc/ || die
719 -
720 - if use branding; then
721 - insinto /usr/$(get_libdir)/${PN}/program
722 - newins "${WORKDIR}/branding-sofficerc" sofficerc
723 - dodir /etc/env.d
724 - echo "CONFIG_PROTECT=/usr/$(get_libdir)/${PN}/program/sofficerc" > "${ED}"etc/env.d/99${PN} || die
725 - fi
726 -
727 - # Hack for offlinehelp, this needs fixing upstream at some point.
728 - # It is broken because we send --without-help
729 - # https://bugs.freedesktop.org/show_bug.cgi?id=46506
730 - insinto /usr/$(get_libdir)/libreoffice/help
731 - doins xmlhelp/util/*.xsl
732 -
733 - # Remove desktop files to support old installs that can't parse mime
734 - rm -r "${ED}"usr/share/mimelnk/ || die
735 -
736 - # FIXME: Hack add missing file
737 - exeinto /usr/$(get_libdir)/${PN}/program
738 - doexe "${S}"/instdir/program/libsaxlo.so
739 -
740 - pax-mark -m "${ED}"usr/$(get_libdir)/libreoffice/program/soffice.bin
741 - pax-mark -m "${ED}"usr/$(get_libdir)/libreoffice/program/unopkg.bin
742 -}
743 -
744 -pkg_preinst() {
745 - # Cache updates - all handled by kde eclass for all environments
746 - kde4-base_pkg_preinst
747 -}
748 -
749 -pkg_postinst() {
750 - kde4-base_pkg_postinst
751 -}
752 -
753 -pkg_postrm() {
754 - kde4-base_pkg_postrm
755 -}
756
757 diff --git a/app-office/libreoffice/libreoffice-5.2.2.2.ebuild b/app-office/libreoffice/libreoffice-5.2.2.2.ebuild
758 deleted file mode 100644
759 index 6ebd947..00000000
760 --- a/app-office/libreoffice/libreoffice-5.2.2.2.ebuild
761 +++ /dev/null
762 @@ -1,558 +0,0 @@
763 -# Copyright 1999-2016 Gentoo Foundation
764 -# Distributed under the terms of the GNU General Public License v2
765 -# $Id$
766 -
767 -EAPI=6
768 -
769 -KDE_REQUIRED="optional"
770 -KDE_SCM="git"
771 -CMAKE_REQUIRED="never"
772 -
773 -PYTHON_COMPAT=( python{2_7,3_4,3_5} )
774 -PYTHON_REQ_USE="threads,xml"
775 -
776 -# experimental ; release ; old
777 -# Usually the tarballs are moved a lot so this should make
778 -# everyone happy.
779 -DEV_URI="
780 - http://dev-builds.libreoffice.org/pre-releases/src
781 - http://download.documentfoundation.org/libreoffice/src/${PV:0:5}/
782 - http://download.documentfoundation.org/libreoffice/old/${PV}/
783 -"
784 -ADDONS_URI="http://dev-www.libreoffice.org/src/"
785 -
786 -BRANDING="${PN}-branding-gentoo-0.8.tar.xz"
787 -# PATCHSET="${P}-patchset-01.tar.xz"
788 -
789 -[[ ${PV} == *9999* ]] && SCM_ECLASS="git-r3"
790 -inherit multiprocessing autotools bash-completion-r1 check-reqs eutils java-pkg-opt-2 kde4-base pax-utils python-single-r1 multilib toolchain-funcs flag-o-matic versionator xdg-utils ${SCM_ECLASS}
791 -unset SCM_ECLASS
792 -
793 -DESCRIPTION="A full office productivity suite"
794 -HOMEPAGE="http://www.libreoffice.org"
795 -SRC_URI="branding? ( http://dev.gentoo.org/~dilfridge/distfiles/${BRANDING} )"
796 -[[ -n ${PATCHSET} ]] && SRC_URI+=" http://dev.gentooexperimental.org/~scarabeus/${PATCHSET}"
797 -
798 -# Split modules following git/tarballs
799 -# Core MUST be first!
800 -# Help is used for the image generator
801 -MODULES="core help"
802 -# Only release has the tarballs
803 -if [[ ${PV} != *9999* ]]; then
804 - for i in ${DEV_URI}; do
805 - for mod in ${MODULES}; do
806 - if [[ ${mod} == core ]]; then
807 - SRC_URI+=" ${i}/${P}.tar.xz"
808 - else
809 - SRC_URI+=" ${i}/${PN}-${mod}-${PV}.tar.xz"
810 - fi
811 - done
812 - unset mod
813 - done
814 - unset i
815 -fi
816 -unset DEV_URI
817 -
818 -# Really required addons
819 -# These are bundles that can't be removed for now due to huge patchsets.
820 -# If you want them gone, patches are welcome.
821 -ADDONS_SRC=(
822 - "${ADDONS_URI}/ce12af00283eb90d9281956524250d6e-xmlsec1-1.2.20.tar.gz" # modifies source code
823 - "collada? ( ${ADDONS_URI}/4b87018f7fff1d054939d19920b751a0-collada2gltf-master-cb1d97788a.tar.bz2 )"
824 - "java? ( ${ADDONS_URI}/17410483b5b5f267aa18b7e00b65e6e0-hsqldb_1_8_0.zip )"
825 - # no release for 8 years, should we package it?
826 - "libreoffice_extensions_wiki-publisher? ( ${ADDONS_URI}/a7983f859eafb2677d7ff386a023bc40-xsltml_2.1.2.zip )"
827 - # Does not build with 1.6 rhino at all
828 - "libreoffice_extensions_scripting-javascript? ( ${ADDONS_URI}/798b2ffdc8bcfe7bca2cf92b62caf685-rhino1_5R5.zip )"
829 - # requirement of rhino
830 - "libreoffice_extensions_scripting-javascript? ( ${ADDONS_URI}/35c94d2df8893241173de1d16b6034c0-swingExSrc.zip )"
831 - # not packageable
832 - "odk? ( http://download.go-oo.org/extern/185d60944ea767075d27247c3162b3bc-unowinreg.dll )"
833 -)
834 -SRC_URI+=" ${ADDONS_SRC[*]}"
835 -
836 -unset ADDONS_URI
837 -unset ADDONS_SRC
838 -
839 -# Extensions that need extra work:
840 -LO_EXTS="nlpsolver scripting-beanshell scripting-javascript wiki-publisher"
841 -
842 -IUSE="bluetooth +branding coinmp collada +cups dbus debug eds firebird gltf gnome googledrive
843 -gstreamer +gtk gtk3 jemalloc kde libressl mysql odk pdfimport postgres quickstarter telepathy test vlc
844 -$(printf 'libreoffice_extensions_%s ' ${LO_EXTS})"
845 -
846 -LICENSE="|| ( LGPL-3 MPL-1.1 )"
847 -SLOT="0"
848 -[[ ${PV} == *9999* ]] || \
849 -KEYWORDS="~amd64 ~arm ~x86 ~amd64-linux ~x86-linux"
850 -
851 -COMMON_DEPEND="${PYTHON_DEPS}
852 - app-arch/unzip
853 - app-arch/zip
854 - app-text/hunspell
855 - >=app-text/libabw-0.1.0
856 - >=app-text/libebook-0.1
857 - >=app-text/libetonyek-0.1
858 - app-text/libexttextcat
859 - app-text/liblangtag
860 - >=app-text/libmspub-0.1.0
861 - >=app-text/libmwaw-0.3.1
862 - >=app-text/libodfgen-0.1.0
863 - app-text/libwpd:0.10[tools]
864 - app-text/libwpg:0.3
865 - >=app-text/libwps-0.4
866 - app-text/mythes
867 - >=dev-cpp/clucene-2.3.3.4-r2
868 - =dev-cpp/libcmis-0.5*
869 - dev-db/unixODBC
870 - dev-lang/perl
871 - >=dev-libs/boost-1.55:=
872 - dev-libs/expat
873 - dev-libs/hyphen
874 - <dev-libs/icu-58:=
875 - =dev-libs/liborcus-0.11*
876 - dev-libs/librevenge
877 - dev-libs/nspr
878 - dev-libs/nss
879 - !libressl? ( >=dev-libs/openssl-1.0.0d:0 )
880 - libressl? ( dev-libs/libressl )
881 - >=dev-libs/redland-1.0.16
882 - media-gfx/graphite2
883 - media-libs/fontconfig
884 - media-libs/freetype:2
885 - >=media-libs/glew-1.10:=
886 - >=media-libs/harfbuzz-0.9.18:=[icu(+)]
887 - media-libs/lcms:2
888 - >=media-libs/libcdr-0.1.0
889 - >=media-libs/libfreehand-0.1.0
890 - media-libs/libpagemaker
891 - >=media-libs/libpng-1.4:0=
892 - >=media-libs/libvisio-0.1.0
893 - net-libs/neon
894 - net-misc/curl
895 - net-nds/openldap
896 - sci-mathematics/lpsolve
897 - virtual/jpeg:0
898 - x11-libs/cairo[X,-xlib-xcb]
899 - x11-libs/libXinerama
900 - x11-libs/libXrandr
901 - x11-libs/libXrender
902 - virtual/glu
903 - virtual/opengl
904 - bluetooth? ( net-wireless/bluez )
905 - coinmp? ( sci-libs/coinor-mp )
906 - collada? ( >=media-libs/opencollada-1.2.2_p20150207 )
907 - cups? ( net-print/cups )
908 - dbus? ( dev-libs/dbus-glib )
909 - eds? (
910 - dev-libs/glib:2
911 - gnome-extra/evolution-data-server
912 - )
913 - firebird? ( >=dev-db/firebird-2.5 )
914 - gltf? ( media-libs/libgltf )
915 - gnome? ( gnome-base/dconf )
916 - gstreamer? (
917 - media-libs/gstreamer:1.0
918 - media-libs/gst-plugins-base:1.0
919 - )
920 - gtk? (
921 - x11-libs/gdk-pixbuf
922 - >=x11-libs/gtk+-2.24:2
923 - )
924 - gtk3? (
925 - dev-libs/glib:2
926 - dev-libs/gobject-introspection
927 - >=x11-libs/gtk+-3.8:3
928 - )
929 - jemalloc? ( dev-libs/jemalloc )
930 - libreoffice_extensions_scripting-beanshell? ( dev-java/bsh )
931 - libreoffice_extensions_scripting-javascript? ( dev-java/rhino:1.6 )
932 - mysql? ( dev-db/mysql-connector-c++ )
933 - pdfimport? ( app-text/poppler:=[cxx] )
934 - postgres? ( >=dev-db/postgresql-9.0:*[kerberos] )
935 - telepathy? ( net-libs/telepathy-glib )
936 -"
937 -
938 -RDEPEND="${COMMON_DEPEND}
939 - !app-office/libreoffice-bin
940 - !app-office/libreoffice-bin-debug
941 - !app-office/openoffice
942 - media-fonts/liberation-fonts
943 - media-fonts/libertine
944 - media-fonts/urw-fonts
945 - java? ( >=virtual/jre-1.6 )
946 - kde? ( $(add_kdeapps_dep kioclient) )
947 - vlc? ( media-video/vlc )
948 -"
949 -
950 -if [[ ${PV} != *9999* ]]; then
951 - PDEPEND="=app-office/libreoffice-l10n-$(get_version_component_range 1-2)*"
952 -else
953 - # Translations are not reliable on live ebuilds
954 - # rather force people to use english only.
955 - PDEPEND="!app-office/libreoffice-l10n"
956 -fi
957 -
958 -# FIXME: cppunit should be moved to test conditional
959 -# after everything upstream is under gbuild
960 -# as dmake execute tests right away
961 -DEPEND="${COMMON_DEPEND}
962 - !<sys-devel/make-3.82
963 - >=dev-libs/libatomic_ops-7.2d
964 - >=dev-libs/libxml2-2.7.8
965 - dev-libs/libxslt
966 - dev-perl/Archive-Zip
967 - dev-util/cppunit
968 - >=dev-util/gperf-3
969 - dev-util/intltool
970 - >=dev-util/mdds-1.2.0:1=
971 - media-libs/glm
972 - sys-devel/bison
973 - sys-devel/flex
974 - sys-devel/gettext
975 - sys-devel/ucpp
976 - sys-libs/zlib
977 - virtual/pkgconfig
978 - x11-libs/libXt
979 - x11-libs/libXtst
980 - x11-proto/randrproto
981 - x11-proto/xextproto
982 - x11-proto/xineramaproto
983 - x11-proto/xproto
984 - java? (
985 - dev-java/ant-core
986 - >=virtual/jdk-1.6
987 - )
988 - odk? ( >=app-doc/doxygen-1.8.4 )
989 - test? ( dev-util/cppunit )
990 -"
991 -
992 -REQUIRED_USE="${PYTHON_REQUIRED_USE}
993 - bluetooth? ( dbus )
994 - collada? ( gltf )
995 - eds? ( gnome )
996 - gnome? ( gtk )
997 - telepathy? ( gtk )
998 - libreoffice_extensions_nlpsolver? ( java )
999 - libreoffice_extensions_scripting-beanshell? ( java )
1000 - libreoffice_extensions_scripting-javascript? ( java )
1001 - libreoffice_extensions_wiki-publisher? ( java )
1002 -"
1003 -
1004 -PATCHES=(
1005 - # not upstreamable stuff
1006 - "${FILESDIR}/${PN}-5.2-system-pyuno.patch"
1007 -)
1008 -
1009 -CHECKREQS_MEMORY="512M"
1010 -
1011 -if [[ ${MERGE_TYPE} != binary ]] && is-flagq "-g*" && ! is-flagq "-g*0" ; then
1012 - CHECKREQS_DISK_BUILD="22G"
1013 -elif [[ ${MERGE_TYPE} != binary ]] ; then
1014 - CHECKREQS_DISK_BUILD="6G"
1015 -fi
1016 -
1017 -pkg_pretend() {
1018 - use java || \
1019 - ewarn "If you plan to use lbase application you should enable java or you will get various crashes."
1020 -
1021 - if [[ ${MERGE_TYPE} != binary ]]; then
1022 - check-reqs_pkg_pretend
1023 -
1024 - if ! $(tc-is-clang) && [[ $(gcc-major-version) -lt 4 ]] || {
1025 - [[ $(gcc-major-version) -eq 4 && $(gcc-minor-version) -lt 7 ]]; } then
1026 - eerror "Compilation with gcc older than 4.7 is not supported"
1027 - die "Too old gcc found."
1028 - fi
1029 - fi
1030 -
1031 - # Ensure pg version but we have to be sure the pg is installed (first
1032 - # install on clean system)
1033 - if use postgres && has_version dev-db/postgresql; then
1034 - local pgslot=$(postgresql-config show)
1035 - if [[ ${pgslot//.} -lt 90 ]] ; then
1036 - eerror "PostgreSQL slot must be set to 9.0 or higher."
1037 - eerror " postgresql-config set 9.0"
1038 - die "PostgreSQL slot is not set to 9.0 or higher."
1039 - fi
1040 - fi
1041 -}
1042 -
1043 -pkg_setup() {
1044 - java-pkg-opt-2_pkg_setup
1045 - kde4-base_pkg_setup
1046 - python-single-r1_pkg_setup
1047 - xdg_environment_reset
1048 -
1049 - [[ ${MERGE_TYPE} != binary ]] && check-reqs_pkg_setup
1050 -}
1051 -
1052 -src_unpack() {
1053 - local mod
1054 -
1055 - [[ -n ${PATCHSET} ]] && unpack ${PATCHSET}
1056 - use branding && unpack "${BRANDING}"
1057 -
1058 - if [[ ${PV} != *9999* ]]; then
1059 - unpack "${P}.tar.xz"
1060 - for mod in ${MODULES}; do
1061 - [[ ${mod} == core ]] && continue
1062 - unpack "${PN}-${mod}-${PV}.tar.xz"
1063 - done
1064 - else
1065 - local base_uri branch checkout mypv
1066 - base_uri="git://anongit.freedesktop.org"
1067 - for mod in ${MODULES}; do
1068 - branch="master"
1069 - mypv=${PV/.9999}
1070 - [[ ${mypv} != ${PV} ]] && branch="${PN}-${mypv/./-}"
1071 - git-r3_fetch "${base_uri}/${PN}/${mod}" "refs/heads/${branch}"
1072 - [[ ${mod} != core ]] && checkout="${S}/${mod}"
1073 - [[ ${mod} == help ]] && checkout="helpcontent2" # doesn't match on help
1074 - git-r3_checkout "${base_uri}/${PN}/${mod}" ${checkout}
1075 - done
1076 - fi
1077 -}
1078 -
1079 -src_prepare() {
1080 - [[ -n ${PATCHSET} ]] && eapply "${WORKDIR}/${PATCHSET/.tar.xz/}"
1081 - eapply "${PATCHES[@]}"
1082 - eapply_user
1083 -
1084 - AT_M4DIR="m4" eautoreconf
1085 - # hack in the autogen.sh
1086 - touch autogen.lastrun
1087 -
1088 - # system pyuno mess
1089 - sed -i \
1090 - -e "s:%eprefix%:${EPREFIX}:g" \
1091 - -e "s:%libdir%:$(get_libdir):g" \
1092 - pyuno/source/module/uno.py \
1093 - pyuno/source/officehelper.py || die
1094 - # sed in the tests
1095 - sed -i \
1096 - -e "s#all : build unitcheck#all : build#g" \
1097 - solenv/gbuild/Module.mk || die
1098 - sed -i \
1099 - -e "s#check: dev-install subsequentcheck#check: unitcheck slowcheck dev-install subsequentcheck#g" \
1100 - -e "s#Makefile.gbuild all slowcheck#Makefile.gbuild all#g" \
1101 - Makefile.in || die
1102 -
1103 - if use branding; then
1104 - # hack...
1105 - mv -v "${WORKDIR}/branding-intro.png" "${S}/icon-themes/galaxy/brand/intro.png" || die
1106 - fi
1107 -}
1108 -
1109 -src_configure() {
1110 - local java_opts
1111 - local ext_opts
1112 -
1113 - # Set up Google API keys, see http://www.chromium.org/developers/how-tos/api-keys
1114 - # Note: these are for Gentoo use ONLY. For your own distribution, please get
1115 - # your own set of keys. Feel free to contact chromium@g.o for more info.
1116 - local google_default_client_id="329227923882.apps.googleusercontent.com"
1117 - local google_default_client_secret="vgKG0NNv7GoDpbtoFNLxCUXu"
1118 -
1119 - # optimization flags
1120 - export GMAKE_OPTIONS="${MAKEOPTS}"
1121 - # System python enablement:
1122 - export PYTHON_CFLAGS=$(python_get_CFLAGS)
1123 - export PYTHON_LIBS=$(python_get_LIBS)
1124 -
1125 - if use collada; then
1126 - export OPENCOLLADA_CFLAGS="-I/usr/include/opencollada/COLLADABaseUtils -I/usr/include/opencollada/COLLADAFramework -I/usr/include/opencollada/COLLADASaxFrameworkLoader -I/usr/include/opencollada/GeneratedSaxParser"
1127 - export OPENCOLLADA_LIBS="-L /usr/$(get_libdir)/opencollada -lOpenCOLLADABaseUtils -lOpenCOLLADAFramework -lOpenCOLLADASaxFrameworkLoader -lGeneratedSaxParser"
1128 - fi
1129 -
1130 - # libreoffice extensions handling
1131 - for lo_xt in ${LO_EXTS}; do
1132 - if [[ "${lo_xt}" == "scripting-beanshell" || "${lo_xt}" == "scripting-javascript" ]]; then
1133 - ext_opts+=" $(use_enable libreoffice_extensions_${lo_xt} ${lo_xt})"
1134 - else
1135 - ext_opts+=" $(use_enable libreoffice_extensions_${lo_xt} ext-${lo_xt})"
1136 - fi
1137 - done
1138 -
1139 - if use java; then
1140 - # hsqldb: system one is too new
1141 - java_opts="
1142 - --without-junit
1143 - --without-system-hsqldb
1144 - --with-ant-home="${ANT_HOME}"
1145 - --with-jdk-home=$(java-config --jdk-home 2>/dev/null)
1146 - --with-jvm-path="${EPREFIX}/usr/lib/"
1147 - "
1148 -
1149 - use libreoffice_extensions_scripting-beanshell && \
1150 - java_opts+=" --with-beanshell-jar=$(java-pkg_getjar bsh bsh.jar)"
1151 -
1152 - use libreoffice_extensions_scripting-javascript && \
1153 - java_opts+=" --with-rhino-jar=$(java-pkg_getjar rhino-1.6 js.jar)"
1154 - fi
1155 -
1156 - # system headers/libs/...: enforce using system packages
1157 - # --enable-cairo: ensure that cairo is always required
1158 - # --enable-graphite: disabling causes build breakages
1159 - # --enable-*-link: link to the library rather than just dlopen on runtime
1160 - # --enable-release-build: build the libreoffice as release
1161 - # --disable-fetch-external: prevent dowloading during compile phase
1162 - # --enable-extension-integration: enable any extension integration support
1163 - # --without-{fonts,myspell-dicts,ppsd}: prevent install of sys pkgs
1164 - # --disable-report-builder: too much java packages pulled in without pkgs
1165 - # --without-system-sane: just sane.h header that is used for scan in writer,
1166 - # not linked or anything else, worthless to depend on
1167 - econf \
1168 - --docdir="${EPREFIX}/usr/share/doc/${PF}/" \
1169 - --with-system-dicts \
1170 - --with-system-headers \
1171 - --with-system-jars \
1172 - --with-system-libs \
1173 - --enable-cairo-canvas \
1174 - --enable-graphite \
1175 - --enable-largefile \
1176 - --enable-mergelibs \
1177 - --enable-neon \
1178 - --enable-python=system \
1179 - --enable-randr \
1180 - --enable-release-build \
1181 - --disable-ccache \
1182 - --disable-crashdump \
1183 - --disable-dependency-tracking \
1184 - --disable-epm \
1185 - --disable-fetch-external \
1186 - --disable-gstreamer-0-10 \
1187 - --disable-hardlink-deliver \
1188 - --disable-online-update \
1189 - --disable-report-builder \
1190 - --with-alloc=$(use jemalloc && echo "jemalloc" || echo "system") \
1191 - --with-build-version="Gentoo official package" \
1192 - --enable-extension-integration \
1193 - --with-external-dict-dir="${EPREFIX}/usr/share/myspell" \
1194 - --with-external-hyph-dir="${EPREFIX}/usr/share/myspell" \
1195 - --with-external-thes-dir="${EPREFIX}/usr/share/myspell" \
1196 - --with-external-tar="${DISTDIR}" \
1197 - --with-lang="" \
1198 - --with-parallelism=$(makeopts_jobs) \
1199 - --with-system-ucpp \
1200 - --with-vendor="Gentoo Foundation" \
1201 - --with-x \
1202 - --without-fonts \
1203 - --without-myspell-dicts \
1204 - --without-help \
1205 - --with-helppack-integration \
1206 - --without-sun-templates \
1207 - --without-system-sane \
1208 - $(use_enable bluetooth sdremote-bluetooth) \
1209 - $(use_enable coinmp) \
1210 - $(use_enable collada) \
1211 - $(use_enable cups) \
1212 - $(use_enable debug) \
1213 - $(use_enable dbus) \
1214 - $(use_enable eds evolution2) \
1215 - $(use_enable firebird firebird-sdbc) \
1216 - $(use_enable gltf) \
1217 - $(use_enable gnome gio) \
1218 - $(use_enable gnome dconf) \
1219 - $(use_enable gstreamer gstreamer-1-0) \
1220 - $(use_enable gtk) \
1221 - $(use_enable gtk3) \
1222 - $(use_enable kde kde4) \
1223 - $(use_enable mysql ext-mariadb-connector) \
1224 - $(use_enable odk) \
1225 - $(use_enable pdfimport) \
1226 - $(use_enable postgres postgresql-sdbc) \
1227 - $(use_enable quickstarter systray) \
1228 - $(use_enable telepathy) \
1229 - $(use_enable vlc) \
1230 - $(use_with coinmp system-coinmp) \
1231 - $(use_with collada system-opencollada) \
1232 - $(use_with gltf system-libgltf) \
1233 - $(use_with googledrive gdrive-client-id ${google_default_client_id}) \
1234 - $(use_with googledrive gdrive-client-secret ${google_default_client_secret}) \
1235 - $(use_with java) \
1236 - $(use_with mysql system-mysql-cppconn) \
1237 - $(use_with odk doxygen) \
1238 - ${java_opts} \
1239 - ${ext_opts}
1240 -}
1241 -
1242 -src_compile() {
1243 - # more and more LO stuff tries to use OpenGL, including tests during build
1244 - # bug 501508, bug 540624, bug 545974 and probably more
1245 - addpredict /dev/dri
1246 - addpredict /dev/ati
1247 - addpredict /dev/nvidiactl
1248 -
1249 - # hack for offlinehelp, this needs fixing upstream at some point
1250 - # it is broken because we send --without-help
1251 - # https://bugs.freedesktop.org/show_bug.cgi?id=46506
1252 - (
1253 - grep "^export" "${S}/config_host.mk" > "${T}/config_host.mk" || die
1254 - source "${T}/config_host.mk" 2&> /dev/null
1255 -
1256 - local path="${WORKDIR}/helpcontent2/source/auxiliary/"
1257 - mkdir -p "${path}" || die
1258 -
1259 - echo "perl \"${S}/helpcontent2/helpers/create_ilst.pl\" -dir=icon-themes/galaxy/res/helpimg > \"${path}/helpimg.ilst\""
1260 - perl "${S}/helpcontent2/helpers/create_ilst.pl" \
1261 - -dir=icon-themes/galaxy/res/helpimg \
1262 - > "${path}/helpimg.ilst"
1263 - [[ -s "${path}/helpimg.ilst" ]] || \
1264 - ewarn "The help images list is empty, something is fishy, report a bug."
1265 - )
1266 -
1267 - local target
1268 - use test && target="build" || target="build-nocheck"
1269 -
1270 - # this is not a proper make script
1271 - make ${target} || die
1272 -}
1273 -
1274 -src_test() {
1275 - make unitcheck || die
1276 - make slowcheck || die
1277 -}
1278 -
1279 -src_install() {
1280 - # This is not Makefile so no buildserver
1281 - make DESTDIR="${D}" distro-pack-install -o build -o check || die
1282 -
1283 - # Fix bash completion placement
1284 - newbashcomp "${ED}"usr/share/bash-completion/completions/libreoffice.sh ${PN}
1285 - bashcomp_alias \
1286 - libreoffice \
1287 - unopkg loimpress lobase localc lodraw lomath lowriter lofromtemplate loweb loffice
1288 -
1289 - if use branding; then
1290 - insinto /usr/$(get_libdir)/${PN}/program
1291 - newins "${WORKDIR}/branding-sofficerc" sofficerc
1292 - dodir /etc/env.d
1293 - echo "CONFIG_PROTECT=/usr/$(get_libdir)/${PN}/program/sofficerc" > "${ED}"etc/env.d/99${PN} || die
1294 - fi
1295 -
1296 - # Hack for offlinehelp, this needs fixing upstream at some point.
1297 - # It is broken because we send --without-help
1298 - # https://bugs.freedesktop.org/show_bug.cgi?id=46506
1299 - insinto /usr/$(get_libdir)/libreoffice/help
1300 - doins xmlhelp/util/*.xsl
1301 -
1302 - # Remove desktop files to support old installs that can't parse mime
1303 - rm -r "${ED}"usr/share/mimelnk/ || die
1304 -
1305 - pax-mark -m "${ED}"usr/$(get_libdir)/libreoffice/program/soffice.bin
1306 - pax-mark -m "${ED}"usr/$(get_libdir)/libreoffice/program/unopkg.bin
1307 -}
1308 -
1309 -pkg_preinst() {
1310 - # Cache updates - all handled by kde eclass for all environments
1311 - kde4-base_pkg_preinst
1312 -}
1313 -
1314 -pkg_postinst() {
1315 - kde4-base_pkg_postinst
1316 -}
1317 -
1318 -pkg_postrm() {
1319 - kde4-base_pkg_postrm
1320 -}
1321
1322 diff --git a/app-office/libreoffice/libreoffice-5.2.3.3.ebuild b/app-office/libreoffice/libreoffice-5.2.3.3.ebuild
1323 deleted file mode 100644
1324 index 96fefc7..00000000
1325 --- a/app-office/libreoffice/libreoffice-5.2.3.3.ebuild
1326 +++ /dev/null
1327 @@ -1,567 +0,0 @@
1328 -# Copyright 1999-2016 Gentoo Foundation
1329 -# Distributed under the terms of the GNU General Public License v2
1330 -# $Id$
1331 -
1332 -EAPI=6
1333 -
1334 -KDE_REQUIRED="optional"
1335 -KDE_SCM="git"
1336 -CMAKE_REQUIRED="never"
1337 -
1338 -PYTHON_COMPAT=( python{2_7,3_4,3_5} )
1339 -PYTHON_REQ_USE="threads,xml"
1340 -
1341 -# experimental ; release ; old
1342 -# Usually the tarballs are moved a lot so this should make
1343 -# everyone happy.
1344 -DEV_URI="
1345 - http://dev-builds.libreoffice.org/pre-releases/src
1346 - http://download.documentfoundation.org/libreoffice/src/${PV:0:5}/
1347 - http://download.documentfoundation.org/libreoffice/old/${PV}/
1348 -"
1349 -ADDONS_URI="http://dev-www.libreoffice.org/src/"
1350 -
1351 -BRANDING="${PN}-branding-gentoo-0.8.tar.xz"
1352 -# PATCHSET="${P}-patchset-01.tar.xz"
1353 -
1354 -[[ ${PV} == *9999* ]] && SCM_ECLASS="git-r3"
1355 -inherit multiprocessing autotools bash-completion-r1 check-reqs eutils java-pkg-opt-2 kde4-base pax-utils python-single-r1 multilib toolchain-funcs flag-o-matic versionator xdg-utils qmake-utils ${SCM_ECLASS}
1356 -unset SCM_ECLASS
1357 -
1358 -DESCRIPTION="A full office productivity suite"
1359 -HOMEPAGE="http://www.libreoffice.org"
1360 -SRC_URI="branding? ( http://dev.gentoo.org/~dilfridge/distfiles/${BRANDING} )"
1361 -[[ -n ${PATCHSET} ]] && SRC_URI+=" http://dev.gentooexperimental.org/~scarabeus/${PATCHSET}"
1362 -
1363 -# Split modules following git/tarballs
1364 -# Core MUST be first!
1365 -# Help is used for the image generator
1366 -MODULES="core help"
1367 -# Only release has the tarballs
1368 -if [[ ${PV} != *9999* ]]; then
1369 - for i in ${DEV_URI}; do
1370 - for mod in ${MODULES}; do
1371 - if [[ ${mod} == core ]]; then
1372 - SRC_URI+=" ${i}/${P}.tar.xz"
1373 - else
1374 - SRC_URI+=" ${i}/${PN}-${mod}-${PV}.tar.xz"
1375 - fi
1376 - done
1377 - unset mod
1378 - done
1379 - unset i
1380 -fi
1381 -unset DEV_URI
1382 -
1383 -# Really required addons
1384 -# These are bundles that can't be removed for now due to huge patchsets.
1385 -# If you want them gone, patches are welcome.
1386 -ADDONS_SRC=(
1387 - "${ADDONS_URI}/ce12af00283eb90d9281956524250d6e-xmlsec1-1.2.20.tar.gz" # modifies source code
1388 - "collada? ( ${ADDONS_URI}/4b87018f7fff1d054939d19920b751a0-collada2gltf-master-cb1d97788a.tar.bz2 )"
1389 - "java? ( ${ADDONS_URI}/17410483b5b5f267aa18b7e00b65e6e0-hsqldb_1_8_0.zip )"
1390 - # no release for 8 years, should we package it?
1391 - "libreoffice_extensions_wiki-publisher? ( ${ADDONS_URI}/a7983f859eafb2677d7ff386a023bc40-xsltml_2.1.2.zip )"
1392 - # Does not build with 1.6 rhino at all
1393 - "libreoffice_extensions_scripting-javascript? ( ${ADDONS_URI}/798b2ffdc8bcfe7bca2cf92b62caf685-rhino1_5R5.zip )"
1394 - # requirement of rhino
1395 - "libreoffice_extensions_scripting-javascript? ( ${ADDONS_URI}/35c94d2df8893241173de1d16b6034c0-swingExSrc.zip )"
1396 - # not packageable
1397 - "odk? ( http://download.go-oo.org/extern/185d60944ea767075d27247c3162b3bc-unowinreg.dll )"
1398 -)
1399 -SRC_URI+=" ${ADDONS_SRC[*]}"
1400 -
1401 -unset ADDONS_URI
1402 -unset ADDONS_SRC
1403 -
1404 -# Extensions that need extra work:
1405 -LO_EXTS="nlpsolver scripting-beanshell scripting-javascript wiki-publisher"
1406 -
1407 -IUSE="bluetooth +branding coinmp collada +cups dbus debug eds firebird gltf gnome googledrive
1408 -gstreamer +gtk gtk3 jemalloc kde libressl mysql odk pdfimport postgres quickstarter telepathy test vlc
1409 -$(printf 'libreoffice_extensions_%s ' ${LO_EXTS})"
1410 -
1411 -LICENSE="|| ( LGPL-3 MPL-1.1 )"
1412 -SLOT="0"
1413 -[[ ${PV} == *9999* ]] || \
1414 -KEYWORDS="~amd64 ~arm ~x86 ~amd64-linux ~x86-linux"
1415 -
1416 -COMMON_DEPEND="${PYTHON_DEPS}
1417 - app-arch/unzip
1418 - app-arch/zip
1419 - app-text/hunspell
1420 - >=app-text/libabw-0.1.0
1421 - >=app-text/libebook-0.1
1422 - >=app-text/libetonyek-0.1
1423 - app-text/libexttextcat
1424 - app-text/liblangtag
1425 - >=app-text/libmspub-0.1.0
1426 - >=app-text/libmwaw-0.3.1
1427 - >=app-text/libodfgen-0.1.0
1428 - app-text/libwpd:0.10[tools]
1429 - app-text/libwpg:0.3
1430 - >=app-text/libwps-0.4
1431 - app-text/mythes
1432 - >=dev-cpp/clucene-2.3.3.4-r2
1433 - =dev-cpp/libcmis-0.5*
1434 - dev-db/unixODBC
1435 - dev-lang/perl
1436 - >=dev-libs/boost-1.55:=
1437 - dev-libs/expat
1438 - dev-libs/hyphen
1439 - dev-libs/icu:=
1440 - =dev-libs/liborcus-0.11*
1441 - dev-libs/librevenge
1442 - dev-libs/nspr
1443 - dev-libs/nss
1444 - !libressl? ( >=dev-libs/openssl-1.0.0d:0 )
1445 - libressl? ( dev-libs/libressl )
1446 - >=dev-libs/redland-1.0.16
1447 - media-gfx/graphite2
1448 - media-libs/fontconfig
1449 - media-libs/freetype:2
1450 - >=media-libs/glew-1.10:=
1451 - >=media-libs/harfbuzz-0.9.18:=[icu(+)]
1452 - media-libs/lcms:2
1453 - >=media-libs/libcdr-0.1.0
1454 - >=media-libs/libfreehand-0.1.0
1455 - media-libs/libpagemaker
1456 - >=media-libs/libpng-1.4:0=
1457 - >=media-libs/libvisio-0.1.0
1458 - net-libs/neon
1459 - net-misc/curl
1460 - net-nds/openldap
1461 - sci-mathematics/lpsolve
1462 - virtual/jpeg:0
1463 - x11-libs/cairo[X,-xlib-xcb]
1464 - x11-libs/libXinerama
1465 - x11-libs/libXrandr
1466 - x11-libs/libXrender
1467 - virtual/glu
1468 - virtual/opengl
1469 - bluetooth? ( net-wireless/bluez )
1470 - coinmp? ( sci-libs/coinor-mp )
1471 - collada? ( >=media-libs/opencollada-1.2.2_p20150207 )
1472 - cups? ( net-print/cups )
1473 - dbus? ( dev-libs/dbus-glib )
1474 - eds? (
1475 - dev-libs/glib:2
1476 - gnome-extra/evolution-data-server
1477 - )
1478 - firebird? ( >=dev-db/firebird-2.5 )
1479 - gltf? ( media-libs/libgltf )
1480 - gnome? ( gnome-base/dconf )
1481 - gstreamer? (
1482 - media-libs/gstreamer:1.0
1483 - media-libs/gst-plugins-base:1.0
1484 - )
1485 - gtk? (
1486 - x11-libs/gdk-pixbuf
1487 - >=x11-libs/gtk+-2.24:2
1488 - )
1489 - gtk3? (
1490 - dev-libs/glib:2
1491 - dev-libs/gobject-introspection
1492 - >=x11-libs/gtk+-3.8:3
1493 - )
1494 - jemalloc? ( dev-libs/jemalloc )
1495 - libreoffice_extensions_scripting-beanshell? ( dev-java/bsh )
1496 - libreoffice_extensions_scripting-javascript? ( dev-java/rhino:1.6 )
1497 - mysql? ( dev-db/mysql-connector-c++ )
1498 - pdfimport? ( app-text/poppler:=[cxx] )
1499 - postgres? ( >=dev-db/postgresql-9.0:*[kerberos] )
1500 - telepathy? ( net-libs/telepathy-glib )
1501 -"
1502 -
1503 -RDEPEND="${COMMON_DEPEND}
1504 - !app-office/libreoffice-bin
1505 - !app-office/libreoffice-bin-debug
1506 - !app-office/openoffice
1507 - media-fonts/liberation-fonts
1508 - media-fonts/libertine
1509 - media-fonts/urw-fonts
1510 - java? ( >=virtual/jre-1.6 )
1511 - kde? ( $(add_kdeapps_dep kioclient) )
1512 - vlc? ( media-video/vlc )
1513 -"
1514 -
1515 -if [[ ${PV} != *9999* ]]; then
1516 - PDEPEND="=app-office/libreoffice-l10n-$(get_version_component_range 1-2)*"
1517 -else
1518 - # Translations are not reliable on live ebuilds
1519 - # rather force people to use english only.
1520 - PDEPEND="!app-office/libreoffice-l10n"
1521 -fi
1522 -
1523 -# FIXME: cppunit should be moved to test conditional
1524 -# after everything upstream is under gbuild
1525 -# as dmake execute tests right away
1526 -DEPEND="${COMMON_DEPEND}
1527 - !<sys-devel/make-3.82
1528 - >=dev-libs/libatomic_ops-7.2d
1529 - >=dev-libs/libxml2-2.7.8
1530 - dev-libs/libxslt
1531 - dev-perl/Archive-Zip
1532 - dev-util/cppunit
1533 - >=dev-util/gperf-3
1534 - dev-util/intltool
1535 - >=dev-util/mdds-1.2.0:1=
1536 - media-libs/glm
1537 - sys-devel/bison
1538 - sys-devel/flex
1539 - sys-devel/gettext
1540 - sys-devel/ucpp
1541 - sys-libs/zlib
1542 - virtual/pkgconfig
1543 - x11-libs/libXt
1544 - x11-libs/libXtst
1545 - x11-proto/randrproto
1546 - x11-proto/xextproto
1547 - x11-proto/xineramaproto
1548 - x11-proto/xproto
1549 - java? (
1550 - dev-java/ant-core
1551 - >=virtual/jdk-1.6
1552 - )
1553 - odk? ( >=app-doc/doxygen-1.8.4 )
1554 - test? ( dev-util/cppunit )
1555 -"
1556 -
1557 -REQUIRED_USE="${PYTHON_REQUIRED_USE}
1558 - bluetooth? ( dbus )
1559 - collada? ( gltf )
1560 - eds? ( gnome )
1561 - gnome? ( gtk )
1562 - telepathy? ( gtk )
1563 - libreoffice_extensions_nlpsolver? ( java )
1564 - libreoffice_extensions_scripting-beanshell? ( java )
1565 - libreoffice_extensions_scripting-javascript? ( java )
1566 - libreoffice_extensions_wiki-publisher? ( java )
1567 -"
1568 -
1569 -PATCHES=(
1570 - # from master branch
1571 - "${FILESDIR}/${PN}-5.2-icu58.patch"
1572 -
1573 - # not upstreamable stuff
1574 - "${FILESDIR}/${PN}-5.2-system-pyuno.patch"
1575 -)
1576 -
1577 -CHECKREQS_MEMORY="512M"
1578 -
1579 -if [[ ${MERGE_TYPE} != binary ]] && is-flagq "-g*" && ! is-flagq "-g*0" ; then
1580 - CHECKREQS_DISK_BUILD="22G"
1581 -elif [[ ${MERGE_TYPE} != binary ]] ; then
1582 - CHECKREQS_DISK_BUILD="6G"
1583 -fi
1584 -
1585 -pkg_pretend() {
1586 - use java || \
1587 - ewarn "If you plan to use lbase application you should enable java or you will get various crashes."
1588 -
1589 - if [[ ${MERGE_TYPE} != binary ]]; then
1590 - check-reqs_pkg_pretend
1591 -
1592 - if ! $(tc-is-clang) && [[ $(gcc-major-version) -lt 4 ]] || {
1593 - [[ $(gcc-major-version) -eq 4 && $(gcc-minor-version) -lt 7 ]]; } then
1594 - eerror "Compilation with gcc older than 4.7 is not supported"
1595 - die "Too old gcc found."
1596 - fi
1597 - fi
1598 -
1599 - # Ensure pg version but we have to be sure the pg is installed (first
1600 - # install on clean system)
1601 - if use postgres && has_version dev-db/postgresql; then
1602 - local pgslot=$(postgresql-config show)
1603 - if [[ ${pgslot//.} -lt 90 ]] ; then
1604 - eerror "PostgreSQL slot must be set to 9.0 or higher."
1605 - eerror " postgresql-config set 9.0"
1606 - die "PostgreSQL slot is not set to 9.0 or higher."
1607 - fi
1608 - fi
1609 -}
1610 -
1611 -pkg_setup() {
1612 - java-pkg-opt-2_pkg_setup
1613 - kde4-base_pkg_setup
1614 - python-single-r1_pkg_setup
1615 - xdg_environment_reset
1616 -
1617 - [[ ${MERGE_TYPE} != binary ]] && check-reqs_pkg_setup
1618 -}
1619 -
1620 -src_unpack() {
1621 - local mod
1622 -
1623 - [[ -n ${PATCHSET} ]] && unpack ${PATCHSET}
1624 - use branding && unpack "${BRANDING}"
1625 -
1626 - if [[ ${PV} != *9999* ]]; then
1627 - unpack "${P}.tar.xz"
1628 - for mod in ${MODULES}; do
1629 - [[ ${mod} == core ]] && continue
1630 - unpack "${PN}-${mod}-${PV}.tar.xz"
1631 - done
1632 - else
1633 - local base_uri branch checkout mypv
1634 - base_uri="git://anongit.freedesktop.org"
1635 - for mod in ${MODULES}; do
1636 - branch="master"
1637 - mypv=${PV/.9999}
1638 - [[ ${mypv} != ${PV} ]] && branch="${PN}-${mypv/./-}"
1639 - git-r3_fetch "${base_uri}/${PN}/${mod}" "refs/heads/${branch}"
1640 - [[ ${mod} != core ]] && checkout="${S}/${mod}"
1641 - [[ ${mod} == help ]] && checkout="helpcontent2" # doesn't match on help
1642 - git-r3_checkout "${base_uri}/${PN}/${mod}" ${checkout}
1643 - done
1644 - fi
1645 -}
1646 -
1647 -src_prepare() {
1648 - [[ -n ${PATCHSET} ]] && eapply "${WORKDIR}/${PATCHSET/.tar.xz/}"
1649 - eapply "${PATCHES[@]}"
1650 - eapply_user
1651 -
1652 - AT_M4DIR="m4" eautoreconf
1653 - # hack in the autogen.sh
1654 - touch autogen.lastrun
1655 -
1656 - # system pyuno mess
1657 - sed -i \
1658 - -e "s:%eprefix%:${EPREFIX}:g" \
1659 - -e "s:%libdir%:$(get_libdir):g" \
1660 - pyuno/source/module/uno.py \
1661 - pyuno/source/officehelper.py || die
1662 - # sed in the tests
1663 - sed -i \
1664 - -e "s#all : build unitcheck#all : build#g" \
1665 - solenv/gbuild/Module.mk || die
1666 - sed -i \
1667 - -e "s#check: dev-install subsequentcheck#check: unitcheck slowcheck dev-install subsequentcheck#g" \
1668 - -e "s#Makefile.gbuild all slowcheck#Makefile.gbuild all#g" \
1669 - Makefile.in || die
1670 -
1671 - if use branding; then
1672 - # hack...
1673 - mv -v "${WORKDIR}/branding-intro.png" "${S}/icon-themes/galaxy/brand/intro.png" || die
1674 - fi
1675 -}
1676 -
1677 -src_configure() {
1678 - local java_opts
1679 - local ext_opts
1680 -
1681 - # Set up Google API keys, see http://www.chromium.org/developers/how-tos/api-keys
1682 - # Note: these are for Gentoo use ONLY. For your own distribution, please get
1683 - # your own set of keys. Feel free to contact chromium@g.o for more info.
1684 - local google_default_client_id="329227923882.apps.googleusercontent.com"
1685 - local google_default_client_secret="vgKG0NNv7GoDpbtoFNLxCUXu"
1686 -
1687 - # optimization flags
1688 - export GMAKE_OPTIONS="${MAKEOPTS}"
1689 - # System python enablement:
1690 - export PYTHON_CFLAGS=$(python_get_CFLAGS)
1691 - export PYTHON_LIBS=$(python_get_LIBS)
1692 -
1693 - if use collada; then
1694 - export OPENCOLLADA_CFLAGS="-I/usr/include/opencollada/COLLADABaseUtils -I/usr/include/opencollada/COLLADAFramework -I/usr/include/opencollada/COLLADASaxFrameworkLoader -I/usr/include/opencollada/GeneratedSaxParser"
1695 - export OPENCOLLADA_LIBS="-L /usr/$(get_libdir)/opencollada -lOpenCOLLADABaseUtils -lOpenCOLLADAFramework -lOpenCOLLADASaxFrameworkLoader -lGeneratedSaxParser"
1696 - fi
1697 -
1698 - # libreoffice extensions handling
1699 - for lo_xt in ${LO_EXTS}; do
1700 - if [[ "${lo_xt}" == "scripting-beanshell" || "${lo_xt}" == "scripting-javascript" ]]; then
1701 - ext_opts+=" $(use_enable libreoffice_extensions_${lo_xt} ${lo_xt})"
1702 - else
1703 - ext_opts+=" $(use_enable libreoffice_extensions_${lo_xt} ext-${lo_xt})"
1704 - fi
1705 - done
1706 -
1707 - if use java; then
1708 - # hsqldb: system one is too new
1709 - java_opts="
1710 - --without-junit
1711 - --without-system-hsqldb
1712 - --with-ant-home="${ANT_HOME}"
1713 - --with-jdk-home=$(java-config --jdk-home 2>/dev/null)
1714 - --with-jvm-path="${EPREFIX}/usr/lib/"
1715 - "
1716 -
1717 - use libreoffice_extensions_scripting-beanshell && \
1718 - java_opts+=" --with-beanshell-jar=$(java-pkg_getjar bsh bsh.jar)"
1719 -
1720 - use libreoffice_extensions_scripting-javascript && \
1721 - java_opts+=" --with-rhino-jar=$(java-pkg_getjar rhino-1.6 js.jar)"
1722 - fi
1723 -
1724 - if use kde; then
1725 - # bug 544108, bug 599076
1726 - export QMAKEQT4="$(qt4_get_bindir)/qmake"
1727 - export MOCQT4="$(qt4_get_bindir)/moc"
1728 - fi
1729 -
1730 - # system headers/libs/...: enforce using system packages
1731 - # --enable-cairo: ensure that cairo is always required
1732 - # --enable-graphite: disabling causes build breakages
1733 - # --enable-*-link: link to the library rather than just dlopen on runtime
1734 - # --enable-release-build: build the libreoffice as release
1735 - # --disable-fetch-external: prevent dowloading during compile phase
1736 - # --enable-extension-integration: enable any extension integration support
1737 - # --without-{fonts,myspell-dicts,ppsd}: prevent install of sys pkgs
1738 - # --disable-report-builder: too much java packages pulled in without pkgs
1739 - # --without-system-sane: just sane.h header that is used for scan in writer,
1740 - # not linked or anything else, worthless to depend on
1741 - econf \
1742 - --docdir="${EPREFIX}/usr/share/doc/${PF}/" \
1743 - --with-system-dicts \
1744 - --with-system-headers \
1745 - --with-system-jars \
1746 - --with-system-libs \
1747 - --enable-cairo-canvas \
1748 - --enable-graphite \
1749 - --enable-largefile \
1750 - --enable-mergelibs \
1751 - --enable-neon \
1752 - --enable-python=system \
1753 - --enable-randr \
1754 - --enable-release-build \
1755 - --disable-ccache \
1756 - --disable-crashdump \
1757 - --disable-dependency-tracking \
1758 - --disable-epm \
1759 - --disable-fetch-external \
1760 - --disable-gstreamer-0-10 \
1761 - --disable-hardlink-deliver \
1762 - --disable-online-update \
1763 - --disable-report-builder \
1764 - --with-alloc=$(use jemalloc && echo "jemalloc" || echo "system") \
1765 - --with-build-version="Gentoo official package" \
1766 - --enable-extension-integration \
1767 - --with-external-dict-dir="${EPREFIX}/usr/share/myspell" \
1768 - --with-external-hyph-dir="${EPREFIX}/usr/share/myspell" \
1769 - --with-external-thes-dir="${EPREFIX}/usr/share/myspell" \
1770 - --with-external-tar="${DISTDIR}" \
1771 - --with-lang="" \
1772 - --with-parallelism=$(makeopts_jobs) \
1773 - --with-system-ucpp \
1774 - --with-vendor="Gentoo Foundation" \
1775 - --with-x \
1776 - --without-fonts \
1777 - --without-myspell-dicts \
1778 - --without-help \
1779 - --with-helppack-integration \
1780 - --without-sun-templates \
1781 - --without-system-sane \
1782 - $(use_enable bluetooth sdremote-bluetooth) \
1783 - $(use_enable coinmp) \
1784 - $(use_enable collada) \
1785 - $(use_enable cups) \
1786 - $(use_enable debug) \
1787 - $(use_enable dbus) \
1788 - $(use_enable eds evolution2) \
1789 - $(use_enable firebird firebird-sdbc) \
1790 - $(use_enable gltf) \
1791 - $(use_enable gnome gio) \
1792 - $(use_enable gnome dconf) \
1793 - $(use_enable gstreamer gstreamer-1-0) \
1794 - $(use_enable gtk) \
1795 - $(use_enable gtk3) \
1796 - $(use_enable kde kde4) \
1797 - $(use_enable mysql ext-mariadb-connector) \
1798 - $(use_enable odk) \
1799 - $(use_enable pdfimport) \
1800 - $(use_enable postgres postgresql-sdbc) \
1801 - $(use_enable quickstarter systray) \
1802 - $(use_enable telepathy) \
1803 - $(use_enable vlc) \
1804 - $(use_with coinmp system-coinmp) \
1805 - $(use_with collada system-opencollada) \
1806 - $(use_with gltf system-libgltf) \
1807 - $(use_with googledrive gdrive-client-id ${google_default_client_id}) \
1808 - $(use_with googledrive gdrive-client-secret ${google_default_client_secret}) \
1809 - $(use_with java) \
1810 - $(use_with mysql system-mysql-cppconn) \
1811 - $(use_with odk doxygen) \
1812 - ${java_opts} \
1813 - ${ext_opts}
1814 -}
1815 -
1816 -src_compile() {
1817 - # more and more LO stuff tries to use OpenGL, including tests during build
1818 - # bug 501508, bug 540624, bug 545974 and probably more
1819 - addpredict /dev/dri
1820 - addpredict /dev/ati
1821 - addpredict /dev/nvidiactl
1822 -
1823 - # hack for offlinehelp, this needs fixing upstream at some point
1824 - # it is broken because we send --without-help
1825 - # https://bugs.freedesktop.org/show_bug.cgi?id=46506
1826 - (
1827 - grep "^export" "${S}/config_host.mk" > "${T}/config_host.mk" || die
1828 - source "${T}/config_host.mk" 2&> /dev/null
1829 -
1830 - local path="${WORKDIR}/helpcontent2/source/auxiliary/"
1831 - mkdir -p "${path}" || die
1832 -
1833 - echo "perl \"${S}/helpcontent2/helpers/create_ilst.pl\" -dir=icon-themes/galaxy/res/helpimg > \"${path}/helpimg.ilst\""
1834 - perl "${S}/helpcontent2/helpers/create_ilst.pl" \
1835 - -dir=icon-themes/galaxy/res/helpimg \
1836 - > "${path}/helpimg.ilst"
1837 - [[ -s "${path}/helpimg.ilst" ]] || \
1838 - ewarn "The help images list is empty, something is fishy, report a bug."
1839 - )
1840 -
1841 - local target
1842 - use test && target="build" || target="build-nocheck"
1843 -
1844 - # this is not a proper make script
1845 - make ${target} || die
1846 -}
1847 -
1848 -src_test() {
1849 - make unitcheck || die
1850 - make slowcheck || die
1851 -}
1852 -
1853 -src_install() {
1854 - # This is not Makefile so no buildserver
1855 - make DESTDIR="${D}" distro-pack-install -o build -o check || die
1856 -
1857 - # Fix bash completion placement
1858 - newbashcomp "${ED}"usr/share/bash-completion/completions/libreoffice.sh ${PN}
1859 - bashcomp_alias \
1860 - libreoffice \
1861 - unopkg loimpress lobase localc lodraw lomath lowriter lofromtemplate loweb loffice
1862 -
1863 - if use branding; then
1864 - insinto /usr/$(get_libdir)/${PN}/program
1865 - newins "${WORKDIR}/branding-sofficerc" sofficerc
1866 - dodir /etc/env.d
1867 - echo "CONFIG_PROTECT=/usr/$(get_libdir)/${PN}/program/sofficerc" > "${ED}"etc/env.d/99${PN} || die
1868 - fi
1869 -
1870 - # Hack for offlinehelp, this needs fixing upstream at some point.
1871 - # It is broken because we send --without-help
1872 - # https://bugs.freedesktop.org/show_bug.cgi?id=46506
1873 - insinto /usr/$(get_libdir)/libreoffice/help
1874 - doins xmlhelp/util/*.xsl
1875 -
1876 - # Remove desktop files to support old installs that can't parse mime
1877 - rm -r "${ED}"usr/share/mimelnk/ || die
1878 -
1879 - pax-mark -m "${ED}"usr/$(get_libdir)/libreoffice/program/soffice.bin
1880 - pax-mark -m "${ED}"usr/$(get_libdir)/libreoffice/program/unopkg.bin
1881 -}
1882 -
1883 -pkg_preinst() {
1884 - # Cache updates - all handled by kde eclass for all environments
1885 - kde4-base_pkg_preinst
1886 -}
1887 -
1888 -pkg_postinst() {
1889 - kde4-base_pkg_postinst
1890 -}
1891 -
1892 -pkg_postrm() {
1893 - kde4-base_pkg_postrm
1894 -}