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: Thu, 11 Apr 2019 09:03:10
Message-Id: 1554973372.742389c3fb41bd819804fb527d923ecf128ec5ae.asturm@gentoo
1 commit: 742389c3fb41bd819804fb527d923ecf128ec5ae
2 Author: Andreas Sturmlechner <asturm <AT> gentoo <DOT> org>
3 AuthorDate: Wed Apr 10 13:06:52 2019 +0000
4 Commit: Andreas Sturmlechner <asturm <AT> gentoo <DOT> org>
5 CommitDate: Thu Apr 11 09:02:52 2019 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=742389c3
7
8 app-office/libreoffice: 6.2.3.2 version bump (no keywords)
9
10 Pre-release.
11
12 Signed-off-by: Andreas Sturmlechner <asturm <AT> gentoo.org>
13 Package-Manager: Portage-2.3.62, Repoman-2.3.11
14
15 app-office/libreoffice/Manifest | 2 +
16 app-office/libreoffice/libreoffice-6.2.3.2.ebuild | 548 ++++++++++++++++++++++
17 2 files changed, 550 insertions(+)
18
19 diff --git a/app-office/libreoffice/Manifest b/app-office/libreoffice/Manifest
20 index de991b313cf..0443321a6d0 100644
21 --- a/app-office/libreoffice/Manifest
22 +++ b/app-office/libreoffice/Manifest
23 @@ -7,7 +7,9 @@ DIST libreoffice-6.1.5.2.tar.xz 207918636 BLAKE2B bb4e57a5363e7dc6757c537ef46231
24 DIST libreoffice-6.2.2.2-patchset-01.tar.xz 6952 BLAKE2B 6b6b5280c9c65b7995d49bd0a5c0667226366f498f04d747e883d21490c88fcdd5abe4348ffe37d3060d0b685d4c3c3cd5e826351b22f24b68779bc5ca9d92b3 SHA512 63cce0839f65962df425f212306ed65e3899c6da857f74d7ea335bd48712fab2faa1de7dbc28a5022021a408f02cb972c3bb7b511f6e1209f103b8d214e163ac
25 DIST libreoffice-6.2.2.2.tar.xz 214029032 BLAKE2B fc95d9dcb594bd18317285ecf593fb69825ecf061f7a339b48c01c858ee0340390d635a75f9be2d522f0b8883365d013b72b52f81cded509a2748ad354b9006c SHA512 f58f73fc76c57cbcbc24f63680ebc06f72cbbff9c1339c8186e70bf5f0f9ad0203ed2898ee7dd82cfb2bd0239d96a1534cec635847fe8fb50a0abe70848d2125
26 DIST libreoffice-6.2.3.1.tar.xz 214212540 BLAKE2B 62898ab40a19e8517d32c427d68364289b73a8f13ea9c7b33f380f784908f5dbad2cbefe5e6e878c337b42306e29e2d7c574da36397b1bcd48651a519a8c04e0 SHA512 d835725f769af98c91ffe2e9cd6edb0361bbd7d8122ec6660fabebeec5830d14bc485ffa2b50a6bebcc72271440763e4aee427228c37ea81773bc83ef0650035
27 +DIST libreoffice-6.2.3.2.tar.xz 214234080 BLAKE2B d565a7bc80cb550179ba38a1f2233bda68acf312e8966db84a72b242a10673ac81198370ffa46a7a222ad6c0654f5691404f1a17d7b0c9a60fd378d04dc6d550 SHA512 06c7e67c521eb9d94aa1a63464a4531b61b0fa0a8f77a0ecd1584535826232557a971471bea87dbc0b794979e1cddb201dbfdf0c4a2b4261ea63730e15cd8000
28 DIST libreoffice-branding-gentoo-0.8.tar.xz 151568 BLAKE2B f03c7ddeb53c5ca3fd23401679601fcf2c4037ba17be4eb7b784c7ce7ebb71a24b8ab4aac8b7da8c6b1f14dd23bc1294ba85ff4f70ad271fb4ee3c5372e10883 SHA512 785031a699b1d1895ce4b50ffc3ddf645f3a0ef9acdf37facfd18cf75db9484cb8f53a50abb63d6006ead76a80b6ff5aa99661063245ebb84bd64013d713de7f
29 DIST libreoffice-help-6.1.5.2.tar.xz 15758000 BLAKE2B e8db833db00116e210cd6da578ab05089fd12128bfb8015600027c9afca09a1afe7a62e30a0271dffead5d176c0195eae9095d0e00450a926999efadf3f7572f SHA512 0575244ae595af7383b244fd3f1855b7d63820f9c3ebf87bc9d0758463b4b289988bbed99f0985508d34793967734fd83ae2d1a5db514479bb2fe32e0498fc9f
30 DIST libreoffice-help-6.2.2.2.tar.xz 15267780 BLAKE2B 6e5300f8cbd202ccf411d7f5d5268075e53d004b986917a382b0bcae6e3eb2a6b69ff36bbb38b23e9661f2f0df0388032dfc2156c7e2665414137e125cc83247 SHA512 c9aebd77aa44ea54e08c9e305aa073e29a02b11fbe118f346f2bb17a6aa8c3ff13fa3ba212a29eaa4c2b3861365bf4a8683979c5e77c57fa538ef18f4aea7ae4
31 DIST libreoffice-help-6.2.3.1.tar.xz 13023992 BLAKE2B 5cb0f6081f60cf2ac6fe9e1e8715c5e48a4e8769a44dda1dd8a66aed18992710c6075a18ff19d3c5dba136d41396da42fd66d9ce1f1cc4d5fbc77a5c04f72e6d SHA512 1bc10999401bd7fe2a7454eb036675fd43cca9c4d0ef817f28c82cb6d3818afd44428b75fd31b2dac84a77a79f0a026679fd582ffa572b79bba38de1470f8857
32 +DIST libreoffice-help-6.2.3.2.tar.xz 13024476 BLAKE2B 1d4a993b4725dfeb2993db6ad8afa4f1cc6d68f0e3e51cf712e3983b9eb3d5e092b2fea69628b5f88237c59ec568e1a02a5898bcb0f950288ece6b4408de153a SHA512 3c2c05f22bebf59662ff2948b59055c2b8b962f8c717e8d894a6f0df1878cd13cce0e55d39c2cbbf7e83af61623149d757ec65495c4ed23a1e587832595be037
33
34 diff --git a/app-office/libreoffice/libreoffice-6.2.3.2.ebuild b/app-office/libreoffice/libreoffice-6.2.3.2.ebuild
35 new file mode 100644
36 index 00000000000..64169aefb4d
37 --- /dev/null
38 +++ b/app-office/libreoffice/libreoffice-6.2.3.2.ebuild
39 @@ -0,0 +1,548 @@
40 +# Copyright 1999-2019 Gentoo Authors
41 +# Distributed under the terms of the GNU General Public License v2
42 +
43 +EAPI=7
44 +
45 +PYTHON_COMPAT=( python2_7 python3_{5,6,7} )
46 +PYTHON_REQ_USE="threads(+),xml"
47 +
48 +MY_PV="${PV/_alpha/.alpha}"
49 +MY_PV="${MY_PV/_beta/.beta}"
50 +# experimental ; release ; old
51 +# Usually the tarballs are moved a lot so this should make everyone happy.
52 +DEV_URI="
53 + https://dev-builds.libreoffice.org/pre-releases/src
54 + https://download.documentfoundation.org/libreoffice/src/${MY_PV:0:5}/
55 + https://downloadarchive.documentfoundation.org/libreoffice/old/${MY_PV}/src
56 +"
57 +ADDONS_URI="https://dev-www.libreoffice.org/src/"
58 +
59 +BRANDING="${PN}-branding-gentoo-0.8.tar.xz"
60 +# PATCHSET="${P}-patchset-01.tar.xz"
61 +
62 +[[ ${MY_PV} == *9999* ]] && inherit git-r3
63 +inherit autotools bash-completion-r1 check-reqs flag-o-matic java-pkg-opt-2 multiprocessing python-single-r1 qmake-utils toolchain-funcs xdg
64 +
65 +DESCRIPTION="A full office productivity suite"
66 +HOMEPAGE="https://www.libreoffice.org"
67 +SRC_URI="branding? ( https://dev.gentoo.org/~dilfridge/distfiles/${BRANDING} )"
68 +[[ -n ${PATCHSET} ]] && SRC_URI+=" https://dev.gentoo.org/~asturm/distfiles/${PATCHSET}"
69 +
70 +# Split modules following git/tarballs; Core MUST be first!
71 +# Help is used for the image generator
72 +# Only release has the tarballs
73 +if [[ ${MY_PV} != *9999* ]]; then
74 + for i in ${DEV_URI}; do
75 + SRC_URI+=" ${i}/${PN}-${MY_PV}.tar.xz"
76 + SRC_URI+=" ${i}/${PN}-help-${MY_PV}.tar.xz"
77 + done
78 + unset i
79 +fi
80 +unset DEV_URI
81 +
82 +# Really required addons
83 +# These are bundles that can't be removed for now due to huge patchsets.
84 +# If you want them gone, patches are welcome.
85 +ADDONS_SRC=(
86 + "java? ( ${ADDONS_URI}/17410483b5b5f267aa18b7e00b65e6e0-hsqldb_1_8_0.zip )"
87 + # no release for 8 years, should we package it?
88 + "libreoffice_extensions_wiki-publisher? ( ${ADDONS_URI}/a7983f859eafb2677d7ff386a023bc40-xsltml_2.1.2.zip )"
89 + # Does not build with 1.6 rhino at all
90 + "libreoffice_extensions_scripting-javascript? ( ${ADDONS_URI}/798b2ffdc8bcfe7bca2cf92b62caf685-rhino1_5R5.zip )"
91 + # requirement of rhino
92 + "libreoffice_extensions_scripting-javascript? ( ${ADDONS_URI}/35c94d2df8893241173de1d16b6034c0-swingExSrc.zip )"
93 + # not packageable
94 + "odk? ( http://download.go-oo.org/extern/185d60944ea767075d27247c3162b3bc-unowinreg.dll )"
95 +)
96 +SRC_URI+=" ${ADDONS_SRC[*]}"
97 +
98 +unset ADDONS_URI
99 +unset ADDONS_SRC
100 +
101 +# Extensions that need extra work:
102 +LO_EXTS="nlpsolver scripting-beanshell scripting-javascript wiki-publisher"
103 +
104 +IUSE="accessibility bluetooth +branding coinmp +cups dbus debug eds firebird
105 +googledrive gstreamer +gtk gtk2 kde ldap +mariadb odk pdfimport postgres test vlc
106 +$(printf 'libreoffice_extensions_%s ' ${LO_EXTS})"
107 +
108 +REQUIRED_USE="${PYTHON_REQUIRED_USE}
109 + bluetooth? ( dbus )
110 + libreoffice_extensions_nlpsolver? ( java )
111 + libreoffice_extensions_scripting-beanshell? ( java )
112 + libreoffice_extensions_scripting-javascript? ( java )
113 + libreoffice_extensions_wiki-publisher? ( java )
114 +"
115 +
116 +LICENSE="|| ( LGPL-3 MPL-1.1 )"
117 +SLOT="0"
118 +[[ ${MY_PV} == *9999* ]] || \
119 +KEYWORDS=""
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 + # 6.2 stable branch
291 + "${FILESDIR}/${PN}-6.2.3.1-qt5-kf5-disable-qt-hidpi-scaling.patch"
292 + # "${WORKDIR}"/${PATCHSET/.tar.xz/}
293 +
294 + # not upstreamable stuff
295 + "${FILESDIR}/${PN}-5.4-system-pyuno.patch"
296 + "${FILESDIR}/${PN}-5.3.4.2-kioclient5.patch"
297 + "${FILESDIR}/${PN}-6.1-nomancompress.patch"
298 +)
299 +
300 +S="${WORKDIR}/${PN}-${MY_PV}"
301 +
302 +_check_reqs() {
303 + CHECKREQS_MEMORY="512M"
304 + if is-flagq "-g*" && ! is-flagq "-g*0" ; then
305 + CHECKREQS_DISK_BUILD="22G"
306 + else
307 + CHECKREQS_DISK_BUILD="6G"
308 + fi
309 + check-reqs_$1
310 +}
311 +
312 +pkg_pretend() {
313 + use java || \
314 + ewarn "If you plan to use Base application you should enable java or you will get various crashes."
315 +
316 + if has_version "<app-office/libreoffice-5.3.0[firebird]"; then
317 + ewarn "Firebird has been upgraded to version 3. It is unable to read back Firebird 2.5 data, so"
318 + ewarn "embedded firebird odb files created in LibreOffice pre-5.3 can't be opened with this version."
319 + ewarn "See also: https://wiki.documentfoundation.org/ReleaseNotes/5.3#Base"
320 + fi
321 +
322 + [[ ${MERGE_TYPE} != binary ]] && _check_reqs pkg_pretend
323 +}
324 +
325 +pkg_setup() {
326 + java-pkg-opt-2_pkg_setup
327 + python-single-r1_pkg_setup
328 +
329 + [[ ${MERGE_TYPE} != binary ]] && _check_reqs pkg_setup
330 +}
331 +
332 +src_unpack() {
333 + default
334 +
335 + if [[ ${MY_PV} = *9999* ]]; then
336 + local base_uri branch mypv
337 + base_uri="https://anongit.freedesktop.org/git"
338 + branch="master"
339 + mypv=${MY_PV/.9999}
340 + [[ ${mypv} != ${MY_PV} ]] && branch="${PN}-${mypv/./-}"
341 + git-r3_fetch "${base_uri}/${PN}/core" "refs/heads/${branch}"
342 + git-r3_checkout "${base_uri}/${PN}/core"
343 + LOCOREGIT_VERSION=${EGIT_VERSION}
344 +
345 + git-r3_fetch "${base_uri}/${PN}/help" "refs/heads/master"
346 + git-r3_checkout "${base_uri}/${PN}/help" "helpcontent2" # doesn't match on help
347 + fi
348 +}
349 +
350 +src_prepare() {
351 + xdg_src_prepare
352 +
353 + # sandbox violations on many systems, we don't need it. Bug #646406
354 + sed -i \
355 + -e "/KF5_CONFIG/s/kf5-config/no/" \
356 + configure.ac || die "Failed to disable kf5-config"
357 +
358 + AT_M4DIR="m4" eautoreconf
359 + # hack in the autogen.sh
360 + touch autogen.lastrun
361 +
362 + # system pyuno mess
363 + sed -i \
364 + -e "s:%eprefix%:${EPREFIX}:g" \
365 + -e "s:%libdir%:$(get_libdir):g" \
366 + pyuno/source/module/uno.py \
367 + pyuno/source/officehelper.py || die
368 + # sed in the tests
369 + sed -i \
370 + -e "s#all : build unitcheck#all : build#g" \
371 + solenv/gbuild/Module.mk || die
372 + sed -i \
373 + -e "s#check: dev-install subsequentcheck#check: unitcheck slowcheck dev-install subsequentcheck#g" \
374 + -e "s#Makefile.gbuild all slowcheck#Makefile.gbuild all#g" \
375 + Makefile.in || die
376 +
377 + sed -i \
378 + -e "s,/usr/share/bash-completion/completions,$(get_bashcompdir)," \
379 + -e "s,\$INSTALLDIRNAME.sh,${PN}," \
380 + bin/distro-install-desktop-integration || die
381 +
382 + if use branding; then
383 + # hack...
384 + mv -v "${WORKDIR}/branding-intro.png" "icon-themes/colibre/brand/intro.png" || die
385 + fi
386 +
387 + # Don't list pdfimport support in desktop when built with none, bug # 605464
388 + if ! use pdfimport; then
389 + sed -i \
390 + -e ":MimeType: s:application/pdf;::" \
391 + -e ":Keywords: s:pdf;::" \
392 + sysui/desktop/menus/draw.desktop || die
393 + fi
394 +}
395 +
396 +src_configure() {
397 + # Set up Google API keys, see https://www.chromium.org/developers/how-tos/api-keys
398 + # Note: these are for Gentoo use ONLY. For your own distribution, please get
399 + # your own set of keys. Feel free to contact chromium@g.o for more info.
400 + local google_default_client_id="329227923882.apps.googleusercontent.com"
401 + local google_default_client_secret="vgKG0NNv7GoDpbtoFNLxCUXu"
402 +
403 + # optimization flags
404 + export GMAKE_OPTIONS="${MAKEOPTS}"
405 + # System python enablement:
406 + export PYTHON_CFLAGS=$(python_get_CFLAGS)
407 + export PYTHON_LIBS=$(python_get_LIBS)
408 +
409 + if use kde; then
410 + export QT_SELECT=5 # bug 639620 needs proper fix though
411 + export QT5DIR="$(qt5_get_bindir)/../"
412 + export MOC5="$(qt5_get_bindir)/moc"
413 + fi
414 +
415 + local gentoo_buildid="Gentoo official package"
416 + if [[ -n ${LOCOREGIT_VERSION} ]]; then
417 + gentoo_buildid+=" (from git: ${LOCOREGIT_VERSION})"
418 + fi
419 +
420 + # system headers/libs/...: enforce using system packages
421 + # --disable-breakpad: requires not-yet-in-tree dev-utils/breakpad
422 + # --enable-cairo: ensure that cairo is always required
423 + # --enable-*-link: link to the library rather than just dlopen on runtime
424 + # --enable-release-build: build the libreoffice as release
425 + # --disable-fetch-external: prevent dowloading during compile phase
426 + # --enable-extension-integration: enable any extension integration support
427 + # --without-{fonts,myspell-dicts,ppsd}: prevent install of sys pkgs
428 + # --disable-report-builder: too much java packages pulled in without pkgs
429 + # --without-system-sane: just sane.h header that is used for scan in writer,
430 + # not linked or anything else, worthless to depend on
431 + # --disable-pdfium: not yet packaged
432 + local myeconfargs=(
433 + --with-system-dicts
434 + --with-system-epoxy
435 + --with-system-headers
436 + --with-system-jars
437 + --with-system-libs
438 + --enable-build-opensymbol
439 + --enable-cairo-canvas
440 + --enable-largefile
441 + --enable-mergelibs
442 + --enable-neon
443 + --enable-python=system
444 + --enable-randr
445 + --enable-release-build
446 + --disable-breakpad
447 + --disable-bundle-mariadb
448 + --disable-ccache
449 + --disable-dependency-tracking
450 + --disable-epm
451 + --disable-fetch-external
452 + --disable-gstreamer-0-10
453 + --disable-online-update
454 + --disable-openssl
455 + --disable-pdfium
456 + --disable-report-builder
457 + --with-build-version="${gentoo_buildid}"
458 + --enable-extension-integration
459 + --with-external-dict-dir="${EPREFIX}/usr/share/myspell"
460 + --with-external-hyph-dir="${EPREFIX}/usr/share/myspell"
461 + --with-external-thes-dir="${EPREFIX}/usr/share/myspell"
462 + --with-external-tar="${DISTDIR}"
463 + --with-lang=""
464 + --with-parallelism=$(makeopts_jobs)
465 + --with-system-ucpp
466 + --with-tls=nss
467 + --with-vendor="Gentoo Foundation"
468 + --with-x
469 + --without-fonts
470 + --without-myspell-dicts
471 + --with-help="html"
472 + --without-helppack-integration
473 + --with-system-gpgmepp
474 + --without-system-sane
475 + $(use_enable bluetooth sdremote-bluetooth)
476 + $(use_enable coinmp)
477 + $(use_enable cups)
478 + $(use_enable dbus)
479 + $(use_enable debug)
480 + $(use_enable eds evolution2)
481 + $(use_enable firebird firebird-sdbc)
482 + $(use_enable gstreamer gstreamer-1-0)
483 + $(use_enable gtk gtk3)
484 + $(use_enable gtk2 gtk)
485 + $(use_enable kde kde5)
486 + $(use_enable kde qt5)
487 + $(use_enable ldap)
488 + $(use_enable odk)
489 + $(use_enable pdfimport)
490 + $(use_enable postgres postgresql-sdbc)
491 + $(use_enable vlc)
492 + $(use_with accessibility lxml)
493 + $(use_with coinmp system-coinmp)
494 + $(use_with googledrive gdrive-client-id ${google_default_client_id})
495 + $(use_with googledrive gdrive-client-secret ${google_default_client_secret})
496 + $(use_with java)
497 + $(use_with odk doxygen)
498 + )
499 +
500 + if use gtk && use kde; then
501 + myeconfargs+=( --enable-gtk3-kde5 )
502 + fi
503 +
504 + if use eds || use gtk; then
505 + myeconfargs+=( --enable-dconf --enable-gio )
506 + else
507 + myeconfargs+=( --disable-dconf --disable-gio )
508 + fi
509 +
510 + # libreoffice extensions handling
511 + for lo_xt in ${LO_EXTS}; do
512 + if [[ "${lo_xt}" == "scripting-beanshell" || "${lo_xt}" == "scripting-javascript" ]]; then
513 + myeconfargs+=( $(use_enable libreoffice_extensions_${lo_xt} ${lo_xt}) )
514 + else
515 + myeconfargs+=( $(use_enable libreoffice_extensions_${lo_xt} ext-${lo_xt}) )
516 + fi
517 + done
518 +
519 + if use java; then
520 + # hsqldb: system one is too new
521 + myeconfargs+=(
522 + --without-junit
523 + --without-system-hsqldb
524 + --with-ant-home="${ANT_HOME}"
525 + --with-jdk-home=$(java-config --jdk-home 2>/dev/null)
526 + --with-jvm-path="${EPREFIX}/usr/lib/"
527 + )
528 +
529 + use libreoffice_extensions_scripting-beanshell && \
530 + myeconfargs+=( --with-beanshell-jar=$(java-pkg_getjar bsh bsh.jar) )
531 +
532 + use libreoffice_extensions_scripting-javascript && \
533 + myeconfargs+=( --with-rhino-jar=$(java-pkg_getjar rhino-1.6 js.jar) )
534 + fi
535 +
536 + is-flagq "-flto*" && myeconfargs+=( --enable-lto )
537 +
538 + MARIADBCONFIG="$(type -p $(usex mariadb mariadb mysql)_config)" \
539 + econf "${myeconfargs[@]}"
540 +}
541 +
542 +src_compile() {
543 + # more and more LO stuff tries to use OpenGL, including tests during build
544 + # bug 501508, bug 540624, bug 545974 and probably more
545 + addpredict /dev/dri
546 + addpredict /dev/ati
547 + addpredict /dev/nvidiactl
548 +
549 + local target
550 + use test && target="build" || target="build-nocheck"
551 +
552 + # this is not a proper make script
553 + make ${target} || die
554 +}
555 +
556 +src_test() {
557 + make unitcheck || die
558 + make slowcheck || die
559 +}
560 +
561 +src_install() {
562 + # This is not Makefile so no buildserver
563 + make DESTDIR="${D}" distro-pack-install -o build -o check || die
564 +
565 + # bug 593514
566 + if use gtk; then
567 + dosym libreoffice/program/liblibreofficekitgtk.so \
568 + /usr/$(get_libdir)/liblibreofficekitgtk.so
569 + fi
570 +
571 + # bash completion aliases
572 + bashcomp_alias \
573 + libreoffice \
574 + unopkg loimpress lobase localc lodraw lomath lowriter lofromtemplate loweb loffice
575 +
576 + if use branding; then
577 + insinto /usr/$(get_libdir)/${PN}/program
578 + newins "${WORKDIR}/branding-sofficerc" sofficerc
579 + dodir /etc/env.d
580 + echo "CONFIG_PROTECT=/usr/$(get_libdir)/${PN}/program/sofficerc" > "${ED}"/etc/env.d/99${PN} || die
581 + fi
582 +}
583 +
584 +pkg_preinst() {
585 + java-utils-2_pkg_preinst
586 + xdg_pkg_preinst
587 +}