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, 28 Jan 2018 23:19:54
Message-Id: 1517181538.b4ee378213f13b2bd7ede5ee2d3d24e6366b9245.asturm@gentoo
1 commit: b4ee378213f13b2bd7ede5ee2d3d24e6366b9245
2 Author: Andreas Sturmlechner <asturm <AT> gentoo <DOT> org>
3 AuthorDate: Sat Jan 27 20:21:20 2018 +0000
4 Commit: Andreas Sturmlechner <asturm <AT> gentoo <DOT> org>
5 CommitDate: Sun Jan 28 23:18:58 2018 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=b4ee3782
7
8 app-office/libreoffice: 6.0.0.3 version bump, no keywords
9
10 Package-Manager: Portage-2.3.20, Repoman-2.3.6
11
12 app-office/libreoffice/Manifest | 2 +
13 app-office/libreoffice/libreoffice-6.0.0.3.ebuild | 569 ++++++++++++++++++++++
14 2 files changed, 571 insertions(+)
15
16 diff --git a/app-office/libreoffice/Manifest b/app-office/libreoffice/Manifest
17 index ca35e8495a0..e41c90ed889 100644
18 --- a/app-office/libreoffice/Manifest
19 +++ b/app-office/libreoffice/Manifest
20 @@ -7,6 +7,8 @@ DIST a7983f859eafb2677d7ff386a023bc40-xsltml_2.1.2.zip 23150 BLAKE2B 51db6bd9058
21 DIST libreoffice-5.4.2.2.tar.xz 192795940 BLAKE2B 35672c2d7c78b5aca71e4f492dd41475f4da0ca01433c0d05a811bfee39467c037e510552258b149f463f0c05dec83d2d7109342b88bc7d7775a51bf6831891a SHA512 37edf44b4b3c3e694f5b5915647f9555413c3fcc6d29f5f8d74806439b65ed90418905476d7b75ce58a032abb1f55cecf1ca74b63279666ca2af5f3ac95a645c
22 DIST libreoffice-5.4.4.2.tar.xz 193657116 BLAKE2B 1be8565481bbdf930f6bbbd894dbe5d0be7faeba068517e15a2b23acfd2d8d06960e5991fd9d990c49ad13857177020e22fdb5c272587bc25cac4bdf23bb7fa1 SHA512 f7142fd73aa037b0bbffd3fa5af58049ab6688900976296ba2e53956227aef8920cb229aad4eec05ff36c8dde584415f7893893cc81cac72b305f67b80e36882
23 DIST libreoffice-6.0.0.3-patchset-01.tar.xz 33032 BLAKE2B 1fad88d703b9ff097a6870d6f74731de3e6bd5f7b91938e674b28bf82bae0b075d910a930b2e3c82fc1ff5dff81f13575fed351f8165cec67903e8949e06b9d4 SHA512 2fb4f02e93b648fbf611b62ad8bfe93fd4b228bee84612a9d62e9bc061cabf51ae76d7d9cbfbad186669db109fe829765c816eb27960f97ca37e7fe0536d72e9
24 +DIST libreoffice-6.0.0.3.tar.xz 203284136 BLAKE2B 2d8190499439addddfa017f12b22c4b80001169af5021a546cdbf5eaea3c47a2ac1d190e98efe5022050431805417824c29295068631ec596a6357b13528c52d SHA512 2b2c0fafec5db23317a2c3236b482b0cef9c0edfabab94495a0fd3007b271eaa1dbfa97711819b3b8fb2e2375fbdfb4c662df4ffc8c519255ac84357b4c45e62
25 DIST libreoffice-branding-gentoo-0.8.tar.xz 151568 BLAKE2B f03c7ddeb53c5ca3fd23401679601fcf2c4037ba17be4eb7b784c7ce7ebb71a24b8ab4aac8b7da8c6b1f14dd23bc1294ba85ff4f70ad271fb4ee3c5372e10883 SHA512 785031a699b1d1895ce4b50ffc3ddf645f3a0ef9acdf37facfd18cf75db9484cb8f53a50abb63d6006ead76a80b6ff5aa99661063245ebb84bd64013d713de7f
26 DIST libreoffice-help-5.4.2.2.tar.xz 2343504 BLAKE2B 7d446d5b078adc8943be3fced92f367101f84c8639b84d86a1b8c2386d8aeec61dc01706078cbb251ad81abebb914acc7f5e977aa17fcd1f55db65c0861814e2 SHA512 ba845653d6388bae53eaa945abebb367fedace81c1949ed975a2ad0c270c688649b385b463256b362a6397f18d214aed9b876869434c6c3868649180e57c3112
27 DIST libreoffice-help-5.4.4.2.tar.xz 2343352 BLAKE2B d94528f6dcc85730f2443f3a84beff0cd113bb9c423d767c74d831649e56b0c92279474a0f1169ebc0ffd7804d57dba86aaa352e7fd1d9df9721f3ff6059047c SHA512 55abdde1cf0f62d213a897cc30b92ae04960c9b1e6e69c4f86242d2beecd787f44be9c3d0c8684d775ffe40b17d685a71739c9c2f08753649c4e1298fdf94226
28 +DIST libreoffice-help-6.0.0.3.tar.xz 2972556 BLAKE2B 6805f6a28cf29c6d55732051763f12ad2dc2c76c27c518dc40b85f2ef8f7ad4943de3a55629da4de77ee1ebd3b62a8e225e0ee260081f3c25cbffc60a21970c1 SHA512 9058edf71e34e55e23f5559af94d12d5f12c38385b30d75919283f435eac07dfc790d116b556aca0d0aa30f5119aea39f07a123a1f1e5ad172f5b19b3f7dc4b0
29
30 diff --git a/app-office/libreoffice/libreoffice-6.0.0.3.ebuild b/app-office/libreoffice/libreoffice-6.0.0.3.ebuild
31 new file mode 100644
32 index 00000000000..c42d12a1a85
33 --- /dev/null
34 +++ b/app-office/libreoffice/libreoffice-6.0.0.3.ebuild
35 @@ -0,0 +1,569 @@
36 +# Copyright 1999-2018 Gentoo Foundation
37 +# Distributed under the terms of the GNU General Public License v2
38 +
39 +EAPI=6
40 +
41 +PYTHON_COMPAT=( python2_7 python3_{4,5,6} )
42 +PYTHON_REQ_USE="threads,xml"
43 +
44 +# experimental ; release ; old
45 +# Usually the tarballs are moved a lot so this should make
46 +# everyone happy.
47 +DEV_URI="
48 + https://dev-builds.libreoffice.org/pre-releases/src
49 + https://download.documentfoundation.org/libreoffice/src/${PV:0:5}/
50 + https://download.documentfoundation.org/libreoffice/old/${PV}/
51 +"
52 +ADDONS_URI="https://dev-www.libreoffice.org/src/"
53 +
54 +BRANDING="${PN}-branding-gentoo-0.8.tar.xz"
55 +PATCHSET="${PN}-6.0.0.3-patchset-01.tar.xz"
56 +
57 +[[ ${PV} == *9999* ]] && SCM_ECLASS="git-r3"
58 +inherit multiprocessing autotools bash-completion-r1 check-reqs gnome2-utils java-pkg-opt-2 pax-utils python-single-r1 toolchain-funcs flag-o-matic versionator xdg-utils qmake-utils ${SCM_ECLASS}
59 +unset SCM_ECLASS
60 +
61 +DESCRIPTION="A full office productivity suite"
62 +HOMEPAGE="https://www.libreoffice.org"
63 +SRC_URI="branding? ( https://dev.gentoo.org/~dilfridge/distfiles/${BRANDING} )"
64 +[[ -n ${PATCHSET} ]] && SRC_URI+=" https://dev.gentoo.org/~asturm/distfiles/${PATCHSET}"
65 +
66 +# Split modules following git/tarballs
67 +# Core MUST be first!
68 +# Help is used for the image generator
69 +# Only release has the tarballs
70 +if [[ ${PV} != *9999* ]]; then
71 + for i in ${DEV_URI}; do
72 + SRC_URI+=" ${i}/${P}.tar.xz"
73 + SRC_URI+=" ${i}/${PN}-help-${PV}.tar.xz"
74 + done
75 + unset i
76 +fi
77 +unset DEV_URI
78 +
79 +# Really required addons
80 +# These are bundles that can't be removed for now due to huge patchsets.
81 +# If you want them gone, patches are welcome.
82 +ADDONS_SRC=(
83 + "java? ( ${ADDONS_URI}/17410483b5b5f267aa18b7e00b65e6e0-hsqldb_1_8_0.zip )"
84 + # no release for 8 years, should we package it?
85 + "libreoffice_extensions_wiki-publisher? ( ${ADDONS_URI}/a7983f859eafb2677d7ff386a023bc40-xsltml_2.1.2.zip )"
86 + # Does not build with 1.6 rhino at all
87 + "libreoffice_extensions_scripting-javascript? ( ${ADDONS_URI}/798b2ffdc8bcfe7bca2cf92b62caf685-rhino1_5R5.zip )"
88 + # requirement of rhino
89 + "libreoffice_extensions_scripting-javascript? ( ${ADDONS_URI}/35c94d2df8893241173de1d16b6034c0-swingExSrc.zip )"
90 + # not packageable
91 + "odk? ( http://download.go-oo.org/extern/185d60944ea767075d27247c3162b3bc-unowinreg.dll )"
92 +)
93 +SRC_URI+=" ${ADDONS_SRC[*]}"
94 +
95 +unset ADDONS_URI
96 +unset ADDONS_SRC
97 +
98 +# Extensions that need extra work:
99 +LO_EXTS="nlpsolver scripting-beanshell scripting-javascript wiki-publisher"
100 +
101 +IUSE="bluetooth +branding coinmp +cups dbus debug eds firebird googledrive
102 +gstreamer +gtk gtk2 jemalloc kde libressl mysql odk pdfimport postgres test vlc
103 +$(printf 'libreoffice_extensions_%s ' ${LO_EXTS})"
104 +
105 +LICENSE="|| ( LGPL-3 MPL-1.1 )"
106 +SLOT="0"
107 +[[ ${PV} == *9999* ]] || \
108 +KEYWORDS=""
109 +# KEYWORDS="~amd64 ~arm ~arm64 ~x86 ~amd64-linux ~x86-linux"
110 +
111 +COMMON_DEPEND="${PYTHON_DEPS}
112 + app-arch/unzip
113 + app-arch/zip
114 + app-crypt/gpgme[cxx]
115 + app-text/hunspell:=
116 + >=app-text/libabw-0.1.0
117 + >=app-text/libebook-0.1
118 + app-text/libepubgen
119 + >=app-text/libetonyek-0.1
120 + app-text/libexttextcat
121 + app-text/liblangtag
122 + >=app-text/libmspub-0.1.0
123 + >=app-text/libmwaw-0.3.1
124 + >=app-text/libodfgen-0.1.0
125 + app-text/libqxp
126 + app-text/libstaroffice
127 + app-text/libwpd:0.10[tools]
128 + app-text/libwpg:0.3
129 + >=app-text/libwps-0.4
130 + app-text/mythes
131 + >=dev-cpp/clucene-2.3.3.4-r2
132 + =dev-cpp/libcmis-0.5*
133 + dev-db/unixODBC
134 + dev-lang/perl
135 + dev-libs/boost:=
136 + dev-libs/expat
137 + dev-libs/hyphen
138 + dev-libs/icu:=
139 + dev-libs/libassuan
140 + dev-libs/libgpg-error
141 + =dev-libs/liborcus-0.13*
142 + dev-libs/librevenge
143 + dev-libs/nspr
144 + dev-libs/nss
145 + !libressl? ( >=dev-libs/openssl-1.0.0d:0 )
146 + libressl? ( dev-libs/libressl )
147 + >=dev-libs/redland-1.0.16
148 + >=dev-libs/xmlsec-1.2.24[nss]
149 + media-gfx/graphite2
150 + media-libs/fontconfig
151 + media-libs/freetype:2
152 + >=media-libs/harfbuzz-0.9.42:=[graphite,icu]
153 + media-libs/lcms:2
154 + >=media-libs/libcdr-0.1.0
155 + >=media-libs/libepoxy-1.3.1[X]
156 + >=media-libs/libfreehand-0.1.0
157 + media-libs/libpagemaker
158 + >=media-libs/libpng-1.4:0=
159 + >=media-libs/libvisio-0.1.0
160 + media-libs/libzmf
161 + net-libs/neon
162 + net-misc/curl
163 + net-nds/openldap
164 + sci-mathematics/lpsolve
165 + virtual/glu
166 + virtual/jpeg:0
167 + virtual/opengl
168 + x11-libs/cairo[X]
169 + x11-libs/libXinerama
170 + x11-libs/libXrandr
171 + x11-libs/libXrender
172 + bluetooth? ( net-wireless/bluez )
173 + coinmp? ( sci-libs/coinor-mp )
174 + cups? ( net-print/cups )
175 + dbus? ( dev-libs/dbus-glib )
176 + eds? (
177 + dev-libs/glib:2
178 + gnome-base/dconf
179 + gnome-extra/evolution-data-server
180 + )
181 + firebird? ( >=dev-db/firebird-3.0.2.32703.0-r1 )
182 + gstreamer? (
183 + media-libs/gstreamer:1.0
184 + media-libs/gst-plugins-base:1.0
185 + )
186 + gtk? (
187 + dev-libs/glib:2
188 + dev-libs/gobject-introspection
189 + gnome-base/dconf
190 + x11-libs/gtk+:3
191 + )
192 + gtk2? (
193 + x11-libs/gdk-pixbuf
194 + >=x11-libs/gtk+-2.24:2
195 + )
196 + kde? (
197 + dev-qt/qtcore:5
198 + dev-qt/qtgui:5
199 + dev-qt/qtx11extras:5
200 + dev-qt/qtwidgets:5
201 + kde-frameworks/kconfig:5
202 + kde-frameworks/kcoreaddons:5
203 + kde-frameworks/ki18n:5
204 + kde-frameworks/kio:5
205 + kde-frameworks/kwindowsystem:5
206 + )
207 + jemalloc? ( dev-libs/jemalloc )
208 + libreoffice_extensions_scripting-beanshell? ( dev-java/bsh )
209 + libreoffice_extensions_scripting-javascript? ( dev-java/rhino:1.6 )
210 + mysql? ( dev-db/mysql-connector-c++ )
211 + pdfimport? ( app-text/poppler:=[cxx] )
212 + postgres? ( >=dev-db/postgresql-9.0:*[kerberos] )
213 +"
214 +
215 +RDEPEND="${COMMON_DEPEND}
216 + !app-office/libreoffice-bin
217 + !app-office/libreoffice-bin-debug
218 + !app-office/openoffice
219 + media-fonts/dejavu
220 + media-fonts/liberation-fonts
221 + media-fonts/libertine
222 + || ( x11-misc/xdg-utils kde-plasma/kde-cli-tools )
223 + java? ( >=virtual/jre-1.6 )
224 + kde? ( kde-frameworks/oxygen-icons:* )
225 + vlc? ( media-video/vlc )
226 +"
227 +
228 +if [[ ${PV} != *9999* ]]; then
229 + PDEPEND="=app-office/libreoffice-l10n-$(get_version_component_range 1-2)*"
230 +else
231 + # Translations are not reliable on live ebuilds
232 + # rather force people to use english only.
233 + PDEPEND="!app-office/libreoffice-l10n"
234 +fi
235 +
236 +# FIXME: cppunit should be moved to test conditional
237 +# after everything upstream is under gbuild
238 +# as dmake execute tests right away
239 +DEPEND="${COMMON_DEPEND}
240 + !<sys-devel/make-3.82
241 + >=dev-libs/libatomic_ops-7.2d
242 + >=dev-libs/libxml2-2.7.8
243 + dev-libs/libxslt
244 + dev-perl/Archive-Zip
245 + >=dev-util/cppunit-1.14.0
246 + >=dev-util/gperf-3
247 + dev-util/intltool
248 + >=dev-util/mdds-1.2.3:1=
249 + media-libs/glm
250 + sys-devel/bison
251 + sys-devel/flex
252 + sys-devel/gettext
253 + sys-devel/ucpp
254 + sys-libs/zlib
255 + virtual/pkgconfig
256 + x11-libs/libXt
257 + x11-libs/libXtst
258 + x11-proto/randrproto
259 + x11-proto/xextproto
260 + x11-proto/xineramaproto
261 + x11-proto/xproto
262 + java? (
263 + dev-java/ant-core
264 + >=virtual/jdk-1.6
265 + )
266 + odk? ( >=app-doc/doxygen-1.8.4 )
267 + test? (
268 + dev-util/cppunit
269 + media-fonts/dejavu
270 + )
271 +"
272 +
273 +REQUIRED_USE="${PYTHON_REQUIRED_USE}
274 + bluetooth? ( dbus )
275 + kde? ( gtk )
276 + libreoffice_extensions_nlpsolver? ( java )
277 + libreoffice_extensions_scripting-beanshell? ( java )
278 + libreoffice_extensions_scripting-javascript? ( java )
279 + libreoffice_extensions_wiki-publisher? ( java )
280 +"
281 +
282 +PATCHES=(
283 + # not upstreamable stuff
284 + "${FILESDIR}/${PN}-5.4-system-pyuno.patch"
285 + "${FILESDIR}/${PN}-5.3.4.2-kioclient5.patch"
286 +
287 + # TODO: upstream
288 + "${FILESDIR}/${PN}-5.2.5.1-glibc-2.24.patch"
289 + "${FILESDIR}/${PN}-6.0.0.1-poppler-0.62.patch" # bug 642602
290 +
291 + # gtk3-kde5 vcl plugin backported from master
292 + "${WORKDIR}"/${PATCHSET/.tar.xz/}
293 +)
294 +
295 +pkg_pretend() {
296 + use java || \
297 + ewarn "If you plan to use Base application you should enable java or you will get various crashes."
298 +
299 + if has_version "<app-office/libreoffice-5.3.0[firebird]"; then
300 + ewarn "Firebird has been upgraded to version 3.0.0. It is unable to read back Firebird 2.5 data,"
301 + ewarn "so embedded firebird odb files created in LibreOffice pre-5.3 cannot be opened with LibreOffice 5.3."
302 + ewarn "See also: https://wiki.documentfoundation.org/ReleaseNotes/5.3#Base"
303 + fi
304 +
305 + if [[ ${MERGE_TYPE} != binary ]]; then
306 + CHECKREQS_MEMORY="512M"
307 + if is-flagq "-g*" && ! is-flagq "-g*0" ; then
308 + CHECKREQS_DISK_BUILD="22G"
309 + else
310 + CHECKREQS_DISK_BUILD="6G"
311 + fi
312 + check-reqs_pkg_pretend
313 + fi
314 +}
315 +
316 +pkg_setup() {
317 + java-pkg-opt-2_pkg_setup
318 + python-single-r1_pkg_setup
319 + xdg_environment_reset
320 +
321 + if [[ ${MERGE_TYPE} != binary ]]; then
322 + CHECKREQS_MEMORY="512M"
323 + if is-flagq "-g*" && ! is-flagq "-g*0" ; then
324 + CHECKREQS_DISK_BUILD="22G"
325 + else
326 + CHECKREQS_DISK_BUILD="6G"
327 + fi
328 + check-reqs_pkg_setup
329 + fi
330 +}
331 +
332 +src_unpack() {
333 + default
334 +
335 + if [[ ${PV} = *9999* ]]; then
336 + local base_uri branch mypv
337 + base_uri="https://anongit.freedesktop.org/git"
338 + branch="master"
339 + mypv=${PV/.9999}
340 + [[ ${mypv} != ${PV} ]] && branch="${PN}-${mypv/./-}"
341 + git-r3_fetch "${base_uri}/${PN}/core" "refs/heads/${branch}"
342 + git-r3_checkout "${base_uri}/${PN}/core"
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 + AT_M4DIR="m4" eautoreconf
353 + # hack in the autogen.sh
354 + touch autogen.lastrun
355 +
356 + # system pyuno mess
357 + sed -i \
358 + -e "s:%eprefix%:${EPREFIX}:g" \
359 + -e "s:%libdir%:$(get_libdir):g" \
360 + pyuno/source/module/uno.py \
361 + pyuno/source/officehelper.py || die
362 + # sed in the tests
363 + sed -i \
364 + -e "s#all : build unitcheck#all : build#g" \
365 + solenv/gbuild/Module.mk || die
366 + sed -i \
367 + -e "s#check: dev-install subsequentcheck#check: unitcheck slowcheck dev-install subsequentcheck#g" \
368 + -e "s#Makefile.gbuild all slowcheck#Makefile.gbuild all#g" \
369 + Makefile.in || die
370 +
371 + sed -i \
372 + -e "s,/usr/share/bash-completion/completions,$(get_bashcompdir)," \
373 + -e "s,\$INSTALLDIRNAME.sh,${PN}," \
374 + bin/distro-install-desktop-integration || die
375 +
376 + if use branding; then
377 + # hack...
378 + mv -v "${WORKDIR}/branding-intro.png" "${S}/icon-themes/galaxy/brand/intro.png" || die
379 + fi
380 +
381 + # Don't list pdfimport support in desktop when built with none, bug # 605464
382 + if ! use pdfimport; then
383 + sed -i \
384 + -e ":MimeType: s:application/pdf;::" \
385 + -e ":Keywords: s:pdf;::" \
386 + sysui/desktop/menus/draw.desktop || die
387 + fi
388 +}
389 +
390 +src_configure() {
391 + # Set up Google API keys, see https://www.chromium.org/developers/how-tos/api-keys
392 + # Note: these are for Gentoo use ONLY. For your own distribution, please get
393 + # your own set of keys. Feel free to contact chromium@g.o for more info.
394 + local google_default_client_id="329227923882.apps.googleusercontent.com"
395 + local google_default_client_secret="vgKG0NNv7GoDpbtoFNLxCUXu"
396 +
397 + # optimization flags
398 + export GMAKE_OPTIONS="${MAKEOPTS}"
399 + # System python enablement:
400 + export PYTHON_CFLAGS=$(python_get_CFLAGS)
401 + export PYTHON_LIBS=$(python_get_LIBS)
402 +
403 + if use kde; then
404 + export QT_SELECT=5 # bug 639620 needs proper fix though
405 + export QT5DIR="$(qt5_get_bindir)/../"
406 + export MOC5="$(qt5_get_bindir)/moc"
407 + fi
408 +
409 + # system headers/libs/...: enforce using system packages
410 + # --disable-breakpad: requires not-yet-in-tree dev-utils/breakpad
411 + # --enable-cairo: ensure that cairo is always required
412 + # --enable-*-link: link to the library rather than just dlopen on runtime
413 + # --enable-release-build: build the libreoffice as release
414 + # --disable-fetch-external: prevent dowloading during compile phase
415 + # --enable-extension-integration: enable any extension integration support
416 + # --without-{fonts,myspell-dicts,ppsd}: prevent install of sys pkgs
417 + # --disable-report-builder: too much java packages pulled in without pkgs
418 + # --without-system-sane: just sane.h header that is used for scan in writer,
419 + # not linked or anything else, worthless to depend on
420 + # --disable-pdfium: not yet packaged
421 + local myeconfargs=(
422 + --with-system-dicts
423 + --with-system-epoxy
424 + --with-system-headers
425 + --with-system-jars
426 + --with-system-libs
427 + --enable-cairo-canvas
428 + --enable-largefile
429 + --enable-mergelibs
430 + --enable-neon
431 + --enable-python=system
432 + --enable-randr
433 + --enable-release-build
434 + --disable-breakpad
435 + --disable-ccache
436 + --disable-dependency-tracking
437 + --disable-epm
438 + --disable-fetch-external
439 + --disable-gstreamer-0-10
440 + --disable-online-update
441 + --disable-pdfium
442 + --disable-report-builder
443 + --with-alloc=$(use jemalloc && echo "jemalloc" || echo "system")
444 + --with-build-version="Gentoo official package"
445 + --enable-extension-integration
446 + --with-external-dict-dir="${EPREFIX}/usr/share/myspell"
447 + --with-external-hyph-dir="${EPREFIX}/usr/share/myspell"
448 + --with-external-thes-dir="${EPREFIX}/usr/share/myspell"
449 + --with-external-tar="${DISTDIR}"
450 + --with-lang=""
451 + --with-parallelism=$(makeopts_jobs)
452 + --with-system-ucpp
453 + --with-vendor="Gentoo Foundation"
454 + --with-x
455 + --without-fonts
456 + --without-myspell-dicts
457 + --without-help
458 + --with-helppack-integration
459 + --with-system-gpgmepp
460 + --without-system-sane
461 + $(use_enable bluetooth sdremote-bluetooth)
462 + $(use_enable coinmp)
463 + $(use_enable cups)
464 + $(use_enable dbus)
465 + $(use_enable debug)
466 + $(use_enable eds evolution2)
467 + $(use_enable firebird firebird-sdbc)
468 + $(use_enable gstreamer gstreamer-1-0)
469 + $(use_enable gtk gtk3)
470 + $(use_enable gtk2 gtk)
471 + $(use_enable kde gtk3-kde5)
472 + $(use_enable kde qt5)
473 + $(use_enable mysql ext-mariadb-connector)
474 + $(use_enable odk)
475 + $(use_enable pdfimport)
476 + $(use_enable postgres postgresql-sdbc)
477 + $(use_enable vlc)
478 + $(use_with coinmp system-coinmp)
479 + $(use_with googledrive gdrive-client-id ${google_default_client_id})
480 + $(use_with googledrive gdrive-client-secret ${google_default_client_secret})
481 + $(use_with java)
482 + $(use_with mysql system-mysql-cppconn)
483 + $(use_with odk doxygen)
484 + )
485 +
486 + if use eds || use gtk; then
487 + myeconfargs+=( --enable-dconf --enable-gio )
488 + else
489 + myeconfargs+=( --disable-dconf --disable-gio )
490 + fi
491 +
492 + # libreoffice extensions handling
493 + for lo_xt in ${LO_EXTS}; do
494 + if [[ "${lo_xt}" == "scripting-beanshell" || "${lo_xt}" == "scripting-javascript" ]]; then
495 + myeconfargs+=( $(use_enable libreoffice_extensions_${lo_xt} ${lo_xt}) )
496 + else
497 + myeconfargs+=( $(use_enable libreoffice_extensions_${lo_xt} ext-${lo_xt}) )
498 + fi
499 + done
500 +
501 + if use java; then
502 + # hsqldb: system one is too new
503 + myeconfargs+=(
504 + --without-junit
505 + --without-system-hsqldb
506 + --with-ant-home="${ANT_HOME}"
507 + --with-jdk-home=$(java-config --jdk-home 2>/dev/null)
508 + --with-jvm-path="${EPREFIX}/usr/lib/"
509 + )
510 +
511 + use libreoffice_extensions_scripting-beanshell && \
512 + myeconfargs+=( --with-beanshell-jar=$(java-pkg_getjar bsh bsh.jar) )
513 +
514 + use libreoffice_extensions_scripting-javascript && \
515 + myeconfargs+=( --with-rhino-jar=$(java-pkg_getjar rhino-1.6 js.jar) )
516 + fi
517 +
518 + econf "${myeconfargs[@]}"
519 +}
520 +
521 +src_compile() {
522 + # more and more LO stuff tries to use OpenGL, including tests during build
523 + # bug 501508, bug 540624, bug 545974 and probably more
524 + addpredict /dev/dri
525 + addpredict /dev/ati
526 + addpredict /dev/nvidiactl
527 +
528 + # hack for offlinehelp, this needs fixing upstream at some point
529 + # it is broken because we send --without-help
530 + # https://bugs.freedesktop.org/show_bug.cgi?id=46506
531 + (
532 + grep "^export" "${S}/config_host.mk" > "${T}/config_host.mk" || die
533 + source "${T}/config_host.mk" 2&> /dev/null
534 +
535 + local path="${WORKDIR}/helpcontent2/source/auxiliary/"
536 + mkdir -p "${path}" || die
537 +
538 + echo "perl \"${S}/helpcontent2/helpers/create_ilst.pl\" -dir=helpcontent2/source/media/helpimg > \"${path}/helpimg.ilst\""
539 + perl "${S}/helpcontent2/helpers/create_ilst.pl" \
540 + -dir=helpcontent2/source/media/helpimg \
541 + > "${path}/helpimg.ilst"
542 + [[ -s "${path}/helpimg.ilst" ]] || \
543 + ewarn "The help images list is empty, something is fishy, report a bug."
544 + )
545 +
546 + local target
547 + use test && target="build" || target="build-nocheck"
548 +
549 + # this is not a proper make script
550 + make ${target} || die
551 +}
552 +
553 +src_test() {
554 + make unitcheck || die
555 + make slowcheck || die
556 +}
557 +
558 +src_install() {
559 + # This is not Makefile so no buildserver
560 + make DESTDIR="${D}" distro-pack-install -o build -o check || die
561 +
562 + # bug 593514
563 + if use gtk; then
564 + dosym libreoffice/program/liblibreofficekitgtk.so \
565 + /usr/$(get_libdir)/liblibreofficekitgtk.so
566 + fi
567 +
568 + # bash completion aliases
569 + bashcomp_alias \
570 + libreoffice \
571 + unopkg loimpress lobase localc lodraw lomath lowriter lofromtemplate loweb loffice
572 +
573 + if use branding; then
574 + insinto /usr/$(get_libdir)/${PN}/program
575 + newins "${WORKDIR}/branding-sofficerc" sofficerc
576 + dodir /etc/env.d
577 + echo "CONFIG_PROTECT=/usr/$(get_libdir)/${PN}/program/sofficerc" > "${ED}"etc/env.d/99${PN} || die
578 + fi
579 +
580 + # Hack for offlinehelp, this needs fixing upstream at some point.
581 + # It is broken because we send --without-help
582 + # https://bugs.freedesktop.org/show_bug.cgi?id=46506
583 + insinto /usr/$(get_libdir)/libreoffice/help
584 + doins xmlhelp/util/*.xsl
585 +
586 + pax-mark -m "${ED}"usr/$(get_libdir)/libreoffice/program/soffice.bin
587 + pax-mark -m "${ED}"usr/$(get_libdir)/libreoffice/program/unopkg.bin
588 +}
589 +
590 +pkg_preinst() {
591 + gnome2_icon_savelist
592 +}
593 +
594 +pkg_postinst() {
595 + gnome2_icon_cache_update
596 + xdg_desktop_database_update
597 + xdg_mimeinfo_database_update
598 +}
599 +
600 +pkg_postrm() {
601 + gnome2_icon_cache_update
602 + xdg_desktop_database_update
603 + xdg_mimeinfo_database_update
604 +}