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