Gentoo Archives: gentoo-commits

From: Andreas Sturmlechner <asturm@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: app-office/libreoffice/
Date: Sat, 29 Feb 2020 19:42:49
Message-Id: 1583002182.932824329fd5dcad99821a1c282b32adb2d0d2fb.asturm@gentoo
1 commit: 932824329fd5dcad99821a1c282b32adb2d0d2fb
2 Author: Andreas Sturmlechner <asturm <AT> gentoo <DOT> org>
3 AuthorDate: Sat Feb 29 18:49:42 2020 +0000
4 Commit: Andreas Sturmlechner <asturm <AT> gentoo <DOT> org>
5 CommitDate: Sat Feb 29 18:49:42 2020 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=93282432
7
8 app-office/libreoffice: 6.3.5.2 version bump
9
10 Package-Manager: Portage-2.3.89, Repoman-2.3.20
11 Signed-off-by: Andreas Sturmlechner <asturm <AT> gentoo.org>
12
13 app-office/libreoffice/Manifest | 2 +
14 app-office/libreoffice/libreoffice-6.3.5.2.ebuild | 558 ++++++++++++++++++++++
15 2 files changed, 560 insertions(+)
16
17 diff --git a/app-office/libreoffice/Manifest b/app-office/libreoffice/Manifest
18 index 1083824bebe..fd43a8ec3e5 100644
19 --- a/app-office/libreoffice/Manifest
20 +++ b/app-office/libreoffice/Manifest
21 @@ -4,5 +4,7 @@ DIST 35c94d2df8893241173de1d16b6034c0-swingExSrc.zip 9796 BLAKE2B a30b0225313b23
22 DIST 798b2ffdc8bcfe7bca2cf92b62caf685-rhino1_5R5.zip 1521926 BLAKE2B d2769842c180997055648a8b1a33cc89988b74628bad8aa012242e0c1afa5b5b8568323c107187072207ee69bd841ba4ca3bbfe27ef65223ddc729d1a1aa6590 SHA512 ec5ae23c8fe2f5efc377f7a9665039afadf28b4d8f2791379296766a5fbc9a3bf7548f9b0e3b3b07762229ec733a92ccbb69791ee0318c9c6f78f8e847253d3f
23 DIST a7983f859eafb2677d7ff386a023bc40-xsltml_2.1.2.zip 23150 BLAKE2B 51db6bd90585b13857ecb494c805c9fb6874e1e65d7aee73d23e1716670836a14b376bcca810f96fd55b0ed653b2660a268030f246c822cbb04f867ef763a3b3 SHA512 2d3835f7ac356805025cafedcad97faa48d0f5da386e6ac7b7451030059df8e2fdb0861ade07a576ebf9fb5b88a973585ab0437944b06aac9289d6898ba8586a
24 DIST libreoffice-6.3.4.2.tar.xz 225632492 BLAKE2B 587fe7e6298ded60fa08963f572733eb8e387c00b428201bb6f1de7eddcf9d9ee97438231ed3f961bd22628bde0fd9dfeacb63febdc566cde781bcebb9c9a71d SHA512 2ed687ae805da36635419729066a2924f1e38a6b0f8d2692c42b366450a261012adfcd8a5d7915d9cfd292d07519fc32c596cdb56d7be6b12a49618b18d6f3d2
25 +DIST libreoffice-6.3.5.2.tar.xz 226222804 BLAKE2B f4b996f8eedf58f7e2ec1d1d796aecf1cc35f394cc5800b1e15db60534096a91e329f9744c8582dae85a12fb6c849be8cceff8998b45074ecc9535f7afce542c SHA512 041ee00e347f6ef229a97b56d9ceee6c0fa80a56436cc2dce909878d08d617d316731a7a21cdc4b6d5ef800f3d00d3ee67c69f770912028261f1552e79899a1a
26 DIST libreoffice-branding-gentoo-0.8.tar.xz 151568 BLAKE2B f03c7ddeb53c5ca3fd23401679601fcf2c4037ba17be4eb7b784c7ce7ebb71a24b8ab4aac8b7da8c6b1f14dd23bc1294ba85ff4f70ad271fb4ee3c5372e10883 SHA512 785031a699b1d1895ce4b50ffc3ddf645f3a0ef9acdf37facfd18cf75db9484cb8f53a50abb63d6006ead76a80b6ff5aa99661063245ebb84bd64013d713de7f
27 DIST libreoffice-help-6.3.4.2.tar.xz 13191636 BLAKE2B c1696efa0ec9fef9dbcc0c0388de8a384484af1453d200e08820ba910cdcb65638b189566a19868281fd1777213812fde06adb07c1a662302eea1d0a791ff5a0 SHA512 8c74c82c7d73adb1523300d1f7500769f5a623fdba60b440a63c122cbfeb631a6a34ecbcb115b0154a6957be1918306f7d0c1f465030f8e8cfd5c9a1acad17c9
28 +DIST libreoffice-help-6.3.5.2.tar.xz 13192732 BLAKE2B 79e869d8d2bb91243e9fe2ba279bfcd4f3b759904fdd2efbeb1add773cb732621a41841c4064ad63ad9713a53e626c50bfcc1b3d9137ddb4fe73fca39f710bb9 SHA512 aec83b210cc596131aa5bcb37012a98cc42c365274c4f80e8e87595f4f50d8f36588256616738ba3c2c9a8a61d03ed5e6c33a4b588561c5084cd008c5dbe787a
29
30 diff --git a/app-office/libreoffice/libreoffice-6.3.5.2.ebuild b/app-office/libreoffice/libreoffice-6.3.5.2.ebuild
31 new file mode 100644
32 index 00000000000..d9fdd899143
33 --- /dev/null
34 +++ b/app-office/libreoffice/libreoffice-6.3.5.2.ebuild
35 @@ -0,0 +1,558 @@
36 +# Copyright 1999-2020 Gentoo Authors
37 +# Distributed under the terms of the GNU General Public License v2
38 +
39 +EAPI=7
40 +
41 +PYTHON_COMPAT=( python3_{6,7,8} )
42 +PYTHON_REQ_USE="threads(+),xml"
43 +
44 +MY_PV="${PV/_alpha/.alpha}"
45 +MY_PV="${MY_PV/_beta/.beta}"
46 +# experimental ; release ; old
47 +# Usually the tarballs are moved a lot so this should make everyone happy.
48 +DEV_URI="
49 + https://dev-builds.libreoffice.org/pre-releases/src
50 + https://download.documentfoundation.org/libreoffice/src/${MY_PV:0:5}/
51 + https://downloadarchive.documentfoundation.org/libreoffice/old/${MY_PV}/src
52 +"
53 +ADDONS_URI="https://dev-www.libreoffice.org/src/"
54 +
55 +BRANDING="${PN}-branding-gentoo-0.8.tar.xz"
56 +# PATCHSET="${P}-patchset-01.tar.xz"
57 +
58 +[[ ${MY_PV} == *9999* ]] && inherit git-r3
59 +inherit autotools bash-completion-r1 check-reqs flag-o-matic java-pkg-opt-2 multiprocessing python-single-r1 qmake-utils toolchain-funcs xdg-utils
60 +
61 +DESCRIPTION="A full office productivity suite"
62 +HOMEPAGE="https://www.libreoffice.org"
63 +SRC_URI="branding? ( https://dev.gentoo.org/~dilfridge/distfiles/${BRANDING} )"
64 +[[ -n ${PATCHSET} ]] && SRC_URI+=" https://dev.gentoo.org/~asturm/distfiles/${PATCHSET}"
65 +
66 +# Split modules following git/tarballs; Core MUST be first!
67 +# Help is used for the image generator
68 +# Only release has the tarballs
69 +if [[ ${MY_PV} != *9999* ]]; then
70 + for i in ${DEV_URI}; do
71 + SRC_URI+=" ${i}/${PN}-${MY_PV}.tar.xz"
72 + SRC_URI+=" ${i}/${PN}-help-${MY_PV}.tar.xz"
73 + done
74 + unset i
75 +fi
76 +unset DEV_URI
77 +
78 +# Really required addons
79 +# These are bundles that can't be removed for now due to huge patchsets.
80 +# If you want them gone, patches are welcome.
81 +ADDONS_SRC=(
82 + "java? ( ${ADDONS_URI}/17410483b5b5f267aa18b7e00b65e6e0-hsqldb_1_8_0.zip )"
83 + # no release for 8 years, should we package it?
84 + "libreoffice_extensions_wiki-publisher? ( ${ADDONS_URI}/a7983f859eafb2677d7ff386a023bc40-xsltml_2.1.2.zip )"
85 + # Does not build with 1.6 rhino at all
86 + "libreoffice_extensions_scripting-javascript? ( ${ADDONS_URI}/798b2ffdc8bcfe7bca2cf92b62caf685-rhino1_5R5.zip )"
87 + # requirement of rhino
88 + "libreoffice_extensions_scripting-javascript? ( ${ADDONS_URI}/35c94d2df8893241173de1d16b6034c0-swingExSrc.zip )"
89 + # not packageable
90 + "odk? ( http://download.go-oo.org/extern/185d60944ea767075d27247c3162b3bc-unowinreg.dll )"
91 +)
92 +SRC_URI+=" ${ADDONS_SRC[*]}"
93 +
94 +unset ADDONS_URI
95 +unset ADDONS_SRC
96 +
97 +# Extensions that need extra work:
98 +LO_EXTS="nlpsolver scripting-beanshell scripting-javascript wiki-publisher"
99 +
100 +IUSE="accessibility bluetooth +branding coinmp +cups dbus debug eds firebird
101 +googledrive gstreamer +gtk gtk2 kde ldap +mariadb odk pdfimport postgres test
102 +$(printf 'libreoffice_extensions_%s ' ${LO_EXTS})"
103 +
104 +REQUIRED_USE="${PYTHON_REQUIRED_USE}
105 + bluetooth? ( dbus )
106 + libreoffice_extensions_nlpsolver? ( java )
107 + libreoffice_extensions_scripting-beanshell? ( java )
108 + libreoffice_extensions_scripting-javascript? ( java )
109 + libreoffice_extensions_wiki-publisher? ( java )
110 +"
111 +
112 +RESTRICT="!test? ( test )"
113 +
114 +LICENSE="|| ( LGPL-3 MPL-1.1 )"
115 +SLOT="0"
116 +[[ ${MY_PV} == *9999* ]] || \
117 +KEYWORDS="~amd64 ~arm ~arm64 ~ppc64 ~x86 ~amd64-linux ~x86-linux"
118 +
119 +BDEPEND="
120 + dev-util/intltool
121 + sys-devel/bison
122 + sys-devel/flex
123 + sys-devel/gettext
124 + virtual/pkgconfig
125 + odk? ( >=app-doc/doxygen-1.8.4 )
126 +"
127 +COMMON_DEPEND="${PYTHON_DEPS}
128 + app-arch/unzip
129 + app-arch/zip
130 + app-crypt/gpgme[cxx]
131 + app-text/hunspell:=
132 + >=app-text/libabw-0.1.0
133 + >=app-text/libebook-0.1
134 + app-text/libepubgen
135 + >=app-text/libetonyek-0.1
136 + app-text/libexttextcat
137 + app-text/liblangtag
138 + >=app-text/libmspub-0.1.0
139 + >=app-text/libmwaw-0.3.1
140 + app-text/libnumbertext
141 + >=app-text/libodfgen-0.1.0
142 + app-text/libqxp
143 + app-text/libstaroffice
144 + app-text/libwpd:0.10[tools]
145 + app-text/libwpg:0.3
146 + >=app-text/libwps-0.4
147 + app-text/mythes
148 + >=dev-cpp/clucene-2.3.3.4-r2
149 + >=dev-cpp/libcmis-0.5.2
150 + dev-db/unixODBC
151 + dev-lang/perl
152 + dev-libs/boost:=[nls]
153 + dev-libs/expat
154 + dev-libs/hyphen
155 + dev-libs/icu:=
156 + dev-libs/libassuan
157 + dev-libs/libgpg-error
158 + >=dev-libs/liborcus-0.14.0
159 + dev-libs/librevenge
160 + dev-libs/libxml2
161 + dev-libs/libxslt
162 + dev-libs/nspr
163 + dev-libs/nss
164 + >=dev-libs/redland-1.0.16
165 + >=dev-libs/xmlsec-1.2.28[nss]
166 + media-gfx/fontforge
167 + media-gfx/graphite2
168 + media-libs/fontconfig
169 + media-libs/freetype:2
170 + >=media-libs/harfbuzz-0.9.42:=[graphite,icu]
171 + media-libs/lcms:2
172 + >=media-libs/libcdr-0.1.0
173 + >=media-libs/libepoxy-1.3.1[X]
174 + >=media-libs/libfreehand-0.1.0
175 + media-libs/libpagemaker
176 + >=media-libs/libpng-1.4:0=
177 + >=media-libs/libvisio-0.1.0
178 + media-libs/libzmf
179 + net-libs/neon
180 + net-misc/curl
181 + sci-mathematics/lpsolve
182 + sys-libs/zlib
183 + virtual/glu
184 + virtual/jpeg:0
185 + virtual/opengl
186 + x11-libs/cairo[X]
187 + x11-libs/libXinerama
188 + x11-libs/libXrandr
189 + x11-libs/libXrender
190 + accessibility? (
191 + $(python_gen_cond_dep '
192 + dev-python/lxml[${PYTHON_MULTI_USEDEP}]
193 + ')
194 + )
195 + bluetooth? (
196 + dev-libs/glib:2
197 + net-wireless/bluez
198 + )
199 + coinmp? ( sci-libs/coinor-mp )
200 + cups? ( net-print/cups )
201 + dbus? ( sys-apps/dbus )
202 + eds? (
203 + dev-libs/glib:2
204 + gnome-base/dconf
205 + gnome-extra/evolution-data-server
206 + )
207 + firebird? ( >=dev-db/firebird-3.0.2.32703.0-r1[server] )
208 + gstreamer? (
209 + media-libs/gstreamer:1.0
210 + media-libs/gst-plugins-base:1.0
211 + )
212 + gtk? (
213 + dev-libs/glib:2
214 + dev-libs/gobject-introspection
215 + gnome-base/dconf
216 + media-libs/mesa[egl]
217 + x11-libs/gtk+:3
218 + x11-libs/pango
219 + )
220 + gtk2? (
221 + x11-libs/gdk-pixbuf
222 + >=x11-libs/gtk+-2.24:2
223 + x11-libs/pango
224 + )
225 + kde? (
226 + dev-qt/qtcore:5
227 + dev-qt/qtgui:5
228 + dev-qt/qtwidgets:5
229 + dev-qt/qtx11extras:5
230 + kde-frameworks/kconfig:5
231 + kde-frameworks/kcoreaddons:5
232 + kde-frameworks/ki18n:5
233 + kde-frameworks/kio:5
234 + kde-frameworks/kwindowsystem:5
235 + )
236 + ldap? ( net-nds/openldap )
237 + libreoffice_extensions_scripting-beanshell? ( dev-java/bsh )
238 + libreoffice_extensions_scripting-javascript? ( dev-java/rhino:1.6 )
239 + mariadb? ( dev-db/mariadb-connector-c )
240 + !mariadb? ( dev-db/mysql-connector-c )
241 + pdfimport? ( app-text/poppler:=[cxx] )
242 + postgres? ( >=dev-db/postgresql-9.0:*[kerberos] )
243 +"
244 +# FIXME: cppunit should be moved to test conditional
245 +# after everything upstream is under gbuild
246 +# as dmake execute tests right away
247 +# tests apparently also need google-carlito-fonts (not packaged)
248 +DEPEND="${COMMON_DEPEND}
249 + >=dev-libs/libatomic_ops-7.2d
250 + dev-perl/Archive-Zip
251 + >=dev-util/cppunit-1.14.0
252 + >=dev-util/gperf-3.1
253 + >=dev-util/mdds-1.4.1:1=
254 + media-libs/glm
255 + sys-devel/ucpp
256 + x11-base/xorg-proto
257 + x11-libs/libXt
258 + x11-libs/libXtst
259 + java? (
260 + dev-java/ant-core
261 + >=virtual/jdk-1.6
262 + )
263 + test? (
264 + app-crypt/gnupg
265 + dev-util/cppunit
266 + media-fonts/dejavu
267 + media-fonts/liberation-fonts
268 + )
269 +"
270 +RDEPEND="${COMMON_DEPEND}
271 + !app-office/libreoffice-bin
272 + !app-office/libreoffice-bin-debug
273 + !app-office/openoffice
274 + media-fonts/liberation-fonts
275 + || ( x11-misc/xdg-utils kde-plasma/kde-cli-tools )
276 + java? ( >=virtual/jre-1.6 )
277 + kde? ( kde-frameworks/breeze-icons:* )
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 + # "${WORKDIR}"/${PATCHSET/.tar.xz/}
289 +
290 + # not upstreamable stuff
291 + "${FILESDIR}/${PN}-5.4-system-pyuno.patch"
292 + "${FILESDIR}/${PN}-5.3.4.2-kioclient5.patch"
293 + "${FILESDIR}/${PN}-6.1-nomancompress.patch"
294 +
295 + # master branch
296 + "${FILESDIR}/${PN}-6.3.3.2-mysql-connector-c-8.patch" # bug #692422
297 +)
298 +
299 +S="${WORKDIR}/${PN}-${MY_PV}"
300 +
301 +_check_reqs() {
302 + CHECKREQS_MEMORY="512M"
303 + if is-flagq "-g*" && ! is-flagq "-g*0" ; then
304 + CHECKREQS_DISK_BUILD="22G"
305 + else
306 + CHECKREQS_DISK_BUILD="6G"
307 + fi
308 + check-reqs_$1
309 +}
310 +
311 +pkg_pretend() {
312 + if ! use java && ! use firebird; then
313 + ewarn "If you plan to use Base application you must enable either firebird or java."
314 + fi
315 +
316 + use java || ewarn "Without java, several wizards are not going to be available."
317 +
318 + if has_version "<app-office/libreoffice-5.3.0[firebird]"; then
319 + ewarn "Firebird has been upgraded to version 3. It is unable to read back Firebird 2.5 data, so"
320 + ewarn "embedded firebird odb files created in LibreOffice pre-5.3 can't be opened with this version."
321 + ewarn "See also: https://wiki.documentfoundation.org/ReleaseNotes/5.3#Base"
322 + fi
323 +
324 + [[ ${MERGE_TYPE} != binary ]] && _check_reqs pkg_pretend
325 +}
326 +
327 +pkg_setup() {
328 + java-pkg-opt-2_pkg_setup
329 + python-single-r1_pkg_setup
330 + xdg_environment_reset
331 +
332 + [[ ${MERGE_TYPE} != binary ]] && _check_reqs pkg_setup
333 +}
334 +
335 +src_unpack() {
336 + default
337 +
338 + if [[ ${MY_PV} = *9999* ]]; then
339 + local base_uri branch mypv
340 + base_uri="https://anongit.freedesktop.org/git"
341 + branch="master"
342 + mypv=${MY_PV/.9999}
343 + [[ ${mypv} != ${MY_PV} ]] && branch="${PN}-${mypv/./-}"
344 + git-r3_fetch "${base_uri}/${PN}/core" "refs/heads/${branch}"
345 + git-r3_checkout "${base_uri}/${PN}/core"
346 + LOCOREGIT_VERSION=${EGIT_VERSION}
347 +
348 + git-r3_fetch "${base_uri}/${PN}/help" "refs/heads/master"
349 + git-r3_checkout "${base_uri}/${PN}/help" "helpcontent2" # doesn't match on help
350 + fi
351 +}
352 +
353 +src_prepare() {
354 + default
355 +
356 + # sandbox violations on many systems, we don't need it. Bug #646406
357 + sed -i \
358 + -e "/KF5_CONFIG/s/kf5-config/no/" \
359 + configure.ac || die "Failed to disable kf5-config"
360 +
361 + AT_M4DIR="m4" eautoreconf
362 + # hack in the autogen.sh
363 + touch autogen.lastrun
364 +
365 + # system pyuno mess
366 + sed -i \
367 + -e "s:%eprefix%:${EPREFIX}:g" \
368 + -e "s:%libdir%:$(get_libdir):g" \
369 + pyuno/source/module/uno.py \
370 + pyuno/source/officehelper.py || die
371 + # sed in the tests
372 + sed -i \
373 + -e "s#all : build unitcheck#all : build#g" \
374 + solenv/gbuild/Module.mk || die
375 + sed -i \
376 + -e "s#check: dev-install subsequentcheck#check: unitcheck slowcheck dev-install subsequentcheck#g" \
377 + -e "s#Makefile.gbuild all slowcheck#Makefile.gbuild all#g" \
378 + Makefile.in || die
379 +
380 + sed -i \
381 + -e "s,/usr/share/bash-completion/completions,$(get_bashcompdir)," \
382 + -e "s,\$INSTALLDIRNAME.sh,${PN}," \
383 + bin/distro-install-desktop-integration || die
384 +
385 + if use branding; then
386 + # hack...
387 + mv -v "${WORKDIR}/branding-intro.png" "icon-themes/colibre/brand/intro.png" || die
388 + fi
389 +
390 + # Don't list pdfimport support in desktop when built with none, bug # 605464
391 + if ! use pdfimport; then
392 + sed -i \
393 + -e ":MimeType: s:application/pdf;::" \
394 + -e ":Keywords: s:pdf;::" \
395 + sysui/desktop/menus/draw.desktop || die
396 + fi
397 +}
398 +
399 +src_configure() {
400 + # Set up Google API keys, see https://www.chromium.org/developers/how-tos/api-keys
401 + # Note: these are for Gentoo use ONLY. For your own distribution, please get
402 + # your own set of keys. Feel free to contact chromium@g.o for more info.
403 + local google_default_client_id="329227923882.apps.googleusercontent.com"
404 + local google_default_client_secret="vgKG0NNv7GoDpbtoFNLxCUXu"
405 +
406 + # optimization flags
407 + export GMAKE_OPTIONS="${MAKEOPTS}"
408 + # System python enablement:
409 + export PYTHON_CFLAGS=$(python_get_CFLAGS)
410 + export PYTHON_LIBS=$(python_get_LIBS)
411 +
412 + if use kde; then
413 + export QT_SELECT=5 # bug 639620 needs proper fix though
414 + export QT5DIR="$(qt5_get_bindir)/../"
415 + export MOC5="$(qt5_get_bindir)/moc"
416 + fi
417 +
418 + local gentoo_buildid="Gentoo official package"
419 + if [[ -n ${LOCOREGIT_VERSION} ]]; then
420 + gentoo_buildid+=" (from git: ${LOCOREGIT_VERSION})"
421 + fi
422 +
423 + # system headers/libs/...: enforce using system packages
424 + # --disable-breakpad: requires not-yet-in-tree dev-utils/breakpad
425 + # --enable-cairo: ensure that cairo is always required
426 + # --enable-*-link: link to the library rather than just dlopen on runtime
427 + # --enable-release-build: build the libreoffice as release
428 + # --disable-fetch-external: prevent dowloading during compile phase
429 + # --enable-extension-integration: enable any extension integration support
430 + # --without-{fonts,myspell-dicts,ppsd}: prevent install of sys pkgs
431 + # --disable-report-builder: too much java packages pulled in without pkgs
432 + # --without-system-sane: just sane.h header that is used for scan in writer,
433 + # not linked or anything else, worthless to depend on
434 + # --disable-pdfium: not yet packaged
435 + local myeconfargs=(
436 + --with-system-dicts
437 + --with-system-epoxy
438 + --with-system-headers
439 + --with-system-jars
440 + --with-system-libs
441 + --enable-build-opensymbol
442 + --enable-cairo-canvas
443 + --enable-largefile
444 + --enable-mergelibs
445 + --enable-neon
446 + --enable-python=system
447 + --enable-randr
448 + --enable-release-build
449 + --disable-breakpad
450 + --disable-bundle-mariadb
451 + --disable-ccache
452 + --disable-epm
453 + --disable-fetch-external
454 + --disable-gstreamer-0-10
455 + --disable-gtk3-kde5
456 + --disable-online-update
457 + --disable-openssl
458 + --disable-pdfium
459 + --disable-report-builder
460 + --disable-vlc
461 + --with-build-version="${gentoo_buildid}"
462 + --enable-extension-integration
463 + --with-external-dict-dir="${EPREFIX}/usr/share/myspell"
464 + --with-external-hyph-dir="${EPREFIX}/usr/share/myspell"
465 + --with-external-thes-dir="${EPREFIX}/usr/share/myspell"
466 + --with-external-tar="${DISTDIR}"
467 + --with-lang=""
468 + --with-parallelism=$(makeopts_jobs)
469 + --with-system-ucpp
470 + --with-tls=nss
471 + --with-vendor="Gentoo Foundation"
472 + --with-x
473 + --without-fonts
474 + --without-myspell-dicts
475 + --with-help="html"
476 + --without-helppack-integration
477 + --with-system-gpgmepp
478 + --without-system-sane
479 + $(use_enable bluetooth sdremote-bluetooth)
480 + $(use_enable coinmp)
481 + $(use_enable cups)
482 + $(use_enable dbus)
483 + $(use_enable debug)
484 + $(use_enable eds evolution2)
485 + $(use_enable firebird firebird-sdbc)
486 + $(use_enable gstreamer gstreamer-1-0)
487 + $(use_enable gtk gtk3)
488 + $(use_enable gtk2 gtk)
489 + $(use_enable kde kde5)
490 + $(use_enable kde qt5)
491 + $(use_enable ldap)
492 + $(use_enable odk)
493 + $(use_enable pdfimport)
494 + $(use_enable postgres postgresql-sdbc)
495 + $(use_with accessibility lxml)
496 + $(use_with coinmp system-coinmp)
497 + $(use_with googledrive gdrive-client-id ${google_default_client_id})
498 + $(use_with googledrive gdrive-client-secret ${google_default_client_secret})
499 + $(use_with java)
500 + $(use_with odk doxygen)
501 + )
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 +}