1 |
commit: 597e61658604f7c3f3f74eb03d38d5a54d4e4fff |
2 |
Author: Andreas Sturmlechner <asturm <AT> gentoo <DOT> org> |
3 |
AuthorDate: Sat Nov 2 14:05:32 2019 +0000 |
4 |
Commit: Andreas Sturmlechner <asturm <AT> gentoo <DOT> org> |
5 |
CommitDate: Sat Nov 2 15:22:32 2019 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=597e6165 |
7 |
|
8 |
app-office/libreoffice: Security cleanup |
9 |
|
10 |
Bug: https://bugs.gentoo.org/695536 |
11 |
Package-Manager: Portage-2.3.78, Repoman-2.3.17 |
12 |
Signed-off-by: Andreas Sturmlechner <asturm <AT> gentoo.org> |
13 |
|
14 |
app-office/libreoffice/Manifest | 2 - |
15 |
app-office/libreoffice/libreoffice-6.2.5.2.ebuild | 553 ---------------------- |
16 |
app-office/libreoffice/metadata.xml | 1 - |
17 |
3 files changed, 556 deletions(-) |
18 |
|
19 |
diff --git a/app-office/libreoffice/Manifest b/app-office/libreoffice/Manifest |
20 |
index 58a9bd64826..50f980722c3 100644 |
21 |
--- a/app-office/libreoffice/Manifest |
22 |
+++ b/app-office/libreoffice/Manifest |
23 |
@@ -3,10 +3,8 @@ DIST 185d60944ea767075d27247c3162b3bc-unowinreg.dll 12288 BLAKE2B c067f60d0ee325 |
24 |
DIST 35c94d2df8893241173de1d16b6034c0-swingExSrc.zip 9796 BLAKE2B a30b0225313b23092bc57ccd989f26ea04a323dcb17a0ea8baaa6a21b5d5e2b6e29fcae9d18ecd043073030e104ad56c86a115760590f57eda86c22c9fe478b0 SHA512 4a48f1e32907fb2dee601cda3cd7a0d7198b2d51f2a572b647f1e93f901fd511eef3567676e52dfb1723a2cdfbc01f2015ca0bb22903b0bc1476dd618cc9aa8a |
25 |
DIST 798b2ffdc8bcfe7bca2cf92b62caf685-rhino1_5R5.zip 1521926 BLAKE2B d2769842c180997055648a8b1a33cc89988b74628bad8aa012242e0c1afa5b5b8568323c107187072207ee69bd841ba4ca3bbfe27ef65223ddc729d1a1aa6590 SHA512 ec5ae23c8fe2f5efc377f7a9665039afadf28b4d8f2791379296766a5fbc9a3bf7548f9b0e3b3b07762229ec733a92ccbb69791ee0318c9c6f78f8e847253d3f |
26 |
DIST a7983f859eafb2677d7ff386a023bc40-xsltml_2.1.2.zip 23150 BLAKE2B 51db6bd90585b13857ecb494c805c9fb6874e1e65d7aee73d23e1716670836a14b376bcca810f96fd55b0ed653b2660a268030f246c822cbb04f867ef763a3b3 SHA512 2d3835f7ac356805025cafedcad97faa48d0f5da386e6ac7b7451030059df8e2fdb0861ade07a576ebf9fb5b88a973585ab0437944b06aac9289d6898ba8586a |
27 |
-DIST libreoffice-6.2.5.2.tar.xz 215008848 BLAKE2B 5dd1ef185820944816e01c8ed6a7873a5a8fe6f7f4b41fad279729970d85ff868f51ed573e8b3d0a554ffd1f8e295b6ff2e493e7f7250f8cb1c7c2a40115abf4 SHA512 b46b6731c415ab354ad7d876cb8905cb9eae2ca71639abf049ea7f5930601c957cc0eb04a2cd06949073ba5e94778ecdb449692ed8bbfbd95b05f6e7980d8d10 |
28 |
DIST libreoffice-6.2.8.2.tar.xz 215070800 BLAKE2B d6bc1e94de1df4dd20dafaeac9702435f305fe15117e8aee02233c6d2e74423bb475aeaf79ff6dcd30e22d69a5d6f0648218819b08003524a2c7b1db340281c4 SHA512 cf1dd708f10ea4b9a3134851cad45fe91c1d535e2b2068f7e65f1cb1bf4076c5c41ec253f628c5b912590e91ccfe16f5c8bcf39bc92df2ec7c8aef84210349bd |
29 |
DIST libreoffice-6.3.3.2.tar.xz 224944844 BLAKE2B 16d58d1b34f6a7da5a9cb32dade8f15ce074f516b77d6481f1befec75572f2533f3ae19964ce2688ff121789241a11823f05768b3386bc755f015a243af6c55a SHA512 4809ce26c48419e1e8408bdd71e7aeec3940bad150afeb90034013fbe8757c37417da3a996f8935aac3103806e14bd47dee7e560051d6718a75e6b869a2b1934 |
30 |
DIST libreoffice-branding-gentoo-0.8.tar.xz 151568 BLAKE2B f03c7ddeb53c5ca3fd23401679601fcf2c4037ba17be4eb7b784c7ce7ebb71a24b8ab4aac8b7da8c6b1f14dd23bc1294ba85ff4f70ad271fb4ee3c5372e10883 SHA512 785031a699b1d1895ce4b50ffc3ddf645f3a0ef9acdf37facfd18cf75db9484cb8f53a50abb63d6006ead76a80b6ff5aa99661063245ebb84bd64013d713de7f |
31 |
-DIST libreoffice-help-6.2.5.2.tar.xz 13023680 BLAKE2B f1f3a03104c1270e59f2b9130a29e1fbc99a9bf76b2bf4cedef8dc61487c9a2036f143501ad7fcd0c056c8b72446305b7a4ca9a719b11200ade5feca35e5e7ea SHA512 14f964161bd827a5846ec667ae1dac80d1485450e172da44010103e31f3872df62595e8b1b1d45c720caac9256d2adaf8f5a0bb80d059d35f1c560b533eb764c |
32 |
DIST libreoffice-help-6.2.8.2.tar.xz 13024032 BLAKE2B 524ba3ff77670afeddddbf8be4724b5e54f9b157582cfcac8640e2184b8ae24c8e5e01b924415949f1756c18e2d54b8eab7efb78c979321e50b6d52b741ddd49 SHA512 c1f5b1b3c50da0a47a9724c9fc3544a15b7df72e66c5c2008afeae7732e2b29f0e57e64ce9a216c3237acdb4345715525f32be290f3196ba6e28685fa6c0925c |
33 |
DIST libreoffice-help-6.3.3.2.tar.xz 13192080 BLAKE2B 108f33d77ec24ac5f5b669aae72dc23f0ae1800038d9028a3c92b6dfbe09003cb6d9f89a6675162c8cb058ac850a0e7c5544f8692c527cfa83bd32ba28149a50 SHA512 c4d994c4047aeee5e35207228e2b62ccc7d7303ae8fcbfb52cbf73950f232ad8d45953ee364379d3834e79c59ab79df920ec624ebe4b7214f955c2bd89af7cee |
34 |
|
35 |
diff --git a/app-office/libreoffice/libreoffice-6.2.5.2.ebuild b/app-office/libreoffice/libreoffice-6.2.5.2.ebuild |
36 |
deleted file mode 100644 |
37 |
index c66bae1fdfd..00000000000 |
38 |
--- a/app-office/libreoffice/libreoffice-6.2.5.2.ebuild |
39 |
+++ /dev/null |
40 |
@@ -1,553 +0,0 @@ |
41 |
-# Copyright 1999-2019 Gentoo Authors |
42 |
-# Distributed under the terms of the GNU General Public License v2 |
43 |
- |
44 |
-EAPI=7 |
45 |
- |
46 |
-PYTHON_COMPAT=( python2_7 python3_{5,6,7} ) |
47 |
-PYTHON_REQ_USE="threads(+),xml" |
48 |
- |
49 |
-MY_PV="${PV/_alpha/.alpha}" |
50 |
-MY_PV="${MY_PV/_beta/.beta}" |
51 |
-# experimental ; release ; old |
52 |
-# Usually the tarballs are moved a lot so this should make everyone happy. |
53 |
-DEV_URI=" |
54 |
- https://dev-builds.libreoffice.org/pre-releases/src |
55 |
- https://download.documentfoundation.org/libreoffice/src/${MY_PV:0:5}/ |
56 |
- https://downloadarchive.documentfoundation.org/libreoffice/old/${MY_PV}/src |
57 |
-" |
58 |
-ADDONS_URI="https://dev-www.libreoffice.org/src/" |
59 |
- |
60 |
-BRANDING="${PN}-branding-gentoo-0.8.tar.xz" |
61 |
-# PATCHSET="${P}-patchset-01.tar.xz" |
62 |
- |
63 |
-[[ ${MY_PV} == *9999* ]] && inherit git-r3 |
64 |
-inherit autotools bash-completion-r1 check-reqs flag-o-matic java-pkg-opt-2 multiprocessing python-single-r1 qmake-utils toolchain-funcs xdg-utils |
65 |
- |
66 |
-DESCRIPTION="A full office productivity suite" |
67 |
-HOMEPAGE="https://www.libreoffice.org" |
68 |
-SRC_URI="branding? ( https://dev.gentoo.org/~dilfridge/distfiles/${BRANDING} )" |
69 |
-[[ -n ${PATCHSET} ]] && SRC_URI+=" https://dev.gentoo.org/~asturm/distfiles/${PATCHSET}" |
70 |
- |
71 |
-# Split modules following git/tarballs; Core MUST be first! |
72 |
-# Help is used for the image generator |
73 |
-# Only release has the tarballs |
74 |
-if [[ ${MY_PV} != *9999* ]]; then |
75 |
- for i in ${DEV_URI}; do |
76 |
- SRC_URI+=" ${i}/${PN}-${MY_PV}.tar.xz" |
77 |
- SRC_URI+=" ${i}/${PN}-help-${MY_PV}.tar.xz" |
78 |
- done |
79 |
- unset i |
80 |
-fi |
81 |
-unset DEV_URI |
82 |
- |
83 |
-# Really required addons |
84 |
-# These are bundles that can't be removed for now due to huge patchsets. |
85 |
-# If you want them gone, patches are welcome. |
86 |
-ADDONS_SRC=( |
87 |
- "java? ( ${ADDONS_URI}/17410483b5b5f267aa18b7e00b65e6e0-hsqldb_1_8_0.zip )" |
88 |
- # no release for 8 years, should we package it? |
89 |
- "libreoffice_extensions_wiki-publisher? ( ${ADDONS_URI}/a7983f859eafb2677d7ff386a023bc40-xsltml_2.1.2.zip )" |
90 |
- # Does not build with 1.6 rhino at all |
91 |
- "libreoffice_extensions_scripting-javascript? ( ${ADDONS_URI}/798b2ffdc8bcfe7bca2cf92b62caf685-rhino1_5R5.zip )" |
92 |
- # requirement of rhino |
93 |
- "libreoffice_extensions_scripting-javascript? ( ${ADDONS_URI}/35c94d2df8893241173de1d16b6034c0-swingExSrc.zip )" |
94 |
- # not packageable |
95 |
- "odk? ( http://download.go-oo.org/extern/185d60944ea767075d27247c3162b3bc-unowinreg.dll )" |
96 |
-) |
97 |
-SRC_URI+=" ${ADDONS_SRC[*]}" |
98 |
- |
99 |
-unset ADDONS_URI |
100 |
-unset ADDONS_SRC |
101 |
- |
102 |
-# Extensions that need extra work: |
103 |
-LO_EXTS="nlpsolver scripting-beanshell scripting-javascript wiki-publisher" |
104 |
- |
105 |
-IUSE="accessibility bluetooth +branding coinmp +cups dbus debug eds firebird |
106 |
-googledrive gstreamer +gtk gtk2 kde ldap +mariadb odk pdfimport postgres test vlc |
107 |
-$(printf 'libreoffice_extensions_%s ' ${LO_EXTS})" |
108 |
- |
109 |
-REQUIRED_USE="${PYTHON_REQUIRED_USE} |
110 |
- bluetooth? ( dbus ) |
111 |
- libreoffice_extensions_nlpsolver? ( java ) |
112 |
- libreoffice_extensions_scripting-beanshell? ( java ) |
113 |
- libreoffice_extensions_scripting-javascript? ( java ) |
114 |
- libreoffice_extensions_wiki-publisher? ( java ) |
115 |
-" |
116 |
- |
117 |
-LICENSE="|| ( LGPL-3 MPL-1.1 )" |
118 |
-SLOT="0" |
119 |
-[[ ${MY_PV} == *9999* ]] || \ |
120 |
-KEYWORDS="amd64 ~arm ~arm64 ~ppc64 x86 ~amd64-linux ~x86-linux" |
121 |
- |
122 |
-BDEPEND=" |
123 |
- dev-util/intltool |
124 |
- sys-devel/bison |
125 |
- sys-devel/flex |
126 |
- sys-devel/gettext |
127 |
- virtual/pkgconfig |
128 |
- odk? ( >=app-doc/doxygen-1.8.4 ) |
129 |
-" |
130 |
-COMMON_DEPEND="${PYTHON_DEPS} |
131 |
- app-arch/unzip |
132 |
- app-arch/zip |
133 |
- app-crypt/gpgme[cxx] |
134 |
- app-text/hunspell:= |
135 |
- >=app-text/libabw-0.1.0 |
136 |
- >=app-text/libebook-0.1 |
137 |
- app-text/libepubgen |
138 |
- >=app-text/libetonyek-0.1 |
139 |
- app-text/libexttextcat |
140 |
- app-text/liblangtag |
141 |
- >=app-text/libmspub-0.1.0 |
142 |
- >=app-text/libmwaw-0.3.1 |
143 |
- app-text/libnumbertext |
144 |
- >=app-text/libodfgen-0.1.0 |
145 |
- app-text/libqxp |
146 |
- app-text/libstaroffice |
147 |
- app-text/libwpd:0.10[tools] |
148 |
- app-text/libwpg:0.3 |
149 |
- >=app-text/libwps-0.4 |
150 |
- app-text/mythes |
151 |
- >=dev-cpp/clucene-2.3.3.4-r2 |
152 |
- =dev-cpp/libcmis-0.5* |
153 |
- dev-db/unixODBC |
154 |
- dev-lang/perl |
155 |
- dev-libs/boost:=[nls] |
156 |
- dev-libs/expat |
157 |
- dev-libs/hyphen |
158 |
- dev-libs/icu:= |
159 |
- dev-libs/libassuan |
160 |
- dev-libs/libgpg-error |
161 |
- >=dev-libs/liborcus-0.14.0 |
162 |
- dev-libs/librevenge |
163 |
- dev-libs/libxml2 |
164 |
- dev-libs/libxslt |
165 |
- dev-libs/nspr |
166 |
- dev-libs/nss |
167 |
- >=dev-libs/redland-1.0.16 |
168 |
- >=dev-libs/xmlsec-1.2.24[nss] |
169 |
- media-gfx/fontforge |
170 |
- media-gfx/graphite2 |
171 |
- media-libs/fontconfig |
172 |
- media-libs/freetype:2 |
173 |
- >=media-libs/harfbuzz-0.9.42:=[graphite,icu] |
174 |
- media-libs/lcms:2 |
175 |
- >=media-libs/libcdr-0.1.0 |
176 |
- >=media-libs/libepoxy-1.3.1[X] |
177 |
- >=media-libs/libfreehand-0.1.0 |
178 |
- media-libs/libpagemaker |
179 |
- >=media-libs/libpng-1.4:0= |
180 |
- >=media-libs/libvisio-0.1.0 |
181 |
- media-libs/libzmf |
182 |
- net-libs/neon |
183 |
- net-misc/curl |
184 |
- sci-mathematics/lpsolve |
185 |
- sys-libs/zlib |
186 |
- virtual/glu |
187 |
- virtual/jpeg:0 |
188 |
- virtual/opengl |
189 |
- x11-libs/cairo[X] |
190 |
- x11-libs/libXinerama |
191 |
- x11-libs/libXrandr |
192 |
- x11-libs/libXrender |
193 |
- accessibility? ( dev-python/lxml[${PYTHON_USEDEP}] ) |
194 |
- bluetooth? ( |
195 |
- dev-libs/glib:2 |
196 |
- net-wireless/bluez |
197 |
- ) |
198 |
- coinmp? ( sci-libs/coinor-mp ) |
199 |
- cups? ( net-print/cups ) |
200 |
- dbus? ( sys-apps/dbus ) |
201 |
- eds? ( |
202 |
- dev-libs/glib:2 |
203 |
- gnome-base/dconf |
204 |
- gnome-extra/evolution-data-server |
205 |
- ) |
206 |
- firebird? ( >=dev-db/firebird-3.0.2.32703.0-r1[server] ) |
207 |
- gstreamer? ( |
208 |
- media-libs/gstreamer:1.0 |
209 |
- media-libs/gst-plugins-base:1.0 |
210 |
- ) |
211 |
- gtk? ( |
212 |
- dev-libs/glib:2 |
213 |
- dev-libs/gobject-introspection |
214 |
- gnome-base/dconf |
215 |
- media-libs/mesa[egl] |
216 |
- x11-libs/gtk+:3 |
217 |
- x11-libs/pango |
218 |
- ) |
219 |
- gtk2? ( |
220 |
- x11-libs/gdk-pixbuf |
221 |
- >=x11-libs/gtk+-2.24:2 |
222 |
- x11-libs/pango |
223 |
- ) |
224 |
- kde? ( |
225 |
- dev-qt/qtcore:5 |
226 |
- dev-qt/qtgui:5 |
227 |
- dev-qt/qtx11extras:5 |
228 |
- dev-qt/qtwidgets:5 |
229 |
- kde-frameworks/kconfig:5 |
230 |
- kde-frameworks/kcoreaddons:5 |
231 |
- kde-frameworks/ki18n:5 |
232 |
- kde-frameworks/kio:5 |
233 |
- kde-frameworks/kwindowsystem:5 |
234 |
- ) |
235 |
- ldap? ( net-nds/openldap ) |
236 |
- libreoffice_extensions_scripting-beanshell? ( dev-java/bsh ) |
237 |
- libreoffice_extensions_scripting-javascript? ( dev-java/rhino:1.6 ) |
238 |
- mariadb? ( dev-db/mariadb-connector-c ) |
239 |
- !mariadb? ( dev-db/mysql-connector-c ) |
240 |
- pdfimport? ( app-text/poppler:=[cxx] ) |
241 |
- postgres? ( >=dev-db/postgresql-9.0:*[kerberos] ) |
242 |
-" |
243 |
-# FIXME: cppunit should be moved to test conditional |
244 |
-# after everything upstream is under gbuild |
245 |
-# as dmake execute tests right away |
246 |
-# tests apparently also need google-carlito-fonts (not packaged) |
247 |
-DEPEND="${COMMON_DEPEND} |
248 |
- >=dev-libs/libatomic_ops-7.2d |
249 |
- dev-perl/Archive-Zip |
250 |
- >=dev-util/cppunit-1.14.0 |
251 |
- >=dev-util/gperf-3 |
252 |
- >=dev-util/mdds-1.4.1:1= |
253 |
- media-libs/glm |
254 |
- sys-devel/ucpp |
255 |
- x11-base/xorg-proto |
256 |
- x11-libs/libXt |
257 |
- x11-libs/libXtst |
258 |
- java? ( |
259 |
- dev-java/ant-core |
260 |
- >=virtual/jdk-1.6 |
261 |
- ) |
262 |
- test? ( |
263 |
- app-crypt/gnupg |
264 |
- dev-util/cppunit |
265 |
- media-fonts/dejavu |
266 |
- media-fonts/liberation-fonts |
267 |
- ) |
268 |
-" |
269 |
-RDEPEND="${COMMON_DEPEND} |
270 |
- !app-office/libreoffice-bin |
271 |
- !app-office/libreoffice-bin-debug |
272 |
- !app-office/openoffice |
273 |
- media-fonts/liberation-fonts |
274 |
- || ( x11-misc/xdg-utils kde-plasma/kde-cli-tools ) |
275 |
- java? ( >=virtual/jre-1.6 ) |
276 |
- kde? ( kde-frameworks/breeze-icons:* ) |
277 |
- vlc? ( media-video/vlc ) |
278 |
-" |
279 |
-if [[ ${MY_PV} != *9999* ]] && [[ ${PV} != *_* ]]; then |
280 |
- PDEPEND="=app-office/libreoffice-l10n-$(ver_cut 1-2)*" |
281 |
-else |
282 |
- # Translations are not reliable on live ebuilds |
283 |
- # rather force people to use english only. |
284 |
- PDEPEND="!app-office/libreoffice-l10n" |
285 |
-fi |
286 |
- |
287 |
-PATCHES=( |
288 |
- # master branch |
289 |
- "${FILESDIR}/${PN}-6.2-ldap-optional.patch" |
290 |
- # "${WORKDIR}"/${PATCHSET/.tar.xz/} |
291 |
- |
292 |
- # not upstreamable stuff |
293 |
- "${FILESDIR}/${PN}-5.4-system-pyuno.patch" |
294 |
- "${FILESDIR}/${PN}-5.3.4.2-kioclient5.patch" |
295 |
- "${FILESDIR}/${PN}-6.1-nomancompress.patch" |
296 |
-) |
297 |
- |
298 |
-S="${WORKDIR}/${PN}-${MY_PV}" |
299 |
- |
300 |
-_check_reqs() { |
301 |
- CHECKREQS_MEMORY="512M" |
302 |
- if is-flagq "-g*" && ! is-flagq "-g*0" ; then |
303 |
- CHECKREQS_DISK_BUILD="22G" |
304 |
- else |
305 |
- CHECKREQS_DISK_BUILD="6G" |
306 |
- fi |
307 |
- check-reqs_$1 |
308 |
-} |
309 |
- |
310 |
-pkg_pretend() { |
311 |
- use java || \ |
312 |
- ewarn "If you plan to use Base application you should enable java or you will get various crashes." |
313 |
- |
314 |
- if has_version "<app-office/libreoffice-5.3.0[firebird]"; then |
315 |
- ewarn "Firebird has been upgraded to version 3. It is unable to read back Firebird 2.5 data, so" |
316 |
- ewarn "embedded firebird odb files created in LibreOffice pre-5.3 can't be opened with this version." |
317 |
- ewarn "See also: https://wiki.documentfoundation.org/ReleaseNotes/5.3#Base" |
318 |
- fi |
319 |
- |
320 |
- [[ ${MERGE_TYPE} != binary ]] && _check_reqs pkg_pretend |
321 |
-} |
322 |
- |
323 |
-pkg_setup() { |
324 |
- java-pkg-opt-2_pkg_setup |
325 |
- python-single-r1_pkg_setup |
326 |
- xdg_environment_reset |
327 |
- |
328 |
- [[ ${MERGE_TYPE} != binary ]] && _check_reqs pkg_setup |
329 |
-} |
330 |
- |
331 |
-src_unpack() { |
332 |
- default |
333 |
- |
334 |
- if [[ ${MY_PV} = *9999* ]]; then |
335 |
- local base_uri branch mypv |
336 |
- base_uri="https://anongit.freedesktop.org/git" |
337 |
- branch="master" |
338 |
- mypv=${MY_PV/.9999} |
339 |
- [[ ${mypv} != ${MY_PV} ]] && branch="${PN}-${mypv/./-}" |
340 |
- git-r3_fetch "${base_uri}/${PN}/core" "refs/heads/${branch}" |
341 |
- git-r3_checkout "${base_uri}/${PN}/core" |
342 |
- LOCOREGIT_VERSION=${EGIT_VERSION} |
343 |
- |
344 |
- git-r3_fetch "${base_uri}/${PN}/help" "refs/heads/master" |
345 |
- git-r3_checkout "${base_uri}/${PN}/help" "helpcontent2" # doesn't match on help |
346 |
- fi |
347 |
-} |
348 |
- |
349 |
-src_prepare() { |
350 |
- default |
351 |
- |
352 |
- # sandbox violations on many systems, we don't need it. Bug #646406 |
353 |
- sed -i \ |
354 |
- -e "/KF5_CONFIG/s/kf5-config/no/" \ |
355 |
- configure.ac || die "Failed to disable kf5-config" |
356 |
- |
357 |
- AT_M4DIR="m4" eautoreconf |
358 |
- # hack in the autogen.sh |
359 |
- touch autogen.lastrun |
360 |
- |
361 |
- # system pyuno mess |
362 |
- sed -i \ |
363 |
- -e "s:%eprefix%:${EPREFIX}:g" \ |
364 |
- -e "s:%libdir%:$(get_libdir):g" \ |
365 |
- pyuno/source/module/uno.py \ |
366 |
- pyuno/source/officehelper.py || die |
367 |
- # sed in the tests |
368 |
- sed -i \ |
369 |
- -e "s#all : build unitcheck#all : build#g" \ |
370 |
- solenv/gbuild/Module.mk || die |
371 |
- sed -i \ |
372 |
- -e "s#check: dev-install subsequentcheck#check: unitcheck slowcheck dev-install subsequentcheck#g" \ |
373 |
- -e "s#Makefile.gbuild all slowcheck#Makefile.gbuild all#g" \ |
374 |
- Makefile.in || die |
375 |
- |
376 |
- sed -i \ |
377 |
- -e "s,/usr/share/bash-completion/completions,$(get_bashcompdir)," \ |
378 |
- -e "s,\$INSTALLDIRNAME.sh,${PN}," \ |
379 |
- bin/distro-install-desktop-integration || die |
380 |
- |
381 |
- if use branding; then |
382 |
- # hack... |
383 |
- mv -v "${WORKDIR}/branding-intro.png" "icon-themes/colibre/brand/intro.png" || die |
384 |
- fi |
385 |
- |
386 |
- # Don't list pdfimport support in desktop when built with none, bug # 605464 |
387 |
- if ! use pdfimport; then |
388 |
- sed -i \ |
389 |
- -e ":MimeType: s:application/pdf;::" \ |
390 |
- -e ":Keywords: s:pdf;::" \ |
391 |
- sysui/desktop/menus/draw.desktop || die |
392 |
- fi |
393 |
-} |
394 |
- |
395 |
-src_configure() { |
396 |
- # Set up Google API keys, see https://www.chromium.org/developers/how-tos/api-keys |
397 |
- # Note: these are for Gentoo use ONLY. For your own distribution, please get |
398 |
- # your own set of keys. Feel free to contact chromium@g.o for more info. |
399 |
- local google_default_client_id="329227923882.apps.googleusercontent.com" |
400 |
- local google_default_client_secret="vgKG0NNv7GoDpbtoFNLxCUXu" |
401 |
- |
402 |
- # optimization flags |
403 |
- export GMAKE_OPTIONS="${MAKEOPTS}" |
404 |
- # System python enablement: |
405 |
- export PYTHON_CFLAGS=$(python_get_CFLAGS) |
406 |
- export PYTHON_LIBS=$(python_get_LIBS) |
407 |
- |
408 |
- if use kde; then |
409 |
- export QT_SELECT=5 # bug 639620 needs proper fix though |
410 |
- export QT5DIR="$(qt5_get_bindir)/../" |
411 |
- export MOC5="$(qt5_get_bindir)/moc" |
412 |
- fi |
413 |
- |
414 |
- local gentoo_buildid="Gentoo official package" |
415 |
- if [[ -n ${LOCOREGIT_VERSION} ]]; then |
416 |
- gentoo_buildid+=" (from git: ${LOCOREGIT_VERSION})" |
417 |
- fi |
418 |
- |
419 |
- # system headers/libs/...: enforce using system packages |
420 |
- # --disable-breakpad: requires not-yet-in-tree dev-utils/breakpad |
421 |
- # --enable-cairo: ensure that cairo is always required |
422 |
- # --enable-*-link: link to the library rather than just dlopen on runtime |
423 |
- # --enable-release-build: build the libreoffice as release |
424 |
- # --disable-fetch-external: prevent dowloading during compile phase |
425 |
- # --enable-extension-integration: enable any extension integration support |
426 |
- # --without-{fonts,myspell-dicts,ppsd}: prevent install of sys pkgs |
427 |
- # --disable-report-builder: too much java packages pulled in without pkgs |
428 |
- # --without-system-sane: just sane.h header that is used for scan in writer, |
429 |
- # not linked or anything else, worthless to depend on |
430 |
- # --disable-pdfium: not yet packaged |
431 |
- local myeconfargs=( |
432 |
- --with-system-dicts |
433 |
- --with-system-epoxy |
434 |
- --with-system-headers |
435 |
- --with-system-jars |
436 |
- --with-system-libs |
437 |
- --enable-build-opensymbol |
438 |
- --enable-cairo-canvas |
439 |
- --enable-largefile |
440 |
- --enable-mergelibs |
441 |
- --enable-neon |
442 |
- --enable-python=system |
443 |
- --enable-randr |
444 |
- --enable-release-build |
445 |
- --disable-breakpad |
446 |
- --disable-bundle-mariadb |
447 |
- --disable-ccache |
448 |
- --disable-dependency-tracking |
449 |
- --disable-epm |
450 |
- --disable-fetch-external |
451 |
- --disable-gstreamer-0-10 |
452 |
- --disable-online-update |
453 |
- --disable-openssl |
454 |
- --disable-pdfium |
455 |
- --disable-report-builder |
456 |
- --with-build-version="${gentoo_buildid}" |
457 |
- --enable-extension-integration |
458 |
- --with-external-dict-dir="${EPREFIX}/usr/share/myspell" |
459 |
- --with-external-hyph-dir="${EPREFIX}/usr/share/myspell" |
460 |
- --with-external-thes-dir="${EPREFIX}/usr/share/myspell" |
461 |
- --with-external-tar="${DISTDIR}" |
462 |
- --with-lang="" |
463 |
- --with-parallelism=$(makeopts_jobs) |
464 |
- --with-system-ucpp |
465 |
- --with-tls=nss |
466 |
- --with-vendor="Gentoo Foundation" |
467 |
- --with-x |
468 |
- --without-fonts |
469 |
- --without-myspell-dicts |
470 |
- --with-help="html" |
471 |
- --without-helppack-integration |
472 |
- --with-system-gpgmepp |
473 |
- --without-system-sane |
474 |
- $(use_enable bluetooth sdremote-bluetooth) |
475 |
- $(use_enable coinmp) |
476 |
- $(use_enable cups) |
477 |
- $(use_enable dbus) |
478 |
- $(use_enable debug) |
479 |
- $(use_enable eds evolution2) |
480 |
- $(use_enable firebird firebird-sdbc) |
481 |
- $(use_enable gstreamer gstreamer-1-0) |
482 |
- $(use_enable gtk gtk3) |
483 |
- $(use_enable gtk2 gtk) |
484 |
- $(use_enable kde kde5) |
485 |
- $(use_enable kde qt5) |
486 |
- $(use_enable ldap) |
487 |
- $(use_enable odk) |
488 |
- $(use_enable pdfimport) |
489 |
- $(use_enable postgres postgresql-sdbc) |
490 |
- $(use_enable vlc) |
491 |
- $(use_with accessibility lxml) |
492 |
- $(use_with coinmp system-coinmp) |
493 |
- $(use_with googledrive gdrive-client-id ${google_default_client_id}) |
494 |
- $(use_with googledrive gdrive-client-secret ${google_default_client_secret}) |
495 |
- $(use_with java) |
496 |
- $(use_with odk doxygen) |
497 |
- ) |
498 |
- |
499 |
- if use gtk && use kde; then |
500 |
- myeconfargs+=( --enable-gtk3-kde5 ) |
501 |
- fi |
502 |
- |
503 |
- if use eds || use gtk; then |
504 |
- myeconfargs+=( --enable-dconf --enable-gio ) |
505 |
- else |
506 |
- myeconfargs+=( --disable-dconf --disable-gio ) |
507 |
- fi |
508 |
- |
509 |
- # libreoffice extensions handling |
510 |
- for lo_xt in ${LO_EXTS}; do |
511 |
- if [[ "${lo_xt}" == "scripting-beanshell" || "${lo_xt}" == "scripting-javascript" ]]; then |
512 |
- myeconfargs+=( $(use_enable libreoffice_extensions_${lo_xt} ${lo_xt}) ) |
513 |
- else |
514 |
- myeconfargs+=( $(use_enable libreoffice_extensions_${lo_xt} ext-${lo_xt}) ) |
515 |
- fi |
516 |
- done |
517 |
- |
518 |
- if use java; then |
519 |
- # hsqldb: system one is too new |
520 |
- myeconfargs+=( |
521 |
- --without-junit |
522 |
- --without-system-hsqldb |
523 |
- --with-ant-home="${ANT_HOME}" |
524 |
- --with-jdk-home=$(java-config --jdk-home 2>/dev/null) |
525 |
- --with-jvm-path="${EPREFIX}/usr/lib/" |
526 |
- ) |
527 |
- |
528 |
- use libreoffice_extensions_scripting-beanshell && \ |
529 |
- myeconfargs+=( --with-beanshell-jar=$(java-pkg_getjar bsh bsh.jar) ) |
530 |
- |
531 |
- use libreoffice_extensions_scripting-javascript && \ |
532 |
- myeconfargs+=( --with-rhino-jar=$(java-pkg_getjar rhino-1.6 js.jar) ) |
533 |
- fi |
534 |
- |
535 |
- is-flagq "-flto*" && myeconfargs+=( --enable-lto ) |
536 |
- |
537 |
- MARIADBCONFIG="$(type -p $(usex mariadb mariadb mysql)_config)" \ |
538 |
- econf "${myeconfargs[@]}" |
539 |
-} |
540 |
- |
541 |
-src_compile() { |
542 |
- # more and more LO stuff tries to use OpenGL, including tests during build |
543 |
- # bug 501508, bug 540624, bug 545974 and probably more |
544 |
- addpredict /dev/dri |
545 |
- addpredict /dev/ati |
546 |
- addpredict /dev/nvidiactl |
547 |
- |
548 |
- local target |
549 |
- use test && target="build" || target="build-nocheck" |
550 |
- |
551 |
- # this is not a proper make script |
552 |
- make ${target} || die |
553 |
-} |
554 |
- |
555 |
-src_test() { |
556 |
- make unitcheck || die |
557 |
- make slowcheck || die |
558 |
-} |
559 |
- |
560 |
-src_install() { |
561 |
- # This is not Makefile so no buildserver |
562 |
- make DESTDIR="${D}" distro-pack-install -o build -o check || die |
563 |
- |
564 |
- # bug 593514 |
565 |
- if use gtk; then |
566 |
- dosym libreoffice/program/liblibreofficekitgtk.so \ |
567 |
- /usr/$(get_libdir)/liblibreofficekitgtk.so |
568 |
- fi |
569 |
- |
570 |
- # bash completion aliases |
571 |
- bashcomp_alias \ |
572 |
- libreoffice \ |
573 |
- unopkg loimpress lobase localc lodraw lomath lowriter lofromtemplate loweb loffice |
574 |
- |
575 |
- if use branding; then |
576 |
- insinto /usr/$(get_libdir)/${PN}/program |
577 |
- newins "${WORKDIR}/branding-sofficerc" sofficerc |
578 |
- dodir /etc/env.d |
579 |
- echo "CONFIG_PROTECT=/usr/$(get_libdir)/${PN}/program/sofficerc" > "${ED}"/etc/env.d/99${PN} || die |
580 |
- fi |
581 |
-} |
582 |
- |
583 |
-pkg_postinst() { |
584 |
- xdg_icon_cache_update |
585 |
- xdg_desktop_database_update |
586 |
- xdg_mimeinfo_database_update |
587 |
-} |
588 |
- |
589 |
-pkg_postrm() { |
590 |
- xdg_icon_cache_update |
591 |
- xdg_desktop_database_update |
592 |
- xdg_mimeinfo_database_update |
593 |
-} |
594 |
|
595 |
diff --git a/app-office/libreoffice/metadata.xml b/app-office/libreoffice/metadata.xml |
596 |
index 6b514662f9a..38a66bc313d 100644 |
597 |
--- a/app-office/libreoffice/metadata.xml |
598 |
+++ b/app-office/libreoffice/metadata.xml |
599 |
@@ -17,6 +17,5 @@ version</longdescription> |
600 |
<flag name="mariadb">Prefer mariadb connector over mysql connector</flag> |
601 |
<flag name="odk">Build the Office Development Kit</flag> |
602 |
<flag name="pdfimport">Enable PDF import via the Poppler library</flag> |
603 |
- <flag name="vlc">Use <pkg>media-video/vlc</pkg> for video embedding</flag> |
604 |
</use> |
605 |
</pkgmetadata> |