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/, app-office/libreoffice/files/
Date: Sun, 08 May 2022 13:35:37
Message-Id: 1652016218.5b15e94bb46b71f312a89fc3289db0a68c1bdca9.asturm@gentoo
1 commit: 5b15e94bb46b71f312a89fc3289db0a68c1bdca9
2 Author: Andreas Sturmlechner <asturm <AT> gentoo <DOT> org>
3 AuthorDate: Sun May 8 12:34:45 2022 +0000
4 Commit: Andreas Sturmlechner <asturm <AT> gentoo <DOT> org>
5 CommitDate: Sun May 8 13:23:38 2022 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=5b15e94b
7
8 app-office/libreoffice: Drop 7.2.5.2-r1
9
10 Package-Manager: Portage-3.0.30, Repoman-3.0.3
11 Signed-off-by: Andreas Sturmlechner <asturm <AT> gentoo.org>
12
13 app-office/libreoffice/Manifest | 2 -
14 .../files/libreoffice-7.2.5.2-kf591.patch | 56 --
15 .../libreoffice/libreoffice-7.2.5.2-r1.ebuild | 665 ---------------------
16 3 files changed, 723 deletions(-)
17
18 diff --git a/app-office/libreoffice/Manifest b/app-office/libreoffice/Manifest
19 index 5f0f654063a8..644b9adc3ee6 100644
20 --- a/app-office/libreoffice/Manifest
21 +++ b/app-office/libreoffice/Manifest
22 @@ -18,11 +18,9 @@ DIST eeb2c7ddf0d302fba4bfc6e97eac9624-libbase-1.1.6.zip 427800 BLAKE2B d3ac085a3
23 DIST f94d9870737518e3b597f9265f4e9803-libserializer-1.1.6.zip 211919 BLAKE2B 2c72493e44d3ad1714d294fb7baaa85d33fef2eb4ce75bf507b65f78f1d9d399bb5eb72cee188a8abc4b234eb2845a26755791fb3ac104ffe6e55013ab41ca8b SHA512 c1a15ebbfe817ec79d4b3f1c97d096bf8511737d7d35d97302856ccfb3de14a1cd16bd31000415d9ab24bbd9ef770d37855cee4b819ff0e8fca2f2766920a114
24 DIST libcmis-0.5.2.tar.xz 484404 BLAKE2B 7de242393c28fc8289bb598b34e704eb2affaaa8b9e470e10044dbfd3812391f29e1421df8d7ac3869955698ddbc9575feebcfbac27bb074a60ccc0527dca1c3 SHA512 295ab15115e75b1f6074f17d3538afe0de9b2b77ab454f5c63cb05e8df11886d82942fbf21ba01486052e3f6c75b0636b99d8e660cd3472dc4b87c31d3cd557b
25 DIST libcuckoo-93217f8d391718380c508a722ab9acd5e9081233.tar.gz 5005888 BLAKE2B 836ec268c19c27ac079ea1084587c3e999f39ad2188be1a5cf8337ad0473ffda6c32d0695254d3797d1607707329befa88da6043f424544487238e550eda8590 SHA512 4159dfb4d08e359feb23127e12db590260913e70774161ac9513abb5183ad6ed6d2bdfbe56fc8aa68e2fc57ee29eae67aa0180e1a7d955016884ecba2ca60ff8
26 -DIST libreoffice-7.2.5.2.tar.xz 252977224 BLAKE2B c8221824ed4747ad7fd9534c6c3d612fa711f78b382587345c5a5604a263b7697fb03c77c1927343052ebcd0aa8db2d693208599137bc8884eeb1bf408951463 SHA512 a84682597e10fabb8c1605b785510fa5fe861f3056f61bd01513e1de6ebdb8a343d254af063cd977e4379348ad28d8a457989b3d42014f1c18d5d85626f6dfe8
27 DIST libreoffice-7.2.6.2.tar.xz 252995284 BLAKE2B b807e666d39b4302b0a33f84f7e8797bc41ec9e1814bfe57f0e06c8bbbf3b8bf89a70a25caa65401f402a593acce04cb1118bd13bbd961d7feeac295511e36e4 SHA512 2b1a92d98595d4a40bf699ebf5ee3cbf4daeb765a8d37ae035f459f2a74c2ce27e53747307d9875aaec7d1d5a2693266ea81b7fe1281c33653c9fa4bbd727242
28 DIST libreoffice-7.3.2.2.tar.xz 255657596 BLAKE2B ef362c6e53ab8668309f1f9b10a8cbb87e8027aaf56a3d1185494757376b89bdf126fe08ef3e416d0330bb96df4ac046b8c60d535eeef8430c60485313e80b5f SHA512 c9f0deaf812425cfc08649f5a9f88c56a9f9221a6b117f9fece56ed17984fec25446ccad52ff2f22ebdfa1db495289edb22a8b7b1fec7a0e42d4b3cd2e81363b
29 DIST libreoffice-branding-gentoo-0.8.tar.xz 151568 BLAKE2B f03c7ddeb53c5ca3fd23401679601fcf2c4037ba17be4eb7b784c7ce7ebb71a24b8ab4aac8b7da8c6b1f14dd23bc1294ba85ff4f70ad271fb4ee3c5372e10883 SHA512 785031a699b1d1895ce4b50ffc3ddf645f3a0ef9acdf37facfd18cf75db9484cb8f53a50abb63d6006ead76a80b6ff5aa99661063245ebb84bd64013d713de7f
30 -DIST libreoffice-help-7.2.5.2.tar.xz 112080572 BLAKE2B 9c07cec6cd6c639335c38af65f3dccf331200422f670fa225e355117062f5ad2a8173c5f59ee63137aa480e8db307b0671e4a7a0ff503ea3a034e126e0464120 SHA512 70ffcb1a96637dabd9a658151d2b88a92dd8a89cd396609339ec5470b93fbc2ae589a434b4f09d22fc8ad515369a646dd8040c33e6a91977dd7158f57cd48e00
31 DIST libreoffice-help-7.2.6.2.tar.xz 112079748 BLAKE2B f9d96d6d72e70f28f12dcf656cf8fd22bc8e563ec53c840cf7cd668e3de677ee73a3f3099e7c62c6034cd4d23915b9e7a94012340c6a7db7f8822e4c8c6d0887 SHA512 05f02eb1afaa90547ca388008e02c4a48c191984e77d4022adf02089f69a3b4792cdc065e160f59fbf2f5554b062ff0d6853b12aa9abb9b180dd7c4c855e4d8b
32 DIST libreoffice-help-7.3.2.2.tar.xz 112209056 BLAKE2B 320aa76bdce62b94707cd3b6fafd72ce0322e22f28fbb6059b8e1b5b4ef5e99796aee01592a84bf19527bffc0553b937f2d13451e75f105338beb6c1ac1ca077 SHA512 a1f5b1763841b159c623008075ad48ed916c78a856b557553c498590a7c9cd52e23487652c4ab4e4201fc829e7bf4a489ab467e4f412b5538252d893bd74341d
33 DIST skia-m90-45c57e116ee0ce214bdf78405a4762722e4507d9.tar.xz 10630696 BLAKE2B a3d42d08a0622de591d177184b6225cf62e3048d02d8f2012b6b02aae186b644c899c4e73b528b3528a4acec6cec07e3576dd6d97b130fedf3b2ec5b2ddf4ed7 SHA512 625ed461d85ce5c5c73ffd20bc3f2c9b5fe6ba557693b793b387ffb434d4f0d9056bd9befe6760c55e9e47f09c02373a49b8ac106162a40d940ea351e8c873c0
34
35 diff --git a/app-office/libreoffice/files/libreoffice-7.2.5.2-kf591.patch b/app-office/libreoffice/files/libreoffice-7.2.5.2-kf591.patch
36 deleted file mode 100644
37 index ac920867e4d5..000000000000
38 --- a/app-office/libreoffice/files/libreoffice-7.2.5.2-kf591.patch
39 +++ /dev/null
40 @@ -1,56 +0,0 @@
41 -From 5fd5e42bf28a7910321c6b6d76257e7386839fbc Mon Sep 17 00:00:00 2001
42 -From: Michael Weghorn <m.weghorn@××××××.de>
43 -Date: Wed, 16 Feb 2022 13:38:47 +0100
44 -Subject: configure.ac: Update kf5 include/lib check to work with KF5 >= 5.91
45 -
46 -The 'kcoreaddons_version.h' header was moved to the 'KCoreAddons'
47 -subdirectory in kcoreaddons commit
48 -
49 - commit d971ba9bb27a3e8f18a116692fdf98c1729ac244
50 - Author: Ahmad Samir <a.samirh78@×××××.com>
51 - Date: Sat Jan 15 14:14:13 2022 +0200
52 -
53 - Install kcoreaddons_version.h in /usr/include/KF5/KCoreAddons/
54 -
55 - Instead of /usr/include/KF5/kcoreaddons_version.h.
56 -
57 - For more details see:
58 - https://invent.kde.org/frameworks/kservice/-/merge_requests/79
59 -
60 - GIT_SILENT
61 -
62 -Adapt the KF5 check to check for the 'KFileWidget' header and
63 -the 'libKF5KIOFileWidgets.so' library instead.
64 -This is more exact anyway, since we require KIOFileWidgets,
65 -and the previous check didn't ensure that.
66 -(So in case only KF5CoreAddons but not KIOFileWidgets was installed,
67 -configure would previously pass, but the build fail.)
68 -
69 -[1] https://invent.kde.org/frameworks/kcoreaddons/-/commit/d971ba9bb27a3e8f18a116692fdf98c1729ac244
70 -
71 -Change-Id: I7ecf7f29dce85e1a6e6b0d4f2519fa37ab04ca84
72 -Reviewed-on: https://gerrit.libreoffice.org/c/core/+/129996
73 -Tested-by: Jenkins
74 -Reviewed-by: Michael Weghorn <m.weghorn@××××××.de>
75 ----
76 - configure.ac | 4 ++--
77 - 1 file changed, 2 insertions(+), 2 deletions(-)
78 -
79 -diff --git a/configure.ac b/configure.ac
80 -index 6acb3107cea3..4e84f9a33980 100644
81 ---- a/configure.ac
82 -+++ b/configure.ac
83 -@@ -13017,8 +13017,8 @@ then
84 - kf5_libdirs="$kf5_libdirs /usr/lib64 /usr/lib64/kf5 /usr/lib64/kf5/devel"
85 - fi
86 -
87 -- kf5_test_include="KF5/kcoreaddons_version.h"
88 -- kf5_test_library="libKF5CoreAddons.so"
89 -+ kf5_test_include="KF5/KIOFileWidgets/KFileWidget"
90 -+ kf5_test_library="libKF5KIOFileWidgets.so"
91 - kf5_libdirs="$qt5_libdir $kf5_libdirs"
92 -
93 - dnl kf5 KDE4 support compatibility installed
94 ---
95 -cgit v1.2.1
96 -
97
98 diff --git a/app-office/libreoffice/libreoffice-7.2.5.2-r1.ebuild b/app-office/libreoffice/libreoffice-7.2.5.2-r1.ebuild
99 deleted file mode 100644
100 index 58d6d820c38c..000000000000
101 --- a/app-office/libreoffice/libreoffice-7.2.5.2-r1.ebuild
102 +++ /dev/null
103 @@ -1,665 +0,0 @@
104 -# Copyright 1999-2022 Gentoo Authors
105 -# Distributed under the terms of the GNU General Public License v2
106 -
107 -EAPI=7
108 -
109 -PYTHON_COMPAT=( python3_{8..10} )
110 -PYTHON_REQ_USE="threads(+),xml"
111 -
112 -MY_PV="${PV/_alpha/.alpha}"
113 -MY_PV="${MY_PV/_beta/.beta}"
114 -# experimental ; release ; old
115 -# Usually the tarballs are moved a lot so this should make everyone happy.
116 -DEV_URI="
117 - https://dev-builds.libreoffice.org/pre-releases/src
118 - https://download.documentfoundation.org/libreoffice/src/${MY_PV:0:5}/
119 - https://downloadarchive.documentfoundation.org/libreoffice/old/${MY_PV}/src
120 -"
121 -ADDONS_URI="https://dev-www.libreoffice.org/src/"
122 -
123 -BRANDING="${PN}-branding-gentoo-0.8.tar.xz"
124 -# PATCHSET="${P}-patchset-01.tar.xz"
125 -
126 -[[ ${MY_PV} == *9999* ]] && inherit git-r3
127 -inherit autotools bash-completion-r1 check-reqs eapi8-dosym flag-o-matic java-pkg-opt-2 multiprocessing python-single-r1 qmake-utils toolchain-funcs xdg-utils
128 -
129 -DESCRIPTION="A full office productivity suite"
130 -HOMEPAGE="https://www.libreoffice.org"
131 -SRC_URI="branding? ( https://dev.gentoo.org/~dilfridge/distfiles/${BRANDING} )"
132 -[[ -n ${PATCHSET} ]] && SRC_URI+=" https://dev.gentoo.org/~asturm/distfiles/${PATCHSET}"
133 -
134 -# Split modules following git/tarballs; Core MUST be first!
135 -# Help is used for the image generator
136 -# Only release has the tarballs
137 -if [[ ${MY_PV} != *9999* ]]; then
138 - for i in ${DEV_URI}; do
139 - SRC_URI+=" ${i}/${PN}-${MY_PV}.tar.xz"
140 - SRC_URI+=" ${i}/${PN}-help-${MY_PV}.tar.xz"
141 - done
142 - unset i
143 -fi
144 -unset DEV_URI
145 -
146 -# Really required addons
147 -# These are bundles that can't be removed for now due to huge patchsets.
148 -# If you want them gone, patches are welcome.
149 -ADDONS_SRC=(
150 - # broken against latest upstream release, too many patches on top:
151 - # https://github.com/tdf/libcmis/pull/43
152 - "${ADDONS_URI}/libcmis-0.5.2.tar.xz"
153 - # not packaged in Gentoo, https://www.netlib.org/fp/dtoa.c
154 - "${ADDONS_URI}/dtoa-20180411.tgz"
155 - # not packaged in Gentoo, https://skia.org/
156 - "${ADDONS_URI}/skia-m90-45c57e116ee0ce214bdf78405a4762722e4507d9.tar.xz"
157 - "base? (
158 - ${ADDONS_URI}/commons-logging-1.2-src.tar.gz
159 - ${ADDONS_URI}/ba2930200c9f019c2d93a8c88c651a0f-flow-engine-0.9.4.zip
160 - ${ADDONS_URI}/d8bd5eed178db6e2b18eeed243f85aa8-flute-1.1.6.zip
161 - ${ADDONS_URI}/eeb2c7ddf0d302fba4bfc6e97eac9624-libbase-1.1.6.zip
162 - ${ADDONS_URI}/3bdf40c0d199af31923e900d082ca2dd-libfonts-1.1.6.zip
163 - ${ADDONS_URI}/3404ab6b1792ae5f16bbd603bd1e1d03-libformula-1.1.7.zip
164 - ${ADDONS_URI}/db60e4fde8dd6d6807523deb71ee34dc-liblayout-0.2.10.zip
165 - ${ADDONS_URI}/97b2d4dba862397f446b217e2b623e71-libloader-1.1.6.zip
166 - ${ADDONS_URI}/8ce2fcd72becf06c41f7201d15373ed9-librepository-1.1.6.zip
167 - ${ADDONS_URI}/f94d9870737518e3b597f9265f4e9803-libserializer-1.1.6.zip
168 - ${ADDONS_URI}/ace6ab49184e329db254e454a010f56d-libxml-1.1.7.zip
169 - ${ADDONS_URI}/39bb3fcea1514f1369fcfc87542390fd-sacjava-1.3.zip
170 - )"
171 - "java? ( ${ADDONS_URI}/17410483b5b5f267aa18b7e00b65e6e0-hsqldb_1_8_0.zip )"
172 - # no release for 8 years, should we package it?
173 - "libreoffice_extensions_wiki-publisher? ( ${ADDONS_URI}/a7983f859eafb2677d7ff386a023bc40-xsltml_2.1.2.zip )"
174 - # Does not build with 1.6 rhino at all
175 - "libreoffice_extensions_scripting-javascript? ( ${ADDONS_URI}/798b2ffdc8bcfe7bca2cf92b62caf685-rhino1_5R5.zip )"
176 - # requirement of rhino
177 - "libreoffice_extensions_scripting-javascript? ( ${ADDONS_URI}/35c94d2df8893241173de1d16b6034c0-swingExSrc.zip )"
178 - # not packageable
179 - "odk? ( http://download.go-oo.org/extern/185d60944ea767075d27247c3162b3bc-unowinreg.dll )"
180 -)
181 -SRC_URI+=" ${ADDONS_SRC[*]}"
182 -
183 -unset ADDONS_URI
184 -unset ADDONS_SRC
185 -
186 -# Extensions that need extra work:
187 -LO_EXTS="nlpsolver scripting-beanshell scripting-javascript wiki-publisher"
188 -
189 -IUSE="accessibility base bluetooth +branding clang coinmp +cups custom-cflags +dbus debug eds firebird
190 -googledrive gstreamer +gtk kde ldap +mariadb odk pdfimport postgres test vulkan
191 -$(printf 'libreoffice_extensions_%s ' ${LO_EXTS})"
192 -
193 -REQUIRED_USE="${PYTHON_REQUIRED_USE}
194 - base? ( firebird java )
195 - bluetooth? ( dbus )
196 - gtk? ( dbus )
197 - libreoffice_extensions_nlpsolver? ( java )
198 - libreoffice_extensions_scripting-beanshell? ( java )
199 - libreoffice_extensions_scripting-javascript? ( java )
200 - libreoffice_extensions_wiki-publisher? ( java )
201 -"
202 -
203 -RESTRICT="!test? ( test )"
204 -
205 -LICENSE="|| ( LGPL-3 MPL-1.1 )"
206 -SLOT="0"
207 -
208 -[[ ${MY_PV} == *9999* ]] || \
209 -KEYWORDS="amd64 ~arm arm64 ~ppc64 x86 ~amd64-linux"
210 -
211 -COMMON_DEPEND="${PYTHON_DEPS}
212 - app-arch/unzip
213 - app-arch/zip
214 - app-crypt/gpgme:=[cxx]
215 - app-text/hunspell:=
216 - >=app-text/libabw-0.1.0
217 - >=app-text/libebook-0.1
218 - app-text/libepubgen
219 - >=app-text/libetonyek-0.1
220 - app-text/libexttextcat
221 - app-text/liblangtag
222 - >=app-text/libmspub-0.1.0
223 - >=app-text/libmwaw-0.3.1
224 - >=app-text/libnumbertext-1.0.6
225 - >=app-text/libodfgen-0.1.0
226 - app-text/libqxp
227 - app-text/libstaroffice
228 - app-text/libwpd:0.10[tools]
229 - app-text/libwpg:0.3
230 - >=app-text/libwps-0.4
231 - app-text/mythes
232 - >=dev-cpp/clucene-2.3.3.4-r2
233 - >=dev-cpp/libcmis-0.5.2
234 - dev-db/unixODBC
235 - dev-lang/perl
236 - >=dev-libs/boost-1.72.0:=[nls]
237 - dev-libs/expat
238 - dev-libs/hyphen
239 - dev-libs/icu:=
240 - dev-libs/libassuan
241 - dev-libs/libgpg-error
242 - dev-libs/liborcus:0/0.16
243 - dev-libs/librevenge
244 - dev-libs/libxml2
245 - dev-libs/libxslt
246 - dev-libs/nspr
247 - dev-libs/nss
248 - >=dev-libs/redland-1.0.16
249 - >=dev-libs/xmlsec-1.2.28[nss]
250 - >=games-engines/box2d-2.4.1:0
251 - media-gfx/fontforge
252 - media-gfx/graphite2
253 - media-libs/fontconfig
254 - >=media-libs/freetype-2.11.0-r1:2
255 - >=media-libs/harfbuzz-0.9.42:=[graphite,icu]
256 - media-libs/lcms:2
257 - >=media-libs/libcdr-0.1.0
258 - >=media-libs/libepoxy-1.3.1[X]
259 - >=media-libs/libfreehand-0.1.0
260 - media-libs/libpagemaker
261 - >=media-libs/libpng-1.4:0=
262 - >=media-libs/libvisio-0.1.0
263 - media-libs/libzmf
264 - media-libs/zxing-cpp
265 - >=net-libs/neon-0.31.1:=
266 - net-misc/curl
267 - sci-mathematics/lpsolve
268 - sys-libs/zlib
269 - virtual/jpeg:0
270 - virtual/opengl
271 - x11-libs/cairo[X]
272 - x11-libs/libXinerama
273 - x11-libs/libXrandr
274 - x11-libs/libXrender
275 - accessibility? (
276 - $(python_gen_cond_dep 'dev-python/lxml[${PYTHON_USEDEP}]')
277 - )
278 - bluetooth? (
279 - dev-libs/glib:2
280 - net-wireless/bluez
281 - )
282 - coinmp? ( sci-libs/coinor-mp )
283 - cups? ( net-print/cups )
284 - dbus? ( sys-apps/dbus[X] )
285 - eds? (
286 - dev-libs/glib:2
287 - gnome-base/dconf
288 - gnome-extra/evolution-data-server
289 - )
290 - firebird? ( >=dev-db/firebird-3.0.2.32703.0-r1[server] )
291 - gstreamer? (
292 - media-libs/gstreamer:1.0
293 - media-libs/gst-plugins-base:1.0
294 - )
295 - gtk? (
296 - dev-libs/glib:2
297 - dev-libs/gobject-introspection
298 - gnome-base/dconf
299 - media-libs/mesa[egl(+)]
300 - x11-libs/gtk+:3[X]
301 - x11-libs/pango
302 - )
303 - kde? (
304 - dev-qt/qtcore:5
305 - dev-qt/qtgui:5
306 - dev-qt/qtwidgets:5
307 - dev-qt/qtx11extras:5
308 - kde-frameworks/kconfig:5
309 - kde-frameworks/kcoreaddons:5
310 - kde-frameworks/ki18n:5
311 - kde-frameworks/kio:5
312 - kde-frameworks/kwindowsystem:5
313 - )
314 - ldap? ( net-nds/openldap:= )
315 - libreoffice_extensions_scripting-beanshell? ( dev-java/bsh )
316 - libreoffice_extensions_scripting-javascript? ( dev-java/rhino:1.6 )
317 - mariadb? ( dev-db/mariadb-connector-c:= )
318 - !mariadb? ( dev-db/mysql-connector-c:= )
319 - pdfimport? ( app-text/poppler:=[cxx] )
320 - postgres? ( >=dev-db/postgresql-9.0:*[kerberos] )
321 -"
322 -# FIXME: cppunit should be moved to test conditional
323 -# after everything upstream is under gbuild
324 -# as dmake execute tests right away
325 -# tests apparently also need google-carlito-fonts (not packaged)
326 -DEPEND="${COMMON_DEPEND}
327 - >=dev-libs/libatomic_ops-7.2d
328 - dev-perl/Archive-Zip
329 - >=dev-util/cppunit-1.14.0
330 - >=dev-util/gperf-3.1
331 - dev-util/mdds:1/1.5
332 - media-libs/glm
333 - sys-devel/ucpp
334 - x11-base/xorg-proto
335 - x11-libs/libXt
336 - x11-libs/libXtst
337 - java? (
338 - dev-java/ant-core
339 - || (
340 - dev-java/openjdk:11
341 - dev-java/openjdk-bin:11
342 - )
343 - )
344 - test? (
345 - app-crypt/gnupg
346 - dev-util/cppunit
347 - media-fonts/dejavu
348 - media-fonts/liberation-fonts
349 - )
350 -"
351 -RDEPEND="${COMMON_DEPEND}
352 - !app-office/libreoffice-bin
353 - !app-office/libreoffice-bin-debug
354 - media-fonts/liberation-fonts
355 - || ( x11-misc/xdg-utils kde-plasma/kde-cli-tools )
356 - java? ( || (
357 - dev-java/openjdk:11
358 - dev-java/openjdk-jre-bin:11
359 - >=virtual/jre-1.8
360 - ) )
361 - kde? ( kde-frameworks/breeze-icons:* )
362 -"
363 -BDEPEND="
364 - dev-util/intltool
365 - sys-devel/bison
366 - sys-devel/flex
367 - sys-devel/gettext
368 - virtual/pkgconfig
369 - clang? (
370 - || (
371 - ( sys-devel/clang:13
372 - sys-devel/llvm:13
373 - =sys-devel/lld-13* )
374 - ( sys-devel/clang:12
375 - sys-devel/llvm:12
376 - =sys-devel/lld-12* )
377 - ( sys-devel/clang:11
378 - sys-devel/llvm:11
379 - =sys-devel/lld-11* )
380 - )
381 - )
382 - odk? ( >=app-doc/doxygen-1.8.4 )
383 -"
384 -if [[ ${MY_PV} != *9999* ]] && [[ ${PV} != *_* ]]; then
385 - PDEPEND="=app-office/libreoffice-l10n-$(ver_cut 1-2)*"
386 -else
387 - # Translations are not reliable on live ebuilds
388 - # rather force people to use english only.
389 - PDEPEND="!app-office/libreoffice-l10n"
390 -fi
391 -
392 -PATCHES=(
393 - # "${WORKDIR}"/${PATCHSET/.tar.xz/}
394 -
395 - # not upstreamable stuff
396 - "${FILESDIR}/${PN}-5.3.4.2-kioclient5.patch"
397 - "${FILESDIR}/${PN}-6.1-nomancompress.patch"
398 - "${FILESDIR}/${PN}-7.2.0.4-qt5detect.patch"
399 -
400 - # 7.3 branch
401 - "${FILESDIR}/${PN}-7.2.2.2-makefile-gengal.patch"
402 -
403 - # master branch
404 - "${FILESDIR}/${PN}-7.2.5.2-kf591.patch"
405 -)
406 -
407 -S="${WORKDIR}/${PN}-${MY_PV}"
408 -
409 -_check_reqs() {
410 - CHECKREQS_MEMORY="512M"
411 - if is-flagq "-g*" && ! is-flagq "-g*0" ; then
412 - CHECKREQS_DISK_BUILD="22G"
413 - else
414 - CHECKREQS_DISK_BUILD="6G"
415 - fi
416 - check-reqs_$1
417 -}
418 -
419 -pkg_pretend() {
420 - if use x86; then
421 - elog "Unfortunately for packaging reasons on x86, various Java-based wizards,"
422 - elog "most notably Report Builder in LibreOffice Base, will not be available."
423 - elog "See also: https://bugs.gentoo.org/785640"
424 - else
425 - use base ||
426 - ewarn "If you plan to use Base application you must enable USE base."
427 - use java ||
428 - ewarn "Without USE java, several wizards are not going to be available."
429 - fi
430 -
431 - [[ ${MERGE_TYPE} != binary ]] && _check_reqs pkg_pretend
432 -}
433 -
434 -pkg_setup() {
435 - java-pkg-opt-2_pkg_setup
436 - python-single-r1_pkg_setup
437 - xdg_environment_reset
438 -
439 - [[ ${MERGE_TYPE} != binary ]] && _check_reqs pkg_setup
440 -}
441 -
442 -src_unpack() {
443 - default
444 -
445 - if [[ ${MY_PV} = *9999* ]]; then
446 - local base_uri branch mypv
447 - base_uri="https://anongit.freedesktop.org/git"
448 - branch="master"
449 - mypv=${MY_PV/.9999}
450 - [[ ${mypv} != ${MY_PV} ]] && branch="${PN}-${mypv/./-}"
451 - git-r3_fetch "${base_uri}/${PN}/core" "refs/heads/${branch}"
452 - git-r3_checkout "${base_uri}/${PN}/core"
453 - LOCOREGIT_VERSION=${EGIT_VERSION}
454 -
455 - git-r3_fetch "${base_uri}/${PN}/help" "refs/heads/master"
456 - git-r3_checkout "${base_uri}/${PN}/help" "helpcontent2" # doesn't match on help
457 - fi
458 -}
459 -
460 -src_prepare() {
461 - default
462 -
463 - # sandbox violations on many systems, we don't need it. Bug #646406
464 - sed -i \
465 - -e "/KF5_CONFIG/s/kf5-config/no/" \
466 - configure.ac || die "Failed to disable kf5-config"
467 -
468 - AT_M4DIR="m4" eautoreconf
469 - # hack in the autogen.sh
470 - touch autogen.lastrun
471 -
472 - # sed in the tests
473 - sed -i \
474 - -e "s#all : build unitcheck#all : build#g" \
475 - solenv/gbuild/Module.mk || die
476 - sed -i \
477 - -e "s#check: dev-install subsequentcheck#check: unitcheck slowcheck dev-install subsequentcheck#g" \
478 - -e "s#Makefile.gbuild all slowcheck#Makefile.gbuild all#g" \
479 - Makefile.in || die
480 -
481 - sed -i \
482 - -e "s,/usr/share/bash-completion/completions,$(get_bashcompdir)," \
483 - -e "s,\$INSTALLDIRNAME.sh,${PN}," \
484 - bin/distro-install-desktop-integration || die
485 -
486 - if use branding; then
487 - # hack...
488 - mv -v "${WORKDIR}/branding-intro.png" "icon-themes/colibre/brand/intro.png" || die
489 - fi
490 -
491 - # Don't list pdfimport support in desktop when built with none, bug # 605464
492 - if ! use pdfimport; then
493 - sed -i \
494 - -e ":MimeType: s:application/pdf;::" \
495 - -e ":Keywords: s:pdf;::" \
496 - sysui/desktop/menus/draw.desktop || die
497 - fi
498 -}
499 -
500 -src_configure() {
501 - # Set up Google API keys, see https://www.chromium.org/developers/how-tos/api-keys
502 - # Note: these are for Gentoo use ONLY. For your own distribution, please get
503 - # your own set of keys. Feel free to contact chromium@g.o for more info.
504 - local google_default_client_id="329227923882.apps.googleusercontent.com"
505 - local google_default_client_secret="vgKG0NNv7GoDpbtoFNLxCUXu"
506 -
507 - # Show flags set at the beginning
508 - einfo "Preset CFLAGS: ${CFLAGS}"
509 - einfo "Preset LDFLAGS: ${LDFLAGS}"
510 -
511 - if use clang ; then
512 - # Force clang
513 - einfo "Enforcing the use of clang due to USE=clang ..."
514 - AR=llvm-ar
515 - CC=${CHOST}-clang
516 - CXX=${CHOST}-clang++
517 - NM=llvm-nm
518 - RANLIB=llvm-ranlib
519 - LDFLAGS+=" -fuse-ld=lld"
520 - else
521 - # Force gcc
522 - einfo "Enforcing the use of gcc due to USE=-clang ..."
523 - AR=gcc-ar
524 - CC=${CHOST}-gcc
525 - CXX=${CHOST}-g++
526 - NM=gcc-nm
527 - RANLIB=gcc-ranlib
528 - fi
529 -
530 - if use custom-cflags ; then
531 - elog "USE=custom-cflags has been selected. You are on your own to make sure that"
532 - elog "the build succeeds. Good luck!"
533 - else
534 - strip-flags
535 - fi
536 -
537 - export LO_CLANG_CC=${CC}
538 - export LO_CLANG_CXX=${CXX}
539 -
540 - # Show flags set at the end
541 - einfo " Used CFLAGS: ${CFLAGS}"
542 - einfo " Used LDFLAGS: ${LDFLAGS}"
543 -
544 - # Ensure we use correct toolchain
545 - tc-export CC CXX LD AR NM OBJDUMP RANLIB PKG_CONFIG
546 -
547 - if use vulkan && ! use clang ; then
548 - ewarn "Building skia with gcc may lead to performance issues. Disable vulkan or enable clang."
549 - fi
550 -
551 - # optimization flags
552 - export GMAKE_OPTIONS="${MAKEOPTS}"
553 - # System python enablement:
554 - export PYTHON_CFLAGS=$(python_get_CFLAGS)
555 - export PYTHON_LIBS=$(python_get_LIBS)
556 -
557 - use kde && export QT5DIR="$(qt5_get_bindir)/.."
558 -
559 - local gentoo_buildid="Gentoo official package"
560 - if [[ -n ${LOCOREGIT_VERSION} ]]; then
561 - gentoo_buildid+=" (from git: ${LOCOREGIT_VERSION})"
562 - fi
563 -
564 - # system headers/libs/...: enforce using system packages
565 - # --disable-breakpad: requires not-yet-in-tree dev-utils/breakpad
566 - # --enable-cairo: ensure that cairo is always required
567 - # --enable-*-link: link to the library rather than just dlopen on runtime
568 - # --enable-release-build: build the libreoffice as release
569 - # --disable-fetch-external: prevent dowloading during compile phase
570 - # --enable-extension-integration: enable any extension integration support
571 - # --without-{fonts,myspell-dicts,ppsd}: prevent install of sys pkgs
572 - # --disable-report-builder: too much java packages pulled in without pkgs
573 - # --without-system-sane: just sane.h header that is used for scan in writer,
574 - # not linked or anything else, worthless to depend on
575 - # --disable-pdfium: not yet packaged
576 - local myeconfargs=(
577 - --with-system-dicts
578 - --with-system-epoxy
579 - --with-system-headers
580 - --with-system-jars
581 - --with-system-libs
582 - --enable-build-opensymbol
583 - --enable-cairo-canvas
584 - --enable-largefile
585 - --enable-mergelibs
586 - --enable-python=system
587 - --enable-randr
588 - --enable-release-build
589 - --disable-breakpad
590 - --disable-bundle-mariadb
591 - --disable-ccache
592 - --disable-epm
593 - --disable-fetch-external
594 - --disable-gtk3-kde5
595 - --disable-online-update
596 - --disable-openssl
597 - --disable-pdfium
598 - --with-extra-buildid="${gentoo_buildid}"
599 - --enable-extension-integration
600 - --with-external-dict-dir="${EPREFIX}/usr/share/myspell"
601 - --with-external-hyph-dir="${EPREFIX}/usr/share/myspell"
602 - --with-external-thes-dir="${EPREFIX}/usr/share/myspell"
603 - --with-external-tar="${DISTDIR}"
604 - --with-lang=""
605 - --with-parallelism=$(makeopts_jobs)
606 - --with-system-ucpp
607 - --with-tls=nss
608 - --with-vendor="Gentoo Foundation"
609 - --with-webdav
610 - --with-x
611 - --without-fonts
612 - --without-myspell-dicts
613 - --with-help="html"
614 - --without-helppack-integration
615 - --with-system-gpgmepp
616 - --without-system-jfreereport
617 - --without-system-libcmis
618 - --without-system-sane
619 - $(use_enable base report-builder)
620 - $(use_enable bluetooth sdremote-bluetooth)
621 - $(use_enable coinmp)
622 - $(use_enable cups)
623 - $(use_enable dbus)
624 - $(use_enable debug)
625 - $(use_enable eds evolution2)
626 - $(use_enable firebird firebird-sdbc)
627 - $(use_enable gstreamer gstreamer-1-0)
628 - $(use_enable gtk gtk3)
629 - $(use_enable kde kf5)
630 - $(use_enable kde qt5)
631 - $(use_enable ldap)
632 - $(use_enable odk)
633 - $(use_enable pdfimport)
634 - $(use_enable postgres postgresql-sdbc)
635 - $(use_enable vulkan skia)
636 - $(use_with accessibility lxml)
637 - $(use_with coinmp system-coinmp)
638 - $(use_with googledrive gdrive-client-id ${google_default_client_id})
639 - $(use_with googledrive gdrive-client-secret ${google_default_client_secret})
640 - $(use_with java)
641 - $(use_with odk doxygen)
642 - )
643 -
644 - if use eds || use gtk; then
645 - myeconfargs+=( --enable-dconf --enable-gio )
646 - else
647 - myeconfargs+=( --disable-dconf --disable-gio )
648 - fi
649 -
650 - # libreoffice extensions handling
651 - for lo_xt in ${LO_EXTS}; do
652 - if [[ "${lo_xt}" == "scripting-beanshell" || "${lo_xt}" == "scripting-javascript" ]]; then
653 - myeconfargs+=( $(use_enable libreoffice_extensions_${lo_xt} ${lo_xt}) )
654 - else
655 - myeconfargs+=( $(use_enable libreoffice_extensions_${lo_xt} ext-${lo_xt}) )
656 - fi
657 - done
658 -
659 - if use java; then
660 - # hsqldb: system one is too new
661 - myeconfargs+=(
662 - --without-junit
663 - --without-system-hsqldb
664 - --with-ant-home="${ANT_HOME}"
665 - )
666 - if has_version "dev-java/openjdk:11"; then
667 - myeconfargs+=( -with-jdk-home="${EPREFIX}/usr/$(get_libdir)/openjdk-11" )
668 - elif has_version "dev-java/openjdk-bin:11"; then
669 - myeconfargs+=( --with-jdk-home="/opt/openjdk-bin-11" )
670 - fi
671 -
672 - use libreoffice_extensions_scripting-beanshell && \
673 - myeconfargs+=( --with-beanshell-jar=$(java-pkg_getjar bsh bsh.jar) )
674 -
675 - use libreoffice_extensions_scripting-javascript && \
676 - myeconfargs+=( --with-rhino-jar=$(java-pkg_getjar rhino-1.6 js.jar) )
677 - fi
678 -
679 - is-flagq "-flto*" && myeconfargs+=( --enable-lto )
680 -
681 - MARIADBCONFIG="$(type -p $(usex mariadb mariadb mysql)_config)" \
682 - econf "${myeconfargs[@]}"
683 -}
684 -
685 -src_compile() {
686 - # more and more LO stuff tries to use OpenGL, including tests during build
687 - # bug 501508, bug 540624, bug 545974 and probably more
688 - addpredict /dev/dri
689 - addpredict /dev/ati
690 - addpredict /dev/nvidiactl
691 -
692 - local target
693 - use test && target="build" || target="build-nocheck"
694 -
695 - # this is not a proper make script
696 - make ${target} || die
697 -}
698 -
699 -src_test() {
700 - make unitcheck || die
701 - make slowcheck || die
702 -}
703 -
704 -src_install() {
705 - # This is not Makefile so no buildserver
706 - emake DESTDIR="${D}" distro-pack-install -o build -o check
707 -
708 - # bug 593514
709 - if use gtk; then
710 - dosym libreoffice/program/liblibreofficekitgtk.so \
711 - /usr/$(get_libdir)/liblibreofficekitgtk.so
712 - fi
713 -
714 - # bash completion aliases
715 - bashcomp_alias \
716 - libreoffice \
717 - unopkg loimpress lobase localc lodraw lomath lowriter lofromtemplate loweb loffice
718 -
719 - if use branding; then
720 - insinto /usr/$(get_libdir)/${PN}/program
721 - newins "${WORKDIR}/branding-sofficerc" sofficerc
722 - dodir /etc/env.d
723 - echo "CONFIG_PROTECT=/usr/$(get_libdir)/${PN}/program/sofficerc" > "${ED}"/etc/env.d/99${PN} || die
724 - fi
725 -
726 - # bug 703474
727 - insinto /usr/include
728 - doins -r include/LibreOfficeKit
729 -
730 - local lodir=/usr/$(get_libdir)/libreoffice
731 - # patching this would break tests
732 - cat <<-EOF > "${T}"/uno.py
733 -import sys, os
734 -sys.path.append('${EPREFIX}${lodir}/program')
735 -os.putenv('URE_BOOTSTRAP', 'vnd.sun.star.pathname:${EPREFIX}${lodir}/program/fundamentalrc')
736 -EOF
737 - sed -e "/^import sys/d" -e "/^import os/d" \
738 - -i "${D}"${lodir}/program/uno.py || die "cleanup dupl imports failed"
739 - cat "${D}"${lodir}/program/uno.py >> "${T}"/uno.py || die
740 - cp "${T}"/uno.py "${D}"${lodir}/program/uno.py || die
741 -
742 - # more system pyuno mess
743 - sed -e "/sOffice = \"\" # lets hope for the best/s:\"\":\"${EPREFIX}${lodir}/program\":" \
744 - -i "${D}"${lodir}/program/officehelper.py || die
745 -
746 - python_optimize "${D}"${lodir}/program
747 - # link python bridge in site-packages, bug 667802
748 - local py pyc loprogdir=/usr/$(get_libdir)/libreoffice/program
749 - for py in uno.py unohelper.py officehelper.py; do
750 - dosym8 -r ${loprogdir}/${py} $(python_get_sitedir)/${py}
751 - while IFS="" read -d $'\0' -r pyc; do
752 - pyc=${pyc//*\/}
753 - dosym8 -r ${loprogdir}/__pycache__/${pyc} $(python_get_sitedir)/__pycache__/${pyc}
754 - done < <(find "${D}"${lodir}/program -type f -name ${py/.py/*.pyc} -print0)
755 - done
756 -}
757 -
758 -pkg_postinst() {
759 - xdg_icon_cache_update
760 - xdg_desktop_database_update
761 - xdg_mimeinfo_database_update
762 -}
763 -
764 -pkg_postrm() {
765 - xdg_icon_cache_update
766 - xdg_desktop_database_update
767 - xdg_mimeinfo_database_update
768 -}