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