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