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