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