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