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: Wed, 16 Jan 2019 22:08:39
Message-Id: 1547676492.d2d54a39e47b855efa17619ffc5014c100715b78.asturm@gentoo
1 commit: d2d54a39e47b855efa17619ffc5014c100715b78
2 Author: Andreas Sturmlechner <asturm <AT> gentoo <DOT> org>
3 AuthorDate: Wed Jan 16 21:19:48 2019 +0000
4 Commit: Andreas Sturmlechner <asturm <AT> gentoo <DOT> org>
5 CommitDate: Wed Jan 16 22:08:12 2019 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=d2d54a39
7
8 app-office/libreoffice: 6.1.5.1 version bump (no keywords)
9
10 Bug: https://bugs.gentoo.org/670692
11 Package-Manager: Portage-2.3.56, Repoman-2.3.12
12 Signed-off-by: Andreas Sturmlechner <asturm <AT> gentoo.org>
13
14 app-office/libreoffice/Manifest | 2 +
15 app-office/libreoffice/libreoffice-6.1.5.1.ebuild | 572 ++++++++++++++++++++++
16 2 files changed, 574 insertions(+)
17
18 diff --git a/app-office/libreoffice/Manifest b/app-office/libreoffice/Manifest
19 index 4cfcca21ae7..b7c8d733d9f 100644
20 --- a/app-office/libreoffice/Manifest
21 +++ b/app-office/libreoffice/Manifest
22 @@ -4,7 +4,9 @@ DIST 35c94d2df8893241173de1d16b6034c0-swingExSrc.zip 9796 BLAKE2B a30b0225313b23
23 DIST 798b2ffdc8bcfe7bca2cf92b62caf685-rhino1_5R5.zip 1521926 BLAKE2B d2769842c180997055648a8b1a33cc89988b74628bad8aa012242e0c1afa5b5b8568323c107187072207ee69bd841ba4ca3bbfe27ef65223ddc729d1a1aa6590 SHA512 ec5ae23c8fe2f5efc377f7a9665039afadf28b4d8f2791379296766a5fbc9a3bf7548f9b0e3b3b07762229ec733a92ccbb69791ee0318c9c6f78f8e847253d3f
24 DIST a7983f859eafb2677d7ff386a023bc40-xsltml_2.1.2.zip 23150 BLAKE2B 51db6bd90585b13857ecb494c805c9fb6874e1e65d7aee73d23e1716670836a14b376bcca810f96fd55b0ed653b2660a268030f246c822cbb04f867ef763a3b3 SHA512 2d3835f7ac356805025cafedcad97faa48d0f5da386e6ac7b7451030059df8e2fdb0861ade07a576ebf9fb5b88a973585ab0437944b06aac9289d6898ba8586a
25 DIST libreoffice-6.1.4.2.tar.xz 207710664 BLAKE2B 52bab412094c1ff7e184ea65c588360c18b061c3e14b7be07171f6b5831261766e2ac7d7373f5f789d125671da41e8b67d34360d4b7014dcb98df01828aeb094 SHA512 ba81b7744b908f9fe67a83e72c17c08b3b2e99599a5fd4f9cc1f2d81b3fd0ddb8065ae466205f85185ab9420350cea0b2d60108df3e583b74bd1fcd9e4eb0c3c
26 +DIST libreoffice-6.1.5.1.tar.xz 207920688 BLAKE2B 7e435a62b880839c752ba90693918242ec29807acb73a22d6101d74f8c8d712a5a26a85cea334a6e66811b7a4f8e016b87932390f2746da4effcb74a416ca973 SHA512 fab7f0bb6fb113c0bfa8bbc0424568c37a04f301d6e44f5755dcbb21cc6df964819a2e143b10f5c6352bfbea438df0b136ba55caf7be3bbbb83bcebba4ceadae
27 DIST libreoffice-6.2.0.2.tar.xz 213471412 BLAKE2B 61c07f0b6e2c12d197d93346ae4b9f583189a093f9fe49156c5f6ccee4309a77b4a6f6a133a61764d11dd56e7e36734ed4ebf3abab035021c0692477d556acf7 SHA512 6c8e039548b50071e50eea6719a92c11c85da2c7ae73bc70bddc5eb32859823fc5f5ab5867ec0b76d8a094cd21a228d6b0d3a7fa834e8005a2d7a82c7ecdb278
28 DIST libreoffice-branding-gentoo-0.8.tar.xz 151568 BLAKE2B f03c7ddeb53c5ca3fd23401679601fcf2c4037ba17be4eb7b784c7ce7ebb71a24b8ab4aac8b7da8c6b1f14dd23bc1294ba85ff4f70ad271fb4ee3c5372e10883 SHA512 785031a699b1d1895ce4b50ffc3ddf645f3a0ef9acdf37facfd18cf75db9484cb8f53a50abb63d6006ead76a80b6ff5aa99661063245ebb84bd64013d713de7f
29 DIST libreoffice-help-6.1.4.2.tar.xz 15757700 BLAKE2B 53c398efb3b839740a9146ea1b0f70f019936c914f7aedf38b7da69faf532ab139a8847d6eb251b2850511e0e7bd169c74fafedd0926dc987659aa27878cf740 SHA512 e24f2f6795856da62f77ebfdcfedc8190b8ecef74e395fc263f0cab4a27c0fe3d95f37665747a590fc7a6a93c6c3473a2a4501c50d415cc602f85838955fe9ab
30 +DIST libreoffice-help-6.1.5.1.tar.xz 15756964 BLAKE2B 0d7b32488e2e0ccab0ff067ba19dbbcdcc57f80280c74c6aa0f2e0f6cd49f2eeb67adb1d8f0e88459636d6301329fed3c5837b246571cecfa27a1e334d9b8579 SHA512 f9ae9134eb322f7cfc1cb2a18d23edfaed880925c289d49136d9e7ce026bfa2fbbf148b14a88e8f68d6f5bd8a04a97265c5c15d1eb92ef6fef50a899388617a3
31 DIST libreoffice-help-6.2.0.2.tar.xz 16186468 BLAKE2B 3846172642023633420ba83f3c65430dd7c1e5b4fc652e758081175d6b52c412822acd2af1dc31ebcc5344bd4f4b5ba6d49beb4f43f997fd99cbe1ecd69a9f96 SHA512 43c99f3db3d773d3f724600a875b964a65ae3dcab4ab7348289828cf860475a036cd6ba2d54d57cfec4ca259c085932fa479d465475591919e86108c56ed5feb
32
33 diff --git a/app-office/libreoffice/libreoffice-6.1.5.1.ebuild b/app-office/libreoffice/libreoffice-6.1.5.1.ebuild
34 new file mode 100644
35 index 00000000000..482cddcd51e
36 --- /dev/null
37 +++ b/app-office/libreoffice/libreoffice-6.1.5.1.ebuild
38 @@ -0,0 +1,572 @@
39 +# Copyright 1999-2019 Gentoo Authors
40 +# Distributed under the terms of the GNU General Public License v2
41 +
42 +EAPI=6
43 +
44 +PYTHON_COMPAT=( python2_7 python3_{4,5,6,7} )
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 eapi7-ver flag-o-matic gnome2-utils java-pkg-opt-2 multiprocessing pax-utils 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 + "java? ( ${ADDONS_URI}/17410483b5b5f267aa18b7e00b65e6e0-hsqldb_1_8_0.zip )"
86 + # no release for 8 years, should we package it?
87 + "libreoffice_extensions_wiki-publisher? ( ${ADDONS_URI}/a7983f859eafb2677d7ff386a023bc40-xsltml_2.1.2.zip )"
88 + # Does not build with 1.6 rhino at all
89 + "libreoffice_extensions_scripting-javascript? ( ${ADDONS_URI}/798b2ffdc8bcfe7bca2cf92b62caf685-rhino1_5R5.zip )"
90 + # requirement of rhino
91 + "libreoffice_extensions_scripting-javascript? ( ${ADDONS_URI}/35c94d2df8893241173de1d16b6034c0-swingExSrc.zip )"
92 + # not packageable
93 + "odk? ( http://download.go-oo.org/extern/185d60944ea767075d27247c3162b3bc-unowinreg.dll )"
94 +)
95 +SRC_URI+=" ${ADDONS_SRC[*]}"
96 +
97 +unset ADDONS_URI
98 +unset ADDONS_SRC
99 +
100 +# Extensions that need extra work:
101 +LO_EXTS="nlpsolver scripting-beanshell scripting-javascript wiki-publisher"
102 +
103 +IUSE="accessibility bluetooth +branding coinmp +cups dbus debug eds firebird
104 +googledrive gstreamer +gtk gtk2 kde mysql odk pdfimport postgres test vlc
105 +$(printf 'libreoffice_extensions_%s ' ${LO_EXTS})"
106 +
107 +REQUIRED_USE="${PYTHON_REQUIRED_USE}
108 + bluetooth? ( dbus )
109 + kde? ( gtk )
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 +LICENSE="|| ( LGPL-3 MPL-1.1 )"
117 +SLOT="0"
118 +[[ ${MY_PV} == *9999* ]] || \
119 +KEYWORDS=""
120 +# KEYWORDS="~amd64 ~arm ~arm64 ~ppc64 ~x86 ~amd64-linux ~x86-linux"
121 +
122 +COMMON_DEPEND="${PYTHON_DEPS}
123 + app-arch/unzip
124 + app-arch/zip
125 + app-crypt/gpgme[cxx]
126 + app-text/hunspell:=
127 + >=app-text/libabw-0.1.0
128 + >=app-text/libebook-0.1
129 + app-text/libepubgen
130 + >=app-text/libetonyek-0.1
131 + app-text/libexttextcat
132 + app-text/liblangtag
133 + >=app-text/libmspub-0.1.0
134 + >=app-text/libmwaw-0.3.1
135 + app-text/libnumbertext
136 + >=app-text/libodfgen-0.1.0
137 + app-text/libqxp
138 + app-text/libstaroffice
139 + app-text/libwpd:0.10[tools]
140 + app-text/libwpg:0.3
141 + >=app-text/libwps-0.4
142 + app-text/mythes
143 + >=dev-cpp/clucene-2.3.3.4-r2
144 + =dev-cpp/libcmis-0.5*
145 + dev-db/unixODBC
146 + dev-lang/perl
147 + dev-libs/boost:=[nls]
148 + dev-libs/expat
149 + dev-libs/hyphen
150 + dev-libs/icu:=
151 + dev-libs/libassuan
152 + dev-libs/libgpg-error
153 + =dev-libs/liborcus-0.13*
154 + dev-libs/librevenge
155 + dev-libs/libxml2
156 + dev-libs/libxslt
157 + dev-libs/nspr
158 + dev-libs/nss
159 + >=dev-libs/redland-1.0.16
160 + >=dev-libs/xmlsec-1.2.24[nss]
161 + media-gfx/graphite2
162 + media-libs/fontconfig
163 + media-libs/freetype:2
164 + >=media-libs/harfbuzz-0.9.42:=[graphite,icu]
165 + media-libs/lcms:2
166 + >=media-libs/libcdr-0.1.0
167 + >=media-libs/libepoxy-1.3.1[X]
168 + >=media-libs/libfreehand-0.1.0
169 + media-libs/libpagemaker
170 + >=media-libs/libpng-1.4:0=
171 + >=media-libs/libvisio-0.1.0
172 + media-libs/libzmf
173 + net-libs/neon
174 + net-misc/curl
175 + net-nds/openldap
176 + sci-mathematics/lpsolve
177 + sys-libs/zlib
178 + virtual/glu
179 + virtual/jpeg:0
180 + virtual/opengl
181 + x11-libs/cairo[X]
182 + x11-libs/libXinerama
183 + x11-libs/libXrandr
184 + x11-libs/libXrender
185 + accessibility? ( dev-python/lxml[${PYTHON_USEDEP}] )
186 + bluetooth? ( net-wireless/bluez )
187 + coinmp? ( sci-libs/coinor-mp )
188 + cups? ( net-print/cups )
189 + dbus? ( dev-libs/dbus-glib )
190 + eds? (
191 + dev-libs/glib:2
192 + gnome-base/dconf
193 + gnome-extra/evolution-data-server
194 + )
195 + firebird? ( >=dev-db/firebird-3.0.2.32703.0-r1[server] )
196 + gstreamer? (
197 + media-libs/gstreamer:1.0
198 + media-libs/gst-plugins-base:1.0
199 + )
200 + gtk? (
201 + dev-libs/glib:2
202 + dev-libs/gobject-introspection
203 + gnome-base/dconf
204 + media-libs/mesa[egl]
205 + x11-libs/gtk+:3
206 + x11-libs/pango
207 + )
208 + gtk2? (
209 + x11-libs/gdk-pixbuf
210 + >=x11-libs/gtk+-2.24:2
211 + x11-libs/pango
212 + )
213 + kde? (
214 + dev-qt/qtcore:5
215 + dev-qt/qtgui:5
216 + dev-qt/qtx11extras:5
217 + dev-qt/qtwidgets:5
218 + kde-frameworks/kconfig:5
219 + kde-frameworks/kcoreaddons:5
220 + kde-frameworks/ki18n:5
221 + kde-frameworks/kio:5
222 + kde-frameworks/kwindowsystem:5
223 + )
224 + libreoffice_extensions_scripting-beanshell? ( dev-java/bsh )
225 + libreoffice_extensions_scripting-javascript? ( dev-java/rhino:1.6 )
226 + mysql? ( dev-db/mysql-connector-c++ )
227 + pdfimport? ( app-text/poppler:=[cxx] )
228 + postgres? ( >=dev-db/postgresql-9.0:*[kerberos] )
229 +"
230 +
231 +RDEPEND="${COMMON_DEPEND}
232 + !app-office/libreoffice-bin
233 + !app-office/libreoffice-bin-debug
234 + !app-office/openoffice
235 + media-fonts/liberation-fonts
236 + || ( x11-misc/xdg-utils kde-plasma/kde-cli-tools )
237 + java? ( >=virtual/jre-1.6 )
238 + kde? ( kde-frameworks/breeze-icons:* )
239 + vlc? ( media-video/vlc )
240 +"
241 +
242 +if [[ ${MY_PV} != *9999* ]] && [[ ${PV} != *_* ]]; then
243 + PDEPEND="=app-office/libreoffice-l10n-$(ver_cut 1-2)*"
244 +else
245 + # Translations are not reliable on live ebuilds
246 + # rather force people to use english only.
247 + PDEPEND="!app-office/libreoffice-l10n"
248 +fi
249 +
250 +# FIXME: cppunit should be moved to test conditional
251 +# after everything upstream is under gbuild
252 +# as dmake execute tests right away
253 +# tests apparently also need google-carlito-fonts (not packaged)
254 +DEPEND="${COMMON_DEPEND}
255 + >=dev-libs/libatomic_ops-7.2d
256 + dev-perl/Archive-Zip
257 + >=dev-util/cppunit-1.14.0
258 + >=dev-util/gperf-3
259 + dev-util/intltool
260 + =dev-util/mdds-1.3*:1=
261 + media-libs/glm
262 + sys-devel/bison
263 + sys-devel/flex
264 + sys-devel/gettext
265 + sys-devel/ucpp
266 + virtual/pkgconfig
267 + x11-base/xorg-proto
268 + x11-libs/libXt
269 + x11-libs/libXtst
270 + java? (
271 + dev-java/ant-core
272 + >=virtual/jdk-1.6
273 + )
274 + odk? ( >=app-doc/doxygen-1.8.4 )
275 + test? (
276 + app-crypt/gnupg
277 + dev-util/cppunit
278 + media-fonts/dejavu
279 + media-fonts/liberation-fonts
280 + )
281 +"
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 + use java || \
306 + ewarn "If you plan to use Base application you should enable java or you will get various crashes."
307 +
308 + if has_version "<app-office/libreoffice-5.3.0[firebird]"; then
309 + ewarn "Firebird has been upgraded to version 3. It is unable to read back Firebird 2.5 data, so"
310 + ewarn "embedded firebird odb files created in LibreOffice pre-5.3 can't be opened with this version."
311 + ewarn "See also: https://wiki.documentfoundation.org/ReleaseNotes/5.3#Base"
312 + fi
313 +
314 + [[ ${MERGE_TYPE} != binary ]] && _check_reqs pkg_pretend
315 +}
316 +
317 +pkg_setup() {
318 + java-pkg-opt-2_pkg_setup
319 + python-single-r1_pkg_setup
320 + xdg_environment_reset
321 +
322 + [[ ${MERGE_TYPE} != binary ]] && _check_reqs pkg_setup
323 +}
324 +
325 +src_unpack() {
326 + default
327 +
328 + if [[ ${MY_PV} = *9999* ]]; then
329 + local base_uri branch mypv
330 + base_uri="https://anongit.freedesktop.org/git"
331 + branch="master"
332 + mypv=${MY_PV/.9999}
333 + [[ ${mypv} != ${MY_PV} ]] && branch="${PN}-${mypv/./-}"
334 + git-r3_fetch "${base_uri}/${PN}/core" "refs/heads/${branch}"
335 + git-r3_checkout "${base_uri}/${PN}/core"
336 + LOCOREGIT_VERSION=${EGIT_VERSION}
337 +
338 + git-r3_fetch "${base_uri}/${PN}/help" "refs/heads/master"
339 + git-r3_checkout "${base_uri}/${PN}/help" "helpcontent2" # doesn't match on help
340 + fi
341 +}
342 +
343 +src_prepare() {
344 + default
345 +
346 + # sandbox violations on many systems, we don't need it. Bug #646406
347 + sed -i \
348 + -e "/KF5_CONFIG/s/kf5-config/no/" \
349 + configure.ac || die "Failed to disable kf5-config"
350 +
351 + AT_M4DIR="m4" eautoreconf
352 + # hack in the autogen.sh
353 + touch autogen.lastrun
354 +
355 + # system pyuno mess
356 + sed -i \
357 + -e "s:%eprefix%:${EPREFIX}:g" \
358 + -e "s:%libdir%:$(get_libdir):g" \
359 + pyuno/source/module/uno.py \
360 + pyuno/source/officehelper.py || die
361 + # sed in the tests
362 + sed -i \
363 + -e "s#all : build unitcheck#all : build#g" \
364 + solenv/gbuild/Module.mk || die
365 + sed -i \
366 + -e "s#check: dev-install subsequentcheck#check: unitcheck slowcheck dev-install subsequentcheck#g" \
367 + -e "s#Makefile.gbuild all slowcheck#Makefile.gbuild all#g" \
368 + Makefile.in || die
369 +
370 + sed -i \
371 + -e "s,/usr/share/bash-completion/completions,$(get_bashcompdir)," \
372 + -e "s,\$INSTALLDIRNAME.sh,${PN}," \
373 + bin/distro-install-desktop-integration || die
374 +
375 + if use branding; then
376 + # hack...
377 + mv -v "${WORKDIR}/branding-intro.png" "icon-themes/colibre/brand/intro.png" || die
378 + fi
379 +
380 + # Don't list pdfimport support in desktop when built with none, bug # 605464
381 + if ! use pdfimport; then
382 + sed -i \
383 + -e ":MimeType: s:application/pdf;::" \
384 + -e ":Keywords: s:pdf;::" \
385 + sysui/desktop/menus/draw.desktop || die
386 + fi
387 +}
388 +
389 +src_configure() {
390 + # Set up Google API keys, see https://www.chromium.org/developers/how-tos/api-keys
391 + # Note: these are for Gentoo use ONLY. For your own distribution, please get
392 + # your own set of keys. Feel free to contact chromium@g.o for more info.
393 + local google_default_client_id="329227923882.apps.googleusercontent.com"
394 + local google_default_client_secret="vgKG0NNv7GoDpbtoFNLxCUXu"
395 +
396 + # optimization flags
397 + export GMAKE_OPTIONS="${MAKEOPTS}"
398 + # System python enablement:
399 + export PYTHON_CFLAGS=$(python_get_CFLAGS)
400 + export PYTHON_LIBS=$(python_get_LIBS)
401 +
402 + if use kde; then
403 + export QT_SELECT=5 # bug 639620 needs proper fix though
404 + export QT5DIR="$(qt5_get_bindir)/../"
405 + export MOC5="$(qt5_get_bindir)/moc"
406 + fi
407 +
408 + local gentoo_buildid="Gentoo official package"
409 + if [[ -n ${LOCOREGIT_VERSION} ]]; then
410 + gentoo_buildid+=" (from git: ${LOCOREGIT_VERSION})"
411 + fi
412 +
413 + # system headers/libs/...: enforce using system packages
414 + # --disable-breakpad: requires not-yet-in-tree dev-utils/breakpad
415 + # --enable-cairo: ensure that cairo is always required
416 + # --enable-*-link: link to the library rather than just dlopen on runtime
417 + # --enable-release-build: build the libreoffice as release
418 + # --disable-fetch-external: prevent dowloading during compile phase
419 + # --enable-extension-integration: enable any extension integration support
420 + # --without-{fonts,myspell-dicts,ppsd}: prevent install of sys pkgs
421 + # --disable-report-builder: too much java packages pulled in without pkgs
422 + # --without-system-sane: just sane.h header that is used for scan in writer,
423 + # not linked or anything else, worthless to depend on
424 + # --disable-pdfium: not yet packaged
425 + local myeconfargs=(
426 + --with-system-dicts
427 + --with-system-epoxy
428 + --with-system-headers
429 + --with-system-jars
430 + --with-system-libs
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-ccache
440 + --disable-dependency-tracking
441 + --disable-epm
442 + --disable-fetch-external
443 + --disable-gstreamer-0-10
444 + --disable-kde5
445 + --disable-online-update
446 + --disable-openssl
447 + --disable-pdfium
448 + --disable-qt5
449 + --disable-report-builder
450 + --with-alloc=system
451 + --with-build-version="${gentoo_buildid}"
452 + --enable-extension-integration
453 + --with-external-dict-dir="${EPREFIX}/usr/share/myspell"
454 + --with-external-hyph-dir="${EPREFIX}/usr/share/myspell"
455 + --with-external-thes-dir="${EPREFIX}/usr/share/myspell"
456 + --with-external-tar="${DISTDIR}"
457 + --with-lang=""
458 + --with-parallelism=$(makeopts_jobs)
459 + --with-system-ucpp
460 + --with-tls=nss
461 + --with-vendor="Gentoo Foundation"
462 + --with-x
463 + --without-fonts
464 + --without-myspell-dicts
465 + --without-help
466 + --with-helppack-integration
467 + --with-system-gpgmepp
468 + --without-system-sane
469 + $(use_enable bluetooth sdremote-bluetooth)
470 + $(use_enable coinmp)
471 + $(use_enable cups)
472 + $(use_enable dbus)
473 + $(use_enable debug)
474 + $(use_enable eds evolution2)
475 + $(use_enable firebird firebird-sdbc)
476 + $(use_enable gstreamer gstreamer-1-0)
477 + $(use_enable gtk gtk3)
478 + $(use_enable gtk2 gtk)
479 + $(use_enable kde gtk3-kde5)
480 + $(use_enable mysql ext-mariadb-connector)
481 + $(use_enable odk)
482 + $(use_enable pdfimport)
483 + $(use_enable postgres postgresql-sdbc)
484 + $(use_enable vlc)
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 mysql system-mysql-cppconn)
491 + $(use_with odk doxygen)
492 + )
493 +
494 + if use eds || use gtk; then
495 + myeconfargs+=( --enable-dconf --enable-gio )
496 + else
497 + myeconfargs+=( --disable-dconf --disable-gio )
498 + fi
499 +
500 + # libreoffice extensions handling
501 + for lo_xt in ${LO_EXTS}; do
502 + if [[ "${lo_xt}" == "scripting-beanshell" || "${lo_xt}" == "scripting-javascript" ]]; then
503 + myeconfargs+=( $(use_enable libreoffice_extensions_${lo_xt} ${lo_xt}) )
504 + else
505 + myeconfargs+=( $(use_enable libreoffice_extensions_${lo_xt} ext-${lo_xt}) )
506 + fi
507 + done
508 +
509 + if use java; then
510 + # hsqldb: system one is too new
511 + myeconfargs+=(
512 + --without-junit
513 + --without-system-hsqldb
514 + --with-ant-home="${ANT_HOME}"
515 + --with-jdk-home=$(java-config --jdk-home 2>/dev/null)
516 + --with-jvm-path="${EPREFIX}/usr/lib/"
517 + )
518 +
519 + use libreoffice_extensions_scripting-beanshell && \
520 + myeconfargs+=( --with-beanshell-jar=$(java-pkg_getjar bsh bsh.jar) )
521 +
522 + use libreoffice_extensions_scripting-javascript && \
523 + myeconfargs+=( --with-rhino-jar=$(java-pkg_getjar rhino-1.6 js.jar) )
524 + fi
525 +
526 + is-flagq "-flto*" && myeconfargs+=( --enable-lto )
527 +
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 + # hack for offlinehelp, this needs fixing upstream at some point
539 + # it is broken because we send --without-help
540 + # https://bugs.freedesktop.org/show_bug.cgi?id=46506
541 + (
542 + grep "^export" "${S}/config_host.mk" > "${T}/config_host.mk" || die
543 + source "${T}/config_host.mk" 2&> /dev/null
544 +
545 + local path="${WORKDIR}/helpcontent2/source/auxiliary/"
546 + mkdir -p "${path}" || die
547 +
548 + echo "perl \"${S}/helpcontent2/helpers/create_ilst.pl\" -dir=helpcontent2/source/media/helpimg > \"${path}/helpimg.ilst\""
549 + perl "${S}/helpcontent2/helpers/create_ilst.pl" \
550 + -dir=helpcontent2/source/media/helpimg \
551 + > "${path}/helpimg.ilst"
552 + [[ -s "${path}/helpimg.ilst" ]] || \
553 + ewarn "The help images list is empty, something is fishy, report a bug."
554 + )
555 +
556 + local target
557 + use test && target="build" || target="build-nocheck"
558 +
559 + # this is not a proper make script
560 + make ${target} || die
561 +}
562 +
563 +src_test() {
564 + make unitcheck || die
565 + make slowcheck || die
566 +}
567 +
568 +src_install() {
569 + # This is not Makefile so no buildserver
570 + make DESTDIR="${D}" distro-pack-install -o build -o check || die
571 +
572 + # bug 593514
573 + if use gtk; then
574 + dosym libreoffice/program/liblibreofficekitgtk.so \
575 + /usr/$(get_libdir)/liblibreofficekitgtk.so
576 + fi
577 +
578 + # bash completion aliases
579 + bashcomp_alias \
580 + libreoffice \
581 + unopkg loimpress lobase localc lodraw lomath lowriter lofromtemplate loweb loffice
582 +
583 + if use branding; then
584 + insinto /usr/$(get_libdir)/${PN}/program
585 + newins "${WORKDIR}/branding-sofficerc" sofficerc
586 + dodir /etc/env.d
587 + echo "CONFIG_PROTECT=/usr/$(get_libdir)/${PN}/program/sofficerc" > "${ED}"etc/env.d/99${PN} || die
588 + fi
589 +
590 + # Hack for offlinehelp, this needs fixing upstream at some point.
591 + # It is broken because we send --without-help
592 + # https://bugs.freedesktop.org/show_bug.cgi?id=46506
593 + insinto /usr/$(get_libdir)/libreoffice/help
594 + doins xmlhelp/util/*.xsl
595 +
596 + pax-mark -m "${ED}"usr/$(get_libdir)/libreoffice/program/soffice.bin
597 + pax-mark -m "${ED}"usr/$(get_libdir)/libreoffice/program/unopkg.bin
598 +}
599 +
600 +pkg_postinst() {
601 + gnome2_icon_cache_update
602 + xdg_desktop_database_update
603 + xdg_mimeinfo_database_update
604 +}
605 +
606 +pkg_postrm() {
607 + gnome2_icon_cache_update
608 + xdg_desktop_database_update
609 + xdg_mimeinfo_database_update
610 +}