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: Sun, 18 Oct 2020 15:47:58
Message-Id: 1603035854.29dba40a563b54381db7114c75187ebcae326272.asturm@gentoo
1 commit: 29dba40a563b54381db7114c75187ebcae326272
2 Author: Andreas Sturmlechner <asturm <AT> gentoo <DOT> org>
3 AuthorDate: Sun Oct 18 15:33:04 2020 +0000
4 Commit: Andreas Sturmlechner <asturm <AT> gentoo <DOT> org>
5 CommitDate: Sun Oct 18 15:44:14 2020 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=29dba40a
7
8 app-office/libreoffice: Cleanup vulnerable 6.4.3.2
9
10 Bug: https://bugs.gentoo.org/728964
11 Package-Manager: Portage-3.0.8, Repoman-3.0.1
12 Signed-off-by: Andreas Sturmlechner <asturm <AT> gentoo.org>
13
14 app-office/libreoffice/Manifest | 2 -
15 app-office/libreoffice/libreoffice-6.4.3.2.ebuild | 551 ----------------------
16 2 files changed, 553 deletions(-)
17
18 diff --git a/app-office/libreoffice/Manifest b/app-office/libreoffice/Manifest
19 index 9743067cdd6..75423a5c62c 100644
20 --- a/app-office/libreoffice/Manifest
21 +++ b/app-office/libreoffice/Manifest
22 @@ -17,9 +17,7 @@ DIST db60e4fde8dd6d6807523deb71ee34dc-liblayout-0.2.10.zip 1396007 BLAKE2B 8012d
23 DIST dtoa-20180411.tgz 48893 BLAKE2B 4a03dc67e44353ae1c0653c8305d2df9bcfef16b48dff6df5c857a6bd0510a92aa6d9b9660ad63b2344d5195fef072e526f8d7900791b15442923b63196dda3f SHA512 722aa814c33a34bfffe6c0201b0035cc3b65854a0ba9ae2f51620a89d68019353e2c306651b35bca337186b22b2e9865ef3c5e3df8e9328006f882e4577f8c85
24 DIST eeb2c7ddf0d302fba4bfc6e97eac9624-libbase-1.1.6.zip 427800 BLAKE2B d3ac085a39ee9798182b70ba650fa954234b964e33278ac4fe3f84f8c3218ad49f12d139079328036b4f9d80cde967888c0a66393c34dedf27af69dac02c5aff SHA512 9091d3628d9c75c068507537afc9e10bfb79c1abfd36ad697af3d592a1cc049ba6640f665bfc53cc520b6a26c21d70b0275106843444b441484c2178f2784743
25 DIST f94d9870737518e3b597f9265f4e9803-libserializer-1.1.6.zip 211919 BLAKE2B 2c72493e44d3ad1714d294fb7baaa85d33fef2eb4ce75bf507b65f78f1d9d399bb5eb72cee188a8abc4b234eb2845a26755791fb3ac104ffe6e55013ab41ca8b SHA512 c1a15ebbfe817ec79d4b3f1c97d096bf8511737d7d35d97302856ccfb3de14a1cd16bd31000415d9ab24bbd9ef770d37855cee4b819ff0e8fca2f2766920a114
26 -DIST libreoffice-6.4.3.2.tar.xz 230409812 BLAKE2B f9cdad1540c45525bd70596dc3033e3466fcdf3d96547222b936141e49ff6d45581ca59d0e42c4bb79fcb63586d748ccafae712369e024105235e2a9b69be7ce SHA512 ee11c704fa7184ffe371aa36c835c4c7fb06ef03d08fa0a5a9e647e80610db275e091d1ac79c1fe11af0c7f14dd72c821da9e7e6ba59573fc88cec79f84c873a
27 DIST libreoffice-6.4.6.2.tar.xz 232180876 BLAKE2B b2e01cc8e56b36c16fc3e39ff88617d7c31d6b0a0f4a5c05c8536313e7129862fb962e1a6efc7e86e9b56c34dff7c2d895416f33fbb23dc45e447b25813b5654 SHA512 377675494d4422c4d9363fe3857a8587e38f6ccd39aebec9c23337aa3a88cb2526608b8d0bcb27985ed8f821a98ca541dad4b48d69db441bcb27e9fb81beb9ba
28 DIST libreoffice-branding-gentoo-0.8.tar.xz 151568 BLAKE2B f03c7ddeb53c5ca3fd23401679601fcf2c4037ba17be4eb7b784c7ce7ebb71a24b8ab4aac8b7da8c6b1f14dd23bc1294ba85ff4f70ad271fb4ee3c5372e10883 SHA512 785031a699b1d1895ce4b50ffc3ddf645f3a0ef9acdf37facfd18cf75db9484cb8f53a50abb63d6006ead76a80b6ff5aa99661063245ebb84bd64013d713de7f
29 -DIST libreoffice-help-6.4.3.2.tar.xz 88297704 BLAKE2B bbd1af159c8b8db1909335f37095812ec3ce81d73644a30a85f3e37daeabeb9a158451b8e586f24d4b7544c8cd0948eeb20ede464384c3277d196f33322e63fb SHA512 9f8c1bcde27d153389d124af1393d0939262c85a1624f0b475a5515b5737612cb607d04742a069534771eee51ba98896926804ec7001d6bc2110dccdd6e7615a
30 DIST libreoffice-help-6.4.6.2.tar.xz 88297908 BLAKE2B 919758e81ed46138331b49668f89c6bf7f50253d7632d113aa957f524ae26e2b99f2ba490b405830314822ea91185eb2308018df77c5bd3d7197cbba940ae2ba SHA512 8ada2568a40dc4f1c843cb37dde6abe3bd61b6e5d9910b985096821e1fce5af47d4a10bff8ae91913298e593130bc1f8668b4e1c59c46591d457157e3d4b7501
31 DIST skia-m83-8ce842d38d0b32149e874d6855c91e8c68ba65a7.tar.xz 8218672 BLAKE2B cfeb805d82ce1f5dd70c7365983fa8107d5ccda9409b2654c032115cdf8a1c32fa0451162b0cceec3dcc0054e3d0d0e13583ea93843b0d0a6eb948cc31c15ce0 SHA512 1018fc1cc8a7edc15745cc20791f9a22e5b318018ba619d6cb5b6995d3e81ab93c910bb3a42734872d3be54893c2ce7db507b2c61088660b2ce6630ff9b36ebb
32
33 diff --git a/app-office/libreoffice/libreoffice-6.4.3.2.ebuild b/app-office/libreoffice/libreoffice-6.4.3.2.ebuild
34 deleted file mode 100644
35 index f32c7fe233c..00000000000
36 --- a/app-office/libreoffice/libreoffice-6.4.3.2.ebuild
37 +++ /dev/null
38 @@ -1,551 +0,0 @@
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 - 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 -RESTRICT="!test? ( test )"
118 -
119 -LICENSE="|| ( LGPL-3 MPL-1.1 )"
120 -SLOT="0"
121 -
122 -[[ ${MY_PV} == *9999* ]] || \
123 -KEYWORDS="amd64 ~arm ~arm64 ~ppc64 x86 ~amd64-linux ~x86-linux"
124 -
125 -BDEPEND="
126 - dev-util/intltool
127 - sys-devel/bison
128 - sys-devel/flex
129 - sys-devel/gettext
130 - virtual/pkgconfig
131 - odk? ( >=app-doc/doxygen-1.8.4 )
132 -"
133 -COMMON_DEPEND="${PYTHON_DEPS}
134 - app-arch/unzip
135 - app-arch/zip
136 - app-crypt/gpgme[cxx]
137 - app-text/hunspell:=
138 - >=app-text/libabw-0.1.0
139 - >=app-text/libebook-0.1
140 - app-text/libepubgen
141 - >=app-text/libetonyek-0.1
142 - app-text/libexttextcat
143 - app-text/liblangtag
144 - >=app-text/libmspub-0.1.0
145 - >=app-text/libmwaw-0.3.1
146 - app-text/libnumbertext
147 - >=app-text/libodfgen-0.1.0
148 - app-text/libqxp
149 - app-text/libstaroffice
150 - app-text/libwpd:0.10[tools]
151 - app-text/libwpg:0.3
152 - >=app-text/libwps-0.4
153 - app-text/mythes
154 - >=dev-cpp/clucene-2.3.3.4-r2
155 - >=dev-cpp/libcmis-0.5.2
156 - dev-db/unixODBC
157 - dev-lang/perl
158 - >=dev-libs/boost-1.72.0:=[nls]
159 - dev-libs/expat
160 - dev-libs/hyphen
161 - dev-libs/icu:=
162 - dev-libs/libassuan
163 - dev-libs/libgpg-error
164 - >=dev-libs/liborcus-0.15.0
165 - dev-libs/librevenge
166 - dev-libs/libxml2
167 - dev-libs/libxslt
168 - dev-libs/nspr
169 - dev-libs/nss
170 - >=dev-libs/redland-1.0.16
171 - >=dev-libs/xmlsec-1.2.28[nss]
172 - media-gfx/fontforge
173 - media-gfx/graphite2
174 - media-libs/fontconfig
175 - media-libs/freetype:2
176 - >=media-libs/harfbuzz-0.9.42:=[graphite,icu]
177 - media-libs/lcms:2
178 - >=media-libs/libcdr-0.1.0
179 - >=media-libs/libepoxy-1.3.1[X]
180 - >=media-libs/libfreehand-0.1.0
181 - media-libs/libpagemaker
182 - >=media-libs/libpng-1.4:0=
183 - >=media-libs/libvisio-0.1.0
184 - media-libs/libzmf
185 - net-libs/neon
186 - net-misc/curl
187 - sci-mathematics/lpsolve
188 - sys-libs/zlib
189 - virtual/glu
190 - virtual/jpeg:0
191 - virtual/opengl
192 - x11-libs/cairo[X]
193 - x11-libs/libXinerama
194 - x11-libs/libXrandr
195 - x11-libs/libXrender
196 - accessibility? (
197 - $(python_gen_cond_dep 'dev-python/lxml[${PYTHON_MULTI_USEDEP}]')
198 - )
199 - bluetooth? (
200 - dev-libs/glib:2
201 - net-wireless/bluez
202 - )
203 - coinmp? ( sci-libs/coinor-mp )
204 - cups? ( net-print/cups )
205 - dbus? ( sys-apps/dbus )
206 - eds? (
207 - dev-libs/glib:2
208 - gnome-base/dconf
209 - gnome-extra/evolution-data-server
210 - )
211 - firebird? ( >=dev-db/firebird-3.0.2.32703.0-r1[server] )
212 - gstreamer? (
213 - media-libs/gstreamer:1.0
214 - media-libs/gst-plugins-base:1.0
215 - )
216 - gtk? (
217 - dev-libs/glib:2
218 - dev-libs/gobject-introspection
219 - gnome-base/dconf
220 - media-libs/mesa[egl]
221 - x11-libs/gtk+:3
222 - x11-libs/pango
223 - )
224 - kde? (
225 - dev-qt/qtcore:5
226 - dev-qt/qtgui:5
227 - dev-qt/qtwidgets:5
228 - dev-qt/qtx11extras:5
229 - kde-frameworks/kconfig:5
230 - kde-frameworks/kcoreaddons:5
231 - kde-frameworks/ki18n:5
232 - kde-frameworks/kio:5
233 - kde-frameworks/kwindowsystem:5
234 - )
235 - ldap? ( net-nds/openldap )
236 - libreoffice_extensions_scripting-beanshell? ( dev-java/bsh )
237 - libreoffice_extensions_scripting-javascript? ( dev-java/rhino:1.6 )
238 - mariadb? ( dev-db/mariadb-connector-c )
239 - !mariadb? ( dev-db/mysql-connector-c )
240 - pdfimport? ( app-text/poppler:=[cxx] )
241 - postgres? ( >=dev-db/postgresql-9.0:*[kerberos] )
242 -"
243 -# FIXME: cppunit should be moved to test conditional
244 -# after everything upstream is under gbuild
245 -# as dmake execute tests right away
246 -# tests apparently also need google-carlito-fonts (not packaged)
247 -DEPEND="${COMMON_DEPEND}
248 - >=dev-libs/libatomic_ops-7.2d
249 - dev-perl/Archive-Zip
250 - >=dev-util/cppunit-1.14.0
251 - >=dev-util/gperf-3.1
252 - dev-util/mdds:1/1.5
253 - media-libs/glm
254 - sys-devel/ucpp
255 - x11-base/xorg-proto
256 - x11-libs/libXt
257 - x11-libs/libXtst
258 - java? (
259 - dev-java/ant-core
260 - >=virtual/jdk-1.8
261 - )
262 - test? (
263 - app-crypt/gnupg
264 - dev-util/cppunit
265 - media-fonts/dejavu
266 - media-fonts/liberation-fonts
267 - )
268 -"
269 -RDEPEND="${COMMON_DEPEND}
270 - !app-office/libreoffice-bin
271 - !app-office/libreoffice-bin-debug
272 - !app-office/openoffice
273 - media-fonts/liberation-fonts
274 - || ( x11-misc/xdg-utils kde-plasma/kde-cli-tools )
275 - java? ( >=virtual/jre-1.8 )
276 - kde? ( kde-frameworks/breeze-icons:* )
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 - # "${WORKDIR}"/${PATCHSET/.tar.xz/}
288 -
289 - # not upstreamable stuff
290 - "${FILESDIR}/${PN}-5.4-system-pyuno.patch"
291 - "${FILESDIR}/${PN}-5.3.4.2-kioclient5.patch"
292 - "${FILESDIR}/${PN}-6.1-nomancompress.patch"
293 -
294 - # git master
295 - "${FILESDIR}/${P}-boost-1.73.patch" # bug 721806
296 -
297 - # TODO: upstream (for now taken from Arch Linux)
298 - "${FILESDIR}/${PN}-6.4.2.2-poppler-0.86.patch" # bug 711102
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 - if ! use java && ! use firebird; then
315 - ewarn "If you plan to use Base application you must enable either firebird or java."
316 - fi
317 -
318 - use java || ewarn "Without java, several wizards are not going to be available."
319 -
320 - [[ ${MERGE_TYPE} != binary ]] && _check_reqs pkg_pretend
321 -}
322 -
323 -pkg_setup() {
324 - java-pkg-opt-2_pkg_setup
325 - python-single-r1_pkg_setup
326 - xdg_environment_reset
327 -
328 - [[ ${MERGE_TYPE} != binary ]] && _check_reqs pkg_setup
329 -}
330 -
331 -src_unpack() {
332 - default
333 -
334 - if [[ ${MY_PV} = *9999* ]]; then
335 - local base_uri branch mypv
336 - base_uri="https://anongit.freedesktop.org/git"
337 - branch="master"
338 - mypv=${MY_PV/.9999}
339 - [[ ${mypv} != ${MY_PV} ]] && branch="${PN}-${mypv/./-}"
340 - git-r3_fetch "${base_uri}/${PN}/core" "refs/heads/${branch}"
341 - git-r3_checkout "${base_uri}/${PN}/core"
342 - LOCOREGIT_VERSION=${EGIT_VERSION}
343 -
344 - git-r3_fetch "${base_uri}/${PN}/help" "refs/heads/master"
345 - git-r3_checkout "${base_uri}/${PN}/help" "helpcontent2" # doesn't match on help
346 - fi
347 -}
348 -
349 -src_prepare() {
350 - default
351 -
352 - # sandbox violations on many systems, we don't need it. Bug #646406
353 - sed -i \
354 - -e "/KF5_CONFIG/s/kf5-config/no/" \
355 - configure.ac || die "Failed to disable kf5-config"
356 -
357 - AT_M4DIR="m4" eautoreconf
358 - # hack in the autogen.sh
359 - touch autogen.lastrun
360 -
361 - # system pyuno mess
362 - sed -i \
363 - -e "s:%eprefix%:${EPREFIX}:g" \
364 - -e "s:%libdir%:$(get_libdir):g" \
365 - pyuno/source/module/uno.py \
366 - pyuno/source/officehelper.py || die
367 - # sed in the tests
368 - sed -i \
369 - -e "s#all : build unitcheck#all : build#g" \
370 - solenv/gbuild/Module.mk || die
371 - sed -i \
372 - -e "s#check: dev-install subsequentcheck#check: unitcheck slowcheck dev-install subsequentcheck#g" \
373 - -e "s#Makefile.gbuild all slowcheck#Makefile.gbuild all#g" \
374 - Makefile.in || die
375 -
376 - sed -i \
377 - -e "s,/usr/share/bash-completion/completions,$(get_bashcompdir)," \
378 - -e "s,\$INSTALLDIRNAME.sh,${PN}," \
379 - bin/distro-install-desktop-integration || die
380 -
381 - if use branding; then
382 - # hack...
383 - mv -v "${WORKDIR}/branding-intro.png" "icon-themes/colibre/brand/intro.png" || die
384 - fi
385 -
386 - # Don't list pdfimport support in desktop when built with none, bug # 605464
387 - if ! use pdfimport; then
388 - sed -i \
389 - -e ":MimeType: s:application/pdf;::" \
390 - -e ":Keywords: s:pdf;::" \
391 - sysui/desktop/menus/draw.desktop || die
392 - fi
393 -}
394 -
395 -src_configure() {
396 - # Set up Google API keys, see https://www.chromium.org/developers/how-tos/api-keys
397 - # Note: these are for Gentoo use ONLY. For your own distribution, please get
398 - # your own set of keys. Feel free to contact chromium@g.o for more info.
399 - local google_default_client_id="329227923882.apps.googleusercontent.com"
400 - local google_default_client_secret="vgKG0NNv7GoDpbtoFNLxCUXu"
401 -
402 - # optimization flags
403 - export GMAKE_OPTIONS="${MAKEOPTS}"
404 - # System python enablement:
405 - export PYTHON_CFLAGS=$(python_get_CFLAGS)
406 - export PYTHON_LIBS=$(python_get_LIBS)
407 -
408 - if use kde; then
409 - export QT_SELECT=5 # bug 639620 needs proper fix though
410 - export QT5DIR="$(qt5_get_bindir)/../"
411 - export MOC5="$(qt5_get_bindir)/moc"
412 - fi
413 -
414 - local gentoo_buildid="Gentoo official package"
415 - if [[ -n ${LOCOREGIT_VERSION} ]]; then
416 - gentoo_buildid+=" (from git: ${LOCOREGIT_VERSION})"
417 - fi
418 -
419 - # system headers/libs/...: enforce using system packages
420 - # --disable-breakpad: requires not-yet-in-tree dev-utils/breakpad
421 - # --enable-cairo: ensure that cairo is always required
422 - # --enable-*-link: link to the library rather than just dlopen on runtime
423 - # --enable-release-build: build the libreoffice as release
424 - # --disable-fetch-external: prevent dowloading during compile phase
425 - # --enable-extension-integration: enable any extension integration support
426 - # --without-{fonts,myspell-dicts,ppsd}: prevent install of sys pkgs
427 - # --disable-report-builder: too much java packages pulled in without pkgs
428 - # --without-system-sane: just sane.h header that is used for scan in writer,
429 - # not linked or anything else, worthless to depend on
430 - # --disable-pdfium: not yet packaged
431 - # --without-system-qrencode: has no real build system and LO is the only user
432 - local myeconfargs=(
433 - --with-system-dicts
434 - --with-system-epoxy
435 - --with-system-headers
436 - --with-system-jars
437 - --with-system-libs
438 - --enable-build-opensymbol
439 - --enable-cairo-canvas
440 - --enable-largefile
441 - --enable-mergelibs
442 - --enable-neon
443 - --enable-python=system
444 - --enable-randr
445 - --enable-release-build
446 - --disable-breakpad
447 - --disable-bundle-mariadb
448 - --disable-ccache
449 - --disable-epm
450 - --disable-fetch-external
451 - --disable-gtk3-kde5
452 - --disable-online-update
453 - --disable-openssl
454 - --disable-pdfium
455 - --disable-report-builder
456 - --disable-vlc
457 - --with-build-version="${gentoo_buildid}"
458 - --enable-extension-integration
459 - --with-external-dict-dir="${EPREFIX}/usr/share/myspell"
460 - --with-external-hyph-dir="${EPREFIX}/usr/share/myspell"
461 - --with-external-thes-dir="${EPREFIX}/usr/share/myspell"
462 - --with-external-tar="${DISTDIR}"
463 - --with-lang=""
464 - --with-parallelism=$(makeopts_jobs)
465 - --with-system-ucpp
466 - --with-tls=nss
467 - --with-vendor="Gentoo Foundation"
468 - --with-x
469 - --without-fonts
470 - --without-myspell-dicts
471 - --with-help="html"
472 - --without-helppack-integration
473 - --with-system-gpgmepp
474 - --without-system-sane
475 - --without-system-qrcodegen
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 kde kf5)
486 - $(use_enable kde qt5)
487 - $(use_enable ldap)
488 - $(use_enable odk)
489 - $(use_enable pdfimport)
490 - $(use_enable postgres postgresql-sdbc)
491 - $(use_with accessibility lxml)
492 - $(use_with coinmp system-coinmp)
493 - $(use_with googledrive gdrive-client-id ${google_default_client_id})
494 - $(use_with googledrive gdrive-client-secret ${google_default_client_secret})
495 - $(use_with java)
496 - $(use_with odk doxygen)
497 - )
498 -
499 - if use eds || use gtk; then
500 - myeconfargs+=( --enable-dconf --enable-gio )
501 - else
502 - myeconfargs+=( --disable-dconf --disable-gio )
503 - fi
504 -
505 - # libreoffice extensions handling
506 - for lo_xt in ${LO_EXTS}; do
507 - if [[ "${lo_xt}" == "scripting-beanshell" || "${lo_xt}" == "scripting-javascript" ]]; then
508 - myeconfargs+=( $(use_enable libreoffice_extensions_${lo_xt} ${lo_xt}) )
509 - else
510 - myeconfargs+=( $(use_enable libreoffice_extensions_${lo_xt} ext-${lo_xt}) )
511 - fi
512 - done
513 -
514 - if use java; then
515 - # hsqldb: system one is too new
516 - myeconfargs+=(
517 - --without-junit
518 - --without-system-hsqldb
519 - --with-ant-home="${ANT_HOME}"
520 - --with-jdk-home=$(java-config --jdk-home 2>/dev/null)
521 - --with-jvm-path="${EPREFIX}/usr/lib/"
522 - )
523 -
524 - use libreoffice_extensions_scripting-beanshell && \
525 - myeconfargs+=( --with-beanshell-jar=$(java-pkg_getjar bsh bsh.jar) )
526 -
527 - use libreoffice_extensions_scripting-javascript && \
528 - myeconfargs+=( --with-rhino-jar=$(java-pkg_getjar rhino-1.6 js.jar) )
529 - fi
530 -
531 - is-flagq "-flto*" && myeconfargs+=( --enable-lto )
532 -
533 - MARIADBCONFIG="$(type -p $(usex mariadb mariadb mysql)_config)" \
534 - econf "${myeconfargs[@]}"
535 -}
536 -
537 -src_compile() {
538 - # more and more LO stuff tries to use OpenGL, including tests during build
539 - # bug 501508, bug 540624, bug 545974 and probably more
540 - addpredict /dev/dri
541 - addpredict /dev/ati
542 - addpredict /dev/nvidiactl
543 -
544 - local target
545 - use test && target="build" || target="build-nocheck"
546 -
547 - # this is not a proper make script
548 - make ${target} || die
549 -}
550 -
551 -src_test() {
552 - make unitcheck || die
553 - make slowcheck || die
554 -}
555 -
556 -src_install() {
557 - # This is not Makefile so no buildserver
558 - emake DESTDIR="${D}" distro-pack-install -o build -o check
559 -
560 - # bug 593514
561 - if use gtk; then
562 - dosym libreoffice/program/liblibreofficekitgtk.so \
563 - /usr/$(get_libdir)/liblibreofficekitgtk.so
564 - fi
565 -
566 - # bash completion aliases
567 - bashcomp_alias \
568 - libreoffice \
569 - unopkg loimpress lobase localc lodraw lomath lowriter lofromtemplate loweb loffice
570 -
571 - if use branding; then
572 - insinto /usr/$(get_libdir)/${PN}/program
573 - newins "${WORKDIR}/branding-sofficerc" sofficerc
574 - dodir /etc/env.d
575 - echo "CONFIG_PROTECT=/usr/$(get_libdir)/${PN}/program/sofficerc" > "${ED}"/etc/env.d/99${PN} || die
576 - fi
577 -}
578 -
579 -pkg_postinst() {
580 - xdg_icon_cache_update
581 - xdg_desktop_database_update
582 - xdg_mimeinfo_database_update
583 -}
584 -
585 -pkg_postrm() {
586 - xdg_icon_cache_update
587 - xdg_desktop_database_update
588 - xdg_mimeinfo_database_update
589 -}