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