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