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: Fri, 22 May 2020 14:09:51
Message-Id: 1590156568.6c166f3fa7d6cd3fa527e78a51c720d1544afcfb.asturm@gentoo
1 commit: 6c166f3fa7d6cd3fa527e78a51c720d1544afcfb
2 Author: Andreas Sturmlechner <asturm <AT> gentoo <DOT> org>
3 AuthorDate: Fri May 22 12:40:27 2020 +0000
4 Commit: Andreas Sturmlechner <asturm <AT> gentoo <DOT> org>
5 CommitDate: Fri May 22 14:09:28 2020 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=6c166f3f
7
8 app-office/libreoffice: 6.4.4.2 version bump
9
10 Package-Manager: Portage-2.3.99, Repoman-2.3.22
11 Signed-off-by: Andreas Sturmlechner <asturm <AT> gentoo.org>
12
13 app-office/libreoffice/Manifest | 2 +
14 app-office/libreoffice/libreoffice-6.4.4.2.ebuild | 552 ++++++++++++++++++++++
15 2 files changed, 554 insertions(+)
16
17 diff --git a/app-office/libreoffice/Manifest b/app-office/libreoffice/Manifest
18 index b621ea22158..90d9da37bac 100644
19 --- a/app-office/libreoffice/Manifest
20 +++ b/app-office/libreoffice/Manifest
21 @@ -8,8 +8,10 @@ DIST dtoa-20180411.tgz 48893 BLAKE2B 4a03dc67e44353ae1c0653c8305d2df9bcfef16b48d
22 DIST libreoffice-6.3.4.2.tar.xz 225632492 BLAKE2B 587fe7e6298ded60fa08963f572733eb8e387c00b428201bb6f1de7eddcf9d9ee97438231ed3f961bd22628bde0fd9dfeacb63febdc566cde781bcebb9c9a71d SHA512 2ed687ae805da36635419729066a2924f1e38a6b0f8d2692c42b366450a261012adfcd8a5d7915d9cfd292d07519fc32c596cdb56d7be6b12a49618b18d6f3d2
23 DIST libreoffice-6.3.5.2.tar.xz 226222804 BLAKE2B f4b996f8eedf58f7e2ec1d1d796aecf1cc35f394cc5800b1e15db60534096a91e329f9744c8582dae85a12fb6c849be8cceff8998b45074ecc9535f7afce542c SHA512 041ee00e347f6ef229a97b56d9ceee6c0fa80a56436cc2dce909878d08d617d316731a7a21cdc4b6d5ef800f3d00d3ee67c69f770912028261f1552e79899a1a
24 DIST libreoffice-6.4.3.2.tar.xz 230409812 BLAKE2B f9cdad1540c45525bd70596dc3033e3466fcdf3d96547222b936141e49ff6d45581ca59d0e42c4bb79fcb63586d748ccafae712369e024105235e2a9b69be7ce SHA512 ee11c704fa7184ffe371aa36c835c4c7fb06ef03d08fa0a5a9e647e80610db275e091d1ac79c1fe11af0c7f14dd72c821da9e7e6ba59573fc88cec79f84c873a
25 +DIST libreoffice-6.4.4.2.tar.xz 231325236 BLAKE2B 25e1c765cb0ff9c195ca46a9fe857eef22ab6319da6b069e2c5c093a8f13eac2e1c5efa31fbacd4e3acbdc07e75745ff5c62c180cb61141319422720405a4638 SHA512 8e2b6a2d34fbc182ce4ec0b6d6bfb30665ff5cee0a27a22551c71d4eddf63b812d676ea8dea9a2e4bb028a2365b5e23908679efbe4696032e1abeedecb85b8d3
26 DIST libreoffice-branding-gentoo-0.8.tar.xz 151568 BLAKE2B f03c7ddeb53c5ca3fd23401679601fcf2c4037ba17be4eb7b784c7ce7ebb71a24b8ab4aac8b7da8c6b1f14dd23bc1294ba85ff4f70ad271fb4ee3c5372e10883 SHA512 785031a699b1d1895ce4b50ffc3ddf645f3a0ef9acdf37facfd18cf75db9484cb8f53a50abb63d6006ead76a80b6ff5aa99661063245ebb84bd64013d713de7f
27 DIST libreoffice-help-6.3.4.2.tar.xz 13191636 BLAKE2B c1696efa0ec9fef9dbcc0c0388de8a384484af1453d200e08820ba910cdcb65638b189566a19868281fd1777213812fde06adb07c1a662302eea1d0a791ff5a0 SHA512 8c74c82c7d73adb1523300d1f7500769f5a623fdba60b440a63c122cbfeb631a6a34ecbcb115b0154a6957be1918306f7d0c1f465030f8e8cfd5c9a1acad17c9
28 DIST libreoffice-help-6.3.5.2.tar.xz 13192732 BLAKE2B 79e869d8d2bb91243e9fe2ba279bfcd4f3b759904fdd2efbeb1add773cb732621a41841c4064ad63ad9713a53e626c50bfcc1b3d9137ddb4fe73fca39f710bb9 SHA512 aec83b210cc596131aa5bcb37012a98cc42c365274c4f80e8e87595f4f50d8f36588256616738ba3c2c9a8a61d03ed5e6c33a4b588561c5084cd008c5dbe787a
29 DIST libreoffice-help-6.4.3.2.tar.xz 88297704 BLAKE2B bbd1af159c8b8db1909335f37095812ec3ce81d73644a30a85f3e37daeabeb9a158451b8e586f24d4b7544c8cd0948eeb20ede464384c3277d196f33322e63fb SHA512 9f8c1bcde27d153389d124af1393d0939262c85a1624f0b475a5515b5737612cb607d04742a069534771eee51ba98896926804ec7001d6bc2110dccdd6e7615a
30 +DIST libreoffice-help-6.4.4.2.tar.xz 88296340 BLAKE2B 73ef558b830e0e2899eb72727e0eb81327807ff2d474c8d956700a09bcadc73cbff26688063f91d3a496afa55ab9a7d4847d84334b89fe4fafe17fb445fbb33d SHA512 7084428e63a458c4e35c135b16dd980fa98695be0ba974cac656a7ef6cb15b059a082891c3f74b72a62f92549afefe46c14ab30b5491fd9e3fea6d5923720b3d
31 DIST skia-m83-8ce842d38d0b32149e874d6855c91e8c68ba65a7.tar.xz 8218672 BLAKE2B cfeb805d82ce1f5dd70c7365983fa8107d5ccda9409b2654c032115cdf8a1c32fa0451162b0cceec3dcc0054e3d0d0e13583ea93843b0d0a6eb948cc31c15ce0 SHA512 1018fc1cc8a7edc15745cc20791f9a22e5b318018ba619d6cb5b6995d3e81ab93c910bb3a42734872d3be54893c2ce7db507b2c61088660b2ce6630ff9b36ebb
32
33 diff --git a/app-office/libreoffice/libreoffice-6.4.4.2.ebuild b/app-office/libreoffice/libreoffice-6.4.4.2.ebuild
34 new file mode 100644
35 index 00000000000..d2afc055304
36 --- /dev/null
37 +++ b/app-office/libreoffice/libreoffice-6.4.4.2.ebuild
38 @@ -0,0 +1,552 @@
39 +# Copyright 1999-2020 Gentoo Authors
40 +# Distributed under the terms of the GNU General Public License v2
41 +
42 +EAPI=7
43 +
44 +PYTHON_COMPAT=( python3_{6,7,8} )
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 + # QR code generating library for >=libreoffice-6.4
86 + "${ADDONS_URI}/QR-Code-generator-1.4.0.tar.gz"
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 kde ldap +mariadb odk pdfimport postgres test
107 +$(printf 'libreoffice_extensions_%s ' ${LO_EXTS})"
108 +
109 +REQUIRED_USE="${PYTHON_REQUIRED_USE}
110 + bluetooth? ( dbus )
111 + gtk? ( dbus )
112 + libreoffice_extensions_nlpsolver? ( java )
113 + libreoffice_extensions_scripting-beanshell? ( java )
114 + libreoffice_extensions_scripting-javascript? ( java )
115 + libreoffice_extensions_wiki-publisher? ( java )
116 +"
117 +
118 +RESTRICT="!test? ( test )"
119 +
120 +LICENSE="|| ( LGPL-3 MPL-1.1 )"
121 +SLOT="0"
122 +
123 +[[ ${MY_PV} == *9999* ]] || \
124 +KEYWORDS="~amd64 ~arm ~arm64 ~ppc64 ~x86 ~amd64-linux ~x86-linux"
125 +
126 +BDEPEND="
127 + dev-util/intltool
128 + sys-devel/bison
129 + sys-devel/flex
130 + sys-devel/gettext
131 + virtual/pkgconfig
132 + odk? ( >=app-doc/doxygen-1.8.4 )
133 +"
134 +COMMON_DEPEND="${PYTHON_DEPS}
135 + app-arch/unzip
136 + app-arch/zip
137 + app-crypt/gpgme[cxx]
138 + app-text/hunspell:=
139 + >=app-text/libabw-0.1.0
140 + >=app-text/libebook-0.1
141 + app-text/libepubgen
142 + >=app-text/libetonyek-0.1
143 + app-text/libexttextcat
144 + app-text/liblangtag
145 + >=app-text/libmspub-0.1.0
146 + >=app-text/libmwaw-0.3.1
147 + app-text/libnumbertext
148 + >=app-text/libodfgen-0.1.0
149 + app-text/libqxp
150 + app-text/libstaroffice
151 + app-text/libwpd:0.10[tools]
152 + app-text/libwpg:0.3
153 + >=app-text/libwps-0.4
154 + app-text/mythes
155 + >=dev-cpp/clucene-2.3.3.4-r2
156 + >=dev-cpp/libcmis-0.5.2
157 + dev-db/unixODBC
158 + dev-lang/perl
159 + >=dev-libs/boost-1.72.0:=[nls]
160 + dev-libs/expat
161 + dev-libs/hyphen
162 + dev-libs/icu:=
163 + dev-libs/libassuan
164 + dev-libs/libgpg-error
165 + >=dev-libs/liborcus-0.15.0
166 + dev-libs/librevenge
167 + dev-libs/libxml2
168 + dev-libs/libxslt
169 + dev-libs/nspr
170 + dev-libs/nss
171 + >=dev-libs/redland-1.0.16
172 + >=dev-libs/xmlsec-1.2.28[nss]
173 + media-gfx/fontforge
174 + media-gfx/graphite2
175 + media-libs/fontconfig
176 + media-libs/freetype:2
177 + >=media-libs/harfbuzz-0.9.42:=[graphite,icu]
178 + media-libs/lcms:2
179 + >=media-libs/libcdr-0.1.0
180 + >=media-libs/libepoxy-1.3.1[X]
181 + >=media-libs/libfreehand-0.1.0
182 + media-libs/libpagemaker
183 + >=media-libs/libpng-1.4:0=
184 + >=media-libs/libvisio-0.1.0
185 + media-libs/libzmf
186 + net-libs/neon
187 + net-misc/curl
188 + sci-mathematics/lpsolve
189 + sys-libs/zlib
190 + virtual/glu
191 + virtual/jpeg:0
192 + virtual/opengl
193 + x11-libs/cairo[X]
194 + x11-libs/libXinerama
195 + x11-libs/libXrandr
196 + x11-libs/libXrender
197 + accessibility? (
198 + $(python_gen_cond_dep 'dev-python/lxml[${PYTHON_MULTI_USEDEP}]')
199 + )
200 + bluetooth? (
201 + dev-libs/glib:2
202 + net-wireless/bluez
203 + )
204 + coinmp? ( sci-libs/coinor-mp )
205 + cups? ( net-print/cups )
206 + dbus? ( sys-apps/dbus[X] )
207 + eds? (
208 + dev-libs/glib:2
209 + gnome-base/dconf
210 + gnome-extra/evolution-data-server
211 + )
212 + firebird? ( >=dev-db/firebird-3.0.2.32703.0-r1[server] )
213 + gstreamer? (
214 + media-libs/gstreamer:1.0
215 + media-libs/gst-plugins-base:1.0
216 + )
217 + gtk? (
218 + dev-libs/glib:2
219 + dev-libs/gobject-introspection
220 + gnome-base/dconf
221 + media-libs/mesa[egl]
222 + x11-libs/gtk+:3
223 + x11-libs/pango
224 + )
225 + kde? (
226 + dev-qt/qtcore:5
227 + dev-qt/qtgui:5
228 + dev-qt/qtwidgets:5
229 + dev-qt/qtx11extras:5
230 + kde-frameworks/kconfig:5
231 + kde-frameworks/kcoreaddons:5
232 + kde-frameworks/ki18n:5
233 + kde-frameworks/kio:5
234 + kde-frameworks/kwindowsystem:5
235 + )
236 + ldap? ( net-nds/openldap )
237 + libreoffice_extensions_scripting-beanshell? ( dev-java/bsh )
238 + libreoffice_extensions_scripting-javascript? ( dev-java/rhino:1.6 )
239 + mariadb? ( dev-db/mariadb-connector-c )
240 + !mariadb? ( dev-db/mysql-connector-c )
241 + pdfimport? ( app-text/poppler:=[cxx] )
242 + postgres? ( >=dev-db/postgresql-9.0:*[kerberos] )
243 +"
244 +# FIXME: cppunit should be moved to test conditional
245 +# after everything upstream is under gbuild
246 +# as dmake execute tests right away
247 +# tests apparently also need google-carlito-fonts (not packaged)
248 +DEPEND="${COMMON_DEPEND}
249 + >=dev-libs/libatomic_ops-7.2d
250 + dev-perl/Archive-Zip
251 + >=dev-util/cppunit-1.14.0
252 + >=dev-util/gperf-3.1
253 + dev-util/mdds:1/1.5
254 + media-libs/glm
255 + sys-devel/ucpp
256 + x11-base/xorg-proto
257 + x11-libs/libXt
258 + x11-libs/libXtst
259 + java? (
260 + dev-java/ant-core
261 + >=virtual/jdk-1.8
262 + )
263 + test? (
264 + app-crypt/gnupg
265 + dev-util/cppunit
266 + media-fonts/dejavu
267 + media-fonts/liberation-fonts
268 + )
269 +"
270 +RDEPEND="${COMMON_DEPEND}
271 + !app-office/libreoffice-bin
272 + !app-office/libreoffice-bin-debug
273 + !app-office/openoffice
274 + media-fonts/liberation-fonts
275 + || ( x11-misc/xdg-utils kde-plasma/kde-cli-tools )
276 + java? ( >=virtual/jre-1.8 )
277 + kde? ( kde-frameworks/breeze-icons:* )
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 + # "${WORKDIR}"/${PATCHSET/.tar.xz/}
289 +
290 + # not upstreamable stuff
291 + "${FILESDIR}/${PN}-5.4-system-pyuno.patch"
292 + "${FILESDIR}/${PN}-5.3.4.2-kioclient5.patch"
293 + "${FILESDIR}/${PN}-6.1-nomancompress.patch"
294 +
295 + # git master
296 + "${FILESDIR}/${PN}-6.4.3.2-boost-1.73.patch" # bug 721806
297 +
298 + # TODO: upstream (for now taken from Arch Linux)
299 + "${FILESDIR}/${PN}-6.4.2.2-poppler-0.86.patch" # bug 711102
300 +)
301 +
302 +S="${WORKDIR}/${PN}-${MY_PV}"
303 +
304 +_check_reqs() {
305 + CHECKREQS_MEMORY="512M"
306 + if is-flagq "-g*" && ! is-flagq "-g*0" ; then
307 + CHECKREQS_DISK_BUILD="22G"
308 + else
309 + CHECKREQS_DISK_BUILD="6G"
310 + fi
311 + check-reqs_$1
312 +}
313 +
314 +pkg_pretend() {
315 + if ! use java && ! use firebird; then
316 + ewarn "If you plan to use Base application you must enable either firebird or java."
317 + fi
318 +
319 + use java || ewarn "Without java, several wizards are not going to be available."
320 +
321 + [[ ${MERGE_TYPE} != binary ]] && _check_reqs pkg_pretend
322 +}
323 +
324 +pkg_setup() {
325 + java-pkg-opt-2_pkg_setup
326 + python-single-r1_pkg_setup
327 + xdg_environment_reset
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 + default
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 + # --without-system-qrencode: has no real build system and LO is the only user
433 + local myeconfargs=(
434 + --with-system-dicts
435 + --with-system-epoxy
436 + --with-system-headers
437 + --with-system-jars
438 + --with-system-libs
439 + --enable-build-opensymbol
440 + --enable-cairo-canvas
441 + --enable-largefile
442 + --enable-mergelibs
443 + --enable-neon
444 + --enable-python=system
445 + --enable-randr
446 + --enable-release-build
447 + --disable-breakpad
448 + --disable-bundle-mariadb
449 + --disable-ccache
450 + --disable-epm
451 + --disable-fetch-external
452 + --disable-gtk3-kde5
453 + --disable-online-update
454 + --disable-openssl
455 + --disable-pdfium
456 + --disable-report-builder
457 + --disable-vlc
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 + --with-help="html"
473 + --without-helppack-integration
474 + --with-system-gpgmepp
475 + --without-system-sane
476 + --without-system-qrcodegen
477 + $(use_enable bluetooth sdremote-bluetooth)
478 + $(use_enable coinmp)
479 + $(use_enable cups)
480 + $(use_enable dbus)
481 + $(use_enable debug)
482 + $(use_enable eds evolution2)
483 + $(use_enable firebird firebird-sdbc)
484 + $(use_enable gstreamer gstreamer-1-0)
485 + $(use_enable gtk gtk3)
486 + $(use_enable kde kf5)
487 + $(use_enable kde qt5)
488 + $(use_enable ldap)
489 + $(use_enable odk)
490 + $(use_enable pdfimport)
491 + $(use_enable postgres postgresql-sdbc)
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 eds || use gtk; then
501 + myeconfargs+=( --enable-dconf --enable-gio )
502 + else
503 + myeconfargs+=( --disable-dconf --disable-gio )
504 + fi
505 +
506 + # libreoffice extensions handling
507 + for lo_xt in ${LO_EXTS}; do
508 + if [[ "${lo_xt}" == "scripting-beanshell" || "${lo_xt}" == "scripting-javascript" ]]; then
509 + myeconfargs+=( $(use_enable libreoffice_extensions_${lo_xt} ${lo_xt}) )
510 + else
511 + myeconfargs+=( $(use_enable libreoffice_extensions_${lo_xt} ext-${lo_xt}) )
512 + fi
513 + done
514 +
515 + if use java; then
516 + # hsqldb: system one is too new
517 + myeconfargs+=(
518 + --without-junit
519 + --without-system-hsqldb
520 + --with-ant-home="${ANT_HOME}"
521 + --with-jdk-home=$(java-config --jdk-home 2>/dev/null)
522 + --with-jvm-path="${EPREFIX}/usr/lib/"
523 + )
524 +
525 + use libreoffice_extensions_scripting-beanshell && \
526 + myeconfargs+=( --with-beanshell-jar=$(java-pkg_getjar bsh bsh.jar) )
527 +
528 + use libreoffice_extensions_scripting-javascript && \
529 + myeconfargs+=( --with-rhino-jar=$(java-pkg_getjar rhino-1.6 js.jar) )
530 + fi
531 +
532 + is-flagq "-flto*" && myeconfargs+=( --enable-lto )
533 +
534 + MARIADBCONFIG="$(type -p $(usex mariadb mariadb mysql)_config)" \
535 + econf "${myeconfargs[@]}"
536 +}
537 +
538 +src_compile() {
539 + # more and more LO stuff tries to use OpenGL, including tests during build
540 + # bug 501508, bug 540624, bug 545974 and probably more
541 + addpredict /dev/dri
542 + addpredict /dev/ati
543 + addpredict /dev/nvidiactl
544 +
545 + local target
546 + use test && target="build" || target="build-nocheck"
547 +
548 + # this is not a proper make script
549 + make ${target} || die
550 +}
551 +
552 +src_test() {
553 + make unitcheck || die
554 + make slowcheck || die
555 +}
556 +
557 +src_install() {
558 + # This is not Makefile so no buildserver
559 + emake DESTDIR="${D}" distro-pack-install -o build -o check
560 +
561 + # bug 593514
562 + if use gtk; then
563 + dosym libreoffice/program/liblibreofficekitgtk.so \
564 + /usr/$(get_libdir)/liblibreofficekitgtk.so
565 + fi
566 +
567 + # bash completion aliases
568 + bashcomp_alias \
569 + libreoffice \
570 + unopkg loimpress lobase localc lodraw lomath lowriter lofromtemplate loweb loffice
571 +
572 + if use branding; then
573 + insinto /usr/$(get_libdir)/${PN}/program
574 + newins "${WORKDIR}/branding-sofficerc" sofficerc
575 + dodir /etc/env.d
576 + echo "CONFIG_PROTECT=/usr/$(get_libdir)/${PN}/program/sofficerc" > "${ED}"/etc/env.d/99${PN} || die
577 + fi
578 +}
579 +
580 +pkg_postinst() {
581 + xdg_icon_cache_update
582 + xdg_desktop_database_update
583 + xdg_mimeinfo_database_update
584 +}
585 +
586 +pkg_postrm() {
587 + xdg_icon_cache_update
588 + xdg_desktop_database_update
589 + xdg_mimeinfo_database_update
590 +}