1 |
commit: 88e7c40bc2a3af8ef05d3f2f4202ddeb0050b2f8 |
2 |
Author: Andreas Sturmlechner <asturm <AT> gentoo <DOT> org> |
3 |
AuthorDate: Thu Oct 29 00:06:42 2020 +0000 |
4 |
Commit: Andreas Sturmlechner <asturm <AT> gentoo <DOT> org> |
5 |
CommitDate: Thu Oct 29 10:40:00 2020 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=88e7c40b |
7 |
|
8 |
app-office/libreoffice: Drop 6.4 stable branch |
9 |
|
10 |
Signed-off-by: Andreas Sturmlechner <asturm <AT> gentoo.org> |
11 |
|
12 |
app-office/libreoffice/libreoffice-6.4.9999.ebuild | 590 --------------------- |
13 |
1 file changed, 590 deletions(-) |
14 |
|
15 |
diff --git a/app-office/libreoffice/libreoffice-6.4.9999.ebuild b/app-office/libreoffice/libreoffice-6.4.9999.ebuild |
16 |
deleted file mode 100644 |
17 |
index 52876b5d2f1..00000000000 |
18 |
--- a/app-office/libreoffice/libreoffice-6.4.9999.ebuild |
19 |
+++ /dev/null |
20 |
@@ -1,590 +0,0 @@ |
21 |
-# Copyright 1999-2020 Gentoo Authors |
22 |
-# Distributed under the terms of the GNU General Public License v2 |
23 |
- |
24 |
-EAPI=7 |
25 |
- |
26 |
-PYTHON_COMPAT=( python3_{6,7,8,9} ) |
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="${P}-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/~asturm/distfiles/${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 |
- # QR code generating library for >=libreoffice-6.4 |
68 |
- "${ADDONS_URI}/QR-Code-generator-1.4.0.tar.gz" |
69 |
- "base? ( |
70 |
- ${ADDONS_URI}/commons-logging-1.2-src.tar.gz |
71 |
- ${ADDONS_URI}/ba2930200c9f019c2d93a8c88c651a0f-flow-engine-0.9.4.zip |
72 |
- ${ADDONS_URI}/d8bd5eed178db6e2b18eeed243f85aa8-flute-1.1.6.zip |
73 |
- ${ADDONS_URI}/eeb2c7ddf0d302fba4bfc6e97eac9624-libbase-1.1.6.zip |
74 |
- ${ADDONS_URI}/3bdf40c0d199af31923e900d082ca2dd-libfonts-1.1.6.zip |
75 |
- ${ADDONS_URI}/3404ab6b1792ae5f16bbd603bd1e1d03-libformula-1.1.7.zip |
76 |
- ${ADDONS_URI}/db60e4fde8dd6d6807523deb71ee34dc-liblayout-0.2.10.zip |
77 |
- ${ADDONS_URI}/97b2d4dba862397f446b217e2b623e71-libloader-1.1.6.zip |
78 |
- ${ADDONS_URI}/8ce2fcd72becf06c41f7201d15373ed9-librepository-1.1.6.zip |
79 |
- ${ADDONS_URI}/f94d9870737518e3b597f9265f4e9803-libserializer-1.1.6.zip |
80 |
- ${ADDONS_URI}/ace6ab49184e329db254e454a010f56d-libxml-1.1.7.zip |
81 |
- ${ADDONS_URI}/39bb3fcea1514f1369fcfc87542390fd-sacjava-1.3.zip |
82 |
- )" |
83 |
- "java? ( ${ADDONS_URI}/17410483b5b5f267aa18b7e00b65e6e0-hsqldb_1_8_0.zip )" |
84 |
- # no release for 8 years, should we package it? |
85 |
- "libreoffice_extensions_wiki-publisher? ( ${ADDONS_URI}/a7983f859eafb2677d7ff386a023bc40-xsltml_2.1.2.zip )" |
86 |
- # Does not build with 1.6 rhino at all |
87 |
- "libreoffice_extensions_scripting-javascript? ( ${ADDONS_URI}/798b2ffdc8bcfe7bca2cf92b62caf685-rhino1_5R5.zip )" |
88 |
- # requirement of rhino |
89 |
- "libreoffice_extensions_scripting-javascript? ( ${ADDONS_URI}/35c94d2df8893241173de1d16b6034c0-swingExSrc.zip )" |
90 |
- # not packageable |
91 |
- "odk? ( http://download.go-oo.org/extern/185d60944ea767075d27247c3162b3bc-unowinreg.dll )" |
92 |
-) |
93 |
-SRC_URI+=" ${ADDONS_SRC[*]}" |
94 |
- |
95 |
-unset ADDONS_URI |
96 |
-unset ADDONS_SRC |
97 |
- |
98 |
-# Extensions that need extra work: |
99 |
-LO_EXTS="nlpsolver scripting-beanshell scripting-javascript wiki-publisher" |
100 |
- |
101 |
-IUSE="accessibility base bluetooth +branding coinmp +cups +dbus debug eds firebird |
102 |
-googledrive gstreamer +gtk kde ldap +mariadb odk pdfimport postgres test |
103 |
-$(printf 'libreoffice_extensions_%s ' ${LO_EXTS})" |
104 |
- |
105 |
-REQUIRED_USE="${PYTHON_REQUIRED_USE} |
106 |
- base? ( firebird java ) |
107 |
- bluetooth? ( dbus ) |
108 |
- gtk? ( dbus ) |
109 |
- libreoffice_extensions_nlpsolver? ( java ) |
110 |
- libreoffice_extensions_scripting-beanshell? ( java ) |
111 |
- libreoffice_extensions_scripting-javascript? ( java ) |
112 |
- libreoffice_extensions_wiki-publisher? ( java ) |
113 |
-" |
114 |
- |
115 |
-RESTRICT="!test? ( test )" |
116 |
- |
117 |
-LICENSE="|| ( LGPL-3 MPL-1.1 )" |
118 |
-SLOT="0" |
119 |
- |
120 |
-[[ ${MY_PV} == *9999* ]] || \ |
121 |
-KEYWORDS="~amd64 ~arm ~arm64 ~ppc64 ~x86 ~amd64-linux ~x86-linux" |
122 |
- |
123 |
-BDEPEND=" |
124 |
- dev-util/intltool |
125 |
- sys-devel/bison |
126 |
- sys-devel/flex |
127 |
- sys-devel/gettext |
128 |
- virtual/pkgconfig |
129 |
- odk? ( >=app-doc/doxygen-1.8.4 ) |
130 |
-" |
131 |
-COMMON_DEPEND="${PYTHON_DEPS} |
132 |
- app-arch/unzip |
133 |
- app-arch/zip |
134 |
- app-crypt/gpgme[cxx] |
135 |
- app-text/hunspell:= |
136 |
- >=app-text/libabw-0.1.0 |
137 |
- >=app-text/libebook-0.1 |
138 |
- app-text/libepubgen |
139 |
- >=app-text/libetonyek-0.1 |
140 |
- app-text/libexttextcat |
141 |
- app-text/liblangtag |
142 |
- >=app-text/libmspub-0.1.0 |
143 |
- >=app-text/libmwaw-0.3.1 |
144 |
- app-text/libnumbertext |
145 |
- >=app-text/libodfgen-0.1.0 |
146 |
- app-text/libqxp |
147 |
- app-text/libstaroffice |
148 |
- app-text/libwpd:0.10[tools] |
149 |
- app-text/libwpg:0.3 |
150 |
- >=app-text/libwps-0.4 |
151 |
- app-text/mythes |
152 |
- >=dev-cpp/clucene-2.3.3.4-r2 |
153 |
- >=dev-cpp/libcmis-0.5.2 |
154 |
- dev-db/unixODBC |
155 |
- dev-lang/perl |
156 |
- >=dev-libs/boost-1.72.0:=[nls] |
157 |
- dev-libs/expat |
158 |
- dev-libs/hyphen |
159 |
- dev-libs/icu:= |
160 |
- dev-libs/libassuan |
161 |
- dev-libs/libgpg-error |
162 |
- >=dev-libs/liborcus-0.15.0 |
163 |
- dev-libs/librevenge |
164 |
- dev-libs/libxml2 |
165 |
- dev-libs/libxslt |
166 |
- dev-libs/nspr |
167 |
- dev-libs/nss |
168 |
- >=dev-libs/redland-1.0.16 |
169 |
- >=dev-libs/xmlsec-1.2.28[nss] |
170 |
- media-gfx/fontforge |
171 |
- media-gfx/graphite2 |
172 |
- media-libs/fontconfig |
173 |
- media-libs/freetype:2 |
174 |
- >=media-libs/harfbuzz-0.9.42:=[graphite,icu] |
175 |
- media-libs/lcms:2 |
176 |
- >=media-libs/libcdr-0.1.0 |
177 |
- >=media-libs/libepoxy-1.3.1[X] |
178 |
- >=media-libs/libfreehand-0.1.0 |
179 |
- media-libs/libpagemaker |
180 |
- >=media-libs/libpng-1.4:0= |
181 |
- >=media-libs/libvisio-0.1.0 |
182 |
- media-libs/libzmf |
183 |
- net-libs/neon |
184 |
- net-misc/curl |
185 |
- sci-mathematics/lpsolve |
186 |
- sys-libs/zlib |
187 |
- virtual/glu |
188 |
- virtual/jpeg:0 |
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_MULTI_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 |
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.6 ) |
236 |
- mariadb? ( dev-db/mariadb-connector-c ) |
237 |
- !mariadb? ( dev-db/mysql-connector-c ) |
238 |
- pdfimport? ( app-text/poppler:=[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/1.5 |
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-1.8 |
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 |
- !app-office/libreoffice-bin |
269 |
- !app-office/libreoffice-bin-debug |
270 |
- !app-office/openoffice |
271 |
- media-fonts/liberation-fonts |
272 |
- || ( x11-misc/xdg-utils kde-plasma/kde-cli-tools ) |
273 |
- java? ( >=virtual/jre-1.8 ) |
274 |
- kde? ( kde-frameworks/breeze-icons:* ) |
275 |
-" |
276 |
-if [[ ${MY_PV} != *9999* ]] && [[ ${PV} != *_* ]]; then |
277 |
- PDEPEND="=app-office/libreoffice-l10n-$(ver_cut 1-2)*" |
278 |
-else |
279 |
- # Translations are not reliable on live ebuilds |
280 |
- # rather force people to use english only. |
281 |
- PDEPEND="!app-office/libreoffice-l10n" |
282 |
-fi |
283 |
- |
284 |
-PATCHES=( |
285 |
- # "${WORKDIR}"/${PATCHSET/.tar.xz/} |
286 |
- |
287 |
- # not upstreamable stuff |
288 |
- "${FILESDIR}/${PN}-5.3.4.2-kioclient5.patch" |
289 |
- "${FILESDIR}/${PN}-6.1-nomancompress.patch" |
290 |
- |
291 |
- # git master |
292 |
- "${FILESDIR}/${PN}-6.4.3.2-boost-1.73.patch" # bug 721806 |
293 |
- "${FILESDIR}/${PN}-6.4.6.2-llvm-10.patch" # bug 713574 |
294 |
-) |
295 |
- |
296 |
-S="${WORKDIR}/${PN}-${MY_PV}" |
297 |
- |
298 |
-_check_reqs() { |
299 |
- CHECKREQS_MEMORY="512M" |
300 |
- if is-flagq "-g*" && ! is-flagq "-g*0" ; then |
301 |
- CHECKREQS_DISK_BUILD="22G" |
302 |
- else |
303 |
- CHECKREQS_DISK_BUILD="6G" |
304 |
- fi |
305 |
- check-reqs_$1 |
306 |
-} |
307 |
- |
308 |
-pkg_pretend() { |
309 |
- use base || |
310 |
- ewarn "If you plan to use Base application you must enable USE base." |
311 |
- use java || |
312 |
- ewarn "Without USE java, several wizards are not going to be available." |
313 |
- |
314 |
- [[ ${MERGE_TYPE} != binary ]] && _check_reqs pkg_pretend |
315 |
-} |
316 |
- |
317 |
-pkg_setup() { |
318 |
- java-pkg-opt-2_pkg_setup |
319 |
- python-single-r1_pkg_setup |
320 |
- xdg_environment_reset |
321 |
- |
322 |
- [[ ${MERGE_TYPE} != binary ]] && _check_reqs pkg_setup |
323 |
-} |
324 |
- |
325 |
-src_unpack() { |
326 |
- default |
327 |
- |
328 |
- if [[ ${MY_PV} = *9999* ]]; then |
329 |
- local base_uri branch mypv |
330 |
- base_uri="https://anongit.freedesktop.org/git" |
331 |
- branch="master" |
332 |
- mypv=${MY_PV/.9999} |
333 |
- [[ ${mypv} != ${MY_PV} ]] && branch="${PN}-${mypv/./-}" |
334 |
- git-r3_fetch "${base_uri}/${PN}/core" "refs/heads/${branch}" |
335 |
- git-r3_checkout "${base_uri}/${PN}/core" |
336 |
- LOCOREGIT_VERSION=${EGIT_VERSION} |
337 |
- |
338 |
- git-r3_fetch "${base_uri}/${PN}/help" "refs/heads/master" |
339 |
- git-r3_checkout "${base_uri}/${PN}/help" "helpcontent2" # doesn't match on help |
340 |
- fi |
341 |
-} |
342 |
- |
343 |
-src_prepare() { |
344 |
- default |
345 |
- |
346 |
- # sandbox violations on many systems, we don't need it. Bug #646406 |
347 |
- sed -i \ |
348 |
- -e "/KF5_CONFIG/s/kf5-config/no/" \ |
349 |
- configure.ac || die "Failed to disable kf5-config" |
350 |
- |
351 |
- AT_M4DIR="m4" eautoreconf |
352 |
- # hack in the autogen.sh |
353 |
- touch autogen.lastrun |
354 |
- |
355 |
- # sed in the tests |
356 |
- sed -i \ |
357 |
- -e "s#all : build unitcheck#all : build#g" \ |
358 |
- solenv/gbuild/Module.mk || die |
359 |
- sed -i \ |
360 |
- -e "s#check: dev-install subsequentcheck#check: unitcheck slowcheck dev-install subsequentcheck#g" \ |
361 |
- -e "s#Makefile.gbuild all slowcheck#Makefile.gbuild all#g" \ |
362 |
- Makefile.in || die |
363 |
- |
364 |
- sed -i \ |
365 |
- -e "s,/usr/share/bash-completion/completions,$(get_bashcompdir)," \ |
366 |
- -e "s,\$INSTALLDIRNAME.sh,${PN}," \ |
367 |
- bin/distro-install-desktop-integration || die |
368 |
- |
369 |
- if use branding; then |
370 |
- # hack... |
371 |
- mv -v "${WORKDIR}/branding-intro.png" "icon-themes/colibre/brand/intro.png" || die |
372 |
- fi |
373 |
- |
374 |
- # Don't list pdfimport support in desktop when built with none, bug # 605464 |
375 |
- if ! use pdfimport; then |
376 |
- sed -i \ |
377 |
- -e ":MimeType: s:application/pdf;::" \ |
378 |
- -e ":Keywords: s:pdf;::" \ |
379 |
- sysui/desktop/menus/draw.desktop || die |
380 |
- fi |
381 |
-} |
382 |
- |
383 |
-src_configure() { |
384 |
- # Set up Google API keys, see https://www.chromium.org/developers/how-tos/api-keys |
385 |
- # Note: these are for Gentoo use ONLY. For your own distribution, please get |
386 |
- # your own set of keys. Feel free to contact chromium@g.o for more info. |
387 |
- local google_default_client_id="329227923882.apps.googleusercontent.com" |
388 |
- local google_default_client_secret="vgKG0NNv7GoDpbtoFNLxCUXu" |
389 |
- |
390 |
- # optimization flags |
391 |
- export GMAKE_OPTIONS="${MAKEOPTS}" |
392 |
- # System python enablement: |
393 |
- export PYTHON_CFLAGS=$(python_get_CFLAGS) |
394 |
- export PYTHON_LIBS=$(python_get_LIBS) |
395 |
- |
396 |
- if use kde; then |
397 |
- export QT_SELECT=5 # bug 639620 needs proper fix though |
398 |
- export QT5DIR="$(qt5_get_bindir)/../" |
399 |
- export MOC5="$(qt5_get_bindir)/moc" |
400 |
- fi |
401 |
- |
402 |
- local gentoo_buildid="Gentoo official package" |
403 |
- if [[ -n ${LOCOREGIT_VERSION} ]]; then |
404 |
- gentoo_buildid+=" (from git: ${LOCOREGIT_VERSION})" |
405 |
- fi |
406 |
- |
407 |
- # system headers/libs/...: enforce using system packages |
408 |
- # --disable-breakpad: requires not-yet-in-tree dev-utils/breakpad |
409 |
- # --enable-cairo: ensure that cairo is always required |
410 |
- # --enable-*-link: link to the library rather than just dlopen on runtime |
411 |
- # --enable-release-build: build the libreoffice as release |
412 |
- # --disable-fetch-external: prevent dowloading during compile phase |
413 |
- # --enable-extension-integration: enable any extension integration support |
414 |
- # --without-{fonts,myspell-dicts,ppsd}: prevent install of sys pkgs |
415 |
- # --disable-report-builder: too much java packages pulled in without pkgs |
416 |
- # --without-system-sane: just sane.h header that is used for scan in writer, |
417 |
- # not linked or anything else, worthless to depend on |
418 |
- # --disable-pdfium: not yet packaged |
419 |
- # --without-system-qrencode: has no real build system and LO is the only user |
420 |
- local myeconfargs=( |
421 |
- --with-system-dicts |
422 |
- --with-system-epoxy |
423 |
- --with-system-headers |
424 |
- --with-system-jars |
425 |
- --with-system-libs |
426 |
- --enable-build-opensymbol |
427 |
- --enable-cairo-canvas |
428 |
- --enable-largefile |
429 |
- --enable-mergelibs |
430 |
- --enable-neon |
431 |
- --enable-python=system |
432 |
- --enable-randr |
433 |
- --enable-release-build |
434 |
- --disable-breakpad |
435 |
- --disable-bundle-mariadb |
436 |
- --disable-ccache |
437 |
- --disable-epm |
438 |
- --disable-fetch-external |
439 |
- --disable-gtk3-kde5 |
440 |
- --disable-online-update |
441 |
- --disable-openssl |
442 |
- --disable-pdfium |
443 |
- --disable-vlc |
444 |
- --with-build-version="${gentoo_buildid}" |
445 |
- --enable-extension-integration |
446 |
- --with-external-dict-dir="${EPREFIX}/usr/share/myspell" |
447 |
- --with-external-hyph-dir="${EPREFIX}/usr/share/myspell" |
448 |
- --with-external-thes-dir="${EPREFIX}/usr/share/myspell" |
449 |
- --with-external-tar="${DISTDIR}" |
450 |
- --with-lang="" |
451 |
- --with-parallelism=$(makeopts_jobs) |
452 |
- --with-system-ucpp |
453 |
- --with-tls=nss |
454 |
- --with-vendor="Gentoo Foundation" |
455 |
- --with-x |
456 |
- --without-fonts |
457 |
- --without-myspell-dicts |
458 |
- --with-help="html" |
459 |
- --without-helppack-integration |
460 |
- --with-system-gpgmepp |
461 |
- --without-system-jfreereport |
462 |
- --without-system_apache_commons |
463 |
- --without-system-sane |
464 |
- --without-system-qrcodegen |
465 |
- $(use_enable base report-builder) |
466 |
- $(use_enable bluetooth sdremote-bluetooth) |
467 |
- $(use_enable coinmp) |
468 |
- $(use_enable cups) |
469 |
- $(use_enable dbus) |
470 |
- $(use_enable debug) |
471 |
- $(use_enable eds evolution2) |
472 |
- $(use_enable firebird firebird-sdbc) |
473 |
- $(use_enable gstreamer gstreamer-1-0) |
474 |
- $(use_enable gtk gtk3) |
475 |
- $(use_enable kde kf5) |
476 |
- $(use_enable kde qt5) |
477 |
- $(use_enable ldap) |
478 |
- $(use_enable odk) |
479 |
- $(use_enable pdfimport) |
480 |
- $(use_enable postgres postgresql-sdbc) |
481 |
- $(use_with accessibility lxml) |
482 |
- $(use_with coinmp system-coinmp) |
483 |
- $(use_with googledrive gdrive-client-id ${google_default_client_id}) |
484 |
- $(use_with googledrive gdrive-client-secret ${google_default_client_secret}) |
485 |
- $(use_with java) |
486 |
- $(use_with odk doxygen) |
487 |
- ) |
488 |
- |
489 |
- if use eds || use gtk; then |
490 |
- myeconfargs+=( --enable-dconf --enable-gio ) |
491 |
- else |
492 |
- myeconfargs+=( --disable-dconf --disable-gio ) |
493 |
- fi |
494 |
- |
495 |
- # libreoffice extensions handling |
496 |
- for lo_xt in ${LO_EXTS}; do |
497 |
- if [[ "${lo_xt}" == "scripting-beanshell" || "${lo_xt}" == "scripting-javascript" ]]; then |
498 |
- myeconfargs+=( $(use_enable libreoffice_extensions_${lo_xt} ${lo_xt}) ) |
499 |
- else |
500 |
- myeconfargs+=( $(use_enable libreoffice_extensions_${lo_xt} ext-${lo_xt}) ) |
501 |
- fi |
502 |
- done |
503 |
- |
504 |
- if use java; then |
505 |
- # hsqldb: system one is too new |
506 |
- myeconfargs+=( |
507 |
- --without-junit |
508 |
- --without-system-hsqldb |
509 |
- --with-ant-home="${ANT_HOME}" |
510 |
- --with-jdk-home=$(java-config --jdk-home 2>/dev/null) |
511 |
- --with-jvm-path="${EPREFIX}/usr/lib/" |
512 |
- ) |
513 |
- |
514 |
- use libreoffice_extensions_scripting-beanshell && \ |
515 |
- myeconfargs+=( --with-beanshell-jar=$(java-pkg_getjar bsh bsh.jar) ) |
516 |
- |
517 |
- use libreoffice_extensions_scripting-javascript && \ |
518 |
- myeconfargs+=( --with-rhino-jar=$(java-pkg_getjar rhino-1.6 js.jar) ) |
519 |
- fi |
520 |
- |
521 |
- is-flagq "-flto*" && myeconfargs+=( --enable-lto ) |
522 |
- |
523 |
- MARIADBCONFIG="$(type -p $(usex mariadb mariadb mysql)_config)" \ |
524 |
- econf "${myeconfargs[@]}" |
525 |
-} |
526 |
- |
527 |
-src_compile() { |
528 |
- # more and more LO stuff tries to use OpenGL, including tests during build |
529 |
- # bug 501508, bug 540624, bug 545974 and probably more |
530 |
- addpredict /dev/dri |
531 |
- addpredict /dev/ati |
532 |
- addpredict /dev/nvidiactl |
533 |
- |
534 |
- local target |
535 |
- use test && target="build" || target="build-nocheck" |
536 |
- |
537 |
- # this is not a proper make script |
538 |
- make ${target} || die |
539 |
-} |
540 |
- |
541 |
-src_test() { |
542 |
- make unitcheck || die |
543 |
- make slowcheck || die |
544 |
-} |
545 |
- |
546 |
-src_install() { |
547 |
- # This is not Makefile so no buildserver |
548 |
- emake DESTDIR="${D}" distro-pack-install -o build -o check |
549 |
- |
550 |
- # bug 593514 |
551 |
- if use gtk; then |
552 |
- dosym libreoffice/program/liblibreofficekitgtk.so \ |
553 |
- /usr/$(get_libdir)/liblibreofficekitgtk.so |
554 |
- fi |
555 |
- |
556 |
- # bash completion aliases |
557 |
- bashcomp_alias \ |
558 |
- libreoffice \ |
559 |
- unopkg loimpress lobase localc lodraw lomath lowriter lofromtemplate loweb loffice |
560 |
- |
561 |
- if use branding; then |
562 |
- insinto /usr/$(get_libdir)/${PN}/program |
563 |
- newins "${WORKDIR}/branding-sofficerc" sofficerc |
564 |
- dodir /etc/env.d |
565 |
- echo "CONFIG_PROTECT=/usr/$(get_libdir)/${PN}/program/sofficerc" > "${ED}"/etc/env.d/99${PN} || die |
566 |
- fi |
567 |
- |
568 |
- # bug 703474 |
569 |
- insinto /usr/include |
570 |
- doins -r include/LibreOfficeKit |
571 |
- |
572 |
- local lodir=/usr/$(get_libdir)/libreoffice |
573 |
- # patching this would break tests |
574 |
- cat <<-EOF > "${T}"/uno.py |
575 |
-import sys, os |
576 |
-sys.path.append('${EPREFIX}${lodir}/program') |
577 |
-os.putenv('URE_BOOTSTRAP', 'vnd.sun.star.pathname:${EPREFIX}${lodir}/program/fundamentalrc') |
578 |
-EOF |
579 |
- sed -e "/^import sys/d" -e "/^import os/d" \ |
580 |
- -i "${D}"${lodir}/program/uno.py || die "cleanup dupl imports failed" |
581 |
- cat "${D}"${lodir}/program/uno.py >> "${T}"/uno.py || die |
582 |
- cp "${T}"/uno.py "${D}"${lodir}/program/uno.py || die |
583 |
- |
584 |
- # more system pyuno mess |
585 |
- sed -e "/sOffice = \"\" # lets hope for the best/s:\"\":\"${EPREFIX}${lodir}/program\":" \ |
586 |
- -i "${D}"${lodir}/program/officehelper.py || die |
587 |
- |
588 |
- python_optimize "${D}"${lodir}/program |
589 |
- # link python bridge in site-packages, bug 667802 |
590 |
- local py pyc loprogdir=$(get_libdir)/libreoffice/program |
591 |
- for py in uno.py unohelper.py officehelper.py; do |
592 |
- dosym ../../../${loprogdir}/${py} $(python_get_sitedir)/${py} |
593 |
- while IFS="" read -d $'\0' -r pyc; do |
594 |
- pyc=${pyc//*\/} |
595 |
- dosym ../../../../${loprogdir}/__pycache__/${pyc} $(python_get_sitedir)/__pycache__/${pyc} |
596 |
- done < <(find "${D}"${lodir}/program -type f -name ${py/.py/*.pyc} -print0) |
597 |
- done |
598 |
-} |
599 |
- |
600 |
-pkg_postinst() { |
601 |
- xdg_icon_cache_update |
602 |
- xdg_desktop_database_update |
603 |
- xdg_mimeinfo_database_update |
604 |
-} |
605 |
- |
606 |
-pkg_postrm() { |
607 |
- xdg_icon_cache_update |
608 |
- xdg_desktop_database_update |
609 |
- xdg_mimeinfo_database_update |
610 |
-} |