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