Gentoo Archives: gentoo-commits

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