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