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: Tue, 12 Mar 2019 07:10:24
Message-Id: 1552374459.04197cb66aacafa9d9319f0332a7bd4939cb7fd1.asturm@gentoo
1 commit: 04197cb66aacafa9d9319f0332a7bd4939cb7fd1
2 Author: Andreas Sturmlechner <asturm <AT> gentoo <DOT> org>
3 AuthorDate: Mon Mar 11 23:30:25 2019 +0000
4 Commit: Andreas Sturmlechner <asturm <AT> gentoo <DOT> org>
5 CommitDate: Tue Mar 12 07:07:39 2019 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=04197cb6
7
8 app-office/libreoffice: Drop 6.2.1.1
9
10 Package-Manager: Portage-2.3.62, Repoman-2.3.12
11 Signed-off-by: Andreas Sturmlechner <asturm <AT> gentoo.org>
12
13 app-office/libreoffice/Manifest | 2 -
14 app-office/libreoffice/libreoffice-6.2.1.1.ebuild | 574 ----------------------
15 2 files changed, 576 deletions(-)
16
17 diff --git a/app-office/libreoffice/Manifest b/app-office/libreoffice/Manifest
18 index 86f67f8c7e9..ce4d36de578 100644
19 --- a/app-office/libreoffice/Manifest
20 +++ b/app-office/libreoffice/Manifest
21 @@ -5,9 +5,7 @@ DIST 798b2ffdc8bcfe7bca2cf92b62caf685-rhino1_5R5.zip 1521926 BLAKE2B d2769842c18
22 DIST a7983f859eafb2677d7ff386a023bc40-xsltml_2.1.2.zip 23150 BLAKE2B 51db6bd90585b13857ecb494c805c9fb6874e1e65d7aee73d23e1716670836a14b376bcca810f96fd55b0ed653b2660a268030f246c822cbb04f867ef763a3b3 SHA512 2d3835f7ac356805025cafedcad97faa48d0f5da386e6ac7b7451030059df8e2fdb0861ade07a576ebf9fb5b88a973585ab0437944b06aac9289d6898ba8586a
23 DIST libreoffice-6.1.5.2.tar.xz 207918636 BLAKE2B bb4e57a5363e7dc6757c537ef46231ff748649ca4b79993f371e787adba8cd1f3dd988f11e8813c24eb952d00355b02b15f0b126ea2c1f9d9ce7d6c26bf71c38 SHA512 36027ad8a3940e803908561e04feebce297db2fd570b7e43bb43d8c0b7885729eeaf0a64fc5f9e642c1008ffea0b3b1b6d0008e349cd1897425dc818ac8bf140
24 DIST libreoffice-6.2.1.1-patchset-01.tar.xz 8404 BLAKE2B 6fd1a3e931a1d3ef040e0e79ff53299fb47a55bf36f98998ebb896738a639aca8844bf6a5bb5fcbf3a5afeae935cb3e637436dcba456df005d00d5ed5a80e0d0 SHA512 eff36e8b5af2a592572ed60d9f22f59d8611dd5f62977ad93aa957181173d479a19f5907673b0f7532bfcca728a12a20101f2282914a34e0f0a53fd53e682ef3
25 -DIST libreoffice-6.2.1.1.tar.xz 213874132 BLAKE2B f8d4cc02e712f84363bca723e18127c25c76e2057985333c1045a5f656bb6482d7c381a5407dbf08ee5d1ca0f8692e43290ad90b8ed11ee5c4753072760a432f SHA512 92c79b62e99c9928eed2a0c1c14fe147f7bd0d6f891a87525b38fc3964bd298587f42f363503a93853bf57ecf898b4f0dd15d5064fcd354a8d3b4b7eba118b13
26 DIST libreoffice-6.2.1.2.tar.xz 213885668 BLAKE2B b1b15dacfded68e9ce2c183e211928d732564ef0a51a967216545d8ff39bf52e72ecbcb53672cc9d967cb4474fc10efbd97e3d9107d3f7169138c62e8221f212 SHA512 0d18e5f470b3e8a70d1679c7acdc91887cbbbb2032e1eb452308d257a6bc02d42e93fec66709c84838f7565e42217ac1d2b121e3356f7c754fc7ee33b7c6f0ef
27 DIST libreoffice-branding-gentoo-0.8.tar.xz 151568 BLAKE2B f03c7ddeb53c5ca3fd23401679601fcf2c4037ba17be4eb7b784c7ce7ebb71a24b8ab4aac8b7da8c6b1f14dd23bc1294ba85ff4f70ad271fb4ee3c5372e10883 SHA512 785031a699b1d1895ce4b50ffc3ddf645f3a0ef9acdf37facfd18cf75db9484cb8f53a50abb63d6006ead76a80b6ff5aa99661063245ebb84bd64013d713de7f
28 DIST libreoffice-help-6.1.5.2.tar.xz 15758000 BLAKE2B e8db833db00116e210cd6da578ab05089fd12128bfb8015600027c9afca09a1afe7a62e30a0271dffead5d176c0195eae9095d0e00450a926999efadf3f7572f SHA512 0575244ae595af7383b244fd3f1855b7d63820f9c3ebf87bc9d0758463b4b289988bbed99f0985508d34793967734fd83ae2d1a5db514479bb2fe32e0498fc9f
29 -DIST libreoffice-help-6.2.1.1.tar.xz 16186528 BLAKE2B 69b42c88a2c4ff9efe06d397bed3d782805ce85bffdc52ce02742e7f8a65e36ecdd3e08ed9639941fa4a7812fe02405865fb2aff7ef73b41f4a8df0c77019222 SHA512 0e5e753cacae453ceeb299ea6137e249078b50e6cb8797704175fc39355d2c644e4e402838d5eb32ee62c90231ea27bc65bfe8990957a61120e9caf00242d39c
30 DIST libreoffice-help-6.2.1.2.tar.xz 16187168 BLAKE2B 3b24bfa2b7f859329597305e98694d164b82f3bc6767b82df9d6b35951455d98ffaa19cb42417e1b3ece73fe35b3abebbd11fb8a0cd38f370fc7ed203b26bc55 SHA512 c8bd2765b46162203d0b0acc06dc76108bd0093020981e1030d26d5a8771fb9494337c16cc99c10b7de7a906e713dd27555b0af8754d142387c3a968fa663a2f
31
32 diff --git a/app-office/libreoffice/libreoffice-6.2.1.1.ebuild b/app-office/libreoffice/libreoffice-6.2.1.1.ebuild
33 deleted file mode 100644
34 index 410e0c32406..00000000000
35 --- a/app-office/libreoffice/libreoffice-6.2.1.1.ebuild
36 +++ /dev/null
37 @@ -1,574 +0,0 @@
38 -# Copyright 1999-2019 Gentoo Authors
39 -# Distributed under the terms of the GNU General Public License v2
40 -
41 -EAPI=6
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 eapi7-ver flag-o-matic java-pkg-opt-2 multiprocessing pax-utils python-single-r1 qmake-utils toolchain-funcs xdg
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 vlc
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=""
118 -# KEYWORDS="~amd64 ~arm ~arm64 ~ppc64 ~x86 ~amd64-linux ~x86-linux"
119 -
120 -COMMON_DEPEND="${PYTHON_DEPS}
121 - app-arch/unzip
122 - app-arch/zip
123 - app-crypt/gpgme[cxx]
124 - app-text/hunspell:=
125 - >=app-text/libabw-0.1.0
126 - >=app-text/libebook-0.1
127 - app-text/libepubgen
128 - >=app-text/libetonyek-0.1
129 - app-text/libexttextcat
130 - app-text/liblangtag
131 - >=app-text/libmspub-0.1.0
132 - >=app-text/libmwaw-0.3.1
133 - app-text/libnumbertext
134 - >=app-text/libodfgen-0.1.0
135 - app-text/libqxp
136 - app-text/libstaroffice
137 - app-text/libwpd:0.10[tools]
138 - app-text/libwpg:0.3
139 - >=app-text/libwps-0.4
140 - app-text/mythes
141 - >=dev-cpp/clucene-2.3.3.4-r2
142 - =dev-cpp/libcmis-0.5*
143 - dev-db/unixODBC
144 - dev-lang/perl
145 - dev-libs/boost:=[nls]
146 - dev-libs/expat
147 - dev-libs/hyphen
148 - dev-libs/icu:=
149 - dev-libs/libassuan
150 - dev-libs/libgpg-error
151 - >=dev-libs/liborcus-0.14.0
152 - dev-libs/librevenge
153 - dev-libs/libxml2
154 - dev-libs/libxslt
155 - dev-libs/nspr
156 - dev-libs/nss
157 - >=dev-libs/redland-1.0.16
158 - >=dev-libs/xmlsec-1.2.24[nss]
159 - media-gfx/fontforge
160 - media-gfx/graphite2
161 - media-libs/fontconfig
162 - media-libs/freetype:2
163 - >=media-libs/harfbuzz-0.9.42:=[graphite,icu]
164 - media-libs/lcms:2
165 - >=media-libs/libcdr-0.1.0
166 - >=media-libs/libepoxy-1.3.1[X]
167 - >=media-libs/libfreehand-0.1.0
168 - media-libs/libpagemaker
169 - >=media-libs/libpng-1.4:0=
170 - >=media-libs/libvisio-0.1.0
171 - media-libs/libzmf
172 - net-libs/neon
173 - net-misc/curl
174 - sci-mathematics/lpsolve
175 - sys-libs/zlib
176 - virtual/glu
177 - virtual/jpeg:0
178 - virtual/opengl
179 - x11-libs/cairo[X]
180 - x11-libs/libXinerama
181 - x11-libs/libXrandr
182 - x11-libs/libXrender
183 - accessibility? ( dev-python/lxml[${PYTHON_USEDEP}] )
184 - bluetooth? (
185 - dev-libs/glib:2
186 - net-wireless/bluez
187 - )
188 - coinmp? ( sci-libs/coinor-mp )
189 - cups? ( net-print/cups )
190 - dbus? ( sys-apps/dbus )
191 - eds? (
192 - dev-libs/glib:2
193 - gnome-base/dconf
194 - gnome-extra/evolution-data-server
195 - )
196 - firebird? ( >=dev-db/firebird-3.0.2.32703.0-r1[server] )
197 - gstreamer? (
198 - media-libs/gstreamer:1.0
199 - media-libs/gst-plugins-base:1.0
200 - )
201 - gtk? (
202 - dev-libs/glib:2
203 - dev-libs/gobject-introspection
204 - gnome-base/dconf
205 - media-libs/mesa[egl]
206 - x11-libs/gtk+:3
207 - x11-libs/pango
208 - )
209 - gtk2? (
210 - x11-libs/gdk-pixbuf
211 - >=x11-libs/gtk+-2.24:2
212 - x11-libs/pango
213 - )
214 - kde? (
215 - dev-qt/qtcore:5
216 - dev-qt/qtgui:5
217 - dev-qt/qtx11extras:5
218 - dev-qt/qtwidgets:5
219 - kde-frameworks/kconfig:5
220 - kde-frameworks/kcoreaddons:5
221 - kde-frameworks/ki18n:5
222 - kde-frameworks/kio:5
223 - kde-frameworks/kwindowsystem:5
224 - )
225 - ldap? ( net-nds/openldap )
226 - libreoffice_extensions_scripting-beanshell? ( dev-java/bsh )
227 - libreoffice_extensions_scripting-javascript? ( dev-java/rhino:1.6 )
228 - mariadb? ( dev-db/mariadb-connector-c )
229 - !mariadb? ( dev-db/mysql-connector-c )
230 - pdfimport? ( app-text/poppler:=[cxx] )
231 - postgres? ( >=dev-db/postgresql-9.0:*[kerberos] )
232 -"
233 -
234 -RDEPEND="${COMMON_DEPEND}
235 - !app-office/libreoffice-bin
236 - !app-office/libreoffice-bin-debug
237 - !app-office/openoffice
238 - media-fonts/liberation-fonts
239 - || ( x11-misc/xdg-utils kde-plasma/kde-cli-tools )
240 - java? ( >=virtual/jre-1.6 )
241 - kde? ( kde-frameworks/breeze-icons:* )
242 - vlc? ( media-video/vlc )
243 -"
244 -
245 -if [[ ${MY_PV} != *9999* ]] && [[ ${PV} != *_* ]]; then
246 - PDEPEND="=app-office/libreoffice-l10n-$(ver_cut 1-2)*"
247 -else
248 - # Translations are not reliable on live ebuilds
249 - # rather force people to use english only.
250 - PDEPEND="!app-office/libreoffice-l10n"
251 -fi
252 -
253 -# FIXME: cppunit should be moved to test conditional
254 -# after everything upstream is under gbuild
255 -# as dmake execute tests right away
256 -# tests apparently also need google-carlito-fonts (not packaged)
257 -DEPEND="${COMMON_DEPEND}
258 - >=dev-libs/libatomic_ops-7.2d
259 - dev-perl/Archive-Zip
260 - >=dev-util/cppunit-1.14.0
261 - >=dev-util/gperf-3
262 - dev-util/intltool
263 - >=dev-util/mdds-1.4.1:1=
264 - media-libs/glm
265 - sys-devel/bison
266 - sys-devel/flex
267 - sys-devel/gettext
268 - sys-devel/ucpp
269 - virtual/pkgconfig
270 - x11-base/xorg-proto
271 - x11-libs/libXt
272 - x11-libs/libXtst
273 - java? (
274 - dev-java/ant-core
275 - >=virtual/jdk-1.6
276 - )
277 - odk? ( >=app-doc/doxygen-1.8.4 )
278 - test? (
279 - app-crypt/gnupg
280 - dev-util/cppunit
281 - media-fonts/dejavu
282 - media-fonts/liberation-fonts
283 - )
284 -"
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 -
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 - xdg_src_prepare
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 - # system pyuno mess
360 - sed -i \
361 - -e "s:%eprefix%:${EPREFIX}:g" \
362 - -e "s:%libdir%:$(get_libdir):g" \
363 - pyuno/source/module/uno.py \
364 - pyuno/source/officehelper.py || die
365 - # sed in the tests
366 - sed -i \
367 - -e "s#all : build unitcheck#all : build#g" \
368 - solenv/gbuild/Module.mk || die
369 - sed -i \
370 - -e "s#check: dev-install subsequentcheck#check: unitcheck slowcheck dev-install subsequentcheck#g" \
371 - -e "s#Makefile.gbuild all slowcheck#Makefile.gbuild all#g" \
372 - Makefile.in || die
373 -
374 - sed -i \
375 - -e "s,/usr/share/bash-completion/completions,$(get_bashcompdir)," \
376 - -e "s,\$INSTALLDIRNAME.sh,${PN}," \
377 - bin/distro-install-desktop-integration || die
378 -
379 - if use branding; then
380 - # hack...
381 - mv -v "${WORKDIR}/branding-intro.png" "icon-themes/colibre/brand/intro.png" || die
382 - fi
383 -
384 - # Don't list pdfimport support in desktop when built with none, bug # 605464
385 - if ! use pdfimport; then
386 - sed -i \
387 - -e ":MimeType: s:application/pdf;::" \
388 - -e ":Keywords: s:pdf;::" \
389 - sysui/desktop/menus/draw.desktop || die
390 - fi
391 -}
392 -
393 -src_configure() {
394 - # Set up Google API keys, see https://www.chromium.org/developers/how-tos/api-keys
395 - # Note: these are for Gentoo use ONLY. For your own distribution, please get
396 - # your own set of keys. Feel free to contact chromium@g.o for more info.
397 - local google_default_client_id="329227923882.apps.googleusercontent.com"
398 - local google_default_client_secret="vgKG0NNv7GoDpbtoFNLxCUXu"
399 -
400 - # optimization flags
401 - export GMAKE_OPTIONS="${MAKEOPTS}"
402 - # System python enablement:
403 - export PYTHON_CFLAGS=$(python_get_CFLAGS)
404 - export PYTHON_LIBS=$(python_get_LIBS)
405 -
406 - if use kde; then
407 - export QT_SELECT=5 # bug 639620 needs proper fix though
408 - export QT5DIR="$(qt5_get_bindir)/../"
409 - export MOC5="$(qt5_get_bindir)/moc"
410 - fi
411 -
412 - local gentoo_buildid="Gentoo official package"
413 - if [[ -n ${LOCOREGIT_VERSION} ]]; then
414 - gentoo_buildid+=" (from git: ${LOCOREGIT_VERSION})"
415 - fi
416 -
417 - # system headers/libs/...: enforce using system packages
418 - # --disable-breakpad: requires not-yet-in-tree dev-utils/breakpad
419 - # --enable-cairo: ensure that cairo is always required
420 - # --enable-*-link: link to the library rather than just dlopen on runtime
421 - # --enable-release-build: build the libreoffice as release
422 - # --disable-fetch-external: prevent dowloading during compile phase
423 - # --enable-extension-integration: enable any extension integration support
424 - # --without-{fonts,myspell-dicts,ppsd}: prevent install of sys pkgs
425 - # --disable-report-builder: too much java packages pulled in without pkgs
426 - # --without-system-sane: just sane.h header that is used for scan in writer,
427 - # not linked or anything else, worthless to depend on
428 - # --disable-pdfium: not yet packaged
429 - local myeconfargs=(
430 - --with-system-dicts
431 - --with-system-epoxy
432 - --with-system-headers
433 - --with-system-jars
434 - --with-system-libs
435 - --enable-build-opensymbol
436 - --enable-cairo-canvas
437 - --enable-largefile
438 - --enable-mergelibs
439 - --enable-neon
440 - --enable-python=system
441 - --enable-randr
442 - --enable-release-build
443 - --disable-breakpad
444 - --disable-bundle-mariadb
445 - --disable-ccache
446 - --disable-dependency-tracking
447 - --disable-epm
448 - --disable-fetch-external
449 - --disable-gstreamer-0-10
450 - --disable-online-update
451 - --disable-openssl
452 - --disable-pdfium
453 - --disable-report-builder
454 - --with-build-version="${gentoo_buildid}"
455 - --enable-extension-integration
456 - --with-external-dict-dir="${EPREFIX}/usr/share/myspell"
457 - --with-external-hyph-dir="${EPREFIX}/usr/share/myspell"
458 - --with-external-thes-dir="${EPREFIX}/usr/share/myspell"
459 - --with-external-tar="${DISTDIR}"
460 - --with-lang=""
461 - --with-parallelism=$(makeopts_jobs)
462 - --with-system-ucpp
463 - --with-tls=nss
464 - --with-vendor="Gentoo Foundation"
465 - --with-x
466 - --without-fonts
467 - --without-myspell-dicts
468 - --without-help
469 - --with-helppack-integration
470 - --with-system-gpgmepp
471 - --without-system-sane
472 - $(use_enable bluetooth sdremote-bluetooth)
473 - $(use_enable coinmp)
474 - $(use_enable cups)
475 - $(use_enable dbus)
476 - $(use_enable debug)
477 - $(use_enable eds evolution2)
478 - $(use_enable firebird firebird-sdbc)
479 - $(use_enable gstreamer gstreamer-1-0)
480 - $(use_enable gtk gtk3)
481 - $(use_enable gtk2 gtk)
482 - $(use_enable kde kde5)
483 - $(use_enable kde qt5)
484 - $(use_enable ldap)
485 - $(use_enable odk)
486 - $(use_enable pdfimport)
487 - $(use_enable postgres postgresql-sdbc)
488 - $(use_enable vlc)
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 gtk && use kde; then
498 - myeconfargs+=( --enable-gtk3-kde5 )
499 - fi
500 -
501 - if use eds || use gtk; then
502 - myeconfargs+=( --enable-dconf --enable-gio )
503 - else
504 - myeconfargs+=( --disable-dconf --disable-gio )
505 - fi
506 -
507 - # libreoffice extensions handling
508 - for lo_xt in ${LO_EXTS}; do
509 - if [[ "${lo_xt}" == "scripting-beanshell" || "${lo_xt}" == "scripting-javascript" ]]; then
510 - myeconfargs+=( $(use_enable libreoffice_extensions_${lo_xt} ${lo_xt}) )
511 - else
512 - myeconfargs+=( $(use_enable libreoffice_extensions_${lo_xt} ext-${lo_xt}) )
513 - fi
514 - done
515 -
516 - if use java; then
517 - # hsqldb: system one is too new
518 - myeconfargs+=(
519 - --without-junit
520 - --without-system-hsqldb
521 - --with-ant-home="${ANT_HOME}"
522 - --with-jdk-home=$(java-config --jdk-home 2>/dev/null)
523 - --with-jvm-path="${EPREFIX}/usr/lib/"
524 - )
525 -
526 - use libreoffice_extensions_scripting-beanshell && \
527 - myeconfargs+=( --with-beanshell-jar=$(java-pkg_getjar bsh bsh.jar) )
528 -
529 - use libreoffice_extensions_scripting-javascript && \
530 - myeconfargs+=( --with-rhino-jar=$(java-pkg_getjar rhino-1.6 js.jar) )
531 - fi
532 -
533 - is-flagq "-flto*" && myeconfargs+=( --enable-lto )
534 -
535 - MARIADBCONFIG="$(type -p $(usex mariadb mariadb mysql)_config)" \
536 - econf "${myeconfargs[@]}"
537 -}
538 -
539 -src_compile() {
540 - # more and more LO stuff tries to use OpenGL, including tests during build
541 - # bug 501508, bug 540624, bug 545974 and probably more
542 - addpredict /dev/dri
543 - addpredict /dev/ati
544 - addpredict /dev/nvidiactl
545 -
546 - # hack for offlinehelp, this needs fixing upstream at some point
547 - # it is broken because we send --without-help
548 - # https://bugs.freedesktop.org/show_bug.cgi?id=46506
549 - (
550 - grep "^export" "${S}/config_host.mk" > "${T}/config_host.mk" || die
551 - source "${T}/config_host.mk" 2&> /dev/null
552 -
553 - local path="${WORKDIR}/helpcontent2/source/auxiliary/"
554 - mkdir -p "${path}" || die
555 -
556 - echo "perl \"${S}/helpcontent2/helpers/create_ilst.pl\" -dir=helpcontent2/source/media/helpimg > \"${path}/helpimg.ilst\""
557 - perl "${S}/helpcontent2/helpers/create_ilst.pl" \
558 - -dir=helpcontent2/source/media/helpimg \
559 - > "${path}/helpimg.ilst"
560 - [[ -s "${path}/helpimg.ilst" ]] || \
561 - ewarn "The help images list is empty, something is fishy, report a bug."
562 - )
563 -
564 - local target
565 - use test && target="build" || target="build-nocheck"
566 -
567 - # this is not a proper make script
568 - make ${target} || die
569 -}
570 -
571 -src_test() {
572 - make unitcheck || die
573 - make slowcheck || die
574 -}
575 -
576 -src_install() {
577 - # This is not Makefile so no buildserver
578 - make DESTDIR="${D}" distro-pack-install -o build -o check || die
579 -
580 - # bug 593514
581 - if use gtk; then
582 - dosym libreoffice/program/liblibreofficekitgtk.so \
583 - /usr/$(get_libdir)/liblibreofficekitgtk.so
584 - fi
585 -
586 - # bash completion aliases
587 - bashcomp_alias \
588 - libreoffice \
589 - unopkg loimpress lobase localc lodraw lomath lowriter lofromtemplate loweb loffice
590 -
591 - if use branding; then
592 - insinto /usr/$(get_libdir)/${PN}/program
593 - newins "${WORKDIR}/branding-sofficerc" sofficerc
594 - dodir /etc/env.d
595 - echo "CONFIG_PROTECT=/usr/$(get_libdir)/${PN}/program/sofficerc" > "${ED%/}"/etc/env.d/99${PN} || die
596 - fi
597 -
598 - # Hack for offlinehelp, this needs fixing upstream at some point.
599 - # It is broken because we send --without-help
600 - # https://bugs.freedesktop.org/show_bug.cgi?id=46506
601 - insinto /usr/$(get_libdir)/libreoffice/help
602 - doins xmlhelp/util/*.xsl
603 -
604 - pax-mark -m "${ED%/}"/usr/$(get_libdir)/libreoffice/program/soffice.bin
605 - pax-mark -m "${ED%/}"/usr/$(get_libdir)/libreoffice/program/unopkg.bin
606 -}
607 -
608 -pkg_preinst() {
609 - java-utils-2_pkg_preinst
610 - xdg_pkg_preinst
611 -}