Gentoo Archives: gentoo-commits

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