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