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: Tue, 08 Sep 2020 18:08:23
Message-Id: 1599588463.e36618f3bb63fb0e4a12664a8f8c1cef864a0073.asturm@gentoo
1 commit: e36618f3bb63fb0e4a12664a8f8c1cef864a0073
2 Author: Andreas Sturmlechner <asturm <AT> gentoo <DOT> org>
3 AuthorDate: Tue Sep 8 17:48:07 2020 +0000
4 Commit: Andreas Sturmlechner <asturm <AT> gentoo <DOT> org>
5 CommitDate: Tue Sep 8 18:07:43 2020 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=e36618f3
7
8 app-office/libreoffice: Drop 6.4.5.2, 6.4.6.2 (r0)
9
10 Package-Manager: Portage-3.0.6, Repoman-3.0.1
11 Signed-off-by: Andreas Sturmlechner <asturm <AT> gentoo.org>
12
13 app-office/libreoffice/Manifest | 2 -
14 app-office/libreoffice/libreoffice-6.4.5.2.ebuild | 565 ---------------------
15 app-office/libreoffice/libreoffice-6.4.6.2.ebuild | 590 ----------------------
16 3 files changed, 1157 deletions(-)
17
18 diff --git a/app-office/libreoffice/Manifest b/app-office/libreoffice/Manifest
19 index 0cb8d623534..9743067cdd6 100644
20 --- a/app-office/libreoffice/Manifest
21 +++ b/app-office/libreoffice/Manifest
22 @@ -18,10 +18,8 @@ DIST dtoa-20180411.tgz 48893 BLAKE2B 4a03dc67e44353ae1c0653c8305d2df9bcfef16b48d
23 DIST eeb2c7ddf0d302fba4bfc6e97eac9624-libbase-1.1.6.zip 427800 BLAKE2B d3ac085a39ee9798182b70ba650fa954234b964e33278ac4fe3f84f8c3218ad49f12d139079328036b4f9d80cde967888c0a66393c34dedf27af69dac02c5aff SHA512 9091d3628d9c75c068507537afc9e10bfb79c1abfd36ad697af3d592a1cc049ba6640f665bfc53cc520b6a26c21d70b0275106843444b441484c2178f2784743
24 DIST f94d9870737518e3b597f9265f4e9803-libserializer-1.1.6.zip 211919 BLAKE2B 2c72493e44d3ad1714d294fb7baaa85d33fef2eb4ce75bf507b65f78f1d9d399bb5eb72cee188a8abc4b234eb2845a26755791fb3ac104ffe6e55013ab41ca8b SHA512 c1a15ebbfe817ec79d4b3f1c97d096bf8511737d7d35d97302856ccfb3de14a1cd16bd31000415d9ab24bbd9ef770d37855cee4b819ff0e8fca2f2766920a114
25 DIST libreoffice-6.4.3.2.tar.xz 230409812 BLAKE2B f9cdad1540c45525bd70596dc3033e3466fcdf3d96547222b936141e49ff6d45581ca59d0e42c4bb79fcb63586d748ccafae712369e024105235e2a9b69be7ce SHA512 ee11c704fa7184ffe371aa36c835c4c7fb06ef03d08fa0a5a9e647e80610db275e091d1ac79c1fe11af0c7f14dd72c821da9e7e6ba59573fc88cec79f84c873a
26 -DIST libreoffice-6.4.5.2.tar.xz 236255044 BLAKE2B a83ad0c50d1b7e686188c35c5f319b73e7984ad214e125102824789d1f56083a4ed8795cf7d8942fc0b3ddf3cad13f326225812458007a97a166bc5543c47eda SHA512 f0a5ac37b9c8e46bfd50bf9137d193a83d55d8d451c5b27d86b7f257633e861eb79422e1e64f7c462ae4a9045e00827beed302ab6f0773f8864c03bb11d3b752
27 DIST libreoffice-6.4.6.2.tar.xz 232180876 BLAKE2B b2e01cc8e56b36c16fc3e39ff88617d7c31d6b0a0f4a5c05c8536313e7129862fb962e1a6efc7e86e9b56c34dff7c2d895416f33fbb23dc45e447b25813b5654 SHA512 377675494d4422c4d9363fe3857a8587e38f6ccd39aebec9c23337aa3a88cb2526608b8d0bcb27985ed8f821a98ca541dad4b48d69db441bcb27e9fb81beb9ba
28 DIST libreoffice-branding-gentoo-0.8.tar.xz 151568 BLAKE2B f03c7ddeb53c5ca3fd23401679601fcf2c4037ba17be4eb7b784c7ce7ebb71a24b8ab4aac8b7da8c6b1f14dd23bc1294ba85ff4f70ad271fb4ee3c5372e10883 SHA512 785031a699b1d1895ce4b50ffc3ddf645f3a0ef9acdf37facfd18cf75db9484cb8f53a50abb63d6006ead76a80b6ff5aa99661063245ebb84bd64013d713de7f
29 DIST libreoffice-help-6.4.3.2.tar.xz 88297704 BLAKE2B bbd1af159c8b8db1909335f37095812ec3ce81d73644a30a85f3e37daeabeb9a158451b8e586f24d4b7544c8cd0948eeb20ede464384c3277d196f33322e63fb SHA512 9f8c1bcde27d153389d124af1393d0939262c85a1624f0b475a5515b5737612cb607d04742a069534771eee51ba98896926804ec7001d6bc2110dccdd6e7615a
30 -DIST libreoffice-help-6.4.5.2.tar.xz 88376816 BLAKE2B 8c5f8a3379dd77f41e3350314fa250ede503d998afda3cb2c8c95a4dd3b565bd6d0004b4dd7ff7b079fdb4de766fa105a8dbbd49b5ced5587e5a716aba31ba26 SHA512 fffa5338baa5ebd7bdf607f83b31440c66c19c42136b41505074fe1a7a4bb1630e080e4fc2dd114f8ab0654507f4a84d4190bb134a4756d895ec350cccc10e11
31 DIST libreoffice-help-6.4.6.2.tar.xz 88297908 BLAKE2B 919758e81ed46138331b49668f89c6bf7f50253d7632d113aa957f524ae26e2b99f2ba490b405830314822ea91185eb2308018df77c5bd3d7197cbba940ae2ba SHA512 8ada2568a40dc4f1c843cb37dde6abe3bd61b6e5d9910b985096821e1fce5af47d4a10bff8ae91913298e593130bc1f8668b4e1c59c46591d457157e3d4b7501
32 DIST skia-m83-8ce842d38d0b32149e874d6855c91e8c68ba65a7.tar.xz 8218672 BLAKE2B cfeb805d82ce1f5dd70c7365983fa8107d5ccda9409b2654c032115cdf8a1c32fa0451162b0cceec3dcc0054e3d0d0e13583ea93843b0d0a6eb948cc31c15ce0 SHA512 1018fc1cc8a7edc15745cc20791f9a22e5b318018ba619d6cb5b6995d3e81ab93c910bb3a42734872d3be54893c2ce7db507b2c61088660b2ce6630ff9b36ebb
33
34 diff --git a/app-office/libreoffice/libreoffice-6.4.5.2.ebuild b/app-office/libreoffice/libreoffice-6.4.5.2.ebuild
35 deleted file mode 100644
36 index a60413e5da4..00000000000
37 --- a/app-office/libreoffice/libreoffice-6.4.5.2.ebuild
38 +++ /dev/null
39 @@ -1,565 +0,0 @@
40 -# Copyright 1999-2020 Gentoo Authors
41 -# Distributed under the terms of the GNU General Public License v2
42 -
43 -EAPI=7
44 -
45 -PYTHON_COMPAT=( python3_{6,7,8} )
46 -PYTHON_REQ_USE="threads(+),xml"
47 -
48 -MY_PV="${PV/_alpha/.alpha}"
49 -MY_PV="${MY_PV/_beta/.beta}"
50 -# experimental ; release ; old
51 -# Usually the tarballs are moved a lot so this should make everyone happy.
52 -DEV_URI="
53 - https://dev-builds.libreoffice.org/pre-releases/src
54 - https://download.documentfoundation.org/libreoffice/src/${MY_PV:0:5}/
55 - https://downloadarchive.documentfoundation.org/libreoffice/old/${MY_PV}/src
56 -"
57 -ADDONS_URI="https://dev-www.libreoffice.org/src/"
58 -
59 -BRANDING="${PN}-branding-gentoo-0.8.tar.xz"
60 -# PATCHSET="${P}-patchset-01.tar.xz"
61 -
62 -[[ ${MY_PV} == *9999* ]] && inherit git-r3
63 -inherit autotools bash-completion-r1 check-reqs flag-o-matic java-pkg-opt-2 multiprocessing python-single-r1 qmake-utils toolchain-funcs xdg-utils
64 -
65 -DESCRIPTION="A full office productivity suite"
66 -HOMEPAGE="https://www.libreoffice.org"
67 -SRC_URI="branding? ( https://dev.gentoo.org/~dilfridge/distfiles/${BRANDING} )"
68 -[[ -n ${PATCHSET} ]] && SRC_URI+=" https://dev.gentoo.org/~asturm/distfiles/${PATCHSET}"
69 -
70 -# Split modules following git/tarballs; Core MUST be first!
71 -# Help is used for the image generator
72 -# Only release has the tarballs
73 -if [[ ${MY_PV} != *9999* ]]; then
74 - for i in ${DEV_URI}; do
75 - SRC_URI+=" ${i}/${PN}-${MY_PV}.tar.xz"
76 - SRC_URI+=" ${i}/${PN}-help-${MY_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 - # QR code generating library for >=libreoffice-6.4
87 - "${ADDONS_URI}/QR-Code-generator-1.4.0.tar.gz"
88 - "base? (
89 - ${ADDONS_URI}/commons-logging-1.2-src.tar.gz
90 - ${ADDONS_URI}/ba2930200c9f019c2d93a8c88c651a0f-flow-engine-0.9.4.zip
91 - ${ADDONS_URI}/d8bd5eed178db6e2b18eeed243f85aa8-flute-1.1.6.zip
92 - ${ADDONS_URI}/eeb2c7ddf0d302fba4bfc6e97eac9624-libbase-1.1.6.zip
93 - ${ADDONS_URI}/3bdf40c0d199af31923e900d082ca2dd-libfonts-1.1.6.zip
94 - ${ADDONS_URI}/3404ab6b1792ae5f16bbd603bd1e1d03-libformula-1.1.7.zip
95 - ${ADDONS_URI}/db60e4fde8dd6d6807523deb71ee34dc-liblayout-0.2.10.zip
96 - ${ADDONS_URI}/97b2d4dba862397f446b217e2b623e71-libloader-1.1.6.zip
97 - ${ADDONS_URI}/8ce2fcd72becf06c41f7201d15373ed9-librepository-1.1.6.zip
98 - ${ADDONS_URI}/f94d9870737518e3b597f9265f4e9803-libserializer-1.1.6.zip
99 - ${ADDONS_URI}/ace6ab49184e329db254e454a010f56d-libxml-1.1.7.zip
100 - ${ADDONS_URI}/39bb3fcea1514f1369fcfc87542390fd-sacjava-1.3.zip
101 - )"
102 - "java? ( ${ADDONS_URI}/17410483b5b5f267aa18b7e00b65e6e0-hsqldb_1_8_0.zip )"
103 - # no release for 8 years, should we package it?
104 - "libreoffice_extensions_wiki-publisher? ( ${ADDONS_URI}/a7983f859eafb2677d7ff386a023bc40-xsltml_2.1.2.zip )"
105 - # Does not build with 1.6 rhino at all
106 - "libreoffice_extensions_scripting-javascript? ( ${ADDONS_URI}/798b2ffdc8bcfe7bca2cf92b62caf685-rhino1_5R5.zip )"
107 - # requirement of rhino
108 - "libreoffice_extensions_scripting-javascript? ( ${ADDONS_URI}/35c94d2df8893241173de1d16b6034c0-swingExSrc.zip )"
109 - # not packageable
110 - "odk? ( http://download.go-oo.org/extern/185d60944ea767075d27247c3162b3bc-unowinreg.dll )"
111 -)
112 -SRC_URI+=" ${ADDONS_SRC[*]}"
113 -
114 -unset ADDONS_URI
115 -unset ADDONS_SRC
116 -
117 -# Extensions that need extra work:
118 -LO_EXTS="nlpsolver scripting-beanshell scripting-javascript wiki-publisher"
119 -
120 -IUSE="accessibility base bluetooth +branding coinmp +cups +dbus debug eds firebird
121 -googledrive gstreamer +gtk kde ldap +mariadb odk pdfimport postgres test
122 -$(printf 'libreoffice_extensions_%s ' ${LO_EXTS})"
123 -
124 -REQUIRED_USE="${PYTHON_REQUIRED_USE}
125 - base? ( firebird java )
126 - bluetooth? ( dbus )
127 - gtk? ( dbus )
128 - libreoffice_extensions_nlpsolver? ( java )
129 - libreoffice_extensions_scripting-beanshell? ( java )
130 - libreoffice_extensions_scripting-javascript? ( java )
131 - libreoffice_extensions_wiki-publisher? ( java )
132 -"
133 -
134 -RESTRICT="!test? ( test )"
135 -
136 -LICENSE="|| ( LGPL-3 MPL-1.1 )"
137 -SLOT="0"
138 -
139 -[[ ${MY_PV} == *9999* ]] || \
140 -KEYWORDS="~amd64 ~arm ~arm64 ~ppc64 ~x86 ~amd64-linux ~x86-linux"
141 -
142 -BDEPEND="
143 - dev-util/intltool
144 - sys-devel/bison
145 - sys-devel/flex
146 - sys-devel/gettext
147 - virtual/pkgconfig
148 - odk? ( >=app-doc/doxygen-1.8.4 )
149 -"
150 -COMMON_DEPEND="${PYTHON_DEPS}
151 - app-arch/unzip
152 - app-arch/zip
153 - app-crypt/gpgme[cxx]
154 - app-text/hunspell:=
155 - >=app-text/libabw-0.1.0
156 - >=app-text/libebook-0.1
157 - app-text/libepubgen
158 - >=app-text/libetonyek-0.1
159 - app-text/libexttextcat
160 - app-text/liblangtag
161 - >=app-text/libmspub-0.1.0
162 - >=app-text/libmwaw-0.3.1
163 - app-text/libnumbertext
164 - >=app-text/libodfgen-0.1.0
165 - app-text/libqxp
166 - app-text/libstaroffice
167 - app-text/libwpd:0.10[tools]
168 - app-text/libwpg:0.3
169 - >=app-text/libwps-0.4
170 - app-text/mythes
171 - >=dev-cpp/clucene-2.3.3.4-r2
172 - >=dev-cpp/libcmis-0.5.2
173 - dev-db/unixODBC
174 - dev-lang/perl
175 - >=dev-libs/boost-1.72.0:=[nls]
176 - dev-libs/expat
177 - dev-libs/hyphen
178 - dev-libs/icu:=
179 - dev-libs/libassuan
180 - dev-libs/libgpg-error
181 - >=dev-libs/liborcus-0.15.0
182 - dev-libs/librevenge
183 - dev-libs/libxml2
184 - dev-libs/libxslt
185 - dev-libs/nspr
186 - dev-libs/nss
187 - >=dev-libs/redland-1.0.16
188 - >=dev-libs/xmlsec-1.2.28[nss]
189 - media-gfx/fontforge
190 - media-gfx/graphite2
191 - media-libs/fontconfig
192 - media-libs/freetype:2
193 - >=media-libs/harfbuzz-0.9.42:=[graphite,icu]
194 - media-libs/lcms:2
195 - >=media-libs/libcdr-0.1.0
196 - >=media-libs/libepoxy-1.3.1[X]
197 - >=media-libs/libfreehand-0.1.0
198 - media-libs/libpagemaker
199 - >=media-libs/libpng-1.4:0=
200 - >=media-libs/libvisio-0.1.0
201 - media-libs/libzmf
202 - net-libs/neon
203 - net-misc/curl
204 - sci-mathematics/lpsolve
205 - sys-libs/zlib
206 - virtual/glu
207 - virtual/jpeg:0
208 - virtual/opengl
209 - x11-libs/cairo[X]
210 - x11-libs/libXinerama
211 - x11-libs/libXrandr
212 - x11-libs/libXrender
213 - accessibility? (
214 - $(python_gen_cond_dep 'dev-python/lxml[${PYTHON_MULTI_USEDEP}]')
215 - )
216 - bluetooth? (
217 - dev-libs/glib:2
218 - net-wireless/bluez
219 - )
220 - coinmp? ( sci-libs/coinor-mp )
221 - cups? ( net-print/cups )
222 - dbus? ( sys-apps/dbus[X] )
223 - eds? (
224 - dev-libs/glib:2
225 - gnome-base/dconf
226 - gnome-extra/evolution-data-server
227 - )
228 - firebird? ( >=dev-db/firebird-3.0.2.32703.0-r1[server] )
229 - gstreamer? (
230 - media-libs/gstreamer:1.0
231 - media-libs/gst-plugins-base:1.0
232 - )
233 - gtk? (
234 - dev-libs/glib:2
235 - dev-libs/gobject-introspection
236 - gnome-base/dconf
237 - media-libs/mesa[egl]
238 - x11-libs/gtk+:3
239 - x11-libs/pango
240 - )
241 - kde? (
242 - dev-qt/qtcore:5
243 - dev-qt/qtgui:5
244 - dev-qt/qtwidgets:5
245 - dev-qt/qtx11extras:5
246 - kde-frameworks/kconfig:5
247 - kde-frameworks/kcoreaddons:5
248 - kde-frameworks/ki18n:5
249 - kde-frameworks/kio:5
250 - kde-frameworks/kwindowsystem:5
251 - )
252 - ldap? ( net-nds/openldap )
253 - libreoffice_extensions_scripting-beanshell? ( dev-java/bsh )
254 - libreoffice_extensions_scripting-javascript? ( dev-java/rhino:1.6 )
255 - mariadb? ( dev-db/mariadb-connector-c )
256 - !mariadb? ( dev-db/mysql-connector-c )
257 - pdfimport? ( app-text/poppler:=[cxx] )
258 - postgres? ( >=dev-db/postgresql-9.0:*[kerberos] )
259 -"
260 -# FIXME: cppunit should be moved to test conditional
261 -# after everything upstream is under gbuild
262 -# as dmake execute tests right away
263 -# tests apparently also need google-carlito-fonts (not packaged)
264 -DEPEND="${COMMON_DEPEND}
265 - >=dev-libs/libatomic_ops-7.2d
266 - dev-perl/Archive-Zip
267 - >=dev-util/cppunit-1.14.0
268 - >=dev-util/gperf-3.1
269 - dev-util/mdds:1/1.5
270 - media-libs/glm
271 - sys-devel/ucpp
272 - x11-base/xorg-proto
273 - x11-libs/libXt
274 - x11-libs/libXtst
275 - java? (
276 - dev-java/ant-core
277 - >=virtual/jdk-1.8
278 - )
279 - test? (
280 - app-crypt/gnupg
281 - dev-util/cppunit
282 - media-fonts/dejavu
283 - media-fonts/liberation-fonts
284 - )
285 -"
286 -RDEPEND="${COMMON_DEPEND}
287 - !app-office/libreoffice-bin
288 - !app-office/libreoffice-bin-debug
289 - !app-office/openoffice
290 - media-fonts/liberation-fonts
291 - || ( x11-misc/xdg-utils kde-plasma/kde-cli-tools )
292 - java? ( >=virtual/jre-1.8 )
293 - kde? ( kde-frameworks/breeze-icons:* )
294 -"
295 -if [[ ${MY_PV} != *9999* ]] && [[ ${PV} != *_* ]]; then
296 - PDEPEND="=app-office/libreoffice-l10n-$(ver_cut 1-2)*"
297 -else
298 - # Translations are not reliable on live ebuilds
299 - # rather force people to use english only.
300 - PDEPEND="!app-office/libreoffice-l10n"
301 -fi
302 -
303 -PATCHES=(
304 - # "${WORKDIR}"/${PATCHSET/.tar.xz/}
305 -
306 - # not upstreamable stuff
307 - "${FILESDIR}/${PN}-5.4-system-pyuno.patch"
308 - "${FILESDIR}/${PN}-5.3.4.2-kioclient5.patch"
309 - "${FILESDIR}/${PN}-6.1-nomancompress.patch"
310 -
311 - # git master
312 - "${FILESDIR}/${PN}-6.4.3.2-boost-1.73.patch" # bug 721806
313 -)
314 -
315 -S="${WORKDIR}/${PN}-${MY_PV}"
316 -
317 -_check_reqs() {
318 - CHECKREQS_MEMORY="512M"
319 - if is-flagq "-g*" && ! is-flagq "-g*0" ; then
320 - CHECKREQS_DISK_BUILD="22G"
321 - else
322 - CHECKREQS_DISK_BUILD="6G"
323 - fi
324 - check-reqs_$1
325 -}
326 -
327 -pkg_pretend() {
328 - use base ||
329 - ewarn "If you plan to use Base application you must enable USE base."
330 - use java ||
331 - ewarn "Without USE java, several wizards are not going to be available."
332 -
333 - [[ ${MERGE_TYPE} != binary ]] && _check_reqs pkg_pretend
334 -}
335 -
336 -pkg_setup() {
337 - java-pkg-opt-2_pkg_setup
338 - python-single-r1_pkg_setup
339 - xdg_environment_reset
340 -
341 - [[ ${MERGE_TYPE} != binary ]] && _check_reqs pkg_setup
342 -}
343 -
344 -src_unpack() {
345 - default
346 -
347 - if [[ ${MY_PV} = *9999* ]]; then
348 - local base_uri branch mypv
349 - base_uri="https://anongit.freedesktop.org/git"
350 - branch="master"
351 - mypv=${MY_PV/.9999}
352 - [[ ${mypv} != ${MY_PV} ]] && branch="${PN}-${mypv/./-}"
353 - git-r3_fetch "${base_uri}/${PN}/core" "refs/heads/${branch}"
354 - git-r3_checkout "${base_uri}/${PN}/core"
355 - LOCOREGIT_VERSION=${EGIT_VERSION}
356 -
357 - git-r3_fetch "${base_uri}/${PN}/help" "refs/heads/master"
358 - git-r3_checkout "${base_uri}/${PN}/help" "helpcontent2" # doesn't match on help
359 - fi
360 -}
361 -
362 -src_prepare() {
363 - default
364 -
365 - # sandbox violations on many systems, we don't need it. Bug #646406
366 - sed -i \
367 - -e "/KF5_CONFIG/s/kf5-config/no/" \
368 - configure.ac || die "Failed to disable kf5-config"
369 -
370 - AT_M4DIR="m4" eautoreconf
371 - # hack in the autogen.sh
372 - touch autogen.lastrun
373 -
374 - # system pyuno mess
375 - sed -i \
376 - -e "s:%eprefix%:${EPREFIX}:g" \
377 - -e "s:%libdir%:$(get_libdir):g" \
378 - pyuno/source/module/uno.py \
379 - pyuno/source/officehelper.py || die
380 - # sed in the tests
381 - sed -i \
382 - -e "s#all : build unitcheck#all : build#g" \
383 - solenv/gbuild/Module.mk || die
384 - sed -i \
385 - -e "s#check: dev-install subsequentcheck#check: unitcheck slowcheck dev-install subsequentcheck#g" \
386 - -e "s#Makefile.gbuild all slowcheck#Makefile.gbuild all#g" \
387 - Makefile.in || die
388 -
389 - sed -i \
390 - -e "s,/usr/share/bash-completion/completions,$(get_bashcompdir)," \
391 - -e "s,\$INSTALLDIRNAME.sh,${PN}," \
392 - bin/distro-install-desktop-integration || die
393 -
394 - if use branding; then
395 - # hack...
396 - mv -v "${WORKDIR}/branding-intro.png" "icon-themes/colibre/brand/intro.png" || die
397 - fi
398 -
399 - # Don't list pdfimport support in desktop when built with none, bug # 605464
400 - if ! use pdfimport; then
401 - sed -i \
402 - -e ":MimeType: s:application/pdf;::" \
403 - -e ":Keywords: s:pdf;::" \
404 - sysui/desktop/menus/draw.desktop || die
405 - fi
406 -}
407 -
408 -src_configure() {
409 - # Set up Google API keys, see https://www.chromium.org/developers/how-tos/api-keys
410 - # Note: these are for Gentoo use ONLY. For your own distribution, please get
411 - # your own set of keys. Feel free to contact chromium@g.o for more info.
412 - local google_default_client_id="329227923882.apps.googleusercontent.com"
413 - local google_default_client_secret="vgKG0NNv7GoDpbtoFNLxCUXu"
414 -
415 - # optimization flags
416 - export GMAKE_OPTIONS="${MAKEOPTS}"
417 - # System python enablement:
418 - export PYTHON_CFLAGS=$(python_get_CFLAGS)
419 - export PYTHON_LIBS=$(python_get_LIBS)
420 -
421 - if use kde; then
422 - export QT_SELECT=5 # bug 639620 needs proper fix though
423 - export QT5DIR="$(qt5_get_bindir)/../"
424 - export MOC5="$(qt5_get_bindir)/moc"
425 - fi
426 -
427 - local gentoo_buildid="Gentoo official package"
428 - if [[ -n ${LOCOREGIT_VERSION} ]]; then
429 - gentoo_buildid+=" (from git: ${LOCOREGIT_VERSION})"
430 - fi
431 -
432 - # system headers/libs/...: enforce using system packages
433 - # --disable-breakpad: requires not-yet-in-tree dev-utils/breakpad
434 - # --enable-cairo: ensure that cairo is always required
435 - # --enable-*-link: link to the library rather than just dlopen on runtime
436 - # --enable-release-build: build the libreoffice as release
437 - # --disable-fetch-external: prevent dowloading during compile phase
438 - # --enable-extension-integration: enable any extension integration support
439 - # --without-{fonts,myspell-dicts,ppsd}: prevent install of sys pkgs
440 - # --disable-report-builder: too much java packages pulled in without pkgs
441 - # --without-system-sane: just sane.h header that is used for scan in writer,
442 - # not linked or anything else, worthless to depend on
443 - # --disable-pdfium: not yet packaged
444 - # --without-system-qrencode: has no real build system and LO is the only user
445 - local myeconfargs=(
446 - --with-system-dicts
447 - --with-system-epoxy
448 - --with-system-headers
449 - --with-system-jars
450 - --with-system-libs
451 - --enable-build-opensymbol
452 - --enable-cairo-canvas
453 - --enable-largefile
454 - --enable-mergelibs
455 - --enable-neon
456 - --enable-python=system
457 - --enable-randr
458 - --enable-release-build
459 - --disable-breakpad
460 - --disable-bundle-mariadb
461 - --disable-ccache
462 - --disable-epm
463 - --disable-fetch-external
464 - --disable-gtk3-kde5
465 - --disable-online-update
466 - --disable-openssl
467 - --disable-pdfium
468 - --disable-vlc
469 - --with-build-version="${gentoo_buildid}"
470 - --enable-extension-integration
471 - --with-external-dict-dir="${EPREFIX}/usr/share/myspell"
472 - --with-external-hyph-dir="${EPREFIX}/usr/share/myspell"
473 - --with-external-thes-dir="${EPREFIX}/usr/share/myspell"
474 - --with-external-tar="${DISTDIR}"
475 - --with-lang=""
476 - --with-parallelism=$(makeopts_jobs)
477 - --with-system-ucpp
478 - --with-tls=nss
479 - --with-vendor="Gentoo Foundation"
480 - --with-x
481 - --without-fonts
482 - --without-myspell-dicts
483 - --with-help="html"
484 - --without-helppack-integration
485 - --with-system-gpgmepp
486 - --without-system-jfreereport
487 - --without-system_apache_commons
488 - --without-system-sane
489 - --without-system-qrcodegen
490 - $(use_enable base report-builder)
491 - $(use_enable bluetooth sdremote-bluetooth)
492 - $(use_enable coinmp)
493 - $(use_enable cups)
494 - $(use_enable dbus)
495 - $(use_enable debug)
496 - $(use_enable eds evolution2)
497 - $(use_enable firebird firebird-sdbc)
498 - $(use_enable gstreamer gstreamer-1-0)
499 - $(use_enable gtk gtk3)
500 - $(use_enable kde kf5)
501 - $(use_enable kde qt5)
502 - $(use_enable ldap)
503 - $(use_enable odk)
504 - $(use_enable pdfimport)
505 - $(use_enable postgres postgresql-sdbc)
506 - $(use_with accessibility lxml)
507 - $(use_with coinmp system-coinmp)
508 - $(use_with googledrive gdrive-client-id ${google_default_client_id})
509 - $(use_with googledrive gdrive-client-secret ${google_default_client_secret})
510 - $(use_with java)
511 - $(use_with odk doxygen)
512 - )
513 -
514 - if use eds || use gtk; then
515 - myeconfargs+=( --enable-dconf --enable-gio )
516 - else
517 - myeconfargs+=( --disable-dconf --disable-gio )
518 - fi
519 -
520 - # libreoffice extensions handling
521 - for lo_xt in ${LO_EXTS}; do
522 - if [[ "${lo_xt}" == "scripting-beanshell" || "${lo_xt}" == "scripting-javascript" ]]; then
523 - myeconfargs+=( $(use_enable libreoffice_extensions_${lo_xt} ${lo_xt}) )
524 - else
525 - myeconfargs+=( $(use_enable libreoffice_extensions_${lo_xt} ext-${lo_xt}) )
526 - fi
527 - done
528 -
529 - if use java; then
530 - # hsqldb: system one is too new
531 - myeconfargs+=(
532 - --without-junit
533 - --without-system-hsqldb
534 - --with-ant-home="${ANT_HOME}"
535 - --with-jdk-home=$(java-config --jdk-home 2>/dev/null)
536 - --with-jvm-path="${EPREFIX}/usr/lib/"
537 - )
538 -
539 - use libreoffice_extensions_scripting-beanshell && \
540 - myeconfargs+=( --with-beanshell-jar=$(java-pkg_getjar bsh bsh.jar) )
541 -
542 - use libreoffice_extensions_scripting-javascript && \
543 - myeconfargs+=( --with-rhino-jar=$(java-pkg_getjar rhino-1.6 js.jar) )
544 - fi
545 -
546 - is-flagq "-flto*" && myeconfargs+=( --enable-lto )
547 -
548 - MARIADBCONFIG="$(type -p $(usex mariadb mariadb mysql)_config)" \
549 - econf "${myeconfargs[@]}"
550 -}
551 -
552 -src_compile() {
553 - # more and more LO stuff tries to use OpenGL, including tests during build
554 - # bug 501508, bug 540624, bug 545974 and probably more
555 - addpredict /dev/dri
556 - addpredict /dev/ati
557 - addpredict /dev/nvidiactl
558 -
559 - local target
560 - use test && target="build" || target="build-nocheck"
561 -
562 - # this is not a proper make script
563 - make ${target} || die
564 -}
565 -
566 -src_test() {
567 - make unitcheck || die
568 - make slowcheck || die
569 -}
570 -
571 -src_install() {
572 - # This is not Makefile so no buildserver
573 - emake DESTDIR="${D}" distro-pack-install -o build -o check
574 -
575 - # bug 593514
576 - if use gtk; then
577 - dosym libreoffice/program/liblibreofficekitgtk.so \
578 - /usr/$(get_libdir)/liblibreofficekitgtk.so
579 - fi
580 -
581 - # bash completion aliases
582 - bashcomp_alias \
583 - libreoffice \
584 - unopkg loimpress lobase localc lodraw lomath lowriter lofromtemplate loweb loffice
585 -
586 - if use branding; then
587 - insinto /usr/$(get_libdir)/${PN}/program
588 - newins "${WORKDIR}/branding-sofficerc" sofficerc
589 - dodir /etc/env.d
590 - echo "CONFIG_PROTECT=/usr/$(get_libdir)/${PN}/program/sofficerc" > "${ED}"/etc/env.d/99${PN} || die
591 - fi
592 -}
593 -
594 -pkg_postinst() {
595 - xdg_icon_cache_update
596 - xdg_desktop_database_update
597 - xdg_mimeinfo_database_update
598 -}
599 -
600 -pkg_postrm() {
601 - xdg_icon_cache_update
602 - xdg_desktop_database_update
603 - xdg_mimeinfo_database_update
604 -}
605
606 diff --git a/app-office/libreoffice/libreoffice-6.4.6.2.ebuild b/app-office/libreoffice/libreoffice-6.4.6.2.ebuild
607 deleted file mode 100644
608 index 291eb07b6f0..00000000000
609 --- a/app-office/libreoffice/libreoffice-6.4.6.2.ebuild
610 +++ /dev/null
611 @@ -1,590 +0,0 @@
612 -# Copyright 1999-2020 Gentoo Authors
613 -# Distributed under the terms of the GNU General Public License v2
614 -
615 -EAPI=7
616 -
617 -PYTHON_COMPAT=( python3_{6,7,8,9} )
618 -PYTHON_REQ_USE="threads(+),xml"
619 -
620 -MY_PV="${PV/_alpha/.alpha}"
621 -MY_PV="${MY_PV/_beta/.beta}"
622 -# experimental ; release ; old
623 -# Usually the tarballs are moved a lot so this should make everyone happy.
624 -DEV_URI="
625 - https://dev-builds.libreoffice.org/pre-releases/src
626 - https://download.documentfoundation.org/libreoffice/src/${MY_PV:0:5}/
627 - https://downloadarchive.documentfoundation.org/libreoffice/old/${MY_PV}/src
628 -"
629 -ADDONS_URI="https://dev-www.libreoffice.org/src/"
630 -
631 -BRANDING="${PN}-branding-gentoo-0.8.tar.xz"
632 -# PATCHSET="${P}-patchset-01.tar.xz"
633 -
634 -[[ ${MY_PV} == *9999* ]] && inherit git-r3
635 -inherit autotools bash-completion-r1 check-reqs flag-o-matic java-pkg-opt-2 multiprocessing python-single-r1 qmake-utils toolchain-funcs xdg-utils
636 -
637 -DESCRIPTION="A full office productivity suite"
638 -HOMEPAGE="https://www.libreoffice.org"
639 -SRC_URI="branding? ( https://dev.gentoo.org/~dilfridge/distfiles/${BRANDING} )"
640 -[[ -n ${PATCHSET} ]] && SRC_URI+=" https://dev.gentoo.org/~asturm/distfiles/${PATCHSET}"
641 -
642 -# Split modules following git/tarballs; Core MUST be first!
643 -# Help is used for the image generator
644 -# Only release has the tarballs
645 -if [[ ${MY_PV} != *9999* ]]; then
646 - for i in ${DEV_URI}; do
647 - SRC_URI+=" ${i}/${PN}-${MY_PV}.tar.xz"
648 - SRC_URI+=" ${i}/${PN}-help-${MY_PV}.tar.xz"
649 - done
650 - unset i
651 -fi
652 -unset DEV_URI
653 -
654 -# Really required addons
655 -# These are bundles that can't be removed for now due to huge patchsets.
656 -# If you want them gone, patches are welcome.
657 -ADDONS_SRC=(
658 - # QR code generating library for >=libreoffice-6.4
659 - "${ADDONS_URI}/QR-Code-generator-1.4.0.tar.gz"
660 - "base? (
661 - ${ADDONS_URI}/commons-logging-1.2-src.tar.gz
662 - ${ADDONS_URI}/ba2930200c9f019c2d93a8c88c651a0f-flow-engine-0.9.4.zip
663 - ${ADDONS_URI}/d8bd5eed178db6e2b18eeed243f85aa8-flute-1.1.6.zip
664 - ${ADDONS_URI}/eeb2c7ddf0d302fba4bfc6e97eac9624-libbase-1.1.6.zip
665 - ${ADDONS_URI}/3bdf40c0d199af31923e900d082ca2dd-libfonts-1.1.6.zip
666 - ${ADDONS_URI}/3404ab6b1792ae5f16bbd603bd1e1d03-libformula-1.1.7.zip
667 - ${ADDONS_URI}/db60e4fde8dd6d6807523deb71ee34dc-liblayout-0.2.10.zip
668 - ${ADDONS_URI}/97b2d4dba862397f446b217e2b623e71-libloader-1.1.6.zip
669 - ${ADDONS_URI}/8ce2fcd72becf06c41f7201d15373ed9-librepository-1.1.6.zip
670 - ${ADDONS_URI}/f94d9870737518e3b597f9265f4e9803-libserializer-1.1.6.zip
671 - ${ADDONS_URI}/ace6ab49184e329db254e454a010f56d-libxml-1.1.7.zip
672 - ${ADDONS_URI}/39bb3fcea1514f1369fcfc87542390fd-sacjava-1.3.zip
673 - )"
674 - "java? ( ${ADDONS_URI}/17410483b5b5f267aa18b7e00b65e6e0-hsqldb_1_8_0.zip )"
675 - # no release for 8 years, should we package it?
676 - "libreoffice_extensions_wiki-publisher? ( ${ADDONS_URI}/a7983f859eafb2677d7ff386a023bc40-xsltml_2.1.2.zip )"
677 - # Does not build with 1.6 rhino at all
678 - "libreoffice_extensions_scripting-javascript? ( ${ADDONS_URI}/798b2ffdc8bcfe7bca2cf92b62caf685-rhino1_5R5.zip )"
679 - # requirement of rhino
680 - "libreoffice_extensions_scripting-javascript? ( ${ADDONS_URI}/35c94d2df8893241173de1d16b6034c0-swingExSrc.zip )"
681 - # not packageable
682 - "odk? ( http://download.go-oo.org/extern/185d60944ea767075d27247c3162b3bc-unowinreg.dll )"
683 -)
684 -SRC_URI+=" ${ADDONS_SRC[*]}"
685 -
686 -unset ADDONS_URI
687 -unset ADDONS_SRC
688 -
689 -# Extensions that need extra work:
690 -LO_EXTS="nlpsolver scripting-beanshell scripting-javascript wiki-publisher"
691 -
692 -IUSE="accessibility base bluetooth +branding coinmp +cups +dbus debug eds firebird
693 -googledrive gstreamer +gtk kde ldap +mariadb odk pdfimport postgres test
694 -$(printf 'libreoffice_extensions_%s ' ${LO_EXTS})"
695 -
696 -REQUIRED_USE="${PYTHON_REQUIRED_USE}
697 - base? ( firebird java )
698 - bluetooth? ( dbus )
699 - gtk? ( dbus )
700 - libreoffice_extensions_nlpsolver? ( java )
701 - libreoffice_extensions_scripting-beanshell? ( java )
702 - libreoffice_extensions_scripting-javascript? ( java )
703 - libreoffice_extensions_wiki-publisher? ( java )
704 -"
705 -
706 -RESTRICT="!test? ( test )"
707 -
708 -LICENSE="|| ( LGPL-3 MPL-1.1 )"
709 -SLOT="0"
710 -
711 -[[ ${MY_PV} == *9999* ]] || \
712 -KEYWORDS="~amd64 ~arm ~arm64 ~ppc64 ~x86 ~amd64-linux ~x86-linux"
713 -
714 -BDEPEND="
715 - dev-util/intltool
716 - sys-devel/bison
717 - sys-devel/flex
718 - sys-devel/gettext
719 - virtual/pkgconfig
720 - odk? ( >=app-doc/doxygen-1.8.4 )
721 -"
722 -COMMON_DEPEND="${PYTHON_DEPS}
723 - app-arch/unzip
724 - app-arch/zip
725 - app-crypt/gpgme[cxx]
726 - app-text/hunspell:=
727 - >=app-text/libabw-0.1.0
728 - >=app-text/libebook-0.1
729 - app-text/libepubgen
730 - >=app-text/libetonyek-0.1
731 - app-text/libexttextcat
732 - app-text/liblangtag
733 - >=app-text/libmspub-0.1.0
734 - >=app-text/libmwaw-0.3.1
735 - app-text/libnumbertext
736 - >=app-text/libodfgen-0.1.0
737 - app-text/libqxp
738 - app-text/libstaroffice
739 - app-text/libwpd:0.10[tools]
740 - app-text/libwpg:0.3
741 - >=app-text/libwps-0.4
742 - app-text/mythes
743 - >=dev-cpp/clucene-2.3.3.4-r2
744 - >=dev-cpp/libcmis-0.5.2
745 - dev-db/unixODBC
746 - dev-lang/perl
747 - >=dev-libs/boost-1.72.0:=[nls]
748 - dev-libs/expat
749 - dev-libs/hyphen
750 - dev-libs/icu:=
751 - dev-libs/libassuan
752 - dev-libs/libgpg-error
753 - >=dev-libs/liborcus-0.15.0
754 - dev-libs/librevenge
755 - dev-libs/libxml2
756 - dev-libs/libxslt
757 - dev-libs/nspr
758 - dev-libs/nss
759 - >=dev-libs/redland-1.0.16
760 - >=dev-libs/xmlsec-1.2.28[nss]
761 - media-gfx/fontforge
762 - media-gfx/graphite2
763 - media-libs/fontconfig
764 - media-libs/freetype:2
765 - >=media-libs/harfbuzz-0.9.42:=[graphite,icu]
766 - media-libs/lcms:2
767 - >=media-libs/libcdr-0.1.0
768 - >=media-libs/libepoxy-1.3.1[X]
769 - >=media-libs/libfreehand-0.1.0
770 - media-libs/libpagemaker
771 - >=media-libs/libpng-1.4:0=
772 - >=media-libs/libvisio-0.1.0
773 - media-libs/libzmf
774 - net-libs/neon
775 - net-misc/curl
776 - sci-mathematics/lpsolve
777 - sys-libs/zlib
778 - virtual/glu
779 - virtual/jpeg:0
780 - virtual/opengl
781 - x11-libs/cairo[X]
782 - x11-libs/libXinerama
783 - x11-libs/libXrandr
784 - x11-libs/libXrender
785 - accessibility? (
786 - $(python_gen_cond_dep 'dev-python/lxml[${PYTHON_MULTI_USEDEP}]')
787 - )
788 - bluetooth? (
789 - dev-libs/glib:2
790 - net-wireless/bluez
791 - )
792 - coinmp? ( sci-libs/coinor-mp )
793 - cups? ( net-print/cups )
794 - dbus? ( sys-apps/dbus[X] )
795 - eds? (
796 - dev-libs/glib:2
797 - gnome-base/dconf
798 - gnome-extra/evolution-data-server
799 - )
800 - firebird? ( >=dev-db/firebird-3.0.2.32703.0-r1[server] )
801 - gstreamer? (
802 - media-libs/gstreamer:1.0
803 - media-libs/gst-plugins-base:1.0
804 - )
805 - gtk? (
806 - dev-libs/glib:2
807 - dev-libs/gobject-introspection
808 - gnome-base/dconf
809 - media-libs/mesa[egl]
810 - x11-libs/gtk+:3
811 - x11-libs/pango
812 - )
813 - kde? (
814 - dev-qt/qtcore:5
815 - dev-qt/qtgui:5
816 - dev-qt/qtwidgets:5
817 - dev-qt/qtx11extras:5
818 - kde-frameworks/kconfig:5
819 - kde-frameworks/kcoreaddons:5
820 - kde-frameworks/ki18n:5
821 - kde-frameworks/kio:5
822 - kde-frameworks/kwindowsystem:5
823 - )
824 - ldap? ( net-nds/openldap )
825 - libreoffice_extensions_scripting-beanshell? ( dev-java/bsh )
826 - libreoffice_extensions_scripting-javascript? ( dev-java/rhino:1.6 )
827 - mariadb? ( dev-db/mariadb-connector-c )
828 - !mariadb? ( dev-db/mysql-connector-c )
829 - pdfimport? ( app-text/poppler:=[cxx] )
830 - postgres? ( >=dev-db/postgresql-9.0:*[kerberos] )
831 -"
832 -# FIXME: cppunit should be moved to test conditional
833 -# after everything upstream is under gbuild
834 -# as dmake execute tests right away
835 -# tests apparently also need google-carlito-fonts (not packaged)
836 -DEPEND="${COMMON_DEPEND}
837 - >=dev-libs/libatomic_ops-7.2d
838 - dev-perl/Archive-Zip
839 - >=dev-util/cppunit-1.14.0
840 - >=dev-util/gperf-3.1
841 - dev-util/mdds:1/1.5
842 - media-libs/glm
843 - sys-devel/ucpp
844 - x11-base/xorg-proto
845 - x11-libs/libXt
846 - x11-libs/libXtst
847 - java? (
848 - dev-java/ant-core
849 - >=virtual/jdk-1.8
850 - )
851 - test? (
852 - app-crypt/gnupg
853 - dev-util/cppunit
854 - media-fonts/dejavu
855 - media-fonts/liberation-fonts
856 - )
857 -"
858 -RDEPEND="${COMMON_DEPEND}
859 - !app-office/libreoffice-bin
860 - !app-office/libreoffice-bin-debug
861 - !app-office/openoffice
862 - media-fonts/liberation-fonts
863 - || ( x11-misc/xdg-utils kde-plasma/kde-cli-tools )
864 - java? ( >=virtual/jre-1.8 )
865 - kde? ( kde-frameworks/breeze-icons:* )
866 -"
867 -if [[ ${MY_PV} != *9999* ]] && [[ ${PV} != *_* ]]; then
868 - PDEPEND="=app-office/libreoffice-l10n-$(ver_cut 1-2)*"
869 -else
870 - # Translations are not reliable on live ebuilds
871 - # rather force people to use english only.
872 - PDEPEND="!app-office/libreoffice-l10n"
873 -fi
874 -
875 -PATCHES=(
876 - # "${WORKDIR}"/${PATCHSET/.tar.xz/}
877 -
878 - # not upstreamable stuff
879 - "${FILESDIR}/${PN}-5.3.4.2-kioclient5.patch"
880 - "${FILESDIR}/${PN}-6.1-nomancompress.patch"
881 -
882 - # git master
883 - "${FILESDIR}/${PN}-6.4.3.2-boost-1.73.patch" # bug 721806
884 - "${FILESDIR}/${PN}-6.4.6.2-llvm-10.patch" # bug 713574
885 -)
886 -
887 -S="${WORKDIR}/${PN}-${MY_PV}"
888 -
889 -_check_reqs() {
890 - CHECKREQS_MEMORY="512M"
891 - if is-flagq "-g*" && ! is-flagq "-g*0" ; then
892 - CHECKREQS_DISK_BUILD="22G"
893 - else
894 - CHECKREQS_DISK_BUILD="6G"
895 - fi
896 - check-reqs_$1
897 -}
898 -
899 -pkg_pretend() {
900 - use base ||
901 - ewarn "If you plan to use Base application you must enable USE base."
902 - use java ||
903 - ewarn "Without USE java, several wizards are not going to be available."
904 -
905 - [[ ${MERGE_TYPE} != binary ]] && _check_reqs pkg_pretend
906 -}
907 -
908 -pkg_setup() {
909 - java-pkg-opt-2_pkg_setup
910 - python-single-r1_pkg_setup
911 - xdg_environment_reset
912 -
913 - [[ ${MERGE_TYPE} != binary ]] && _check_reqs pkg_setup
914 -}
915 -
916 -src_unpack() {
917 - default
918 -
919 - if [[ ${MY_PV} = *9999* ]]; then
920 - local base_uri branch mypv
921 - base_uri="https://anongit.freedesktop.org/git"
922 - branch="master"
923 - mypv=${MY_PV/.9999}
924 - [[ ${mypv} != ${MY_PV} ]] && branch="${PN}-${mypv/./-}"
925 - git-r3_fetch "${base_uri}/${PN}/core" "refs/heads/${branch}"
926 - git-r3_checkout "${base_uri}/${PN}/core"
927 - LOCOREGIT_VERSION=${EGIT_VERSION}
928 -
929 - git-r3_fetch "${base_uri}/${PN}/help" "refs/heads/master"
930 - git-r3_checkout "${base_uri}/${PN}/help" "helpcontent2" # doesn't match on help
931 - fi
932 -}
933 -
934 -src_prepare() {
935 - default
936 -
937 - # sandbox violations on many systems, we don't need it. Bug #646406
938 - sed -i \
939 - -e "/KF5_CONFIG/s/kf5-config/no/" \
940 - configure.ac || die "Failed to disable kf5-config"
941 -
942 - AT_M4DIR="m4" eautoreconf
943 - # hack in the autogen.sh
944 - touch autogen.lastrun
945 -
946 - # sed in the tests
947 - sed -i \
948 - -e "s#all : build unitcheck#all : build#g" \
949 - solenv/gbuild/Module.mk || die
950 - sed -i \
951 - -e "s#check: dev-install subsequentcheck#check: unitcheck slowcheck dev-install subsequentcheck#g" \
952 - -e "s#Makefile.gbuild all slowcheck#Makefile.gbuild all#g" \
953 - Makefile.in || die
954 -
955 - sed -i \
956 - -e "s,/usr/share/bash-completion/completions,$(get_bashcompdir)," \
957 - -e "s,\$INSTALLDIRNAME.sh,${PN}," \
958 - bin/distro-install-desktop-integration || die
959 -
960 - if use branding; then
961 - # hack...
962 - mv -v "${WORKDIR}/branding-intro.png" "icon-themes/colibre/brand/intro.png" || die
963 - fi
964 -
965 - # Don't list pdfimport support in desktop when built with none, bug # 605464
966 - if ! use pdfimport; then
967 - sed -i \
968 - -e ":MimeType: s:application/pdf;::" \
969 - -e ":Keywords: s:pdf;::" \
970 - sysui/desktop/menus/draw.desktop || die
971 - fi
972 -}
973 -
974 -src_configure() {
975 - # Set up Google API keys, see https://www.chromium.org/developers/how-tos/api-keys
976 - # Note: these are for Gentoo use ONLY. For your own distribution, please get
977 - # your own set of keys. Feel free to contact chromium@g.o for more info.
978 - local google_default_client_id="329227923882.apps.googleusercontent.com"
979 - local google_default_client_secret="vgKG0NNv7GoDpbtoFNLxCUXu"
980 -
981 - # optimization flags
982 - export GMAKE_OPTIONS="${MAKEOPTS}"
983 - # System python enablement:
984 - export PYTHON_CFLAGS=$(python_get_CFLAGS)
985 - export PYTHON_LIBS=$(python_get_LIBS)
986 -
987 - if use kde; then
988 - export QT_SELECT=5 # bug 639620 needs proper fix though
989 - export QT5DIR="$(qt5_get_bindir)/../"
990 - export MOC5="$(qt5_get_bindir)/moc"
991 - fi
992 -
993 - local gentoo_buildid="Gentoo official package"
994 - if [[ -n ${LOCOREGIT_VERSION} ]]; then
995 - gentoo_buildid+=" (from git: ${LOCOREGIT_VERSION})"
996 - fi
997 -
998 - # system headers/libs/...: enforce using system packages
999 - # --disable-breakpad: requires not-yet-in-tree dev-utils/breakpad
1000 - # --enable-cairo: ensure that cairo is always required
1001 - # --enable-*-link: link to the library rather than just dlopen on runtime
1002 - # --enable-release-build: build the libreoffice as release
1003 - # --disable-fetch-external: prevent dowloading during compile phase
1004 - # --enable-extension-integration: enable any extension integration support
1005 - # --without-{fonts,myspell-dicts,ppsd}: prevent install of sys pkgs
1006 - # --disable-report-builder: too much java packages pulled in without pkgs
1007 - # --without-system-sane: just sane.h header that is used for scan in writer,
1008 - # not linked or anything else, worthless to depend on
1009 - # --disable-pdfium: not yet packaged
1010 - # --without-system-qrencode: has no real build system and LO is the only user
1011 - local myeconfargs=(
1012 - --with-system-dicts
1013 - --with-system-epoxy
1014 - --with-system-headers
1015 - --with-system-jars
1016 - --with-system-libs
1017 - --enable-build-opensymbol
1018 - --enable-cairo-canvas
1019 - --enable-largefile
1020 - --enable-mergelibs
1021 - --enable-neon
1022 - --enable-python=system
1023 - --enable-randr
1024 - --enable-release-build
1025 - --disable-breakpad
1026 - --disable-bundle-mariadb
1027 - --disable-ccache
1028 - --disable-epm
1029 - --disable-fetch-external
1030 - --disable-gtk3-kde5
1031 - --disable-online-update
1032 - --disable-openssl
1033 - --disable-pdfium
1034 - --disable-vlc
1035 - --with-build-version="${gentoo_buildid}"
1036 - --enable-extension-integration
1037 - --with-external-dict-dir="${EPREFIX}/usr/share/myspell"
1038 - --with-external-hyph-dir="${EPREFIX}/usr/share/myspell"
1039 - --with-external-thes-dir="${EPREFIX}/usr/share/myspell"
1040 - --with-external-tar="${DISTDIR}"
1041 - --with-lang=""
1042 - --with-parallelism=$(makeopts_jobs)
1043 - --with-system-ucpp
1044 - --with-tls=nss
1045 - --with-vendor="Gentoo Foundation"
1046 - --with-x
1047 - --without-fonts
1048 - --without-myspell-dicts
1049 - --with-help="html"
1050 - --without-helppack-integration
1051 - --with-system-gpgmepp
1052 - --without-system-jfreereport
1053 - --without-system_apache_commons
1054 - --without-system-sane
1055 - --without-system-qrcodegen
1056 - $(use_enable base report-builder)
1057 - $(use_enable bluetooth sdremote-bluetooth)
1058 - $(use_enable coinmp)
1059 - $(use_enable cups)
1060 - $(use_enable dbus)
1061 - $(use_enable debug)
1062 - $(use_enable eds evolution2)
1063 - $(use_enable firebird firebird-sdbc)
1064 - $(use_enable gstreamer gstreamer-1-0)
1065 - $(use_enable gtk gtk3)
1066 - $(use_enable kde kf5)
1067 - $(use_enable kde qt5)
1068 - $(use_enable ldap)
1069 - $(use_enable odk)
1070 - $(use_enable pdfimport)
1071 - $(use_enable postgres postgresql-sdbc)
1072 - $(use_with accessibility lxml)
1073 - $(use_with coinmp system-coinmp)
1074 - $(use_with googledrive gdrive-client-id ${google_default_client_id})
1075 - $(use_with googledrive gdrive-client-secret ${google_default_client_secret})
1076 - $(use_with java)
1077 - $(use_with odk doxygen)
1078 - )
1079 -
1080 - if use eds || use gtk; then
1081 - myeconfargs+=( --enable-dconf --enable-gio )
1082 - else
1083 - myeconfargs+=( --disable-dconf --disable-gio )
1084 - fi
1085 -
1086 - # libreoffice extensions handling
1087 - for lo_xt in ${LO_EXTS}; do
1088 - if [[ "${lo_xt}" == "scripting-beanshell" || "${lo_xt}" == "scripting-javascript" ]]; then
1089 - myeconfargs+=( $(use_enable libreoffice_extensions_${lo_xt} ${lo_xt}) )
1090 - else
1091 - myeconfargs+=( $(use_enable libreoffice_extensions_${lo_xt} ext-${lo_xt}) )
1092 - fi
1093 - done
1094 -
1095 - if use java; then
1096 - # hsqldb: system one is too new
1097 - myeconfargs+=(
1098 - --without-junit
1099 - --without-system-hsqldb
1100 - --with-ant-home="${ANT_HOME}"
1101 - --with-jdk-home=$(java-config --jdk-home 2>/dev/null)
1102 - --with-jvm-path="${EPREFIX}/usr/lib/"
1103 - )
1104 -
1105 - use libreoffice_extensions_scripting-beanshell && \
1106 - myeconfargs+=( --with-beanshell-jar=$(java-pkg_getjar bsh bsh.jar) )
1107 -
1108 - use libreoffice_extensions_scripting-javascript && \
1109 - myeconfargs+=( --with-rhino-jar=$(java-pkg_getjar rhino-1.6 js.jar) )
1110 - fi
1111 -
1112 - is-flagq "-flto*" && myeconfargs+=( --enable-lto )
1113 -
1114 - MARIADBCONFIG="$(type -p $(usex mariadb mariadb mysql)_config)" \
1115 - econf "${myeconfargs[@]}"
1116 -}
1117 -
1118 -src_compile() {
1119 - # more and more LO stuff tries to use OpenGL, including tests during build
1120 - # bug 501508, bug 540624, bug 545974 and probably more
1121 - addpredict /dev/dri
1122 - addpredict /dev/ati
1123 - addpredict /dev/nvidiactl
1124 -
1125 - local target
1126 - use test && target="build" || target="build-nocheck"
1127 -
1128 - # this is not a proper make script
1129 - make ${target} || die
1130 -}
1131 -
1132 -src_test() {
1133 - make unitcheck || die
1134 - make slowcheck || die
1135 -}
1136 -
1137 -src_install() {
1138 - # This is not Makefile so no buildserver
1139 - emake DESTDIR="${D}" distro-pack-install -o build -o check
1140 -
1141 - # bug 593514
1142 - if use gtk; then
1143 - dosym libreoffice/program/liblibreofficekitgtk.so \
1144 - /usr/$(get_libdir)/liblibreofficekitgtk.so
1145 - fi
1146 -
1147 - # bash completion aliases
1148 - bashcomp_alias \
1149 - libreoffice \
1150 - unopkg loimpress lobase localc lodraw lomath lowriter lofromtemplate loweb loffice
1151 -
1152 - if use branding; then
1153 - insinto /usr/$(get_libdir)/${PN}/program
1154 - newins "${WORKDIR}/branding-sofficerc" sofficerc
1155 - dodir /etc/env.d
1156 - echo "CONFIG_PROTECT=/usr/$(get_libdir)/${PN}/program/sofficerc" > "${ED}"/etc/env.d/99${PN} || die
1157 - fi
1158 -
1159 - # bug 703474
1160 - insinto /usr/include
1161 - doins -r include/LibreOfficeKit
1162 -
1163 - local lodir=/usr/$(get_libdir)/libreoffice
1164 - # patching this would break tests
1165 - cat <<-EOF > "${T}"/uno.py
1166 -import sys, os
1167 -sys.path.append('${EPREFIX}${lodir}/program')
1168 -os.putenv('URE_BOOTSTRAP', 'vnd.sun.star.pathname:${EPREFIX}${lodir}/libreoffice/program/fundamentalrc')
1169 -EOF
1170 - sed -e "/^import sys/d" -e "/^import os/d" \
1171 - -i "${D}"${lodir}/program/uno.py || die "cleanup dupl imports failed"
1172 - cat "${D}"${lodir}/program/uno.py >> "${T}"/uno.py || die
1173 - cp "${T}"/uno.py "${D}"${lodir}/program/uno.py || die
1174 -
1175 - # more system pyuno mess
1176 - sed -e "/sOffice = \"\" # lets hope for the best/s:\"\":\"${EPREFIX}${lodir}/program\":" \
1177 - -i "${D}"${lodir}/program/officehelper.py || die
1178 -
1179 - python_optimize "${D}"${lodir}/program
1180 - # link python bridge in site-packages, bug 667802
1181 - local py pyc loprogdir=$(get_libdir)/libreoffice/program
1182 - for py in uno.py unohelper.py officehelper.py; do
1183 - dosym ../../../${loprogdir}/${py} $(python_get_sitedir)/${py}
1184 - while IFS="" read -d $'\0' -r pyc; do
1185 - pyc=${pyc//*\/}
1186 - dosym ../../../../${loprogdir}/__pycache__/${pyc} $(python_get_sitedir)/__pycache__/${pyc}
1187 - done < <(find "${D}"${lodir}/program -type f -name ${py/.py/*.pyc} -print0)
1188 - done
1189 -}
1190 -
1191 -pkg_postinst() {
1192 - xdg_icon_cache_update
1193 - xdg_desktop_database_update
1194 - xdg_mimeinfo_database_update
1195 -}
1196 -
1197 -pkg_postrm() {
1198 - xdg_icon_cache_update
1199 - xdg_desktop_database_update
1200 - xdg_mimeinfo_database_update
1201 -}