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, 27 Sep 2020 17:35:03
Message-Id: 1601228078.104963becf9028d75d186092b541761a07672bc2.asturm@gentoo
1 commit: 104963becf9028d75d186092b541761a07672bc2
2 Author: Andreas Sturmlechner <asturm <AT> gentoo <DOT> org>
3 AuthorDate: Sat Sep 26 21:14:55 2020 +0000
4 Commit: Andreas Sturmlechner <asturm <AT> gentoo <DOT> org>
5 CommitDate: Sun Sep 27 17:34:38 2020 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=104963be
7
8 app-office/libreoffice: Drop 6.4.6.2-r1
9
10 Package-Manager: Portage-3.0.8, Repoman-3.0.1
11 Signed-off-by: Andreas Sturmlechner <asturm <AT> gentoo.org>
12
13 .../libreoffice/libreoffice-6.4.6.2-r1.ebuild | 593 ---------------------
14 1 file changed, 593 deletions(-)
15
16 diff --git a/app-office/libreoffice/libreoffice-6.4.6.2-r1.ebuild b/app-office/libreoffice/libreoffice-6.4.6.2-r1.ebuild
17 deleted file mode 100644
18 index 7f884a56cef..00000000000
19 --- a/app-office/libreoffice/libreoffice-6.4.6.2-r1.ebuild
20 +++ /dev/null
21 @@ -1,593 +0,0 @@
22 -# Copyright 1999-2020 Gentoo Authors
23 -# Distributed under the terms of the GNU General Public License v2
24 -
25 -EAPI=7
26 -
27 -PYTHON_COMPAT=( python3_{6,7,8,9} )
28 -PYTHON_REQ_USE="threads(+),xml"
29 -
30 -MY_PV="${PV/_alpha/.alpha}"
31 -MY_PV="${MY_PV/_beta/.beta}"
32 -# experimental ; release ; old
33 -# Usually the tarballs are moved a lot so this should make everyone happy.
34 -DEV_URI="
35 - https://dev-builds.libreoffice.org/pre-releases/src
36 - https://download.documentfoundation.org/libreoffice/src/${MY_PV:0:5}/
37 - https://downloadarchive.documentfoundation.org/libreoffice/old/${MY_PV}/src
38 -"
39 -ADDONS_URI="https://dev-www.libreoffice.org/src/"
40 -
41 -BRANDING="${PN}-branding-gentoo-0.8.tar.xz"
42 -# PATCHSET="${P}-patchset-01.tar.xz"
43 -
44 -[[ ${MY_PV} == *9999* ]] && inherit git-r3
45 -inherit autotools bash-completion-r1 check-reqs flag-o-matic java-pkg-opt-2 multiprocessing python-single-r1 qmake-utils toolchain-funcs xdg-utils
46 -
47 -DESCRIPTION="A full office productivity suite"
48 -HOMEPAGE="https://www.libreoffice.org"
49 -SRC_URI="branding? ( https://dev.gentoo.org/~dilfridge/distfiles/${BRANDING} )"
50 -[[ -n ${PATCHSET} ]] && SRC_URI+=" https://dev.gentoo.org/~asturm/distfiles/${PATCHSET}"
51 -
52 -# Split modules following git/tarballs; Core MUST be first!
53 -# Help is used for the image generator
54 -# Only release has the tarballs
55 -if [[ ${MY_PV} != *9999* ]]; then
56 - for i in ${DEV_URI}; do
57 - SRC_URI+=" ${i}/${PN}-${MY_PV}.tar.xz"
58 - SRC_URI+=" ${i}/${PN}-help-${MY_PV}.tar.xz"
59 - done
60 - unset i
61 -fi
62 -unset DEV_URI
63 -
64 -# Really required addons
65 -# These are bundles that can't be removed for now due to huge patchsets.
66 -# If you want them gone, patches are welcome.
67 -ADDONS_SRC=(
68 - # QR code generating library for >=libreoffice-6.4
69 - "${ADDONS_URI}/QR-Code-generator-1.4.0.tar.gz"
70 - "base? (
71 - ${ADDONS_URI}/commons-logging-1.2-src.tar.gz
72 - ${ADDONS_URI}/ba2930200c9f019c2d93a8c88c651a0f-flow-engine-0.9.4.zip
73 - ${ADDONS_URI}/d8bd5eed178db6e2b18eeed243f85aa8-flute-1.1.6.zip
74 - ${ADDONS_URI}/eeb2c7ddf0d302fba4bfc6e97eac9624-libbase-1.1.6.zip
75 - ${ADDONS_URI}/3bdf40c0d199af31923e900d082ca2dd-libfonts-1.1.6.zip
76 - ${ADDONS_URI}/3404ab6b1792ae5f16bbd603bd1e1d03-libformula-1.1.7.zip
77 - ${ADDONS_URI}/db60e4fde8dd6d6807523deb71ee34dc-liblayout-0.2.10.zip
78 - ${ADDONS_URI}/97b2d4dba862397f446b217e2b623e71-libloader-1.1.6.zip
79 - ${ADDONS_URI}/8ce2fcd72becf06c41f7201d15373ed9-librepository-1.1.6.zip
80 - ${ADDONS_URI}/f94d9870737518e3b597f9265f4e9803-libserializer-1.1.6.zip
81 - ${ADDONS_URI}/ace6ab49184e329db254e454a010f56d-libxml-1.1.7.zip
82 - ${ADDONS_URI}/39bb3fcea1514f1369fcfc87542390fd-sacjava-1.3.zip
83 - )"
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 base bluetooth +branding coinmp +cups +dbus debug eds firebird
103 -googledrive gstreamer +gtk kde ldap +mariadb odk pdfimport postgres test
104 -$(printf 'libreoffice_extensions_%s ' ${LO_EXTS})"
105 -
106 -REQUIRED_USE="${PYTHON_REQUIRED_USE}
107 - base? ( firebird java )
108 - bluetooth? ( dbus )
109 - gtk? ( dbus )
110 - libreoffice_extensions_nlpsolver? ( java )
111 - libreoffice_extensions_scripting-beanshell? ( java )
112 - libreoffice_extensions_scripting-javascript? ( java )
113 - libreoffice_extensions_wiki-publisher? ( java )
114 -"
115 -
116 -RESTRICT="!test? ( test )"
117 -
118 -LICENSE="|| ( LGPL-3 MPL-1.1 )"
119 -SLOT="0"
120 -
121 -[[ ${MY_PV} == *9999* ]] || \
122 -KEYWORDS="~amd64 ~arm ~arm64 ~ppc64 ~x86 ~amd64-linux ~x86-linux"
123 -
124 -BDEPEND="
125 - dev-util/intltool
126 - sys-devel/bison
127 - sys-devel/flex
128 - sys-devel/gettext
129 - virtual/pkgconfig
130 - odk? ( >=app-doc/doxygen-1.8.4 )
131 -"
132 -COMMON_DEPEND="${PYTHON_DEPS}
133 - app-arch/unzip
134 - app-arch/zip
135 - app-crypt/gpgme[cxx]
136 - app-text/hunspell:=
137 - >=app-text/libabw-0.1.0
138 - >=app-text/libebook-0.1
139 - app-text/libepubgen
140 - >=app-text/libetonyek-0.1
141 - app-text/libexttextcat
142 - app-text/liblangtag
143 - >=app-text/libmspub-0.1.0
144 - >=app-text/libmwaw-0.3.1
145 - app-text/libnumbertext
146 - >=app-text/libodfgen-0.1.0
147 - app-text/libqxp
148 - app-text/libstaroffice
149 - app-text/libwpd:0.10[tools]
150 - app-text/libwpg:0.3
151 - >=app-text/libwps-0.4
152 - app-text/mythes
153 - >=dev-cpp/clucene-2.3.3.4-r2
154 - >=dev-cpp/libcmis-0.5.2
155 - dev-db/unixODBC
156 - dev-lang/perl
157 - >=dev-libs/boost-1.72.0:=[nls]
158 - dev-libs/expat
159 - dev-libs/hyphen
160 - dev-libs/icu:=
161 - dev-libs/libassuan
162 - dev-libs/libgpg-error
163 - >=dev-libs/liborcus-0.15.0
164 - dev-libs/librevenge
165 - dev-libs/libxml2
166 - dev-libs/libxslt
167 - dev-libs/nspr
168 - dev-libs/nss
169 - >=dev-libs/redland-1.0.16
170 - >=dev-libs/xmlsec-1.2.28[nss]
171 - media-gfx/fontforge
172 - media-gfx/graphite2
173 - media-libs/fontconfig
174 - media-libs/freetype:2
175 - >=media-libs/harfbuzz-0.9.42:=[graphite,icu]
176 - media-libs/lcms:2
177 - >=media-libs/libcdr-0.1.0
178 - >=media-libs/libepoxy-1.3.1[X]
179 - >=media-libs/libfreehand-0.1.0
180 - media-libs/libpagemaker
181 - >=media-libs/libpng-1.4:0=
182 - >=media-libs/libvisio-0.1.0
183 - media-libs/libzmf
184 - net-libs/neon
185 - net-misc/curl
186 - sci-mathematics/lpsolve
187 - sys-libs/zlib
188 - virtual/glu
189 - virtual/jpeg:0
190 - virtual/opengl
191 - x11-libs/cairo[X]
192 - x11-libs/libXinerama
193 - x11-libs/libXrandr
194 - x11-libs/libXrender
195 - accessibility? (
196 - $(python_gen_cond_dep 'dev-python/lxml[${PYTHON_MULTI_USEDEP}]')
197 - )
198 - bluetooth? (
199 - dev-libs/glib:2
200 - net-wireless/bluez
201 - )
202 - coinmp? ( sci-libs/coinor-mp )
203 - cups? ( net-print/cups )
204 - dbus? ( sys-apps/dbus[X] )
205 - eds? (
206 - dev-libs/glib:2
207 - gnome-base/dconf
208 - gnome-extra/evolution-data-server
209 - )
210 - firebird? ( >=dev-db/firebird-3.0.2.32703.0-r1[server] )
211 - gstreamer? (
212 - media-libs/gstreamer:1.0
213 - media-libs/gst-plugins-base:1.0
214 - )
215 - gtk? (
216 - dev-libs/glib:2
217 - dev-libs/gobject-introspection
218 - gnome-base/dconf
219 - media-libs/mesa[egl]
220 - x11-libs/gtk+:3
221 - x11-libs/pango
222 - )
223 - kde? (
224 - dev-qt/qtcore:5
225 - dev-qt/qtgui:5
226 - dev-qt/qtwidgets:5
227 - dev-qt/qtx11extras: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.1
251 - dev-util/mdds:1/1.5
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.8
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.8 )
275 - kde? ( kde-frameworks/breeze-icons:* )
276 -"
277 -if [[ ${MY_PV} != *9999* ]] && [[ ${PV} != *_* ]]; then
278 - PDEPEND="=app-office/libreoffice-l10n-$(ver_cut 1-2)*"
279 -else
280 - # Translations are not reliable on live ebuilds
281 - # rather force people to use english only.
282 - PDEPEND="!app-office/libreoffice-l10n"
283 -fi
284 -
285 -PATCHES=(
286 - # "${WORKDIR}"/${PATCHSET/.tar.xz/}
287 -
288 - # not upstreamable stuff
289 - "${FILESDIR}/${PN}-5.3.4.2-kioclient5.patch"
290 - "${FILESDIR}/${PN}-6.1-nomancompress.patch"
291 -
292 - # 6.4 branch (in 6.4.7)
293 - "${FILESDIR}/${P}-qaccessiblecache-assert.patch" # bug 680186
294 -
295 - # git master
296 - "${FILESDIR}/${PN}-6.4.3.2-boost-1.73.patch" # bug 721806
297 - "${FILESDIR}/${PN}-6.4.6.2-llvm-10.patch" # bug 713574
298 -)
299 -
300 -S="${WORKDIR}/${PN}-${MY_PV}"
301 -
302 -_check_reqs() {
303 - CHECKREQS_MEMORY="512M"
304 - if is-flagq "-g*" && ! is-flagq "-g*0" ; then
305 - CHECKREQS_DISK_BUILD="22G"
306 - else
307 - CHECKREQS_DISK_BUILD="6G"
308 - fi
309 - check-reqs_$1
310 -}
311 -
312 -pkg_pretend() {
313 - use base ||
314 - ewarn "If you plan to use Base application you must enable USE base."
315 - use java ||
316 - ewarn "Without USE java, several wizards are not going to be available."
317 -
318 - [[ ${MERGE_TYPE} != binary ]] && _check_reqs pkg_pretend
319 -}
320 -
321 -pkg_setup() {
322 - java-pkg-opt-2_pkg_setup
323 - python-single-r1_pkg_setup
324 - xdg_environment_reset
325 -
326 - [[ ${MERGE_TYPE} != binary ]] && _check_reqs pkg_setup
327 -}
328 -
329 -src_unpack() {
330 - default
331 -
332 - if [[ ${MY_PV} = *9999* ]]; then
333 - local base_uri branch mypv
334 - base_uri="https://anongit.freedesktop.org/git"
335 - branch="master"
336 - mypv=${MY_PV/.9999}
337 - [[ ${mypv} != ${MY_PV} ]] && branch="${PN}-${mypv/./-}"
338 - git-r3_fetch "${base_uri}/${PN}/core" "refs/heads/${branch}"
339 - git-r3_checkout "${base_uri}/${PN}/core"
340 - LOCOREGIT_VERSION=${EGIT_VERSION}
341 -
342 - git-r3_fetch "${base_uri}/${PN}/help" "refs/heads/master"
343 - git-r3_checkout "${base_uri}/${PN}/help" "helpcontent2" # doesn't match on help
344 - fi
345 -}
346 -
347 -src_prepare() {
348 - default
349 -
350 - # sandbox violations on many systems, we don't need it. Bug #646406
351 - sed -i \
352 - -e "/KF5_CONFIG/s/kf5-config/no/" \
353 - configure.ac || die "Failed to disable kf5-config"
354 -
355 - AT_M4DIR="m4" eautoreconf
356 - # hack in the autogen.sh
357 - touch autogen.lastrun
358 -
359 - # sed in the tests
360 - sed -i \
361 - -e "s#all : build unitcheck#all : build#g" \
362 - solenv/gbuild/Module.mk || die
363 - sed -i \
364 - -e "s#check: dev-install subsequentcheck#check: unitcheck slowcheck dev-install subsequentcheck#g" \
365 - -e "s#Makefile.gbuild all slowcheck#Makefile.gbuild all#g" \
366 - Makefile.in || die
367 -
368 - sed -i \
369 - -e "s,/usr/share/bash-completion/completions,$(get_bashcompdir)," \
370 - -e "s,\$INSTALLDIRNAME.sh,${PN}," \
371 - bin/distro-install-desktop-integration || die
372 -
373 - if use branding; then
374 - # hack...
375 - mv -v "${WORKDIR}/branding-intro.png" "icon-themes/colibre/brand/intro.png" || die
376 - fi
377 -
378 - # Don't list pdfimport support in desktop when built with none, bug # 605464
379 - if ! use pdfimport; then
380 - sed -i \
381 - -e ":MimeType: s:application/pdf;::" \
382 - -e ":Keywords: s:pdf;::" \
383 - sysui/desktop/menus/draw.desktop || die
384 - fi
385 -}
386 -
387 -src_configure() {
388 - # Set up Google API keys, see https://www.chromium.org/developers/how-tos/api-keys
389 - # Note: these are for Gentoo use ONLY. For your own distribution, please get
390 - # your own set of keys. Feel free to contact chromium@g.o for more info.
391 - local google_default_client_id="329227923882.apps.googleusercontent.com"
392 - local google_default_client_secret="vgKG0NNv7GoDpbtoFNLxCUXu"
393 -
394 - # optimization flags
395 - export GMAKE_OPTIONS="${MAKEOPTS}"
396 - # System python enablement:
397 - export PYTHON_CFLAGS=$(python_get_CFLAGS)
398 - export PYTHON_LIBS=$(python_get_LIBS)
399 -
400 - if use kde; then
401 - export QT_SELECT=5 # bug 639620 needs proper fix though
402 - export QT5DIR="$(qt5_get_bindir)/../"
403 - export MOC5="$(qt5_get_bindir)/moc"
404 - fi
405 -
406 - local gentoo_buildid="Gentoo official package"
407 - if [[ -n ${LOCOREGIT_VERSION} ]]; then
408 - gentoo_buildid+=" (from git: ${LOCOREGIT_VERSION})"
409 - fi
410 -
411 - # system headers/libs/...: enforce using system packages
412 - # --disable-breakpad: requires not-yet-in-tree dev-utils/breakpad
413 - # --enable-cairo: ensure that cairo is always required
414 - # --enable-*-link: link to the library rather than just dlopen on runtime
415 - # --enable-release-build: build the libreoffice as release
416 - # --disable-fetch-external: prevent dowloading during compile phase
417 - # --enable-extension-integration: enable any extension integration support
418 - # --without-{fonts,myspell-dicts,ppsd}: prevent install of sys pkgs
419 - # --disable-report-builder: too much java packages pulled in without pkgs
420 - # --without-system-sane: just sane.h header that is used for scan in writer,
421 - # not linked or anything else, worthless to depend on
422 - # --disable-pdfium: not yet packaged
423 - # --without-system-qrencode: has no real build system and LO is the only user
424 - local myeconfargs=(
425 - --with-system-dicts
426 - --with-system-epoxy
427 - --with-system-headers
428 - --with-system-jars
429 - --with-system-libs
430 - --enable-build-opensymbol
431 - --enable-cairo-canvas
432 - --enable-largefile
433 - --enable-mergelibs
434 - --enable-neon
435 - --enable-python=system
436 - --enable-randr
437 - --enable-release-build
438 - --disable-breakpad
439 - --disable-bundle-mariadb
440 - --disable-ccache
441 - --disable-epm
442 - --disable-fetch-external
443 - --disable-gtk3-kde5
444 - --disable-online-update
445 - --disable-openssl
446 - --disable-pdfium
447 - --disable-vlc
448 - --with-build-version="${gentoo_buildid}"
449 - --enable-extension-integration
450 - --with-external-dict-dir="${EPREFIX}/usr/share/myspell"
451 - --with-external-hyph-dir="${EPREFIX}/usr/share/myspell"
452 - --with-external-thes-dir="${EPREFIX}/usr/share/myspell"
453 - --with-external-tar="${DISTDIR}"
454 - --with-lang=""
455 - --with-parallelism=$(makeopts_jobs)
456 - --with-system-ucpp
457 - --with-tls=nss
458 - --with-vendor="Gentoo Foundation"
459 - --with-x
460 - --without-fonts
461 - --without-myspell-dicts
462 - --with-help="html"
463 - --without-helppack-integration
464 - --with-system-gpgmepp
465 - --without-system-jfreereport
466 - --without-system_apache_commons
467 - --without-system-sane
468 - --without-system-qrcodegen
469 - $(use_enable base report-builder)
470 - $(use_enable bluetooth sdremote-bluetooth)
471 - $(use_enable coinmp)
472 - $(use_enable cups)
473 - $(use_enable dbus)
474 - $(use_enable debug)
475 - $(use_enable eds evolution2)
476 - $(use_enable firebird firebird-sdbc)
477 - $(use_enable gstreamer gstreamer-1-0)
478 - $(use_enable gtk gtk3)
479 - $(use_enable kde kf5)
480 - $(use_enable kde qt5)
481 - $(use_enable ldap)
482 - $(use_enable odk)
483 - $(use_enable pdfimport)
484 - $(use_enable postgres postgresql-sdbc)
485 - $(use_with accessibility lxml)
486 - $(use_with coinmp system-coinmp)
487 - $(use_with googledrive gdrive-client-id ${google_default_client_id})
488 - $(use_with googledrive gdrive-client-secret ${google_default_client_secret})
489 - $(use_with java)
490 - $(use_with odk doxygen)
491 - )
492 -
493 - if use eds || use gtk; then
494 - myeconfargs+=( --enable-dconf --enable-gio )
495 - else
496 - myeconfargs+=( --disable-dconf --disable-gio )
497 - fi
498 -
499 - # libreoffice extensions handling
500 - for lo_xt in ${LO_EXTS}; do
501 - if [[ "${lo_xt}" == "scripting-beanshell" || "${lo_xt}" == "scripting-javascript" ]]; then
502 - myeconfargs+=( $(use_enable libreoffice_extensions_${lo_xt} ${lo_xt}) )
503 - else
504 - myeconfargs+=( $(use_enable libreoffice_extensions_${lo_xt} ext-${lo_xt}) )
505 - fi
506 - done
507 -
508 - if use java; then
509 - # hsqldb: system one is too new
510 - myeconfargs+=(
511 - --without-junit
512 - --without-system-hsqldb
513 - --with-ant-home="${ANT_HOME}"
514 - --with-jdk-home=$(java-config --jdk-home 2>/dev/null)
515 - --with-jvm-path="${EPREFIX}/usr/lib/"
516 - )
517 -
518 - use libreoffice_extensions_scripting-beanshell && \
519 - myeconfargs+=( --with-beanshell-jar=$(java-pkg_getjar bsh bsh.jar) )
520 -
521 - use libreoffice_extensions_scripting-javascript && \
522 - myeconfargs+=( --with-rhino-jar=$(java-pkg_getjar rhino-1.6 js.jar) )
523 - fi
524 -
525 - is-flagq "-flto*" && myeconfargs+=( --enable-lto )
526 -
527 - MARIADBCONFIG="$(type -p $(usex mariadb mariadb mysql)_config)" \
528 - econf "${myeconfargs[@]}"
529 -}
530 -
531 -src_compile() {
532 - # more and more LO stuff tries to use OpenGL, including tests during build
533 - # bug 501508, bug 540624, bug 545974 and probably more
534 - addpredict /dev/dri
535 - addpredict /dev/ati
536 - addpredict /dev/nvidiactl
537 -
538 - local target
539 - use test && target="build" || target="build-nocheck"
540 -
541 - # this is not a proper make script
542 - make ${target} || die
543 -}
544 -
545 -src_test() {
546 - make unitcheck || die
547 - make slowcheck || die
548 -}
549 -
550 -src_install() {
551 - # This is not Makefile so no buildserver
552 - emake DESTDIR="${D}" distro-pack-install -o build -o check
553 -
554 - # bug 593514
555 - if use gtk; then
556 - dosym libreoffice/program/liblibreofficekitgtk.so \
557 - /usr/$(get_libdir)/liblibreofficekitgtk.so
558 - fi
559 -
560 - # bash completion aliases
561 - bashcomp_alias \
562 - libreoffice \
563 - unopkg loimpress lobase localc lodraw lomath lowriter lofromtemplate loweb loffice
564 -
565 - if use branding; then
566 - insinto /usr/$(get_libdir)/${PN}/program
567 - newins "${WORKDIR}/branding-sofficerc" sofficerc
568 - dodir /etc/env.d
569 - echo "CONFIG_PROTECT=/usr/$(get_libdir)/${PN}/program/sofficerc" > "${ED}"/etc/env.d/99${PN} || die
570 - fi
571 -
572 - # bug 703474
573 - insinto /usr/include
574 - doins -r include/LibreOfficeKit
575 -
576 - local lodir=/usr/$(get_libdir)/libreoffice
577 - # patching this would break tests
578 - cat <<-EOF > "${T}"/uno.py
579 -import sys, os
580 -sys.path.append('${EPREFIX}${lodir}/program')
581 -os.putenv('URE_BOOTSTRAP', 'vnd.sun.star.pathname:${EPREFIX}${lodir}/libreoffice/program/fundamentalrc')
582 -EOF
583 - sed -e "/^import sys/d" -e "/^import os/d" \
584 - -i "${D}"${lodir}/program/uno.py || die "cleanup dupl imports failed"
585 - cat "${D}"${lodir}/program/uno.py >> "${T}"/uno.py || die
586 - cp "${T}"/uno.py "${D}"${lodir}/program/uno.py || die
587 -
588 - # more system pyuno mess
589 - sed -e "/sOffice = \"\" # lets hope for the best/s:\"\":\"${EPREFIX}${lodir}/program\":" \
590 - -i "${D}"${lodir}/program/officehelper.py || die
591 -
592 - python_optimize "${D}"${lodir}/program
593 - # link python bridge in site-packages, bug 667802
594 - local py pyc loprogdir=$(get_libdir)/libreoffice/program
595 - for py in uno.py unohelper.py officehelper.py; do
596 - dosym ../../../${loprogdir}/${py} $(python_get_sitedir)/${py}
597 - while IFS="" read -d $'\0' -r pyc; do
598 - pyc=${pyc//*\/}
599 - dosym ../../../../${loprogdir}/__pycache__/${pyc} $(python_get_sitedir)/__pycache__/${pyc}
600 - done < <(find "${D}"${lodir}/program -type f -name ${py/.py/*.pyc} -print0)
601 - done
602 -}
603 -
604 -pkg_postinst() {
605 - xdg_icon_cache_update
606 - xdg_desktop_database_update
607 - xdg_mimeinfo_database_update
608 -}
609 -
610 -pkg_postrm() {
611 - xdg_icon_cache_update
612 - xdg_desktop_database_update
613 - xdg_mimeinfo_database_update
614 -}