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