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, 29 Sep 2019 20:07:31
Message-Id: 1569787625.492d707449ba310d4fa01be3773436b12892c5e7.asturm@gentoo
1 commit: 492d707449ba310d4fa01be3773436b12892c5e7
2 Author: Andreas Sturmlechner <asturm <AT> gentoo <DOT> org>
3 AuthorDate: Sun Sep 29 18:50:05 2019 +0000
4 Commit: Andreas Sturmlechner <asturm <AT> gentoo <DOT> org>
5 CommitDate: Sun Sep 29 20:07:05 2019 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=492d7074
7
8 app-office/libreoffice: Drop 6.3.1.2
9
10 Package-Manager: Portage-2.3.76, Repoman-2.3.17
11 Signed-off-by: Andreas Sturmlechner <asturm <AT> gentoo.org>
12
13 app-office/libreoffice/Manifest | 2 -
14 app-office/libreoffice/libreoffice-6.3.1.2.ebuild | 550 ----------------------
15 2 files changed, 552 deletions(-)
16
17 diff --git a/app-office/libreoffice/Manifest b/app-office/libreoffice/Manifest
18 index 09d3bf2b8ee..a29ae0ebbb8 100644
19 --- a/app-office/libreoffice/Manifest
20 +++ b/app-office/libreoffice/Manifest
21 @@ -5,10 +5,8 @@ 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.2.5.2.tar.xz 215008848 BLAKE2B 5dd1ef185820944816e01c8ed6a7873a5a8fe6f7f4b41fad279729970d85ff868f51ed573e8b3d0a554ffd1f8e295b6ff2e493e7f7250f8cb1c7c2a40115abf4 SHA512 b46b6731c415ab354ad7d876cb8905cb9eae2ca71639abf049ea7f5930601c957cc0eb04a2cd06949073ba5e94778ecdb449692ed8bbfbd95b05f6e7980d8d10
24 DIST libreoffice-6.2.7.1.tar.xz 215022744 BLAKE2B 717acc3c310d3d973464b422176ccb4aae1481f2537c419e3afd031a2c2967a7b20b4cc5b60499befcae279441176a275f339e65534c4eb9d7395c6e050ba6e3 SHA512 9ed37c7957bb214a3de0b3dadea9debd5056d641052a669904d543a7065f1f5c721e09ddda800dfb478ff0474f71a275c7208077cb7b6566786d3b637f42860b
25 -DIST libreoffice-6.3.1.2.tar.xz 224614340 BLAKE2B b21e0133d88bf0c2377d2a1670b6730dc4c9c0cd2d6fc75e5db50cc6b4ee247322b8e5f772349c608bb5beca135e7be1ed72672fdf35ef855615f70d39da6e5a SHA512 f2fee3bb8f4470119fa77387733fb01a1fb05ecdc4b6339a27539101f0b317e5beaadba0de0b4b053f7b7d8eacbed85f0d3e21400c743b02c69cd30260bb7f2b
26 DIST libreoffice-6.3.2.2.tar.xz 224752776 BLAKE2B 397d125714ae591d174ea185a488ecb652946de76d015c4ffb85e1c27ed34f87b5808ac41309b52fba117aab67097a0c378284721f0e5f3eb8e3284c799ed8dd SHA512 f0576f5a5b2c91ee6c003cbf9772580c564e05f66c3b34ddee4b723095aaa3a55070df3d70d7e6b8be68e23a7e204c1237496d7e798f9494282cadba0eacf930
27 DIST libreoffice-branding-gentoo-0.8.tar.xz 151568 BLAKE2B f03c7ddeb53c5ca3fd23401679601fcf2c4037ba17be4eb7b784c7ce7ebb71a24b8ab4aac8b7da8c6b1f14dd23bc1294ba85ff4f70ad271fb4ee3c5372e10883 SHA512 785031a699b1d1895ce4b50ffc3ddf645f3a0ef9acdf37facfd18cf75db9484cb8f53a50abb63d6006ead76a80b6ff5aa99661063245ebb84bd64013d713de7f
28 DIST libreoffice-help-6.2.5.2.tar.xz 13023680 BLAKE2B f1f3a03104c1270e59f2b9130a29e1fbc99a9bf76b2bf4cedef8dc61487c9a2036f143501ad7fcd0c056c8b72446305b7a4ca9a719b11200ade5feca35e5e7ea SHA512 14f964161bd827a5846ec667ae1dac80d1485450e172da44010103e31f3872df62595e8b1b1d45c720caac9256d2adaf8f5a0bb80d059d35f1c560b533eb764c
29 DIST libreoffice-help-6.2.7.1.tar.xz 13024328 BLAKE2B fcdb01a52abb90773baa96b0c25fc04bf928e13b940a5cadd7eb455a3004f83d339252346d7c615fbe511cee7e093560c99bf6ff6bd2e5e832d57d4d1053ebc6 SHA512 b4599bf6854efa800483cf16132c9809ea439d29ea63c7621a0f04ce19609a7a1966d86862342f911cde22a3bd19fe5b96ad9bdb34d5255eb716352a8ce9bbaa
30 -DIST libreoffice-help-6.3.1.2.tar.xz 13191520 BLAKE2B b7f59e0ee9d4096f6a5ebb8d2decdd4b5604dac5cc00fc223ac96ae28d59f04c149361c096dd501d4fa37063f15118903006e2e8bcc30e7c0f21d545c23a71ba SHA512 05576a225f038f16a491bbd436096e51906b9f81b2cb8e856fe94fee67c1f830473b90421f6962fccf8ef6a0877610249dd18c1874b4c812582648adc5801452
31 DIST libreoffice-help-6.3.2.2.tar.xz 13192064 BLAKE2B 83c742faa698370e1561133d4c7351619639b343068691d830433ff5dfa4af20ba7f89428b67275f7f19c947dd84e4c03aa330e4ddd684dbd19acee14e842ba9 SHA512 34f34abbd21e37ea6f8ed860af27bbd641cb98331f235b84c5b5cc4e3fa01d9f43a32469f5df4f4cf4dde0e804ba12e73fdd6d357413d5d7641c32396abf09f1
32
33 diff --git a/app-office/libreoffice/libreoffice-6.3.1.2.ebuild b/app-office/libreoffice/libreoffice-6.3.1.2.ebuild
34 deleted file mode 100644
35 index 6d7145dfa93..00000000000
36 --- a/app-office/libreoffice/libreoffice-6.3.1.2.ebuild
37 +++ /dev/null
38 @@ -1,550 +0,0 @@
39 -# Copyright 1999-2019 Gentoo Authors
40 -# Distributed under the terms of the GNU General Public License v2
41 -
42 -EAPI=7
43 -
44 -PYTHON_COMPAT=( python2_7 python3_{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 flag-o-matic java-pkg-opt-2 multiprocessing python-single-r1 qmake-utils toolchain-funcs xdg-utils
63 -
64 -DESCRIPTION="A full office productivity suite"
65 -HOMEPAGE="https://www.libreoffice.org"
66 -SRC_URI="branding? ( https://dev.gentoo.org/~dilfridge/distfiles/${BRANDING} )"
67 -[[ -n ${PATCHSET} ]] && SRC_URI+=" https://dev.gentoo.org/~asturm/distfiles/${PATCHSET}"
68 -
69 -# Split modules following git/tarballs; Core MUST be first!
70 -# Help is used for the image generator
71 -# Only release has the tarballs
72 -if [[ ${MY_PV} != *9999* ]]; then
73 - for i in ${DEV_URI}; do
74 - SRC_URI+=" ${i}/${PN}-${MY_PV}.tar.xz"
75 - SRC_URI+=" ${i}/${PN}-help-${MY_PV}.tar.xz"
76 - done
77 - unset i
78 -fi
79 -unset DEV_URI
80 -
81 -# Really required addons
82 -# These are bundles that can't be removed for now due to huge patchsets.
83 -# If you want them gone, patches are welcome.
84 -ADDONS_SRC=(
85 - "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 ldap +mariadb odk pdfimport postgres test
105 -$(printf 'libreoffice_extensions_%s ' ${LO_EXTS})"
106 -
107 -REQUIRED_USE="${PYTHON_REQUIRED_USE}
108 - bluetooth? ( dbus )
109 - libreoffice_extensions_nlpsolver? ( java )
110 - libreoffice_extensions_scripting-beanshell? ( java )
111 - libreoffice_extensions_scripting-javascript? ( java )
112 - libreoffice_extensions_wiki-publisher? ( java )
113 -"
114 -
115 -LICENSE="|| ( LGPL-3 MPL-1.1 )"
116 -SLOT="0"
117 -[[ ${MY_PV} == *9999* ]] || \
118 -KEYWORDS="~amd64 ~arm ~arm64 ~ppc64 ~x86 ~amd64-linux ~x86-linux"
119 -
120 -BDEPEND="
121 - dev-util/intltool
122 - sys-devel/bison
123 - sys-devel/flex
124 - sys-devel/gettext
125 - virtual/pkgconfig
126 - odk? ( >=app-doc/doxygen-1.8.4 )
127 -"
128 -COMMON_DEPEND="${PYTHON_DEPS}
129 - app-arch/unzip
130 - app-arch/zip
131 - app-crypt/gpgme[cxx]
132 - app-text/hunspell:=
133 - >=app-text/libabw-0.1.0
134 - >=app-text/libebook-0.1
135 - app-text/libepubgen
136 - >=app-text/libetonyek-0.1
137 - app-text/libexttextcat
138 - app-text/liblangtag
139 - >=app-text/libmspub-0.1.0
140 - >=app-text/libmwaw-0.3.1
141 - app-text/libnumbertext
142 - >=app-text/libodfgen-0.1.0
143 - app-text/libqxp
144 - app-text/libstaroffice
145 - app-text/libwpd:0.10[tools]
146 - app-text/libwpg:0.3
147 - >=app-text/libwps-0.4
148 - app-text/mythes
149 - >=dev-cpp/clucene-2.3.3.4-r2
150 - >=dev-cpp/libcmis-0.5.2
151 - dev-db/unixODBC
152 - dev-lang/perl
153 - dev-libs/boost:=[nls]
154 - dev-libs/expat
155 - dev-libs/hyphen
156 - dev-libs/icu:=
157 - dev-libs/libassuan
158 - dev-libs/libgpg-error
159 - >=dev-libs/liborcus-0.14.0
160 - dev-libs/librevenge
161 - dev-libs/libxml2
162 - dev-libs/libxslt
163 - dev-libs/nspr
164 - dev-libs/nss
165 - >=dev-libs/redland-1.0.16
166 - >=dev-libs/xmlsec-1.2.28[nss]
167 - media-gfx/fontforge
168 - media-gfx/graphite2
169 - media-libs/fontconfig
170 - media-libs/freetype:2
171 - >=media-libs/harfbuzz-0.9.42:=[graphite,icu]
172 - media-libs/lcms:2
173 - >=media-libs/libcdr-0.1.0
174 - >=media-libs/libepoxy-1.3.1[X]
175 - >=media-libs/libfreehand-0.1.0
176 - media-libs/libpagemaker
177 - >=media-libs/libpng-1.4:0=
178 - >=media-libs/libvisio-0.1.0
179 - media-libs/libzmf
180 - net-libs/neon
181 - net-misc/curl
182 - sci-mathematics/lpsolve
183 - sys-libs/zlib
184 - virtual/glu
185 - virtual/jpeg:0
186 - virtual/opengl
187 - x11-libs/cairo[X]
188 - x11-libs/libXinerama
189 - x11-libs/libXrandr
190 - x11-libs/libXrender
191 - accessibility? ( dev-python/lxml[${PYTHON_USEDEP}] )
192 - bluetooth? (
193 - dev-libs/glib:2
194 - net-wireless/bluez
195 - )
196 - coinmp? ( sci-libs/coinor-mp )
197 - cups? ( net-print/cups )
198 - dbus? ( sys-apps/dbus )
199 - eds? (
200 - dev-libs/glib:2
201 - gnome-base/dconf
202 - gnome-extra/evolution-data-server
203 - )
204 - firebird? ( >=dev-db/firebird-3.0.2.32703.0-r1[server] )
205 - gstreamer? (
206 - media-libs/gstreamer:1.0
207 - media-libs/gst-plugins-base:1.0
208 - )
209 - gtk? (
210 - dev-libs/glib:2
211 - dev-libs/gobject-introspection
212 - gnome-base/dconf
213 - media-libs/mesa[egl]
214 - x11-libs/gtk+:3
215 - x11-libs/pango
216 - )
217 - gtk2? (
218 - x11-libs/gdk-pixbuf
219 - >=x11-libs/gtk+-2.24:2
220 - x11-libs/pango
221 - )
222 - kde? (
223 - dev-qt/qtcore:5
224 - dev-qt/qtgui:5
225 - dev-qt/qtwidgets:5
226 - dev-qt/qtx11extras:5
227 - kde-frameworks/kconfig:5
228 - kde-frameworks/kcoreaddons:5
229 - kde-frameworks/ki18n:5
230 - kde-frameworks/kio:5
231 - kde-frameworks/kwindowsystem:5
232 - )
233 - ldap? ( net-nds/openldap )
234 - libreoffice_extensions_scripting-beanshell? ( dev-java/bsh )
235 - libreoffice_extensions_scripting-javascript? ( dev-java/rhino:1.6 )
236 - mariadb? ( dev-db/mariadb-connector-c )
237 - !mariadb? ( dev-db/mysql-connector-c )
238 - pdfimport? ( app-text/poppler:=[cxx] )
239 - postgres? ( >=dev-db/postgresql-9.0:*[kerberos] )
240 -"
241 -# FIXME: cppunit should be moved to test conditional
242 -# after everything upstream is under gbuild
243 -# as dmake execute tests right away
244 -# tests apparently also need google-carlito-fonts (not packaged)
245 -DEPEND="${COMMON_DEPEND}
246 - >=dev-libs/libatomic_ops-7.2d
247 - dev-perl/Archive-Zip
248 - >=dev-util/cppunit-1.14.0
249 - >=dev-util/gperf-3.1
250 - >=dev-util/mdds-1.4.1:1=
251 - media-libs/glm
252 - sys-devel/ucpp
253 - x11-base/xorg-proto
254 - x11-libs/libXt
255 - x11-libs/libXtst
256 - java? (
257 - dev-java/ant-core
258 - >=virtual/jdk-1.6
259 - )
260 - test? (
261 - app-crypt/gnupg
262 - dev-util/cppunit
263 - media-fonts/dejavu
264 - media-fonts/liberation-fonts
265 - )
266 -"
267 -RDEPEND="${COMMON_DEPEND}
268 - !app-office/libreoffice-bin
269 - !app-office/libreoffice-bin-debug
270 - !app-office/openoffice
271 - media-fonts/liberation-fonts
272 - || ( x11-misc/xdg-utils kde-plasma/kde-cli-tools )
273 - java? ( >=virtual/jre-1.6 )
274 - kde? ( kde-frameworks/breeze-icons:* )
275 -"
276 -if [[ ${MY_PV} != *9999* ]] && [[ ${PV} != *_* ]]; then
277 - PDEPEND="=app-office/libreoffice-l10n-$(ver_cut 1-2)*"
278 -else
279 - # Translations are not reliable on live ebuilds
280 - # rather force people to use english only.
281 - PDEPEND="!app-office/libreoffice-l10n"
282 -fi
283 -
284 -PATCHES=(
285 - # "${WORKDIR}"/${PATCHSET/.tar.xz/}
286 -
287 - # not upstreamable stuff
288 - "${FILESDIR}/${PN}-5.4-system-pyuno.patch"
289 - "${FILESDIR}/${PN}-5.3.4.2-kioclient5.patch"
290 - "${FILESDIR}/${PN}-6.1-nomancompress.patch"
291 -)
292 -
293 -S="${WORKDIR}/${PN}-${MY_PV}"
294 -
295 -_check_reqs() {
296 - CHECKREQS_MEMORY="512M"
297 - if is-flagq "-g*" && ! is-flagq "-g*0" ; then
298 - CHECKREQS_DISK_BUILD="22G"
299 - else
300 - CHECKREQS_DISK_BUILD="6G"
301 - fi
302 - check-reqs_$1
303 -}
304 -
305 -pkg_pretend() {
306 - if ! use java && ! use firebird; then
307 - ewarn "If you plan to use Base application you must enable either firebird or java."
308 - fi
309 -
310 - use java || ewarn "Without java, several wizards are not going to be available."
311 -
312 - if has_version "<app-office/libreoffice-5.3.0[firebird]"; then
313 - ewarn "Firebird has been upgraded to version 3. It is unable to read back Firebird 2.5 data, so"
314 - ewarn "embedded firebird odb files created in LibreOffice pre-5.3 can't be opened with this version."
315 - ewarn "See also: https://wiki.documentfoundation.org/ReleaseNotes/5.3#Base"
316 - fi
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 - # 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-gtk3-kde5
451 - --disable-online-update
452 - --disable-openssl
453 - --disable-pdfium
454 - --disable-report-builder
455 - --disable-vlc
456 - --with-build-version="${gentoo_buildid}"
457 - --enable-extension-integration
458 - --with-external-dict-dir="${EPREFIX}/usr/share/myspell"
459 - --with-external-hyph-dir="${EPREFIX}/usr/share/myspell"
460 - --with-external-thes-dir="${EPREFIX}/usr/share/myspell"
461 - --with-external-tar="${DISTDIR}"
462 - --with-lang=""
463 - --with-parallelism=$(makeopts_jobs)
464 - --with-system-ucpp
465 - --with-tls=nss
466 - --with-vendor="Gentoo Foundation"
467 - --with-x
468 - --without-fonts
469 - --without-myspell-dicts
470 - --with-help="html"
471 - --without-helppack-integration
472 - --with-system-gpgmepp
473 - --without-system-sane
474 - $(use_enable bluetooth sdremote-bluetooth)
475 - $(use_enable coinmp)
476 - $(use_enable cups)
477 - $(use_enable dbus)
478 - $(use_enable debug)
479 - $(use_enable eds evolution2)
480 - $(use_enable firebird firebird-sdbc)
481 - $(use_enable gstreamer gstreamer-1-0)
482 - $(use_enable gtk gtk3)
483 - $(use_enable gtk2 gtk)
484 - $(use_enable kde kde5)
485 - $(use_enable kde qt5)
486 - $(use_enable ldap)
487 - $(use_enable odk)
488 - $(use_enable pdfimport)
489 - $(use_enable postgres postgresql-sdbc)
490 - $(use_with accessibility lxml)
491 - $(use_with coinmp system-coinmp)
492 - $(use_with googledrive gdrive-client-id ${google_default_client_id})
493 - $(use_with googledrive gdrive-client-secret ${google_default_client_secret})
494 - $(use_with java)
495 - $(use_with odk doxygen)
496 - )
497 -
498 - if use eds || use gtk; then
499 - myeconfargs+=( --enable-dconf --enable-gio )
500 - else
501 - myeconfargs+=( --disable-dconf --disable-gio )
502 - fi
503 -
504 - # libreoffice extensions handling
505 - for lo_xt in ${LO_EXTS}; do
506 - if [[ "${lo_xt}" == "scripting-beanshell" || "${lo_xt}" == "scripting-javascript" ]]; then
507 - myeconfargs+=( $(use_enable libreoffice_extensions_${lo_xt} ${lo_xt}) )
508 - else
509 - myeconfargs+=( $(use_enable libreoffice_extensions_${lo_xt} ext-${lo_xt}) )
510 - fi
511 - done
512 -
513 - if use java; then
514 - # hsqldb: system one is too new
515 - myeconfargs+=(
516 - --without-junit
517 - --without-system-hsqldb
518 - --with-ant-home="${ANT_HOME}"
519 - --with-jdk-home=$(java-config --jdk-home 2>/dev/null)
520 - --with-jvm-path="${EPREFIX}/usr/lib/"
521 - )
522 -
523 - use libreoffice_extensions_scripting-beanshell && \
524 - myeconfargs+=( --with-beanshell-jar=$(java-pkg_getjar bsh bsh.jar) )
525 -
526 - use libreoffice_extensions_scripting-javascript && \
527 - myeconfargs+=( --with-rhino-jar=$(java-pkg_getjar rhino-1.6 js.jar) )
528 - fi
529 -
530 - is-flagq "-flto*" && myeconfargs+=( --enable-lto )
531 -
532 - MARIADBCONFIG="$(type -p $(usex mariadb mariadb mysql)_config)" \
533 - econf "${myeconfargs[@]}"
534 -}
535 -
536 -src_compile() {
537 - # more and more LO stuff tries to use OpenGL, including tests during build
538 - # bug 501508, bug 540624, bug 545974 and probably more
539 - addpredict /dev/dri
540 - addpredict /dev/ati
541 - addpredict /dev/nvidiactl
542 -
543 - local target
544 - use test && target="build" || target="build-nocheck"
545 -
546 - # this is not a proper make script
547 - make ${target} || die
548 -}
549 -
550 -src_test() {
551 - make unitcheck || die
552 - make slowcheck || die
553 -}
554 -
555 -src_install() {
556 - # This is not Makefile so no buildserver
557 - make DESTDIR="${D}" distro-pack-install -o build -o check || die
558 -
559 - # bug 593514
560 - if use gtk; then
561 - dosym libreoffice/program/liblibreofficekitgtk.so \
562 - /usr/$(get_libdir)/liblibreofficekitgtk.so
563 - fi
564 -
565 - # bash completion aliases
566 - bashcomp_alias \
567 - libreoffice \
568 - unopkg loimpress lobase localc lodraw lomath lowriter lofromtemplate loweb loffice
569 -
570 - if use branding; then
571 - insinto /usr/$(get_libdir)/${PN}/program
572 - newins "${WORKDIR}/branding-sofficerc" sofficerc
573 - dodir /etc/env.d
574 - echo "CONFIG_PROTECT=/usr/$(get_libdir)/${PN}/program/sofficerc" > "${ED}"/etc/env.d/99${PN} || die
575 - fi
576 -}
577 -
578 -pkg_postinst() {
579 - xdg_icon_cache_update
580 - xdg_desktop_database_update
581 - xdg_mimeinfo_database_update
582 -}
583 -
584 -pkg_postrm() {
585 - xdg_icon_cache_update
586 - xdg_desktop_database_update
587 - xdg_mimeinfo_database_update
588 -}