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, 26 Sep 2019 15:24:44
Message-Id: 1569511466.54140d20b068ece603f45090c122d195e930450b.asturm@gentoo
1 commit: 54140d20b068ece603f45090c122d195e930450b
2 Author: Andreas Sturmlechner <asturm <AT> gentoo <DOT> org>
3 AuthorDate: Thu Sep 26 15:23:36 2019 +0000
4 Commit: Andreas Sturmlechner <asturm <AT> gentoo <DOT> org>
5 CommitDate: Thu Sep 26 15:24:26 2019 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=54140d20
7
8 app-office/libreoffice: 6.3.2.2 version bump
9
10 Package-Manager: Portage-2.3.69, Repoman-2.3.16
11 Signed-off-by: Andreas Sturmlechner <asturm <AT> gentoo.org>
12
13 app-office/libreoffice/Manifest | 2 +
14 app-office/libreoffice/libreoffice-6.3.2.2.ebuild | 550 ++++++++++++++++++++++
15 2 files changed, 552 insertions(+)
16
17 diff --git a/app-office/libreoffice/Manifest b/app-office/libreoffice/Manifest
18 index 34b72417fd0..09d3bf2b8ee 100644
19 --- a/app-office/libreoffice/Manifest
20 +++ b/app-office/libreoffice/Manifest
21 @@ -6,7 +6,9 @@ DIST a7983f859eafb2677d7ff386a023bc40-xsltml_2.1.2.zip 23150 BLAKE2B 51db6bd9058
22 DIST libreoffice-6.2.5.2.tar.xz 215008848 BLAKE2B 5dd1ef185820944816e01c8ed6a7873a5a8fe6f7f4b41fad279729970d85ff868f51ed573e8b3d0a554ffd1f8e295b6ff2e493e7f7250f8cb1c7c2a40115abf4 SHA512 b46b6731c415ab354ad7d876cb8905cb9eae2ca71639abf049ea7f5930601c957cc0eb04a2cd06949073ba5e94778ecdb449692ed8bbfbd95b05f6e7980d8d10
23 DIST libreoffice-6.2.7.1.tar.xz 215022744 BLAKE2B 717acc3c310d3d973464b422176ccb4aae1481f2537c419e3afd031a2c2967a7b20b4cc5b60499befcae279441176a275f339e65534c4eb9d7395c6e050ba6e3 SHA512 9ed37c7957bb214a3de0b3dadea9debd5056d641052a669904d543a7065f1f5c721e09ddda800dfb478ff0474f71a275c7208077cb7b6566786d3b637f42860b
24 DIST libreoffice-6.3.1.2.tar.xz 224614340 BLAKE2B b21e0133d88bf0c2377d2a1670b6730dc4c9c0cd2d6fc75e5db50cc6b4ee247322b8e5f772349c608bb5beca135e7be1ed72672fdf35ef855615f70d39da6e5a SHA512 f2fee3bb8f4470119fa77387733fb01a1fb05ecdc4b6339a27539101f0b317e5beaadba0de0b4b053f7b7d8eacbed85f0d3e21400c743b02c69cd30260bb7f2b
25 +DIST libreoffice-6.3.2.2.tar.xz 224752776 BLAKE2B 397d125714ae591d174ea185a488ecb652946de76d015c4ffb85e1c27ed34f87b5808ac41309b52fba117aab67097a0c378284721f0e5f3eb8e3284c799ed8dd SHA512 f0576f5a5b2c91ee6c003cbf9772580c564e05f66c3b34ddee4b723095aaa3a55070df3d70d7e6b8be68e23a7e204c1237496d7e798f9494282cadba0eacf930
26 DIST libreoffice-branding-gentoo-0.8.tar.xz 151568 BLAKE2B f03c7ddeb53c5ca3fd23401679601fcf2c4037ba17be4eb7b784c7ce7ebb71a24b8ab4aac8b7da8c6b1f14dd23bc1294ba85ff4f70ad271fb4ee3c5372e10883 SHA512 785031a699b1d1895ce4b50ffc3ddf645f3a0ef9acdf37facfd18cf75db9484cb8f53a50abb63d6006ead76a80b6ff5aa99661063245ebb84bd64013d713de7f
27 DIST libreoffice-help-6.2.5.2.tar.xz 13023680 BLAKE2B f1f3a03104c1270e59f2b9130a29e1fbc99a9bf76b2bf4cedef8dc61487c9a2036f143501ad7fcd0c056c8b72446305b7a4ca9a719b11200ade5feca35e5e7ea SHA512 14f964161bd827a5846ec667ae1dac80d1485450e172da44010103e31f3872df62595e8b1b1d45c720caac9256d2adaf8f5a0bb80d059d35f1c560b533eb764c
28 DIST libreoffice-help-6.2.7.1.tar.xz 13024328 BLAKE2B fcdb01a52abb90773baa96b0c25fc04bf928e13b940a5cadd7eb455a3004f83d339252346d7c615fbe511cee7e093560c99bf6ff6bd2e5e832d57d4d1053ebc6 SHA512 b4599bf6854efa800483cf16132c9809ea439d29ea63c7621a0f04ce19609a7a1966d86862342f911cde22a3bd19fe5b96ad9bdb34d5255eb716352a8ce9bbaa
29 DIST libreoffice-help-6.3.1.2.tar.xz 13191520 BLAKE2B b7f59e0ee9d4096f6a5ebb8d2decdd4b5604dac5cc00fc223ac96ae28d59f04c149361c096dd501d4fa37063f15118903006e2e8bcc30e7c0f21d545c23a71ba SHA512 05576a225f038f16a491bbd436096e51906b9f81b2cb8e856fe94fee67c1f830473b90421f6962fccf8ef6a0877610249dd18c1874b4c812582648adc5801452
30 +DIST libreoffice-help-6.3.2.2.tar.xz 13192064 BLAKE2B 83c742faa698370e1561133d4c7351619639b343068691d830433ff5dfa4af20ba7f89428b67275f7f19c947dd84e4c03aa330e4ddd684dbd19acee14e842ba9 SHA512 34f34abbd21e37ea6f8ed860af27bbd641cb98331f235b84c5b5cc4e3fa01d9f43a32469f5df4f4cf4dde0e804ba12e73fdd6d357413d5d7641c32396abf09f1
31
32 diff --git a/app-office/libreoffice/libreoffice-6.3.2.2.ebuild b/app-office/libreoffice/libreoffice-6.3.2.2.ebuild
33 new file mode 100644
34 index 00000000000..6d7145dfa93
35 --- /dev/null
36 +++ b/app-office/libreoffice/libreoffice-6.3.2.2.ebuild
37 @@ -0,0 +1,550 @@
38 +# Copyright 1999-2019 Gentoo Authors
39 +# Distributed under the terms of the GNU General Public License v2
40 +
41 +EAPI=7
42 +
43 +PYTHON_COMPAT=( python2_7 python3_{5,6,7} )
44 +PYTHON_REQ_USE="threads(+),xml"
45 +
46 +MY_PV="${PV/_alpha/.alpha}"
47 +MY_PV="${MY_PV/_beta/.beta}"
48 +# experimental ; release ; old
49 +# Usually the tarballs are moved a lot so this should make everyone happy.
50 +DEV_URI="
51 + https://dev-builds.libreoffice.org/pre-releases/src
52 + https://download.documentfoundation.org/libreoffice/src/${MY_PV:0:5}/
53 + https://downloadarchive.documentfoundation.org/libreoffice/old/${MY_PV}/src
54 +"
55 +ADDONS_URI="https://dev-www.libreoffice.org/src/"
56 +
57 +BRANDING="${PN}-branding-gentoo-0.8.tar.xz"
58 +# PATCHSET="${P}-patchset-01.tar.xz"
59 +
60 +[[ ${MY_PV} == *9999* ]] && inherit git-r3
61 +inherit autotools bash-completion-r1 check-reqs flag-o-matic java-pkg-opt-2 multiprocessing python-single-r1 qmake-utils toolchain-funcs xdg-utils
62 +
63 +DESCRIPTION="A full office productivity suite"
64 +HOMEPAGE="https://www.libreoffice.org"
65 +SRC_URI="branding? ( https://dev.gentoo.org/~dilfridge/distfiles/${BRANDING} )"
66 +[[ -n ${PATCHSET} ]] && SRC_URI+=" https://dev.gentoo.org/~asturm/distfiles/${PATCHSET}"
67 +
68 +# Split modules following git/tarballs; Core MUST be first!
69 +# Help is used for the image generator
70 +# Only release has the tarballs
71 +if [[ ${MY_PV} != *9999* ]]; then
72 + for i in ${DEV_URI}; do
73 + SRC_URI+=" ${i}/${PN}-${MY_PV}.tar.xz"
74 + SRC_URI+=" ${i}/${PN}-help-${MY_PV}.tar.xz"
75 + done
76 + unset i
77 +fi
78 +unset DEV_URI
79 +
80 +# Really required addons
81 +# These are bundles that can't be removed for now due to huge patchsets.
82 +# If you want them gone, patches are welcome.
83 +ADDONS_SRC=(
84 + "java? ( ${ADDONS_URI}/17410483b5b5f267aa18b7e00b65e6e0-hsqldb_1_8_0.zip )"
85 + # no release for 8 years, should we package it?
86 + "libreoffice_extensions_wiki-publisher? ( ${ADDONS_URI}/a7983f859eafb2677d7ff386a023bc40-xsltml_2.1.2.zip )"
87 + # Does not build with 1.6 rhino at all
88 + "libreoffice_extensions_scripting-javascript? ( ${ADDONS_URI}/798b2ffdc8bcfe7bca2cf92b62caf685-rhino1_5R5.zip )"
89 + # requirement of rhino
90 + "libreoffice_extensions_scripting-javascript? ( ${ADDONS_URI}/35c94d2df8893241173de1d16b6034c0-swingExSrc.zip )"
91 + # not packageable
92 + "odk? ( http://download.go-oo.org/extern/185d60944ea767075d27247c3162b3bc-unowinreg.dll )"
93 +)
94 +SRC_URI+=" ${ADDONS_SRC[*]}"
95 +
96 +unset ADDONS_URI
97 +unset ADDONS_SRC
98 +
99 +# Extensions that need extra work:
100 +LO_EXTS="nlpsolver scripting-beanshell scripting-javascript wiki-publisher"
101 +
102 +IUSE="accessibility bluetooth +branding coinmp +cups dbus debug eds firebird
103 +googledrive gstreamer +gtk gtk2 kde ldap +mariadb odk pdfimport postgres test
104 +$(printf 'libreoffice_extensions_%s ' ${LO_EXTS})"
105 +
106 +REQUIRED_USE="${PYTHON_REQUIRED_USE}
107 + bluetooth? ( dbus )
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 ~arm ~arm64 ~ppc64 ~x86 ~amd64-linux ~x86-linux"
118 +
119 +BDEPEND="
120 + dev-util/intltool
121 + sys-devel/bison
122 + sys-devel/flex
123 + sys-devel/gettext
124 + virtual/pkgconfig
125 + odk? ( >=app-doc/doxygen-1.8.4 )
126 +"
127 +COMMON_DEPEND="${PYTHON_DEPS}
128 + app-arch/unzip
129 + app-arch/zip
130 + app-crypt/gpgme[cxx]
131 + app-text/hunspell:=
132 + >=app-text/libabw-0.1.0
133 + >=app-text/libebook-0.1
134 + app-text/libepubgen
135 + >=app-text/libetonyek-0.1
136 + app-text/libexttextcat
137 + app-text/liblangtag
138 + >=app-text/libmspub-0.1.0
139 + >=app-text/libmwaw-0.3.1
140 + app-text/libnumbertext
141 + >=app-text/libodfgen-0.1.0
142 + app-text/libqxp
143 + app-text/libstaroffice
144 + app-text/libwpd:0.10[tools]
145 + app-text/libwpg:0.3
146 + >=app-text/libwps-0.4
147 + app-text/mythes
148 + >=dev-cpp/clucene-2.3.3.4-r2
149 + >=dev-cpp/libcmis-0.5.2
150 + dev-db/unixODBC
151 + dev-lang/perl
152 + dev-libs/boost:=[nls]
153 + dev-libs/expat
154 + dev-libs/hyphen
155 + dev-libs/icu:=
156 + dev-libs/libassuan
157 + dev-libs/libgpg-error
158 + >=dev-libs/liborcus-0.14.0
159 + dev-libs/librevenge
160 + dev-libs/libxml2
161 + dev-libs/libxslt
162 + dev-libs/nspr
163 + dev-libs/nss
164 + >=dev-libs/redland-1.0.16
165 + >=dev-libs/xmlsec-1.2.28[nss]
166 + media-gfx/fontforge
167 + media-gfx/graphite2
168 + media-libs/fontconfig
169 + media-libs/freetype:2
170 + >=media-libs/harfbuzz-0.9.42:=[graphite,icu]
171 + media-libs/lcms:2
172 + >=media-libs/libcdr-0.1.0
173 + >=media-libs/libepoxy-1.3.1[X]
174 + >=media-libs/libfreehand-0.1.0
175 + media-libs/libpagemaker
176 + >=media-libs/libpng-1.4:0=
177 + >=media-libs/libvisio-0.1.0
178 + media-libs/libzmf
179 + net-libs/neon
180 + net-misc/curl
181 + sci-mathematics/lpsolve
182 + sys-libs/zlib
183 + virtual/glu
184 + virtual/jpeg:0
185 + virtual/opengl
186 + x11-libs/cairo[X]
187 + x11-libs/libXinerama
188 + x11-libs/libXrandr
189 + x11-libs/libXrender
190 + accessibility? ( dev-python/lxml[${PYTHON_USEDEP}] )
191 + bluetooth? (
192 + dev-libs/glib:2
193 + net-wireless/bluez
194 + )
195 + coinmp? ( sci-libs/coinor-mp )
196 + cups? ( net-print/cups )
197 + dbus? ( sys-apps/dbus )
198 + eds? (
199 + dev-libs/glib:2
200 + gnome-base/dconf
201 + gnome-extra/evolution-data-server
202 + )
203 + firebird? ( >=dev-db/firebird-3.0.2.32703.0-r1[server] )
204 + gstreamer? (
205 + media-libs/gstreamer:1.0
206 + media-libs/gst-plugins-base:1.0
207 + )
208 + gtk? (
209 + dev-libs/glib:2
210 + dev-libs/gobject-introspection
211 + gnome-base/dconf
212 + media-libs/mesa[egl]
213 + x11-libs/gtk+:3
214 + x11-libs/pango
215 + )
216 + gtk2? (
217 + x11-libs/gdk-pixbuf
218 + >=x11-libs/gtk+-2.24:2
219 + x11-libs/pango
220 + )
221 + kde? (
222 + dev-qt/qtcore:5
223 + dev-qt/qtgui:5
224 + dev-qt/qtwidgets:5
225 + dev-qt/qtx11extras:5
226 + kde-frameworks/kconfig:5
227 + kde-frameworks/kcoreaddons:5
228 + kde-frameworks/ki18n:5
229 + kde-frameworks/kio:5
230 + kde-frameworks/kwindowsystem:5
231 + )
232 + ldap? ( net-nds/openldap )
233 + libreoffice_extensions_scripting-beanshell? ( dev-java/bsh )
234 + libreoffice_extensions_scripting-javascript? ( dev-java/rhino:1.6 )
235 + mariadb? ( dev-db/mariadb-connector-c )
236 + !mariadb? ( dev-db/mysql-connector-c )
237 + pdfimport? ( app-text/poppler:=[cxx] )
238 + postgres? ( >=dev-db/postgresql-9.0:*[kerberos] )
239 +"
240 +# FIXME: cppunit should be moved to test conditional
241 +# after everything upstream is under gbuild
242 +# as dmake execute tests right away
243 +# tests apparently also need google-carlito-fonts (not packaged)
244 +DEPEND="${COMMON_DEPEND}
245 + >=dev-libs/libatomic_ops-7.2d
246 + dev-perl/Archive-Zip
247 + >=dev-util/cppunit-1.14.0
248 + >=dev-util/gperf-3.1
249 + >=dev-util/mdds-1.4.1:1=
250 + media-libs/glm
251 + sys-devel/ucpp
252 + x11-base/xorg-proto
253 + x11-libs/libXt
254 + x11-libs/libXtst
255 + java? (
256 + dev-java/ant-core
257 + >=virtual/jdk-1.6
258 + )
259 + test? (
260 + app-crypt/gnupg
261 + dev-util/cppunit
262 + media-fonts/dejavu
263 + media-fonts/liberation-fonts
264 + )
265 +"
266 +RDEPEND="${COMMON_DEPEND}
267 + !app-office/libreoffice-bin
268 + !app-office/libreoffice-bin-debug
269 + !app-office/openoffice
270 + media-fonts/liberation-fonts
271 + || ( x11-misc/xdg-utils kde-plasma/kde-cli-tools )
272 + java? ( >=virtual/jre-1.6 )
273 + kde? ( kde-frameworks/breeze-icons:* )
274 +"
275 +if [[ ${MY_PV} != *9999* ]] && [[ ${PV} != *_* ]]; then
276 + PDEPEND="=app-office/libreoffice-l10n-$(ver_cut 1-2)*"
277 +else
278 + # Translations are not reliable on live ebuilds
279 + # rather force people to use english only.
280 + PDEPEND="!app-office/libreoffice-l10n"
281 +fi
282 +
283 +PATCHES=(
284 + # "${WORKDIR}"/${PATCHSET/.tar.xz/}
285 +
286 + # not upstreamable stuff
287 + "${FILESDIR}/${PN}-5.4-system-pyuno.patch"
288 + "${FILESDIR}/${PN}-5.3.4.2-kioclient5.patch"
289 + "${FILESDIR}/${PN}-6.1-nomancompress.patch"
290 +)
291 +
292 +S="${WORKDIR}/${PN}-${MY_PV}"
293 +
294 +_check_reqs() {
295 + CHECKREQS_MEMORY="512M"
296 + if is-flagq "-g*" && ! is-flagq "-g*0" ; then
297 + CHECKREQS_DISK_BUILD="22G"
298 + else
299 + CHECKREQS_DISK_BUILD="6G"
300 + fi
301 + check-reqs_$1
302 +}
303 +
304 +pkg_pretend() {
305 + if ! use java && ! use firebird; then
306 + ewarn "If you plan to use Base application you must enable either firebird or java."
307 + fi
308 +
309 + use java || ewarn "Without java, several wizards are not going to be available."
310 +
311 + if has_version "<app-office/libreoffice-5.3.0[firebird]"; then
312 + ewarn "Firebird has been upgraded to version 3. It is unable to read back Firebird 2.5 data, so"
313 + ewarn "embedded firebird odb files created in LibreOffice pre-5.3 can't be opened with this version."
314 + ewarn "See also: https://wiki.documentfoundation.org/ReleaseNotes/5.3#Base"
315 + fi
316 +
317 + [[ ${MERGE_TYPE} != binary ]] && _check_reqs pkg_pretend
318 +}
319 +
320 +pkg_setup() {
321 + java-pkg-opt-2_pkg_setup
322 + python-single-r1_pkg_setup
323 + xdg_environment_reset
324 +
325 + [[ ${MERGE_TYPE} != binary ]] && _check_reqs pkg_setup
326 +}
327 +
328 +src_unpack() {
329 + default
330 +
331 + if [[ ${MY_PV} = *9999* ]]; then
332 + local base_uri branch mypv
333 + base_uri="https://anongit.freedesktop.org/git"
334 + branch="master"
335 + mypv=${MY_PV/.9999}
336 + [[ ${mypv} != ${MY_PV} ]] && branch="${PN}-${mypv/./-}"
337 + git-r3_fetch "${base_uri}/${PN}/core" "refs/heads/${branch}"
338 + git-r3_checkout "${base_uri}/${PN}/core"
339 + LOCOREGIT_VERSION=${EGIT_VERSION}
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/colibre/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 + local gentoo_buildid="Gentoo official package"
412 + if [[ -n ${LOCOREGIT_VERSION} ]]; then
413 + gentoo_buildid+=" (from git: ${LOCOREGIT_VERSION})"
414 + fi
415 +
416 + # system headers/libs/...: enforce using system packages
417 + # --disable-breakpad: requires not-yet-in-tree dev-utils/breakpad
418 + # --enable-cairo: ensure that cairo is always required
419 + # --enable-*-link: link to the library rather than just dlopen on runtime
420 + # --enable-release-build: build the libreoffice as release
421 + # --disable-fetch-external: prevent dowloading during compile phase
422 + # --enable-extension-integration: enable any extension integration support
423 + # --without-{fonts,myspell-dicts,ppsd}: prevent install of sys pkgs
424 + # --disable-report-builder: too much java packages pulled in without pkgs
425 + # --without-system-sane: just sane.h header that is used for scan in writer,
426 + # not linked or anything else, worthless to depend on
427 + # --disable-pdfium: not yet packaged
428 + local myeconfargs=(
429 + --with-system-dicts
430 + --with-system-epoxy
431 + --with-system-headers
432 + --with-system-jars
433 + --with-system-libs
434 + --enable-build-opensymbol
435 + --enable-cairo-canvas
436 + --enable-largefile
437 + --enable-mergelibs
438 + --enable-neon
439 + --enable-python=system
440 + --enable-randr
441 + --enable-release-build
442 + --disable-breakpad
443 + --disable-bundle-mariadb
444 + --disable-ccache
445 + --disable-dependency-tracking
446 + --disable-epm
447 + --disable-fetch-external
448 + --disable-gstreamer-0-10
449 + --disable-gtk3-kde5
450 + --disable-online-update
451 + --disable-openssl
452 + --disable-pdfium
453 + --disable-report-builder
454 + --disable-vlc
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_with accessibility lxml)
490 + $(use_with coinmp system-coinmp)
491 + $(use_with googledrive gdrive-client-id ${google_default_client_id})
492 + $(use_with googledrive gdrive-client-secret ${google_default_client_secret})
493 + $(use_with java)
494 + $(use_with odk doxygen)
495 + )
496 +
497 + if use eds || use gtk; then
498 + myeconfargs+=( --enable-dconf --enable-gio )
499 + else
500 + myeconfargs+=( --disable-dconf --disable-gio )
501 + fi
502 +
503 + # libreoffice extensions handling
504 + for lo_xt in ${LO_EXTS}; do
505 + if [[ "${lo_xt}" == "scripting-beanshell" || "${lo_xt}" == "scripting-javascript" ]]; then
506 + myeconfargs+=( $(use_enable libreoffice_extensions_${lo_xt} ${lo_xt}) )
507 + else
508 + myeconfargs+=( $(use_enable libreoffice_extensions_${lo_xt} ext-${lo_xt}) )
509 + fi
510 + done
511 +
512 + if use java; then
513 + # hsqldb: system one is too new
514 + myeconfargs+=(
515 + --without-junit
516 + --without-system-hsqldb
517 + --with-ant-home="${ANT_HOME}"
518 + --with-jdk-home=$(java-config --jdk-home 2>/dev/null)
519 + --with-jvm-path="${EPREFIX}/usr/lib/"
520 + )
521 +
522 + use libreoffice_extensions_scripting-beanshell && \
523 + myeconfargs+=( --with-beanshell-jar=$(java-pkg_getjar bsh bsh.jar) )
524 +
525 + use libreoffice_extensions_scripting-javascript && \
526 + myeconfargs+=( --with-rhino-jar=$(java-pkg_getjar rhino-1.6 js.jar) )
527 + fi
528 +
529 + is-flagq "-flto*" && myeconfargs+=( --enable-lto )
530 +
531 + MARIADBCONFIG="$(type -p $(usex mariadb mariadb mysql)_config)" \
532 + econf "${myeconfargs[@]}"
533 +}
534 +
535 +src_compile() {
536 + # more and more LO stuff tries to use OpenGL, including tests during build
537 + # bug 501508, bug 540624, bug 545974 and probably more
538 + addpredict /dev/dri
539 + addpredict /dev/ati
540 + addpredict /dev/nvidiactl
541 +
542 + local target
543 + use test && target="build" || target="build-nocheck"
544 +
545 + # this is not a proper make script
546 + make ${target} || die
547 +}
548 +
549 +src_test() {
550 + make unitcheck || die
551 + make slowcheck || die
552 +}
553 +
554 +src_install() {
555 + # This is not Makefile so no buildserver
556 + make DESTDIR="${D}" distro-pack-install -o build -o check || die
557 +
558 + # bug 593514
559 + if use gtk; then
560 + dosym libreoffice/program/liblibreofficekitgtk.so \
561 + /usr/$(get_libdir)/liblibreofficekitgtk.so
562 + fi
563 +
564 + # bash completion aliases
565 + bashcomp_alias \
566 + libreoffice \
567 + unopkg loimpress lobase localc lodraw lomath lowriter lofromtemplate loweb loffice
568 +
569 + if use branding; then
570 + insinto /usr/$(get_libdir)/${PN}/program
571 + newins "${WORKDIR}/branding-sofficerc" sofficerc
572 + dodir /etc/env.d
573 + echo "CONFIG_PROTECT=/usr/$(get_libdir)/${PN}/program/sofficerc" > "${ED}"/etc/env.d/99${PN} || die
574 + fi
575 +}
576 +
577 +pkg_postinst() {
578 + xdg_icon_cache_update
579 + xdg_desktop_database_update
580 + xdg_mimeinfo_database_update
581 +}
582 +
583 +pkg_postrm() {
584 + xdg_icon_cache_update
585 + xdg_desktop_database_update
586 + xdg_mimeinfo_database_update
587 +}