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, 04 May 2021 08:29:47
Message-Id: 1620116930.da090ff29ae31d46ae86a6470eb3d0bc1e854956.asturm@gentoo
1 commit: da090ff29ae31d46ae86a6470eb3d0bc1e854956
2 Author: Andreas Sturmlechner <asturm <AT> gentoo <DOT> org>
3 AuthorDate: Tue May 4 08:28:50 2021 +0000
4 Commit: Andreas Sturmlechner <asturm <AT> gentoo <DOT> org>
5 CommitDate: Tue May 4 08:28:50 2021 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=da090ff2
7
8 app-office/libreoffice: Drop 7.0.5.2
9
10 Package-Manager: Portage-3.0.18, Repoman-3.0.3
11 Signed-off-by: Andreas Sturmlechner <asturm <AT> gentoo.org>
12
13 app-office/libreoffice/Manifest | 3 -
14 app-office/libreoffice/libreoffice-7.0.5.2.ebuild | 660 ----------------------
15 2 files changed, 663 deletions(-)
16
17 diff --git a/app-office/libreoffice/Manifest b/app-office/libreoffice/Manifest
18 index c5375051c6d..f629a83afe5 100644
19 --- a/app-office/libreoffice/Manifest
20 +++ b/app-office/libreoffice/Manifest
21 @@ -18,11 +18,8 @@ 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 libreoffice-6.4.7.2.tar.xz 232364676 BLAKE2B 1df8f2a3aa00bd057dd1d6d9665a541330ceeabb2bb5d46351449cf9b916a5649f38dc0e0175cf3733123f9247157f5fd0f2c34c8dad1d676da6c31d8346927b SHA512 ba6ff5948624d7a76025406c38728d643be656091d79320a1c5ddba10000411662951a0b02de7a9e796e76d8185b6e9113882406bb0c1452b4c988ac3095afa8
25 -DIST libreoffice-7.0.5.2.tar.xz 236703992 BLAKE2B 71ae5cfbb18e012d8214d09ac1f151b8b1e6045b8453dae5dd888c8e8fe20a0675e4c58c81a179e7fd78a67f5992c124d7c1d3c9cee1a58bc2c444cbded410c4 SHA512 aff01224881d4971a44e754e0a6a15466dc2bb1e10fa4f3249453356389b3dfd6efd2d588b80359f1d06075ac7e4f7b74a711904d125e17206346808f2ddb4b8
26 DIST libreoffice-7.1.2.2.tar.xz 243806936 BLAKE2B 46ff8efb4e5feaa1e2a887881bdd33d8b46b0b7e5e41fff9c1cfab08cfab712d2b8c6e8e8c1b68f3549be62fdfd62622aa2819021687bde5eae6c45a789b6b8b SHA512 0e4cc2417943fcfaf84b513f6ee781a4f75d5c42804fa98c5499ec6d461be04bf68ca1f8f92952863ba3765d7e2894e77f78aa1f532b67649e31154683767297
27 DIST libreoffice-branding-gentoo-0.8.tar.xz 151568 BLAKE2B f03c7ddeb53c5ca3fd23401679601fcf2c4037ba17be4eb7b784c7ce7ebb71a24b8ab4aac8b7da8c6b1f14dd23bc1294ba85ff4f70ad271fb4ee3c5372e10883 SHA512 785031a699b1d1895ce4b50ffc3ddf645f3a0ef9acdf37facfd18cf75db9484cb8f53a50abb63d6006ead76a80b6ff5aa99661063245ebb84bd64013d713de7f
28 DIST libreoffice-help-6.4.7.2.tar.xz 88296892 BLAKE2B 9ee12ec6aa6d5539408e0206e313901540533e28686585fa0bb4edbeaa482bb0ad1cd4ae37ac18dab66bb3e2ea32d52d9960236cbf3e0f8fb5ca07c007f38794 SHA512 a5381a8cca9988998dc01d3815869e47193c1da814b714cbedb51a2099f7dc5444315c657e32defab2eb0b9a9e2a922bc4c5fbc36b7a2b60e7c551887a9cdbb3
29 -DIST libreoffice-help-7.0.5.2.tar.xz 110757908 BLAKE2B 34123bf06d52e6fe766179d74ce28943ff70bd1af4656c396d10c237d9f583034a6ba25586f29f1aad56b155d350827640381a3d3333b7e9e17995c0420e4bc9 SHA512 42935916ea31d2aea35386566754dbd2e37fa9cd2b29e6c2cca1ec7e672d10e345a92874e5875ced98d5625fd5329bd2db87ef81d3f00a1035044a9557202b31
30 DIST libreoffice-help-7.1.2.2.tar.xz 111784492 BLAKE2B 3b62387ed5a42bef2602c6e2fad73d4421fad25a9ce67dd11a04b11c2072214979987cbc961ba448ad1a04596adca236654aac6828b0d2cf208565a260944dd5 SHA512 571db9a2fb3410ea6e86e5000f78648acb1f581a94cb0d2021a174116c44194c68749a875624aa042985630d83b44f312a6275524e8cd57f66678c6a1f8ec22e
31 -DIST skia-m85-e684c6daef6bfb774a325a069eda1f76ca6ac26c.tar.xz 8375536 BLAKE2B 8e3849123ce426a4dc43705537b176df82c6039a23911d75b7b3b26ca44f4a600c96c67c5f4d935a8d6a5064362f7f2167231b2aafbc44533c07299a8980aafe SHA512 4aeba56400d20e5fe234c7927b3d196233e19513a3202e074a88fad0d14d168221574a5a72b8dd9398cf3a9453c46eba4e4ed23d8d2031522b6cb11bc8bb43c1
32 DIST skia-m88-59bafeeaa7de9eb753e3778c414e01dcf013dcd8.tar.xz 10420480 BLAKE2B 83bcc9ff3a3a916ccb92f49ef69f99386e89b636d37679ab17735625c56c4bb31ca89a7034d9282c905b405e0b31215de5fd3734061d323d48db440e4ad52643 SHA512 8e5c37b895d7f5fe15f491005ac46b39efe3bfb3af5dc805bf1226b2112496bdb9e433cc3b313f8fc185fe1f898d126b8a557d23485615cdbe917f0b76855f3d
33
34 diff --git a/app-office/libreoffice/libreoffice-7.0.5.2.ebuild b/app-office/libreoffice/libreoffice-7.0.5.2.ebuild
35 deleted file mode 100644
36 index 108fff08a3b..00000000000
37 --- a/app-office/libreoffice/libreoffice-7.0.5.2.ebuild
38 +++ /dev/null
39 @@ -1,660 +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_{7,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-m85-e684c6daef6bfb774a325a069eda1f76ca6ac26c.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 ~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 - dev-lang/perl
179 - >=dev-libs/boost-1.72.0:=[nls]
180 - dev-libs/expat
181 - dev-libs/hyphen
182 - dev-libs/icu:=
183 - dev-libs/libassuan
184 - dev-libs/libgpg-error
185 - dev-libs/liborcus:0/0.15
186 - dev-libs/librevenge
187 - dev-libs/libxml2
188 - dev-libs/libxslt
189 - dev-libs/nspr
190 - dev-libs/nss
191 - >=dev-libs/redland-1.0.16
192 - >=dev-libs/xmlsec-1.2.28[nss]
193 - media-gfx/fontforge
194 - media-gfx/graphite2
195 - media-libs/fontconfig
196 - media-libs/freetype:2
197 - >=media-libs/harfbuzz-0.9.42:=[graphite,icu]
198 - media-libs/lcms:2
199 - >=media-libs/libcdr-0.1.0
200 - >=media-libs/libepoxy-1.3.1[X]
201 - >=media-libs/libfreehand-0.1.0
202 - media-libs/libpagemaker
203 - >=media-libs/libpng-1.4:0=
204 - >=media-libs/libvisio-0.1.0
205 - media-libs/libzmf
206 - net-libs/neon
207 - net-misc/curl
208 - sci-mathematics/lpsolve
209 - sys-libs/zlib
210 - virtual/glu
211 - virtual/jpeg:0
212 - virtual/opengl
213 - x11-libs/cairo[X]
214 - x11-libs/libXinerama
215 - x11-libs/libXrandr
216 - x11-libs/libXrender
217 - accessibility? (
218 - $(python_gen_cond_dep 'dev-python/lxml[${PYTHON_MULTI_USEDEP}]')
219 - )
220 - bluetooth? (
221 - dev-libs/glib:2
222 - net-wireless/bluez
223 - )
224 - clang? (
225 - || (
226 - ( sys-devel/clang:12
227 - sys-devel/llvm:12
228 - =sys-devel/lld-12* )
229 - ( sys-devel/clang:11
230 - sys-devel/llvm:11
231 - =sys-devel/lld-11* )
232 - ( sys-devel/clang:10
233 - sys-devel/llvm:10
234 - =sys-devel/lld-10* )
235 - )
236 - )
237 - coinmp? ( sci-libs/coinor-mp )
238 - cups? ( net-print/cups )
239 - dbus? ( sys-apps/dbus[X] )
240 - eds? (
241 - dev-libs/glib:2
242 - gnome-base/dconf
243 - gnome-extra/evolution-data-server
244 - )
245 - firebird? ( >=dev-db/firebird-3.0.2.32703.0-r1[server] )
246 - gstreamer? (
247 - media-libs/gstreamer:1.0
248 - media-libs/gst-plugins-base:1.0
249 - )
250 - gtk? (
251 - dev-libs/glib:2
252 - dev-libs/gobject-introspection
253 - gnome-base/dconf
254 - media-libs/mesa[egl]
255 - x11-libs/gtk+:3
256 - x11-libs/pango
257 - )
258 - kde? (
259 - dev-qt/qtcore:5
260 - dev-qt/qtgui:5
261 - dev-qt/qtwidgets:5
262 - dev-qt/qtx11extras:5
263 - kde-frameworks/kconfig:5
264 - kde-frameworks/kcoreaddons:5
265 - kde-frameworks/ki18n:5
266 - kde-frameworks/kio:5
267 - kde-frameworks/kwindowsystem:5
268 - )
269 - ldap? ( net-nds/openldap )
270 - libreoffice_extensions_scripting-beanshell? ( dev-java/bsh )
271 - libreoffice_extensions_scripting-javascript? ( dev-java/rhino:1.6 )
272 - mariadb? ( dev-db/mariadb-connector-c )
273 - !mariadb? ( dev-db/mysql-connector-c )
274 - pdfimport? ( app-text/poppler:=[cxx] )
275 - postgres? ( >=dev-db/postgresql-9.0:*[kerberos] )
276 -"
277 -# FIXME: cppunit should be moved to test conditional
278 -# after everything upstream is under gbuild
279 -# as dmake execute tests right away
280 -# tests apparently also need google-carlito-fonts (not packaged)
281 -DEPEND="${COMMON_DEPEND}
282 - >=dev-libs/libatomic_ops-7.2d
283 - dev-perl/Archive-Zip
284 - >=dev-util/cppunit-1.14.0
285 - >=dev-util/gperf-3.1
286 - dev-util/mdds:1/1.5
287 - media-libs/glm
288 - sys-devel/ucpp
289 - x11-base/xorg-proto
290 - x11-libs/libXt
291 - x11-libs/libXtst
292 - java? (
293 - dev-java/ant-core
294 - || (
295 - dev-java/openjdk:11
296 - dev-java/openjdk-bin:11
297 - )
298 - )
299 - test? (
300 - app-crypt/gnupg
301 - dev-util/cppunit
302 - media-fonts/dejavu
303 - media-fonts/liberation-fonts
304 - )
305 -"
306 -RDEPEND="${COMMON_DEPEND}
307 - !app-office/libreoffice-bin
308 - !app-office/libreoffice-bin-debug
309 - !app-office/openoffice
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 -
336 -S="${WORKDIR}/${PN}-${MY_PV}"
337 -
338 -_check_reqs() {
339 - CHECKREQS_MEMORY="512M"
340 - if is-flagq "-g*" && ! is-flagq "-g*0" ; then
341 - CHECKREQS_DISK_BUILD="22G"
342 - else
343 - CHECKREQS_DISK_BUILD="6G"
344 - fi
345 - check-reqs_$1
346 -}
347 -
348 -pkg_pretend() {
349 - use base ||
350 - ewarn "If you plan to use Base application you must enable USE base."
351 - use java ||
352 - ewarn "Without USE java, several wizards are not going to be available."
353 -
354 - [[ ${MERGE_TYPE} != binary ]] && _check_reqs pkg_pretend
355 -}
356 -
357 -pkg_setup() {
358 - java-pkg-opt-2_pkg_setup
359 - python-single-r1_pkg_setup
360 - xdg_environment_reset
361 -
362 - [[ ${MERGE_TYPE} != binary ]] && _check_reqs pkg_setup
363 -}
364 -
365 -src_unpack() {
366 - default
367 -
368 - if [[ ${MY_PV} = *9999* ]]; then
369 - local base_uri branch mypv
370 - base_uri="https://anongit.freedesktop.org/git"
371 - branch="master"
372 - mypv=${MY_PV/.9999}
373 - [[ ${mypv} != ${MY_PV} ]] && branch="${PN}-${mypv/./-}"
374 - git-r3_fetch "${base_uri}/${PN}/core" "refs/heads/${branch}"
375 - git-r3_checkout "${base_uri}/${PN}/core"
376 - LOCOREGIT_VERSION=${EGIT_VERSION}
377 -
378 - git-r3_fetch "${base_uri}/${PN}/help" "refs/heads/master"
379 - git-r3_checkout "${base_uri}/${PN}/help" "helpcontent2" # doesn't match on help
380 - fi
381 -}
382 -
383 -src_prepare() {
384 - default
385 -
386 - # sandbox violations on many systems, we don't need it. Bug #646406
387 - sed -i \
388 - -e "/KF5_CONFIG/s/kf5-config/no/" \
389 - configure.ac || die "Failed to disable kf5-config"
390 -
391 - AT_M4DIR="m4" eautoreconf
392 - # hack in the autogen.sh
393 - touch autogen.lastrun
394 -
395 - # sed in the tests
396 - sed -i \
397 - -e "s#all : build unitcheck#all : build#g" \
398 - solenv/gbuild/Module.mk || die
399 - sed -i \
400 - -e "s#check: dev-install subsequentcheck#check: unitcheck slowcheck dev-install subsequentcheck#g" \
401 - -e "s#Makefile.gbuild all slowcheck#Makefile.gbuild all#g" \
402 - Makefile.in || die
403 -
404 - sed -i \
405 - -e "s,/usr/share/bash-completion/completions,$(get_bashcompdir)," \
406 - -e "s,\$INSTALLDIRNAME.sh,${PN}," \
407 - bin/distro-install-desktop-integration || die
408 -
409 - if use branding; then
410 - # hack...
411 - mv -v "${WORKDIR}/branding-intro.png" "icon-themes/colibre/brand/intro.png" || die
412 - fi
413 -
414 - # Don't list pdfimport support in desktop when built with none, bug # 605464
415 - if ! use pdfimport; then
416 - sed -i \
417 - -e ":MimeType: s:application/pdf;::" \
418 - -e ":Keywords: s:pdf;::" \
419 - sysui/desktop/menus/draw.desktop || die
420 - fi
421 -}
422 -
423 -src_configure() {
424 - # Set up Google API keys, see https://www.chromium.org/developers/how-tos/api-keys
425 - # Note: these are for Gentoo use ONLY. For your own distribution, please get
426 - # your own set of keys. Feel free to contact chromium@g.o for more info.
427 - local google_default_client_id="329227923882.apps.googleusercontent.com"
428 - local google_default_client_secret="vgKG0NNv7GoDpbtoFNLxCUXu"
429 -
430 - # Show flags set at the beginning
431 - einfo "Preset CFLAGS: ${CFLAGS}"
432 - einfo "Preset LDFLAGS: ${LDFLAGS}"
433 -
434 - if use clang ; then
435 - # Force clang
436 - einfo "Enforcing the use of clang due to USE=clang ..."
437 - AR=llvm-ar
438 - CC=${CHOST}-clang
439 - CXX=${CHOST}-clang++
440 - NM=llvm-nm
441 - RANLIB=llvm-ranlib
442 - LDFLAGS+=" -fuse-ld=lld"
443 - else
444 - # Force gcc
445 - einfo "Enforcing the use of gcc due to USE=-clang ..."
446 - AR=gcc-ar
447 - CC=${CHOST}-gcc
448 - CXX=${CHOST}-g++
449 - NM=gcc-nm
450 - RANLIB=gcc-ranlib
451 - fi
452 -
453 - if use custom-cflags ; then
454 - elog "USE=custom-cflags has been selected. You are on your own to make sure that"
455 - elog "the build succeeds. Good luck!"
456 - else
457 - strip-flags
458 - fi
459 -
460 - export CLANG_CC=${CC}
461 - export CLANG_CXX=${CXX}
462 -
463 - # Show flags set at the end
464 - einfo " Used CFLAGS: ${CFLAGS}"
465 - einfo " Used LDFLAGS: ${LDFLAGS}"
466 -
467 - # Ensure we use correct toolchain
468 - tc-export CC CXX LD AR NM OBJDUMP RANLIB PKG_CONFIG
469 -
470 - if use vulkan && ! use clang ; then
471 - ewarn "Building skia with gcc may lead to performance issues. Disable vulkan or enable clang."
472 - fi
473 -
474 - # optimization flags
475 - export GMAKE_OPTIONS="${MAKEOPTS}"
476 - # System python enablement:
477 - export PYTHON_CFLAGS=$(python_get_CFLAGS)
478 - export PYTHON_LIBS=$(python_get_LIBS)
479 -
480 - use kde && export QT5DIR="$(qt5_get_bindir)/.."
481 -
482 - local gentoo_buildid="Gentoo official package"
483 - if [[ -n ${LOCOREGIT_VERSION} ]]; then
484 - gentoo_buildid+=" (from git: ${LOCOREGIT_VERSION})"
485 - fi
486 -
487 - # system headers/libs/...: enforce using system packages
488 - # --disable-breakpad: requires not-yet-in-tree dev-utils/breakpad
489 - # --enable-cairo: ensure that cairo is always required
490 - # --enable-*-link: link to the library rather than just dlopen on runtime
491 - # --enable-release-build: build the libreoffice as release
492 - # --disable-fetch-external: prevent dowloading during compile phase
493 - # --enable-extension-integration: enable any extension integration support
494 - # --without-{fonts,myspell-dicts,ppsd}: prevent install of sys pkgs
495 - # --disable-report-builder: too much java packages pulled in without pkgs
496 - # --without-system-sane: just sane.h header that is used for scan in writer,
497 - # not linked or anything else, worthless to depend on
498 - # --disable-pdfium: not yet packaged
499 - # --without-system-qrcodegen: has no real build system and LO is the only user
500 - local myeconfargs=(
501 - --with-system-dicts
502 - --with-system-epoxy
503 - --with-system-headers
504 - --with-system-jars
505 - --with-system-libs
506 - --enable-build-opensymbol
507 - --enable-cairo-canvas
508 - --enable-largefile
509 - --enable-mergelibs
510 - --enable-neon
511 - --enable-python=system
512 - --enable-randr
513 - --enable-release-build
514 - --disable-breakpad
515 - --disable-bundle-mariadb
516 - --disable-ccache
517 - --disable-epm
518 - --disable-fetch-external
519 - --disable-gtk3-kde5
520 - --disable-online-update
521 - --disable-openssl
522 - --disable-pdfium
523 - --disable-vlc
524 - --with-extra-buildid="${gentoo_buildid}"
525 - --enable-extension-integration
526 - --with-external-dict-dir="${EPREFIX}/usr/share/myspell"
527 - --with-external-hyph-dir="${EPREFIX}/usr/share/myspell"
528 - --with-external-thes-dir="${EPREFIX}/usr/share/myspell"
529 - --with-external-tar="${DISTDIR}"
530 - --with-lang=""
531 - --with-parallelism=$(makeopts_jobs)
532 - --with-system-ucpp
533 - --with-tls=nss
534 - --with-vendor="Gentoo Foundation"
535 - --with-x
536 - --without-fonts
537 - --without-myspell-dicts
538 - --with-help="html"
539 - --without-helppack-integration
540 - --with-system-gpgmepp
541 - --without-system-jfreereport
542 - --without-system_apache_commons
543 - --without-system-sane
544 - --without-system-qrcodegen
545 - $(use_enable base report-builder)
546 - $(use_enable bluetooth sdremote-bluetooth)
547 - $(use_enable coinmp)
548 - $(use_enable cups)
549 - $(use_enable dbus)
550 - $(use_enable debug)
551 - $(use_enable eds evolution2)
552 - $(use_enable firebird firebird-sdbc)
553 - $(use_enable gstreamer gstreamer-1-0)
554 - $(use_enable gtk gtk3)
555 - $(use_enable kde kf5)
556 - $(use_enable kde qt5)
557 - $(use_enable ldap)
558 - $(use_enable odk)
559 - $(use_enable pdfimport)
560 - $(use_enable postgres postgresql-sdbc)
561 - $(use_enable vulkan skia)
562 - $(use_with accessibility lxml)
563 - $(use_with coinmp system-coinmp)
564 - $(use_with googledrive gdrive-client-id ${google_default_client_id})
565 - $(use_with googledrive gdrive-client-secret ${google_default_client_secret})
566 - $(use_with java)
567 - $(use_with odk doxygen)
568 - )
569 -
570 - if use eds || use gtk; then
571 - myeconfargs+=( --enable-dconf --enable-gio )
572 - else
573 - myeconfargs+=( --disable-dconf --disable-gio )
574 - fi
575 -
576 - # libreoffice extensions handling
577 - for lo_xt in ${LO_EXTS}; do
578 - if [[ "${lo_xt}" == "scripting-beanshell" || "${lo_xt}" == "scripting-javascript" ]]; then
579 - myeconfargs+=( $(use_enable libreoffice_extensions_${lo_xt} ${lo_xt}) )
580 - else
581 - myeconfargs+=( $(use_enable libreoffice_extensions_${lo_xt} ext-${lo_xt}) )
582 - fi
583 - done
584 -
585 - if use java; then
586 - # hsqldb: system one is too new
587 - myeconfargs+=(
588 - --without-junit
589 - --without-system-hsqldb
590 - --with-ant-home="${ANT_HOME}"
591 - )
592 - if has_version "dev-java/openjdk:11"; then
593 - myeconfargs+=( -with-jdk-home="${EPREFIX}/usr/$(get_libdir)/openjdk-11" )
594 - elif has_version "dev-java/openjdk-bin:11"; then
595 - myeconfargs+=( --with-jdk-home="/opt/openjdk-bin-11" )
596 - fi
597 -
598 - use libreoffice_extensions_scripting-beanshell && \
599 - myeconfargs+=( --with-beanshell-jar=$(java-pkg_getjar bsh bsh.jar) )
600 -
601 - use libreoffice_extensions_scripting-javascript && \
602 - myeconfargs+=( --with-rhino-jar=$(java-pkg_getjar rhino-1.6 js.jar) )
603 - fi
604 -
605 - is-flagq "-flto*" && myeconfargs+=( --enable-lto )
606 -
607 - MARIADBCONFIG="$(type -p $(usex mariadb mariadb mysql)_config)" \
608 - econf "${myeconfargs[@]}"
609 -}
610 -
611 -src_compile() {
612 - # more and more LO stuff tries to use OpenGL, including tests during build
613 - # bug 501508, bug 540624, bug 545974 and probably more
614 - addpredict /dev/dri
615 - addpredict /dev/ati
616 - addpredict /dev/nvidiactl
617 -
618 - local target
619 - use test && target="build" || target="build-nocheck"
620 -
621 - # this is not a proper make script
622 - make ${target} || die
623 -}
624 -
625 -src_test() {
626 - make unitcheck || die
627 - make slowcheck || die
628 -}
629 -
630 -src_install() {
631 - # This is not Makefile so no buildserver
632 - emake DESTDIR="${D}" distro-pack-install -o build -o check
633 -
634 - # bug 593514
635 - if use gtk; then
636 - dosym libreoffice/program/liblibreofficekitgtk.so \
637 - /usr/$(get_libdir)/liblibreofficekitgtk.so
638 - fi
639 -
640 - # bash completion aliases
641 - bashcomp_alias \
642 - libreoffice \
643 - unopkg loimpress lobase localc lodraw lomath lowriter lofromtemplate loweb loffice
644 -
645 - if use branding; then
646 - insinto /usr/$(get_libdir)/${PN}/program
647 - newins "${WORKDIR}/branding-sofficerc" sofficerc
648 - dodir /etc/env.d
649 - echo "CONFIG_PROTECT=/usr/$(get_libdir)/${PN}/program/sofficerc" > "${ED}"/etc/env.d/99${PN} || die
650 - fi
651 -
652 - # bug 703474
653 - insinto /usr/include
654 - doins -r include/LibreOfficeKit
655 -
656 - local lodir=/usr/$(get_libdir)/libreoffice
657 - # patching this would break tests
658 - cat <<-EOF > "${T}"/uno.py
659 -import sys, os
660 -sys.path.append('${EPREFIX}${lodir}/program')
661 -os.putenv('URE_BOOTSTRAP', 'vnd.sun.star.pathname:${EPREFIX}${lodir}/program/fundamentalrc')
662 -EOF
663 - sed -e "/^import sys/d" -e "/^import os/d" \
664 - -i "${D}"${lodir}/program/uno.py || die "cleanup dupl imports failed"
665 - cat "${D}"${lodir}/program/uno.py >> "${T}"/uno.py || die
666 - cp "${T}"/uno.py "${D}"${lodir}/program/uno.py || die
667 -
668 - # more system pyuno mess
669 - sed -e "/sOffice = \"\" # lets hope for the best/s:\"\":\"${EPREFIX}${lodir}/program\":" \
670 - -i "${D}"${lodir}/program/officehelper.py || die
671 -
672 - python_optimize "${D}"${lodir}/program
673 - # link python bridge in site-packages, bug 667802
674 - local py pyc loprogdir=/usr/$(get_libdir)/libreoffice/program
675 - for py in uno.py unohelper.py officehelper.py; do
676 - dosym8 -r ${loprogdir}/${py} $(python_get_sitedir)/${py}
677 - while IFS="" read -d $'\0' -r pyc; do
678 - pyc=${pyc//*\/}
679 - dosym8 -r ${loprogdir}/__pycache__/${pyc} $(python_get_sitedir)/__pycache__/${pyc}
680 - done < <(find "${D}"${lodir}/program -type f -name ${py/.py/*.pyc} -print0)
681 - done
682 -
683 - # bug 709450
684 - mkdir -p "${ED}"/usr/share/metainfo || die
685 - mv "${ED}"/usr/share/appdata/* "${ED}"/usr/share/metainfo/ || die
686 - rmdir "${ED}"/usr/share/appdata || die
687 -}
688 -
689 -pkg_postinst() {
690 - xdg_icon_cache_update
691 - xdg_desktop_database_update
692 - xdg_mimeinfo_database_update
693 -}
694 -
695 -pkg_postrm() {
696 - xdg_icon_cache_update
697 - xdg_desktop_database_update
698 - xdg_mimeinfo_database_update
699 -}